configure 775 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439
  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. WAYLAND_SCANNER
  582. EXTRA_LDFLAGS
  583. BUILD_LDFLAGS
  584. EXTRA_CFLAGS
  585. BUILD_CFLAGS
  586. SDLTEST_OBJECTS
  587. SDLMAIN_OBJECTS
  588. VERSION_OBJECTS
  589. GEN_OBJECTS
  590. GEN_HEADERS
  591. OBJECTS
  592. INCLUDE
  593. ac_aux_dir
  594. ENABLE_STATIC_FALSE
  595. ENABLE_STATIC_TRUE
  596. ENABLE_SHARED_FALSE
  597. ENABLE_SHARED_TRUE
  598. SDL_RLD_FLAGS
  599. SDL_STATIC_LIBS
  600. SDL_LIBS
  601. SDL_CFLAGS
  602. DIRECTFBCONFIG
  603. X_EXTRA_LIBS
  604. X_LIBS
  605. X_PRE_LIBS
  606. X_CFLAGS
  607. XMKMF
  608. ARTSCONFIG
  609. PKG_CONFIG
  610. ESD_LIBS
  611. ESD_CFLAGS
  612. ESD_CONFIG
  613. ALSA_LIBS
  614. ALSA_CFLAGS
  615. POW_LIB
  616. LIBOBJS
  617. ALLOCA
  618. WINDRES
  619. SET_MAKE
  620. INSTALL_DATA
  621. INSTALL_SCRIPT
  622. INSTALL_PROGRAM
  623. CXXCPP
  624. ac_ct_CXX
  625. CXXFLAGS
  626. CXX
  627. LT_AGE
  628. LT_REVISION
  629. LT_CURRENT
  630. LT_RELEASE
  631. CPP
  632. OTOOL64
  633. OTOOL
  634. LIPO
  635. NMEDIT
  636. DSYMUTIL
  637. MANIFEST_TOOL
  638. AWK
  639. RANLIB
  640. STRIP
  641. ac_ct_AR
  642. AR
  643. LN_S
  644. NM
  645. ac_ct_DUMPBIN
  646. DUMPBIN
  647. LD
  648. FGREP
  649. EGREP
  650. GREP
  651. SED
  652. OBJEXT
  653. EXEEXT
  654. ac_ct_CC
  655. CPPFLAGS
  656. LDFLAGS
  657. CFLAGS
  658. CC
  659. host_os
  660. host_vendor
  661. host_cpu
  662. host
  663. build_os
  664. build_vendor
  665. build_cpu
  666. build
  667. LIBTOOL
  668. OBJDUMP
  669. DLLTOOL
  670. AS
  671. SDL_VERSION
  672. SDL_BINARY_AGE
  673. SDL_INTERFACE_AGE
  674. SDL_MICRO_VERSION
  675. SDL_MINOR_VERSION
  676. SDL_MAJOR_VERSION
  677. target_alias
  678. host_alias
  679. build_alias
  680. LIBS
  681. ECHO_T
  682. ECHO_N
  683. ECHO_C
  684. DEFS
  685. mandir
  686. localedir
  687. libdir
  688. psdir
  689. pdfdir
  690. dvidir
  691. htmldir
  692. infodir
  693. docdir
  694. oldincludedir
  695. includedir
  696. localstatedir
  697. sharedstatedir
  698. sysconfdir
  699. datadir
  700. datarootdir
  701. libexecdir
  702. sbindir
  703. bindir
  704. program_transform_name
  705. prefix
  706. exec_prefix
  707. PACKAGE_URL
  708. PACKAGE_BUGREPORT
  709. PACKAGE_STRING
  710. PACKAGE_VERSION
  711. PACKAGE_TARNAME
  712. PACKAGE_NAME
  713. PATH_SEPARATOR
  714. SHELL'
  715. ac_subst_files=''
  716. ac_user_opts='
  717. enable_option_checking
  718. enable_shared
  719. enable_static
  720. with_pic
  721. enable_fast_install
  722. with_gnu_ld
  723. with_sysroot
  724. enable_libtool_lock
  725. enable_assertions
  726. enable_dependency_tracking
  727. enable_libc
  728. enable_gcc_atomics
  729. enable_atomic
  730. enable_audio
  731. enable_video
  732. enable_render
  733. enable_events
  734. enable_joystick
  735. enable_haptic
  736. enable_power
  737. enable_filesystem
  738. enable_threads
  739. enable_timers
  740. enable_file
  741. enable_loadso
  742. enable_cpuinfo
  743. enable_assembly
  744. enable_ssemath
  745. enable_mmx
  746. enable_3dnow
  747. enable_sse
  748. enable_sse2
  749. enable_altivec
  750. enable_oss
  751. enable_alsa
  752. with_alsa_prefix
  753. with_alsa_inc_prefix
  754. enable_alsatest
  755. enable_alsa_shared
  756. enable_esd
  757. with_esd_prefix
  758. with_esd_exec_prefix
  759. enable_esdtest
  760. enable_esd_shared
  761. enable_pulseaudio
  762. enable_pulseaudio_shared
  763. enable_arts
  764. enable_arts_shared
  765. enable_nas
  766. enable_nas_shared
  767. enable_sndio
  768. enable_sndio_shared
  769. enable_diskaudio
  770. enable_dummyaudio
  771. enable_video_wayland
  772. enable_video_wayland_qt_touch
  773. enable_wayland_shared
  774. enable_video_mir
  775. enable_mir_shared
  776. enable_video_x11
  777. with_x
  778. enable_x11_shared
  779. enable_video_x11_xcursor
  780. enable_video_x11_xdbe
  781. enable_video_x11_xinerama
  782. enable_video_x11_xinput
  783. enable_video_x11_xrandr
  784. enable_video_x11_scrnsaver
  785. enable_video_x11_xshape
  786. enable_video_x11_vm
  787. enable_video_vivante
  788. enable_video_cocoa
  789. enable_video_directfb
  790. enable_directfb_shared
  791. enable_fusionsound
  792. enable_fusionsound_shared
  793. enable_video_dummy
  794. enable_video_opengl
  795. enable_video_opengles
  796. enable_video_opengles1
  797. enable_video_opengles2
  798. enable_libudev
  799. enable_dbus
  800. enable_ibus
  801. enable_input_tslib
  802. enable_pthreads
  803. enable_pthread_sem
  804. enable_directx
  805. enable_sdl_dlopen
  806. enable_clock_gettime
  807. enable_rpath
  808. enable_render_d3d
  809. '
  810. ac_precious_vars='build_alias
  811. host_alias
  812. target_alias
  813. CC
  814. CFLAGS
  815. LDFLAGS
  816. LIBS
  817. CPPFLAGS
  818. CPP
  819. CXX
  820. CXXFLAGS
  821. CCC
  822. CXXCPP
  823. XMKMF'
  824. # Initialize some variables set by options.
  825. ac_init_help=
  826. ac_init_version=false
  827. ac_unrecognized_opts=
  828. ac_unrecognized_sep=
  829. # The variables have the same names as the options, with
  830. # dashes changed to underlines.
  831. cache_file=/dev/null
  832. exec_prefix=NONE
  833. no_create=
  834. no_recursion=
  835. prefix=NONE
  836. program_prefix=NONE
  837. program_suffix=NONE
  838. program_transform_name=s,x,x,
  839. silent=
  840. site=
  841. srcdir=
  842. verbose=
  843. x_includes=NONE
  844. x_libraries=NONE
  845. # Installation directory options.
  846. # These are left unexpanded so users can "make install exec_prefix=/foo"
  847. # and all the variables that are supposed to be based on exec_prefix
  848. # by default will actually change.
  849. # Use braces instead of parens because sh, perl, etc. also accept them.
  850. # (The list follows the same order as the GNU Coding Standards.)
  851. bindir='${exec_prefix}/bin'
  852. sbindir='${exec_prefix}/sbin'
  853. libexecdir='${exec_prefix}/libexec'
  854. datarootdir='${prefix}/share'
  855. datadir='${datarootdir}'
  856. sysconfdir='${prefix}/etc'
  857. sharedstatedir='${prefix}/com'
  858. localstatedir='${prefix}/var'
  859. includedir='${prefix}/include'
  860. oldincludedir='/usr/include'
  861. docdir='${datarootdir}/doc/${PACKAGE}'
  862. infodir='${datarootdir}/info'
  863. htmldir='${docdir}'
  864. dvidir='${docdir}'
  865. pdfdir='${docdir}'
  866. psdir='${docdir}'
  867. libdir='${exec_prefix}/lib'
  868. localedir='${datarootdir}/locale'
  869. mandir='${datarootdir}/man'
  870. ac_prev=
  871. ac_dashdash=
  872. for ac_option
  873. do
  874. # If the previous option needs an argument, assign it.
  875. if test -n "$ac_prev"; then
  876. eval $ac_prev=\$ac_option
  877. ac_prev=
  878. continue
  879. fi
  880. case $ac_option in
  881. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  882. *=) ac_optarg= ;;
  883. *) ac_optarg=yes ;;
  884. esac
  885. # Accept the important Cygnus configure options, so we can diagnose typos.
  886. case $ac_dashdash$ac_option in
  887. --)
  888. ac_dashdash=yes ;;
  889. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  890. ac_prev=bindir ;;
  891. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  892. bindir=$ac_optarg ;;
  893. -build | --build | --buil | --bui | --bu)
  894. ac_prev=build_alias ;;
  895. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  896. build_alias=$ac_optarg ;;
  897. -cache-file | --cache-file | --cache-fil | --cache-fi \
  898. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  899. ac_prev=cache_file ;;
  900. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  901. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  902. cache_file=$ac_optarg ;;
  903. --config-cache | -C)
  904. cache_file=config.cache ;;
  905. -datadir | --datadir | --datadi | --datad)
  906. ac_prev=datadir ;;
  907. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  908. datadir=$ac_optarg ;;
  909. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  910. | --dataroo | --dataro | --datar)
  911. ac_prev=datarootdir ;;
  912. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  913. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  914. datarootdir=$ac_optarg ;;
  915. -disable-* | --disable-*)
  916. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  917. # Reject names that are not valid shell variable names.
  918. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  919. as_fn_error $? "invalid feature name: $ac_useropt"
  920. ac_useropt_orig=$ac_useropt
  921. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  922. case $ac_user_opts in
  923. *"
  924. "enable_$ac_useropt"
  925. "*) ;;
  926. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  927. ac_unrecognized_sep=', ';;
  928. esac
  929. eval enable_$ac_useropt=no ;;
  930. -docdir | --docdir | --docdi | --doc | --do)
  931. ac_prev=docdir ;;
  932. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  933. docdir=$ac_optarg ;;
  934. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  935. ac_prev=dvidir ;;
  936. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  937. dvidir=$ac_optarg ;;
  938. -enable-* | --enable-*)
  939. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  940. # Reject names that are not valid shell variable names.
  941. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  942. as_fn_error $? "invalid feature name: $ac_useropt"
  943. ac_useropt_orig=$ac_useropt
  944. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  945. case $ac_user_opts in
  946. *"
  947. "enable_$ac_useropt"
  948. "*) ;;
  949. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  950. ac_unrecognized_sep=', ';;
  951. esac
  952. eval enable_$ac_useropt=\$ac_optarg ;;
  953. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  954. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  955. | --exec | --exe | --ex)
  956. ac_prev=exec_prefix ;;
  957. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  958. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  959. | --exec=* | --exe=* | --ex=*)
  960. exec_prefix=$ac_optarg ;;
  961. -gas | --gas | --ga | --g)
  962. # Obsolete; use --with-gas.
  963. with_gas=yes ;;
  964. -help | --help | --hel | --he | -h)
  965. ac_init_help=long ;;
  966. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  967. ac_init_help=recursive ;;
  968. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  969. ac_init_help=short ;;
  970. -host | --host | --hos | --ho)
  971. ac_prev=host_alias ;;
  972. -host=* | --host=* | --hos=* | --ho=*)
  973. host_alias=$ac_optarg ;;
  974. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  975. ac_prev=htmldir ;;
  976. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  977. | --ht=*)
  978. htmldir=$ac_optarg ;;
  979. -includedir | --includedir | --includedi | --included | --include \
  980. | --includ | --inclu | --incl | --inc)
  981. ac_prev=includedir ;;
  982. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  983. | --includ=* | --inclu=* | --incl=* | --inc=*)
  984. includedir=$ac_optarg ;;
  985. -infodir | --infodir | --infodi | --infod | --info | --inf)
  986. ac_prev=infodir ;;
  987. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  988. infodir=$ac_optarg ;;
  989. -libdir | --libdir | --libdi | --libd)
  990. ac_prev=libdir ;;
  991. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  992. libdir=$ac_optarg ;;
  993. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  994. | --libexe | --libex | --libe)
  995. ac_prev=libexecdir ;;
  996. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  997. | --libexe=* | --libex=* | --libe=*)
  998. libexecdir=$ac_optarg ;;
  999. -localedir | --localedir | --localedi | --localed | --locale)
  1000. ac_prev=localedir ;;
  1001. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1002. localedir=$ac_optarg ;;
  1003. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1004. | --localstate | --localstat | --localsta | --localst | --locals)
  1005. ac_prev=localstatedir ;;
  1006. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1007. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1008. localstatedir=$ac_optarg ;;
  1009. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1010. ac_prev=mandir ;;
  1011. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1012. mandir=$ac_optarg ;;
  1013. -nfp | --nfp | --nf)
  1014. # Obsolete; use --without-fp.
  1015. with_fp=no ;;
  1016. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1017. | --no-cr | --no-c | -n)
  1018. no_create=yes ;;
  1019. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1020. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1021. no_recursion=yes ;;
  1022. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1023. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1024. | --oldin | --oldi | --old | --ol | --o)
  1025. ac_prev=oldincludedir ;;
  1026. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1027. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1028. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1029. oldincludedir=$ac_optarg ;;
  1030. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1031. ac_prev=prefix ;;
  1032. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1033. prefix=$ac_optarg ;;
  1034. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1035. | --program-pre | --program-pr | --program-p)
  1036. ac_prev=program_prefix ;;
  1037. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1038. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1039. program_prefix=$ac_optarg ;;
  1040. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1041. | --program-suf | --program-su | --program-s)
  1042. ac_prev=program_suffix ;;
  1043. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1044. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1045. program_suffix=$ac_optarg ;;
  1046. -program-transform-name | --program-transform-name \
  1047. | --program-transform-nam | --program-transform-na \
  1048. | --program-transform-n | --program-transform- \
  1049. | --program-transform | --program-transfor \
  1050. | --program-transfo | --program-transf \
  1051. | --program-trans | --program-tran \
  1052. | --progr-tra | --program-tr | --program-t)
  1053. ac_prev=program_transform_name ;;
  1054. -program-transform-name=* | --program-transform-name=* \
  1055. | --program-transform-nam=* | --program-transform-na=* \
  1056. | --program-transform-n=* | --program-transform-=* \
  1057. | --program-transform=* | --program-transfor=* \
  1058. | --program-transfo=* | --program-transf=* \
  1059. | --program-trans=* | --program-tran=* \
  1060. | --progr-tra=* | --program-tr=* | --program-t=*)
  1061. program_transform_name=$ac_optarg ;;
  1062. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1063. ac_prev=pdfdir ;;
  1064. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1065. pdfdir=$ac_optarg ;;
  1066. -psdir | --psdir | --psdi | --psd | --ps)
  1067. ac_prev=psdir ;;
  1068. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1069. psdir=$ac_optarg ;;
  1070. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1071. | -silent | --silent | --silen | --sile | --sil)
  1072. silent=yes ;;
  1073. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1074. ac_prev=sbindir ;;
  1075. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1076. | --sbi=* | --sb=*)
  1077. sbindir=$ac_optarg ;;
  1078. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1079. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1080. | --sharedst | --shareds | --shared | --share | --shar \
  1081. | --sha | --sh)
  1082. ac_prev=sharedstatedir ;;
  1083. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1084. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1085. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1086. | --sha=* | --sh=*)
  1087. sharedstatedir=$ac_optarg ;;
  1088. -site | --site | --sit)
  1089. ac_prev=site ;;
  1090. -site=* | --site=* | --sit=*)
  1091. site=$ac_optarg ;;
  1092. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1093. ac_prev=srcdir ;;
  1094. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1095. srcdir=$ac_optarg ;;
  1096. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1097. | --syscon | --sysco | --sysc | --sys | --sy)
  1098. ac_prev=sysconfdir ;;
  1099. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1100. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1101. sysconfdir=$ac_optarg ;;
  1102. -target | --target | --targe | --targ | --tar | --ta | --t)
  1103. ac_prev=target_alias ;;
  1104. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1105. target_alias=$ac_optarg ;;
  1106. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1107. verbose=yes ;;
  1108. -version | --version | --versio | --versi | --vers | -V)
  1109. ac_init_version=: ;;
  1110. -with-* | --with-*)
  1111. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1112. # Reject names that are not valid shell variable names.
  1113. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1114. as_fn_error $? "invalid package name: $ac_useropt"
  1115. ac_useropt_orig=$ac_useropt
  1116. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1117. case $ac_user_opts in
  1118. *"
  1119. "with_$ac_useropt"
  1120. "*) ;;
  1121. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1122. ac_unrecognized_sep=', ';;
  1123. esac
  1124. eval with_$ac_useropt=\$ac_optarg ;;
  1125. -without-* | --without-*)
  1126. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1127. # Reject names that are not valid shell variable names.
  1128. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1129. as_fn_error $? "invalid package name: $ac_useropt"
  1130. ac_useropt_orig=$ac_useropt
  1131. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1132. case $ac_user_opts in
  1133. *"
  1134. "with_$ac_useropt"
  1135. "*) ;;
  1136. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1137. ac_unrecognized_sep=', ';;
  1138. esac
  1139. eval with_$ac_useropt=no ;;
  1140. --x)
  1141. # Obsolete; use --with-x.
  1142. with_x=yes ;;
  1143. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1144. | --x-incl | --x-inc | --x-in | --x-i)
  1145. ac_prev=x_includes ;;
  1146. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1147. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1148. x_includes=$ac_optarg ;;
  1149. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1150. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1151. ac_prev=x_libraries ;;
  1152. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1153. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1154. x_libraries=$ac_optarg ;;
  1155. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1156. Try \`$0 --help' for more information"
  1157. ;;
  1158. *=*)
  1159. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1160. # Reject names that are not valid shell variable names.
  1161. case $ac_envvar in #(
  1162. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1163. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1164. esac
  1165. eval $ac_envvar=\$ac_optarg
  1166. export $ac_envvar ;;
  1167. *)
  1168. # FIXME: should be removed in autoconf 3.0.
  1169. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1170. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1171. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1172. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1173. ;;
  1174. esac
  1175. done
  1176. if test -n "$ac_prev"; then
  1177. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1178. as_fn_error $? "missing argument to $ac_option"
  1179. fi
  1180. if test -n "$ac_unrecognized_opts"; then
  1181. case $enable_option_checking in
  1182. no) ;;
  1183. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1184. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1185. esac
  1186. fi
  1187. # Check all directory arguments for consistency.
  1188. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1189. datadir sysconfdir sharedstatedir localstatedir includedir \
  1190. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1191. libdir localedir mandir
  1192. do
  1193. eval ac_val=\$$ac_var
  1194. # Remove trailing slashes.
  1195. case $ac_val in
  1196. */ )
  1197. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1198. eval $ac_var=\$ac_val;;
  1199. esac
  1200. # Be sure to have absolute directory names.
  1201. case $ac_val in
  1202. [\\/$]* | ?:[\\/]* ) continue;;
  1203. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1204. esac
  1205. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1206. done
  1207. # There might be people who depend on the old broken behavior: `$host'
  1208. # used to hold the argument of --host etc.
  1209. # FIXME: To remove some day.
  1210. build=$build_alias
  1211. host=$host_alias
  1212. target=$target_alias
  1213. # FIXME: To remove some day.
  1214. if test "x$host_alias" != x; then
  1215. if test "x$build_alias" = x; then
  1216. cross_compiling=maybe
  1217. elif test "x$build_alias" != "x$host_alias"; then
  1218. cross_compiling=yes
  1219. fi
  1220. fi
  1221. ac_tool_prefix=
  1222. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1223. test "$silent" = yes && exec 6>/dev/null
  1224. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1225. ac_ls_di=`ls -di .` &&
  1226. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1227. as_fn_error $? "working directory cannot be determined"
  1228. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1229. as_fn_error $? "pwd does not report name of working directory"
  1230. # Find the source files, if location was not specified.
  1231. if test -z "$srcdir"; then
  1232. ac_srcdir_defaulted=yes
  1233. # Try the directory containing this script, then the parent directory.
  1234. ac_confdir=`$as_dirname -- "$as_myself" ||
  1235. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1236. X"$as_myself" : 'X\(//\)[^/]' \| \
  1237. X"$as_myself" : 'X\(//\)$' \| \
  1238. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1239. $as_echo X"$as_myself" |
  1240. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1241. s//\1/
  1242. q
  1243. }
  1244. /^X\(\/\/\)[^/].*/{
  1245. s//\1/
  1246. q
  1247. }
  1248. /^X\(\/\/\)$/{
  1249. s//\1/
  1250. q
  1251. }
  1252. /^X\(\/\).*/{
  1253. s//\1/
  1254. q
  1255. }
  1256. s/.*/./; q'`
  1257. srcdir=$ac_confdir
  1258. if test ! -r "$srcdir/$ac_unique_file"; then
  1259. srcdir=..
  1260. fi
  1261. else
  1262. ac_srcdir_defaulted=no
  1263. fi
  1264. if test ! -r "$srcdir/$ac_unique_file"; then
  1265. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1266. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1267. fi
  1268. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1269. ac_abs_confdir=`(
  1270. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1271. pwd)`
  1272. # When building in place, set srcdir=.
  1273. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1274. srcdir=.
  1275. fi
  1276. # Remove unnecessary trailing slashes from srcdir.
  1277. # Double slashes in file names in object file debugging info
  1278. # mess up M-x gdb in Emacs.
  1279. case $srcdir in
  1280. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1281. esac
  1282. for ac_var in $ac_precious_vars; do
  1283. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1284. eval ac_env_${ac_var}_value=\$${ac_var}
  1285. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1286. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1287. done
  1288. #
  1289. # Report the --help message.
  1290. #
  1291. if test "$ac_init_help" = "long"; then
  1292. # Omit some internal or obsolete options to make the list less imposing.
  1293. # This message is too long to be a string in the A/UX 3.1 sh.
  1294. cat <<_ACEOF
  1295. \`configure' configures this package to adapt to many kinds of systems.
  1296. Usage: $0 [OPTION]... [VAR=VALUE]...
  1297. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1298. VAR=VALUE. See below for descriptions of some of the useful variables.
  1299. Defaults for the options are specified in brackets.
  1300. Configuration:
  1301. -h, --help display this help and exit
  1302. --help=short display options specific to this package
  1303. --help=recursive display the short help of all the included packages
  1304. -V, --version display version information and exit
  1305. -q, --quiet, --silent do not print \`checking ...' messages
  1306. --cache-file=FILE cache test results in FILE [disabled]
  1307. -C, --config-cache alias for \`--cache-file=config.cache'
  1308. -n, --no-create do not create output files
  1309. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1310. Installation directories:
  1311. --prefix=PREFIX install architecture-independent files in PREFIX
  1312. [$ac_default_prefix]
  1313. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1314. [PREFIX]
  1315. By default, \`make install' will install all the files in
  1316. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1317. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1318. for instance \`--prefix=\$HOME'.
  1319. For better control, use the options below.
  1320. Fine tuning of the installation directories:
  1321. --bindir=DIR user executables [EPREFIX/bin]
  1322. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1323. --libexecdir=DIR program executables [EPREFIX/libexec]
  1324. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1325. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1326. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1327. --libdir=DIR object code libraries [EPREFIX/lib]
  1328. --includedir=DIR C header files [PREFIX/include]
  1329. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1330. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1331. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1332. --infodir=DIR info documentation [DATAROOTDIR/info]
  1333. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1334. --mandir=DIR man documentation [DATAROOTDIR/man]
  1335. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1336. --htmldir=DIR html documentation [DOCDIR]
  1337. --dvidir=DIR dvi documentation [DOCDIR]
  1338. --pdfdir=DIR pdf documentation [DOCDIR]
  1339. --psdir=DIR ps documentation [DOCDIR]
  1340. _ACEOF
  1341. cat <<\_ACEOF
  1342. X features:
  1343. --x-includes=DIR X include files are in DIR
  1344. --x-libraries=DIR X library files are in DIR
  1345. System types:
  1346. --build=BUILD configure for building on BUILD [guessed]
  1347. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1348. _ACEOF
  1349. fi
  1350. if test -n "$ac_init_help"; then
  1351. cat <<\_ACEOF
  1352. Optional Features:
  1353. --disable-option-checking ignore unrecognized --enable/--with options
  1354. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1355. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1356. --enable-shared[=PKGS] build shared libraries [default=yes]
  1357. --enable-static[=PKGS] build static libraries [default=yes]
  1358. --enable-fast-install[=PKGS]
  1359. optimize for fast installation [default=yes]
  1360. --disable-libtool-lock avoid locking (might break parallel builds)
  1361. --enable-assertions Enable internal sanity checks
  1362. (auto/disabled/release/enabled/paranoid)
  1363. [[default=auto]]
  1364. --enable-dependency-tracking
  1365. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1366. --enable-libc Use the system C library [[default=yes]]
  1367. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1368. --enable-atomic Enable the atomic operations subsystem
  1369. [[default=yes]]
  1370. --enable-audio Enable the audio subsystem [[default=yes]]
  1371. --enable-video Enable the video subsystem [[default=yes]]
  1372. --enable-render Enable the render subsystem [[default=yes]]
  1373. --enable-events Enable the events subsystem [[default=yes]]
  1374. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1375. --enable-haptic Enable the haptic (force feedback) subsystem
  1376. [[default=yes]]
  1377. --enable-power Enable the power subsystem [[default=yes]]
  1378. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1379. --enable-threads Enable the threading subsystem [[default=yes]]
  1380. --enable-timers Enable the timer subsystem [[default=yes]]
  1381. --enable-file Enable the file subsystem [[default=yes]]
  1382. --enable-loadso Enable the shared object loading subsystem
  1383. [[default=yes]]
  1384. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1385. --enable-assembly Enable assembly routines [[default=yes]]
  1386. --enable-ssemath Allow GCC to use SSE floating point math
  1387. [[default=no]]
  1388. --enable-mmx use MMX assembly routines [[default=yes]]
  1389. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1390. --enable-sse use SSE assembly routines [[default=yes]]
  1391. --enable-sse2 use SSE2 assembly routines [[default=no]]
  1392. --enable-altivec use Altivec assembly routines [[default=yes]]
  1393. --enable-oss support the OSS audio API [[default=maybe]]
  1394. --enable-alsa support the ALSA audio API [[default=yes]]
  1395. --disable-alsatest Do not try to compile and run a test Alsa program
  1396. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1397. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1398. --disable-esdtest Do not try to compile and run a test ESD program
  1399. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1400. --enable-pulseaudio use PulseAudio [[default=yes]]
  1401. --enable-pulseaudio-shared
  1402. dynamically load PulseAudio support [[default=yes]]
  1403. --enable-arts support the Analog Real Time Synthesizer
  1404. [[default=yes]]
  1405. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1406. --enable-nas support the NAS audio API [[default=yes]]
  1407. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1408. --enable-sndio support the sndio audio API [[default=yes]]
  1409. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1410. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1411. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1412. --enable-video-wayland use Wayland video driver [[default=yes]]
  1413. --enable-video-wayland-qt-touch
  1414. QtWayland server support for Wayland video driver
  1415. [[default=yes]]
  1416. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1417. --enable-video-mir use Mir video driver [[default=yes]]
  1418. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1419. --enable-video-x11 use X11 video driver [[default=yes]]
  1420. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1421. --enable-video-x11-xcursor
  1422. enable X11 Xcursor support [[default=yes]]
  1423. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1424. --enable-video-x11-xinerama
  1425. enable X11 Xinerama support [[default=yes]]
  1426. --enable-video-x11-xinput
  1427. enable X11 XInput extension for manymouse, tablets,
  1428. etc [[default=yes]]
  1429. --enable-video-x11-xrandr
  1430. enable X11 Xrandr extension for fullscreen
  1431. [[default=yes]]
  1432. --enable-video-x11-scrnsaver
  1433. enable X11 screensaver extension [[default=yes]]
  1434. --enable-video-x11-xshape
  1435. enable X11 XShape support [[default=yes]]
  1436. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1437. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1438. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1439. --enable-video-directfb use DirectFB video driver [[default=no]]
  1440. --enable-directfb-shared
  1441. dynamically load directfb support [[default=yes]]
  1442. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1443. --enable-fusionsound-shared
  1444. dynamically load fusionsound audio support
  1445. [[default=yes]]
  1446. --enable-video-dummy use dummy video driver [[default=yes]]
  1447. --enable-video-opengl include OpenGL support [[default=yes]]
  1448. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1449. --enable-video-opengles1
  1450. include OpenGL ES 1.1 support [[default=yes]]
  1451. --enable-video-opengles2
  1452. include OpenGL ES 2.0 support [[default=yes]]
  1453. --enable-libudev enable libudev support [[default=yes]]
  1454. --enable-dbus enable D-Bus support [[default=yes]]
  1455. --enable-ibus enable IBus support [[default=yes]]
  1456. --enable-input-tslib use the Touchscreen library for input
  1457. [[default=yes]]
  1458. --enable-pthreads use POSIX threads for multi-threading
  1459. [[default=yes]]
  1460. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1461. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1462. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1463. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1464. UNIX [[default=yes]]
  1465. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1466. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1467. Optional Packages:
  1468. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1469. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1470. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1471. both]
  1472. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1473. --with-sysroot=DIR Search for dependent libraries within DIR
  1474. (or the compiler's sysroot if not specified).
  1475. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1476. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1477. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1478. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1479. --with-x use the X Window System
  1480. Some influential environment variables:
  1481. CC C compiler command
  1482. CFLAGS C compiler flags
  1483. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1484. nonstandard directory <lib dir>
  1485. LIBS libraries to pass to the linker, e.g. -l<library>
  1486. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1487. you have headers in a nonstandard directory <include dir>
  1488. CPP C preprocessor
  1489. CXX C++ compiler command
  1490. CXXFLAGS C++ compiler flags
  1491. CXXCPP C++ preprocessor
  1492. XMKMF Path to xmkmf, Makefile generator for X Window System
  1493. Use these variables to override the choices made by `configure' or to help
  1494. it to find libraries and programs with nonstandard names/locations.
  1495. Report bugs to the package provider.
  1496. _ACEOF
  1497. ac_status=$?
  1498. fi
  1499. if test "$ac_init_help" = "recursive"; then
  1500. # If there are subdirs, report their specific --help.
  1501. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1502. test -d "$ac_dir" ||
  1503. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1504. continue
  1505. ac_builddir=.
  1506. case "$ac_dir" in
  1507. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1508. *)
  1509. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1510. # A ".." for each directory in $ac_dir_suffix.
  1511. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1512. case $ac_top_builddir_sub in
  1513. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1514. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1515. esac ;;
  1516. esac
  1517. ac_abs_top_builddir=$ac_pwd
  1518. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1519. # for backward compatibility:
  1520. ac_top_builddir=$ac_top_build_prefix
  1521. case $srcdir in
  1522. .) # We are building in place.
  1523. ac_srcdir=.
  1524. ac_top_srcdir=$ac_top_builddir_sub
  1525. ac_abs_top_srcdir=$ac_pwd ;;
  1526. [\\/]* | ?:[\\/]* ) # Absolute name.
  1527. ac_srcdir=$srcdir$ac_dir_suffix;
  1528. ac_top_srcdir=$srcdir
  1529. ac_abs_top_srcdir=$srcdir ;;
  1530. *) # Relative name.
  1531. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1532. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1533. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1534. esac
  1535. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1536. cd "$ac_dir" || { ac_status=$?; continue; }
  1537. # Check for guested configure.
  1538. if test -f "$ac_srcdir/configure.gnu"; then
  1539. echo &&
  1540. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1541. elif test -f "$ac_srcdir/configure"; then
  1542. echo &&
  1543. $SHELL "$ac_srcdir/configure" --help=recursive
  1544. else
  1545. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1546. fi || ac_status=$?
  1547. cd "$ac_pwd" || { ac_status=$?; break; }
  1548. done
  1549. fi
  1550. test -n "$ac_init_help" && exit $ac_status
  1551. if $ac_init_version; then
  1552. cat <<\_ACEOF
  1553. configure
  1554. generated by GNU Autoconf 2.69
  1555. Copyright (C) 2012 Free Software Foundation, Inc.
  1556. This configure script is free software; the Free Software Foundation
  1557. gives unlimited permission to copy, distribute and modify it.
  1558. _ACEOF
  1559. exit
  1560. fi
  1561. ## ------------------------ ##
  1562. ## Autoconf initialization. ##
  1563. ## ------------------------ ##
  1564. # ac_fn_c_try_compile LINENO
  1565. # --------------------------
  1566. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1567. ac_fn_c_try_compile ()
  1568. {
  1569. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1570. rm -f conftest.$ac_objext
  1571. if { { ac_try="$ac_compile"
  1572. case "(($ac_try" in
  1573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1574. *) ac_try_echo=$ac_try;;
  1575. esac
  1576. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1577. $as_echo "$ac_try_echo"; } >&5
  1578. (eval "$ac_compile") 2>conftest.err
  1579. ac_status=$?
  1580. if test -s conftest.err; then
  1581. grep -v '^ *+' conftest.err >conftest.er1
  1582. cat conftest.er1 >&5
  1583. mv -f conftest.er1 conftest.err
  1584. fi
  1585. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1586. test $ac_status = 0; } && {
  1587. test -z "$ac_c_werror_flag" ||
  1588. test ! -s conftest.err
  1589. } && test -s conftest.$ac_objext; then :
  1590. ac_retval=0
  1591. else
  1592. $as_echo "$as_me: failed program was:" >&5
  1593. sed 's/^/| /' conftest.$ac_ext >&5
  1594. ac_retval=1
  1595. fi
  1596. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1597. as_fn_set_status $ac_retval
  1598. } # ac_fn_c_try_compile
  1599. # ac_fn_c_try_link LINENO
  1600. # -----------------------
  1601. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1602. ac_fn_c_try_link ()
  1603. {
  1604. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1605. rm -f conftest.$ac_objext conftest$ac_exeext
  1606. if { { ac_try="$ac_link"
  1607. case "(($ac_try" in
  1608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1609. *) ac_try_echo=$ac_try;;
  1610. esac
  1611. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1612. $as_echo "$ac_try_echo"; } >&5
  1613. (eval "$ac_link") 2>conftest.err
  1614. ac_status=$?
  1615. if test -s conftest.err; then
  1616. grep -v '^ *+' conftest.err >conftest.er1
  1617. cat conftest.er1 >&5
  1618. mv -f conftest.er1 conftest.err
  1619. fi
  1620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1621. test $ac_status = 0; } && {
  1622. test -z "$ac_c_werror_flag" ||
  1623. test ! -s conftest.err
  1624. } && test -s conftest$ac_exeext && {
  1625. test "$cross_compiling" = yes ||
  1626. test -x conftest$ac_exeext
  1627. }; then :
  1628. ac_retval=0
  1629. else
  1630. $as_echo "$as_me: failed program was:" >&5
  1631. sed 's/^/| /' conftest.$ac_ext >&5
  1632. ac_retval=1
  1633. fi
  1634. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1635. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1636. # interfere with the next link command; also delete a directory that is
  1637. # left behind by Apple's compiler. We do this before executing the actions.
  1638. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1639. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1640. as_fn_set_status $ac_retval
  1641. } # ac_fn_c_try_link
  1642. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1643. # -------------------------------------------------------
  1644. # Tests whether HEADER exists and can be compiled using the include files in
  1645. # INCLUDES, setting the cache variable VAR accordingly.
  1646. ac_fn_c_check_header_compile ()
  1647. {
  1648. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1650. $as_echo_n "checking for $2... " >&6; }
  1651. if eval \${$3+:} false; then :
  1652. $as_echo_n "(cached) " >&6
  1653. else
  1654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1655. /* end confdefs.h. */
  1656. $4
  1657. #include <$2>
  1658. _ACEOF
  1659. if ac_fn_c_try_compile "$LINENO"; then :
  1660. eval "$3=yes"
  1661. else
  1662. eval "$3=no"
  1663. fi
  1664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1665. fi
  1666. eval ac_res=\$$3
  1667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1668. $as_echo "$ac_res" >&6; }
  1669. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1670. } # ac_fn_c_check_header_compile
  1671. # ac_fn_c_try_cpp LINENO
  1672. # ----------------------
  1673. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1674. ac_fn_c_try_cpp ()
  1675. {
  1676. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1677. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1678. case "(($ac_try" in
  1679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1680. *) ac_try_echo=$ac_try;;
  1681. esac
  1682. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1683. $as_echo "$ac_try_echo"; } >&5
  1684. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1685. ac_status=$?
  1686. if test -s conftest.err; then
  1687. grep -v '^ *+' conftest.err >conftest.er1
  1688. cat conftest.er1 >&5
  1689. mv -f conftest.er1 conftest.err
  1690. fi
  1691. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1692. test $ac_status = 0; } > conftest.i && {
  1693. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1694. test ! -s conftest.err
  1695. }; then :
  1696. ac_retval=0
  1697. else
  1698. $as_echo "$as_me: failed program was:" >&5
  1699. sed 's/^/| /' conftest.$ac_ext >&5
  1700. ac_retval=1
  1701. fi
  1702. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1703. as_fn_set_status $ac_retval
  1704. } # ac_fn_c_try_cpp
  1705. # ac_fn_c_try_run LINENO
  1706. # ----------------------
  1707. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1708. # that executables *can* be run.
  1709. ac_fn_c_try_run ()
  1710. {
  1711. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1712. if { { ac_try="$ac_link"
  1713. case "(($ac_try" in
  1714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1715. *) ac_try_echo=$ac_try;;
  1716. esac
  1717. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1718. $as_echo "$ac_try_echo"; } >&5
  1719. (eval "$ac_link") 2>&5
  1720. ac_status=$?
  1721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1722. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1723. { { case "(($ac_try" in
  1724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1725. *) ac_try_echo=$ac_try;;
  1726. esac
  1727. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1728. $as_echo "$ac_try_echo"; } >&5
  1729. (eval "$ac_try") 2>&5
  1730. ac_status=$?
  1731. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1732. test $ac_status = 0; }; }; then :
  1733. ac_retval=0
  1734. else
  1735. $as_echo "$as_me: program exited with status $ac_status" >&5
  1736. $as_echo "$as_me: failed program was:" >&5
  1737. sed 's/^/| /' conftest.$ac_ext >&5
  1738. ac_retval=$ac_status
  1739. fi
  1740. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1741. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1742. as_fn_set_status $ac_retval
  1743. } # ac_fn_c_try_run
  1744. # ac_fn_c_check_func LINENO FUNC VAR
  1745. # ----------------------------------
  1746. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1747. ac_fn_c_check_func ()
  1748. {
  1749. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1751. $as_echo_n "checking for $2... " >&6; }
  1752. if eval \${$3+:} false; then :
  1753. $as_echo_n "(cached) " >&6
  1754. else
  1755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1756. /* end confdefs.h. */
  1757. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1758. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1759. #define $2 innocuous_$2
  1760. /* System header to define __stub macros and hopefully few prototypes,
  1761. which can conflict with char $2 (); below.
  1762. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1763. <limits.h> exists even on freestanding compilers. */
  1764. #ifdef __STDC__
  1765. # include <limits.h>
  1766. #else
  1767. # include <assert.h>
  1768. #endif
  1769. #undef $2
  1770. /* Override any GCC internal prototype to avoid an error.
  1771. Use char because int might match the return type of a GCC
  1772. builtin and then its argument prototype would still apply. */
  1773. #ifdef __cplusplus
  1774. extern "C"
  1775. #endif
  1776. char $2 ();
  1777. /* The GNU C library defines this for functions which it implements
  1778. to always fail with ENOSYS. Some functions are actually named
  1779. something starting with __ and the normal name is an alias. */
  1780. #if defined __stub_$2 || defined __stub___$2
  1781. choke me
  1782. #endif
  1783. int
  1784. main ()
  1785. {
  1786. return $2 ();
  1787. ;
  1788. return 0;
  1789. }
  1790. _ACEOF
  1791. if ac_fn_c_try_link "$LINENO"; then :
  1792. eval "$3=yes"
  1793. else
  1794. eval "$3=no"
  1795. fi
  1796. rm -f core conftest.err conftest.$ac_objext \
  1797. conftest$ac_exeext conftest.$ac_ext
  1798. fi
  1799. eval ac_res=\$$3
  1800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1801. $as_echo "$ac_res" >&6; }
  1802. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1803. } # ac_fn_c_check_func
  1804. # ac_fn_cxx_try_compile LINENO
  1805. # ----------------------------
  1806. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1807. ac_fn_cxx_try_compile ()
  1808. {
  1809. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1810. rm -f conftest.$ac_objext
  1811. if { { ac_try="$ac_compile"
  1812. case "(($ac_try" in
  1813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1814. *) ac_try_echo=$ac_try;;
  1815. esac
  1816. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1817. $as_echo "$ac_try_echo"; } >&5
  1818. (eval "$ac_compile") 2>conftest.err
  1819. ac_status=$?
  1820. if test -s conftest.err; then
  1821. grep -v '^ *+' conftest.err >conftest.er1
  1822. cat conftest.er1 >&5
  1823. mv -f conftest.er1 conftest.err
  1824. fi
  1825. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1826. test $ac_status = 0; } && {
  1827. test -z "$ac_cxx_werror_flag" ||
  1828. test ! -s conftest.err
  1829. } && test -s conftest.$ac_objext; then :
  1830. ac_retval=0
  1831. else
  1832. $as_echo "$as_me: failed program was:" >&5
  1833. sed 's/^/| /' conftest.$ac_ext >&5
  1834. ac_retval=1
  1835. fi
  1836. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1837. as_fn_set_status $ac_retval
  1838. } # ac_fn_cxx_try_compile
  1839. # ac_fn_cxx_try_cpp LINENO
  1840. # ------------------------
  1841. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1842. ac_fn_cxx_try_cpp ()
  1843. {
  1844. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1845. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1846. case "(($ac_try" in
  1847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1848. *) ac_try_echo=$ac_try;;
  1849. esac
  1850. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1851. $as_echo "$ac_try_echo"; } >&5
  1852. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1853. ac_status=$?
  1854. if test -s conftest.err; then
  1855. grep -v '^ *+' conftest.err >conftest.er1
  1856. cat conftest.er1 >&5
  1857. mv -f conftest.er1 conftest.err
  1858. fi
  1859. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1860. test $ac_status = 0; } > conftest.i && {
  1861. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1862. test ! -s conftest.err
  1863. }; then :
  1864. ac_retval=0
  1865. else
  1866. $as_echo "$as_me: failed program was:" >&5
  1867. sed 's/^/| /' conftest.$ac_ext >&5
  1868. ac_retval=1
  1869. fi
  1870. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1871. as_fn_set_status $ac_retval
  1872. } # ac_fn_cxx_try_cpp
  1873. # ac_fn_cxx_try_link LINENO
  1874. # -------------------------
  1875. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1876. ac_fn_cxx_try_link ()
  1877. {
  1878. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1879. rm -f conftest.$ac_objext conftest$ac_exeext
  1880. if { { ac_try="$ac_link"
  1881. case "(($ac_try" in
  1882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1883. *) ac_try_echo=$ac_try;;
  1884. esac
  1885. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1886. $as_echo "$ac_try_echo"; } >&5
  1887. (eval "$ac_link") 2>conftest.err
  1888. ac_status=$?
  1889. if test -s conftest.err; then
  1890. grep -v '^ *+' conftest.err >conftest.er1
  1891. cat conftest.er1 >&5
  1892. mv -f conftest.er1 conftest.err
  1893. fi
  1894. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1895. test $ac_status = 0; } && {
  1896. test -z "$ac_cxx_werror_flag" ||
  1897. test ! -s conftest.err
  1898. } && test -s conftest$ac_exeext && {
  1899. test "$cross_compiling" = yes ||
  1900. test -x conftest$ac_exeext
  1901. }; then :
  1902. ac_retval=0
  1903. else
  1904. $as_echo "$as_me: failed program was:" >&5
  1905. sed 's/^/| /' conftest.$ac_ext >&5
  1906. ac_retval=1
  1907. fi
  1908. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1909. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1910. # interfere with the next link command; also delete a directory that is
  1911. # left behind by Apple's compiler. We do this before executing the actions.
  1912. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1913. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1914. as_fn_set_status $ac_retval
  1915. } # ac_fn_cxx_try_link
  1916. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1917. # -------------------------------------------------------
  1918. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1919. # the include files in INCLUDES and setting the cache variable VAR
  1920. # accordingly.
  1921. ac_fn_c_check_header_mongrel ()
  1922. {
  1923. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1924. if eval \${$3+:} false; then :
  1925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1926. $as_echo_n "checking for $2... " >&6; }
  1927. if eval \${$3+:} false; then :
  1928. $as_echo_n "(cached) " >&6
  1929. fi
  1930. eval ac_res=\$$3
  1931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1932. $as_echo "$ac_res" >&6; }
  1933. else
  1934. # Is the header compilable?
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1936. $as_echo_n "checking $2 usability... " >&6; }
  1937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1938. /* end confdefs.h. */
  1939. $4
  1940. #include <$2>
  1941. _ACEOF
  1942. if ac_fn_c_try_compile "$LINENO"; then :
  1943. ac_header_compiler=yes
  1944. else
  1945. ac_header_compiler=no
  1946. fi
  1947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1949. $as_echo "$ac_header_compiler" >&6; }
  1950. # Is the header present?
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1952. $as_echo_n "checking $2 presence... " >&6; }
  1953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1954. /* end confdefs.h. */
  1955. #include <$2>
  1956. _ACEOF
  1957. if ac_fn_c_try_cpp "$LINENO"; then :
  1958. ac_header_preproc=yes
  1959. else
  1960. ac_header_preproc=no
  1961. fi
  1962. rm -f conftest.err conftest.i conftest.$ac_ext
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1964. $as_echo "$ac_header_preproc" >&6; }
  1965. # So? What about this header?
  1966. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1967. yes:no: )
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1969. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1971. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1972. ;;
  1973. no:yes:* )
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1975. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1976. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1977. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1978. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1979. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1980. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1981. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1982. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1983. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1984. ;;
  1985. esac
  1986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1987. $as_echo_n "checking for $2... " >&6; }
  1988. if eval \${$3+:} false; then :
  1989. $as_echo_n "(cached) " >&6
  1990. else
  1991. eval "$3=\$ac_header_compiler"
  1992. fi
  1993. eval ac_res=\$$3
  1994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1995. $as_echo "$ac_res" >&6; }
  1996. fi
  1997. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1998. } # ac_fn_c_check_header_mongrel
  1999. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2000. # -------------------------------------------
  2001. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2002. # variable VAR accordingly.
  2003. ac_fn_c_check_type ()
  2004. {
  2005. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2007. $as_echo_n "checking for $2... " >&6; }
  2008. if eval \${$3+:} false; then :
  2009. $as_echo_n "(cached) " >&6
  2010. else
  2011. eval "$3=no"
  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. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2026. /* end confdefs.h. */
  2027. $4
  2028. int
  2029. main ()
  2030. {
  2031. if (sizeof (($2)))
  2032. return 0;
  2033. ;
  2034. return 0;
  2035. }
  2036. _ACEOF
  2037. if ac_fn_c_try_compile "$LINENO"; then :
  2038. else
  2039. eval "$3=yes"
  2040. fi
  2041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2042. fi
  2043. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2044. fi
  2045. eval ac_res=\$$3
  2046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2047. $as_echo "$ac_res" >&6; }
  2048. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2049. } # ac_fn_c_check_type
  2050. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2051. # ----------------------------------------------------
  2052. # Tries to find if the field MEMBER exists in type AGGR, after including
  2053. # INCLUDES, setting cache variable VAR accordingly.
  2054. ac_fn_c_check_member ()
  2055. {
  2056. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2058. $as_echo_n "checking for $2.$3... " >&6; }
  2059. if eval \${$4+:} false; then :
  2060. $as_echo_n "(cached) " >&6
  2061. else
  2062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2063. /* end confdefs.h. */
  2064. $5
  2065. int
  2066. main ()
  2067. {
  2068. static $2 ac_aggr;
  2069. if (ac_aggr.$3)
  2070. return 0;
  2071. ;
  2072. return 0;
  2073. }
  2074. _ACEOF
  2075. if ac_fn_c_try_compile "$LINENO"; then :
  2076. eval "$4=yes"
  2077. else
  2078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2079. /* end confdefs.h. */
  2080. $5
  2081. int
  2082. main ()
  2083. {
  2084. static $2 ac_aggr;
  2085. if (sizeof ac_aggr.$3)
  2086. return 0;
  2087. ;
  2088. return 0;
  2089. }
  2090. _ACEOF
  2091. if ac_fn_c_try_compile "$LINENO"; then :
  2092. eval "$4=yes"
  2093. else
  2094. eval "$4=no"
  2095. fi
  2096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2097. fi
  2098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2099. fi
  2100. eval ac_res=\$$4
  2101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2102. $as_echo "$ac_res" >&6; }
  2103. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2104. } # ac_fn_c_check_member
  2105. cat >config.log <<_ACEOF
  2106. This file contains any messages produced by compilers while
  2107. running configure, to aid debugging if configure makes a mistake.
  2108. It was created by $as_me, which was
  2109. generated by GNU Autoconf 2.69. Invocation command line was
  2110. $ $0 $@
  2111. _ACEOF
  2112. exec 5>>config.log
  2113. {
  2114. cat <<_ASUNAME
  2115. ## --------- ##
  2116. ## Platform. ##
  2117. ## --------- ##
  2118. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2119. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2120. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2121. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2122. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2123. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2124. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2125. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2126. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2127. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2128. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2129. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2130. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2131. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2132. _ASUNAME
  2133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2134. for as_dir in $PATH
  2135. do
  2136. IFS=$as_save_IFS
  2137. test -z "$as_dir" && as_dir=.
  2138. $as_echo "PATH: $as_dir"
  2139. done
  2140. IFS=$as_save_IFS
  2141. } >&5
  2142. cat >&5 <<_ACEOF
  2143. ## ----------- ##
  2144. ## Core tests. ##
  2145. ## ----------- ##
  2146. _ACEOF
  2147. # Keep a trace of the command line.
  2148. # Strip out --no-create and --no-recursion so they do not pile up.
  2149. # Strip out --silent because we don't want to record it for future runs.
  2150. # Also quote any args containing shell meta-characters.
  2151. # Make two passes to allow for proper duplicate-argument suppression.
  2152. ac_configure_args=
  2153. ac_configure_args0=
  2154. ac_configure_args1=
  2155. ac_must_keep_next=false
  2156. for ac_pass in 1 2
  2157. do
  2158. for ac_arg
  2159. do
  2160. case $ac_arg in
  2161. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2162. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2163. | -silent | --silent | --silen | --sile | --sil)
  2164. continue ;;
  2165. *\'*)
  2166. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2167. esac
  2168. case $ac_pass in
  2169. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2170. 2)
  2171. as_fn_append ac_configure_args1 " '$ac_arg'"
  2172. if test $ac_must_keep_next = true; then
  2173. ac_must_keep_next=false # Got value, back to normal.
  2174. else
  2175. case $ac_arg in
  2176. *=* | --config-cache | -C | -disable-* | --disable-* \
  2177. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2178. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2179. | -with-* | --with-* | -without-* | --without-* | --x)
  2180. case "$ac_configure_args0 " in
  2181. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2182. esac
  2183. ;;
  2184. -* ) ac_must_keep_next=true ;;
  2185. esac
  2186. fi
  2187. as_fn_append ac_configure_args " '$ac_arg'"
  2188. ;;
  2189. esac
  2190. done
  2191. done
  2192. { ac_configure_args0=; unset ac_configure_args0;}
  2193. { ac_configure_args1=; unset ac_configure_args1;}
  2194. # When interrupted or exit'd, cleanup temporary files, and complete
  2195. # config.log. We remove comments because anyway the quotes in there
  2196. # would cause problems or look ugly.
  2197. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2198. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2199. trap 'exit_status=$?
  2200. # Save into config.log some information that might help in debugging.
  2201. {
  2202. echo
  2203. $as_echo "## ---------------- ##
  2204. ## Cache variables. ##
  2205. ## ---------------- ##"
  2206. echo
  2207. # The following way of writing the cache mishandles newlines in values,
  2208. (
  2209. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2210. eval ac_val=\$$ac_var
  2211. case $ac_val in #(
  2212. *${as_nl}*)
  2213. case $ac_var in #(
  2214. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2215. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2216. esac
  2217. case $ac_var in #(
  2218. _ | IFS | as_nl) ;; #(
  2219. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2220. *) { eval $ac_var=; unset $ac_var;} ;;
  2221. esac ;;
  2222. esac
  2223. done
  2224. (set) 2>&1 |
  2225. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2226. *${as_nl}ac_space=\ *)
  2227. sed -n \
  2228. "s/'\''/'\''\\\\'\'''\''/g;
  2229. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2230. ;; #(
  2231. *)
  2232. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2233. ;;
  2234. esac |
  2235. sort
  2236. )
  2237. echo
  2238. $as_echo "## ----------------- ##
  2239. ## Output variables. ##
  2240. ## ----------------- ##"
  2241. echo
  2242. for ac_var in $ac_subst_vars
  2243. do
  2244. eval ac_val=\$$ac_var
  2245. case $ac_val in
  2246. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2247. esac
  2248. $as_echo "$ac_var='\''$ac_val'\''"
  2249. done | sort
  2250. echo
  2251. if test -n "$ac_subst_files"; then
  2252. $as_echo "## ------------------- ##
  2253. ## File substitutions. ##
  2254. ## ------------------- ##"
  2255. echo
  2256. for ac_var in $ac_subst_files
  2257. do
  2258. eval ac_val=\$$ac_var
  2259. case $ac_val in
  2260. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2261. esac
  2262. $as_echo "$ac_var='\''$ac_val'\''"
  2263. done | sort
  2264. echo
  2265. fi
  2266. if test -s confdefs.h; then
  2267. $as_echo "## ----------- ##
  2268. ## confdefs.h. ##
  2269. ## ----------- ##"
  2270. echo
  2271. cat confdefs.h
  2272. echo
  2273. fi
  2274. test "$ac_signal" != 0 &&
  2275. $as_echo "$as_me: caught signal $ac_signal"
  2276. $as_echo "$as_me: exit $exit_status"
  2277. } >&5
  2278. rm -f core *.core core.conftest.* &&
  2279. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2280. exit $exit_status
  2281. ' 0
  2282. for ac_signal in 1 2 13 15; do
  2283. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2284. done
  2285. ac_signal=0
  2286. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2287. rm -f -r conftest* confdefs.h
  2288. $as_echo "/* confdefs.h */" > confdefs.h
  2289. # Predefined preprocessor variables.
  2290. cat >>confdefs.h <<_ACEOF
  2291. #define PACKAGE_NAME "$PACKAGE_NAME"
  2292. _ACEOF
  2293. cat >>confdefs.h <<_ACEOF
  2294. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2295. _ACEOF
  2296. cat >>confdefs.h <<_ACEOF
  2297. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2298. _ACEOF
  2299. cat >>confdefs.h <<_ACEOF
  2300. #define PACKAGE_STRING "$PACKAGE_STRING"
  2301. _ACEOF
  2302. cat >>confdefs.h <<_ACEOF
  2303. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2304. _ACEOF
  2305. cat >>confdefs.h <<_ACEOF
  2306. #define PACKAGE_URL "$PACKAGE_URL"
  2307. _ACEOF
  2308. # Let the site file select an alternate cache file if it wants to.
  2309. # Prefer an explicitly selected file to automatically selected ones.
  2310. ac_site_file1=NONE
  2311. ac_site_file2=NONE
  2312. if test -n "$CONFIG_SITE"; then
  2313. # We do not want a PATH search for config.site.
  2314. case $CONFIG_SITE in #((
  2315. -*) ac_site_file1=./$CONFIG_SITE;;
  2316. */*) ac_site_file1=$CONFIG_SITE;;
  2317. *) ac_site_file1=./$CONFIG_SITE;;
  2318. esac
  2319. elif test "x$prefix" != xNONE; then
  2320. ac_site_file1=$prefix/share/config.site
  2321. ac_site_file2=$prefix/etc/config.site
  2322. else
  2323. ac_site_file1=$ac_default_prefix/share/config.site
  2324. ac_site_file2=$ac_default_prefix/etc/config.site
  2325. fi
  2326. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2327. do
  2328. test "x$ac_site_file" = xNONE && continue
  2329. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2330. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2331. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2332. sed 's/^/| /' "$ac_site_file" >&5
  2333. . "$ac_site_file" \
  2334. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2335. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2336. as_fn_error $? "failed to load site script $ac_site_file
  2337. See \`config.log' for more details" "$LINENO" 5; }
  2338. fi
  2339. done
  2340. if test -r "$cache_file"; then
  2341. # Some versions of bash will fail to source /dev/null (special files
  2342. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2343. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2344. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2345. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2346. case $cache_file in
  2347. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2348. *) . "./$cache_file";;
  2349. esac
  2350. fi
  2351. else
  2352. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2353. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2354. >$cache_file
  2355. fi
  2356. # Check that the precious variables saved in the cache have kept the same
  2357. # value.
  2358. ac_cache_corrupted=false
  2359. for ac_var in $ac_precious_vars; do
  2360. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2361. eval ac_new_set=\$ac_env_${ac_var}_set
  2362. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2363. eval ac_new_val=\$ac_env_${ac_var}_value
  2364. case $ac_old_set,$ac_new_set in
  2365. set,)
  2366. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2367. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2368. ac_cache_corrupted=: ;;
  2369. ,set)
  2370. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2371. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2372. ac_cache_corrupted=: ;;
  2373. ,);;
  2374. *)
  2375. if test "x$ac_old_val" != "x$ac_new_val"; then
  2376. # differences in whitespace do not lead to failure.
  2377. ac_old_val_w=`echo x $ac_old_val`
  2378. ac_new_val_w=`echo x $ac_new_val`
  2379. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2381. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2382. ac_cache_corrupted=:
  2383. else
  2384. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2385. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2386. eval $ac_var=\$ac_old_val
  2387. fi
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2389. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2391. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2392. fi;;
  2393. esac
  2394. # Pass precious variables to config.status.
  2395. if test "$ac_new_set" = set; then
  2396. case $ac_new_val in
  2397. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2398. *) ac_arg=$ac_var=$ac_new_val ;;
  2399. esac
  2400. case " $ac_configure_args " in
  2401. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2402. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2403. esac
  2404. fi
  2405. done
  2406. if $ac_cache_corrupted; then
  2407. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2408. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2410. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2411. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2412. fi
  2413. ## -------------------- ##
  2414. ## Main body of script. ##
  2415. ## -------------------- ##
  2416. ac_ext=c
  2417. ac_cpp='$CPP $CPPFLAGS'
  2418. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2419. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2420. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2421. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2422. ac_aux_dir=
  2423. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2424. if test -f "$ac_dir/install-sh"; then
  2425. ac_aux_dir=$ac_dir
  2426. ac_install_sh="$ac_aux_dir/install-sh -c"
  2427. break
  2428. elif test -f "$ac_dir/install.sh"; then
  2429. ac_aux_dir=$ac_dir
  2430. ac_install_sh="$ac_aux_dir/install.sh -c"
  2431. break
  2432. elif test -f "$ac_dir/shtool"; then
  2433. ac_aux_dir=$ac_dir
  2434. ac_install_sh="$ac_aux_dir/shtool install -c"
  2435. break
  2436. fi
  2437. done
  2438. if test -z "$ac_aux_dir"; then
  2439. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2440. fi
  2441. # These three variables are undocumented and unsupported,
  2442. # and are intended to be withdrawn in a future Autoconf release.
  2443. # They can cause serious problems if a builder's source tree is in a directory
  2444. # whose full name contains unusual characters.
  2445. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2446. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2447. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2448. orig_CFLAGS="$CFLAGS"
  2449. #
  2450. # Making releases:
  2451. # Edit include/SDL_version.h and change the version, then:
  2452. # SDL_MICRO_VERSION += 1;
  2453. # SDL_INTERFACE_AGE += 1;
  2454. # SDL_BINARY_AGE += 1;
  2455. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2456. # if backwards compatibility has been broken,
  2457. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2458. #
  2459. SDL_MAJOR_VERSION=2
  2460. SDL_MINOR_VERSION=0
  2461. SDL_MICRO_VERSION=4
  2462. SDL_INTERFACE_AGE=0
  2463. SDL_BINARY_AGE=4
  2464. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2465. # libtool versioning
  2466. case `pwd` in
  2467. *\ * | *\ *)
  2468. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2469. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2470. esac
  2471. macro_version='2.4.2'
  2472. macro_revision='1.3337'
  2473. ltmain="$ac_aux_dir/ltmain.sh"
  2474. # Make sure we can run config.sub.
  2475. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2476. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2478. $as_echo_n "checking build system type... " >&6; }
  2479. if ${ac_cv_build+:} false; then :
  2480. $as_echo_n "(cached) " >&6
  2481. else
  2482. ac_build_alias=$build_alias
  2483. test "x$ac_build_alias" = x &&
  2484. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2485. test "x$ac_build_alias" = x &&
  2486. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2487. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2488. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2489. fi
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2491. $as_echo "$ac_cv_build" >&6; }
  2492. case $ac_cv_build in
  2493. *-*-*) ;;
  2494. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2495. esac
  2496. build=$ac_cv_build
  2497. ac_save_IFS=$IFS; IFS='-'
  2498. set x $ac_cv_build
  2499. shift
  2500. build_cpu=$1
  2501. build_vendor=$2
  2502. shift; shift
  2503. # Remember, the first character of IFS is used to create $*,
  2504. # except with old shells:
  2505. build_os=$*
  2506. IFS=$ac_save_IFS
  2507. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2509. $as_echo_n "checking host system type... " >&6; }
  2510. if ${ac_cv_host+:} false; then :
  2511. $as_echo_n "(cached) " >&6
  2512. else
  2513. if test "x$host_alias" = x; then
  2514. ac_cv_host=$ac_cv_build
  2515. else
  2516. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2517. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2518. fi
  2519. fi
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2521. $as_echo "$ac_cv_host" >&6; }
  2522. case $ac_cv_host in
  2523. *-*-*) ;;
  2524. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2525. esac
  2526. host=$ac_cv_host
  2527. ac_save_IFS=$IFS; IFS='-'
  2528. set x $ac_cv_host
  2529. shift
  2530. host_cpu=$1
  2531. host_vendor=$2
  2532. shift; shift
  2533. # Remember, the first character of IFS is used to create $*,
  2534. # except with old shells:
  2535. host_os=$*
  2536. IFS=$ac_save_IFS
  2537. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2538. # Backslashify metacharacters that are still active within
  2539. # double-quoted strings.
  2540. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2541. # Same as above, but do not quote variable references.
  2542. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2543. # Sed substitution to delay expansion of an escaped shell variable in a
  2544. # double_quote_subst'ed string.
  2545. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2546. # Sed substitution to delay expansion of an escaped single quote.
  2547. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2548. # Sed substitution to avoid accidental globbing in evaled expressions
  2549. no_glob_subst='s/\*/\\\*/g'
  2550. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2551. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2552. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2554. $as_echo_n "checking how to print strings... " >&6; }
  2555. # Test print first, because it will be a builtin if present.
  2556. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2557. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2558. ECHO='print -r --'
  2559. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2560. ECHO='printf %s\n'
  2561. else
  2562. # Use this function as a fallback that always works.
  2563. func_fallback_echo ()
  2564. {
  2565. eval 'cat <<_LTECHO_EOF
  2566. $1
  2567. _LTECHO_EOF'
  2568. }
  2569. ECHO='func_fallback_echo'
  2570. fi
  2571. # func_echo_all arg...
  2572. # Invoke $ECHO with all args, space-separated.
  2573. func_echo_all ()
  2574. {
  2575. $ECHO ""
  2576. }
  2577. case "$ECHO" in
  2578. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2579. $as_echo "printf" >&6; } ;;
  2580. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2581. $as_echo "print -r" >&6; } ;;
  2582. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2583. $as_echo "cat" >&6; } ;;
  2584. esac
  2585. ac_ext=c
  2586. ac_cpp='$CPP $CPPFLAGS'
  2587. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2588. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2589. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2590. if test -n "$ac_tool_prefix"; then
  2591. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2592. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2594. $as_echo_n "checking for $ac_word... " >&6; }
  2595. if ${ac_cv_prog_CC+:} false; then :
  2596. $as_echo_n "(cached) " >&6
  2597. else
  2598. if test -n "$CC"; then
  2599. ac_cv_prog_CC="$CC" # Let the user override the test.
  2600. else
  2601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2602. for as_dir in $PATH
  2603. do
  2604. IFS=$as_save_IFS
  2605. test -z "$as_dir" && as_dir=.
  2606. for ac_exec_ext in '' $ac_executable_extensions; do
  2607. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2608. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2610. break 2
  2611. fi
  2612. done
  2613. done
  2614. IFS=$as_save_IFS
  2615. fi
  2616. fi
  2617. CC=$ac_cv_prog_CC
  2618. if test -n "$CC"; then
  2619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2620. $as_echo "$CC" >&6; }
  2621. else
  2622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2623. $as_echo "no" >&6; }
  2624. fi
  2625. fi
  2626. if test -z "$ac_cv_prog_CC"; then
  2627. ac_ct_CC=$CC
  2628. # Extract the first word of "gcc", so it can be a program name with args.
  2629. set dummy gcc; ac_word=$2
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2631. $as_echo_n "checking for $ac_word... " >&6; }
  2632. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2633. $as_echo_n "(cached) " >&6
  2634. else
  2635. if test -n "$ac_ct_CC"; then
  2636. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2637. else
  2638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2639. for as_dir in $PATH
  2640. do
  2641. IFS=$as_save_IFS
  2642. test -z "$as_dir" && as_dir=.
  2643. for ac_exec_ext in '' $ac_executable_extensions; do
  2644. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2645. ac_cv_prog_ac_ct_CC="gcc"
  2646. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2647. break 2
  2648. fi
  2649. done
  2650. done
  2651. IFS=$as_save_IFS
  2652. fi
  2653. fi
  2654. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2655. if test -n "$ac_ct_CC"; then
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2657. $as_echo "$ac_ct_CC" >&6; }
  2658. else
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2660. $as_echo "no" >&6; }
  2661. fi
  2662. if test "x$ac_ct_CC" = x; then
  2663. CC=""
  2664. else
  2665. case $cross_compiling:$ac_tool_warned in
  2666. yes:)
  2667. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2668. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2669. ac_tool_warned=yes ;;
  2670. esac
  2671. CC=$ac_ct_CC
  2672. fi
  2673. else
  2674. CC="$ac_cv_prog_CC"
  2675. fi
  2676. if test -z "$CC"; then
  2677. if test -n "$ac_tool_prefix"; then
  2678. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2679. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2681. $as_echo_n "checking for $ac_word... " >&6; }
  2682. if ${ac_cv_prog_CC+:} false; then :
  2683. $as_echo_n "(cached) " >&6
  2684. else
  2685. if test -n "$CC"; then
  2686. ac_cv_prog_CC="$CC" # Let the user override the test.
  2687. else
  2688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2689. for as_dir in $PATH
  2690. do
  2691. IFS=$as_save_IFS
  2692. test -z "$as_dir" && as_dir=.
  2693. for ac_exec_ext in '' $ac_executable_extensions; do
  2694. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2695. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2696. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2697. break 2
  2698. fi
  2699. done
  2700. done
  2701. IFS=$as_save_IFS
  2702. fi
  2703. fi
  2704. CC=$ac_cv_prog_CC
  2705. if test -n "$CC"; then
  2706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2707. $as_echo "$CC" >&6; }
  2708. else
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2710. $as_echo "no" >&6; }
  2711. fi
  2712. fi
  2713. fi
  2714. if test -z "$CC"; then
  2715. # Extract the first word of "cc", so it can be a program name with args.
  2716. set dummy cc; ac_word=$2
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2718. $as_echo_n "checking for $ac_word... " >&6; }
  2719. if ${ac_cv_prog_CC+:} false; then :
  2720. $as_echo_n "(cached) " >&6
  2721. else
  2722. if test -n "$CC"; then
  2723. ac_cv_prog_CC="$CC" # Let the user override the test.
  2724. else
  2725. ac_prog_rejected=no
  2726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2727. for as_dir in $PATH
  2728. do
  2729. IFS=$as_save_IFS
  2730. test -z "$as_dir" && as_dir=.
  2731. for ac_exec_ext in '' $ac_executable_extensions; do
  2732. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2733. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2734. ac_prog_rejected=yes
  2735. continue
  2736. fi
  2737. ac_cv_prog_CC="cc"
  2738. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2739. break 2
  2740. fi
  2741. done
  2742. done
  2743. IFS=$as_save_IFS
  2744. if test $ac_prog_rejected = yes; then
  2745. # We found a bogon in the path, so make sure we never use it.
  2746. set dummy $ac_cv_prog_CC
  2747. shift
  2748. if test $# != 0; then
  2749. # We chose a different compiler from the bogus one.
  2750. # However, it has the same basename, so the bogon will be chosen
  2751. # first if we set CC to just the basename; use the full file name.
  2752. shift
  2753. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2754. fi
  2755. fi
  2756. fi
  2757. fi
  2758. CC=$ac_cv_prog_CC
  2759. if test -n "$CC"; then
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2761. $as_echo "$CC" >&6; }
  2762. else
  2763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2764. $as_echo "no" >&6; }
  2765. fi
  2766. fi
  2767. if test -z "$CC"; then
  2768. if test -n "$ac_tool_prefix"; then
  2769. for ac_prog in cl.exe
  2770. do
  2771. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2772. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2774. $as_echo_n "checking for $ac_word... " >&6; }
  2775. if ${ac_cv_prog_CC+:} false; then :
  2776. $as_echo_n "(cached) " >&6
  2777. else
  2778. if test -n "$CC"; then
  2779. ac_cv_prog_CC="$CC" # Let the user override the test.
  2780. else
  2781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2782. for as_dir in $PATH
  2783. do
  2784. IFS=$as_save_IFS
  2785. test -z "$as_dir" && as_dir=.
  2786. for ac_exec_ext in '' $ac_executable_extensions; do
  2787. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2788. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2790. break 2
  2791. fi
  2792. done
  2793. done
  2794. IFS=$as_save_IFS
  2795. fi
  2796. fi
  2797. CC=$ac_cv_prog_CC
  2798. if test -n "$CC"; then
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2800. $as_echo "$CC" >&6; }
  2801. else
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2803. $as_echo "no" >&6; }
  2804. fi
  2805. test -n "$CC" && break
  2806. done
  2807. fi
  2808. if test -z "$CC"; then
  2809. ac_ct_CC=$CC
  2810. for ac_prog in cl.exe
  2811. do
  2812. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2813. set dummy $ac_prog; ac_word=$2
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2815. $as_echo_n "checking for $ac_word... " >&6; }
  2816. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2817. $as_echo_n "(cached) " >&6
  2818. else
  2819. if test -n "$ac_ct_CC"; then
  2820. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2821. else
  2822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2823. for as_dir in $PATH
  2824. do
  2825. IFS=$as_save_IFS
  2826. test -z "$as_dir" && as_dir=.
  2827. for ac_exec_ext in '' $ac_executable_extensions; do
  2828. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2829. ac_cv_prog_ac_ct_CC="$ac_prog"
  2830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2831. break 2
  2832. fi
  2833. done
  2834. done
  2835. IFS=$as_save_IFS
  2836. fi
  2837. fi
  2838. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2839. if test -n "$ac_ct_CC"; then
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2841. $as_echo "$ac_ct_CC" >&6; }
  2842. else
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2844. $as_echo "no" >&6; }
  2845. fi
  2846. test -n "$ac_ct_CC" && break
  2847. done
  2848. if test "x$ac_ct_CC" = x; then
  2849. CC=""
  2850. else
  2851. case $cross_compiling:$ac_tool_warned in
  2852. yes:)
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2854. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2855. ac_tool_warned=yes ;;
  2856. esac
  2857. CC=$ac_ct_CC
  2858. fi
  2859. fi
  2860. fi
  2861. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2862. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2863. as_fn_error $? "no acceptable C compiler found in \$PATH
  2864. See \`config.log' for more details" "$LINENO" 5; }
  2865. # Provide some information about the compiler.
  2866. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2867. set X $ac_compile
  2868. ac_compiler=$2
  2869. for ac_option in --version -v -V -qversion; do
  2870. { { ac_try="$ac_compiler $ac_option >&5"
  2871. case "(($ac_try" in
  2872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2873. *) ac_try_echo=$ac_try;;
  2874. esac
  2875. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2876. $as_echo "$ac_try_echo"; } >&5
  2877. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2878. ac_status=$?
  2879. if test -s conftest.err; then
  2880. sed '10a\
  2881. ... rest of stderr output deleted ...
  2882. 10q' conftest.err >conftest.er1
  2883. cat conftest.er1 >&5
  2884. fi
  2885. rm -f conftest.er1 conftest.err
  2886. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2887. test $ac_status = 0; }
  2888. done
  2889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2890. /* end confdefs.h. */
  2891. int
  2892. main ()
  2893. {
  2894. ;
  2895. return 0;
  2896. }
  2897. _ACEOF
  2898. ac_clean_files_save=$ac_clean_files
  2899. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2900. # Try to create an executable without -o first, disregard a.out.
  2901. # It will help us diagnose broken compilers, and finding out an intuition
  2902. # of exeext.
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2904. $as_echo_n "checking whether the C compiler works... " >&6; }
  2905. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2906. # The possible output files:
  2907. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2908. ac_rmfiles=
  2909. for ac_file in $ac_files
  2910. do
  2911. case $ac_file in
  2912. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2913. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2914. esac
  2915. done
  2916. rm -f $ac_rmfiles
  2917. if { { ac_try="$ac_link_default"
  2918. case "(($ac_try" in
  2919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2920. *) ac_try_echo=$ac_try;;
  2921. esac
  2922. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2923. $as_echo "$ac_try_echo"; } >&5
  2924. (eval "$ac_link_default") 2>&5
  2925. ac_status=$?
  2926. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2927. test $ac_status = 0; }; then :
  2928. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2929. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2930. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2931. # so that the user can short-circuit this test for compilers unknown to
  2932. # Autoconf.
  2933. for ac_file in $ac_files ''
  2934. do
  2935. test -f "$ac_file" || continue
  2936. case $ac_file in
  2937. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2938. ;;
  2939. [ab].out )
  2940. # We found the default executable, but exeext='' is most
  2941. # certainly right.
  2942. break;;
  2943. *.* )
  2944. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2945. then :; else
  2946. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2947. fi
  2948. # We set ac_cv_exeext here because the later test for it is not
  2949. # safe: cross compilers may not add the suffix if given an `-o'
  2950. # argument, so we may need to know it at that point already.
  2951. # Even if this section looks crufty: it has the advantage of
  2952. # actually working.
  2953. break;;
  2954. * )
  2955. break;;
  2956. esac
  2957. done
  2958. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2959. else
  2960. ac_file=''
  2961. fi
  2962. if test -z "$ac_file"; then :
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2964. $as_echo "no" >&6; }
  2965. $as_echo "$as_me: failed program was:" >&5
  2966. sed 's/^/| /' conftest.$ac_ext >&5
  2967. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2968. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2969. as_fn_error 77 "C compiler cannot create executables
  2970. See \`config.log' for more details" "$LINENO" 5; }
  2971. else
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2973. $as_echo "yes" >&6; }
  2974. fi
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2976. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2978. $as_echo "$ac_file" >&6; }
  2979. ac_exeext=$ac_cv_exeext
  2980. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2981. ac_clean_files=$ac_clean_files_save
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2983. $as_echo_n "checking for suffix of executables... " >&6; }
  2984. if { { ac_try="$ac_link"
  2985. case "(($ac_try" in
  2986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2987. *) ac_try_echo=$ac_try;;
  2988. esac
  2989. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2990. $as_echo "$ac_try_echo"; } >&5
  2991. (eval "$ac_link") 2>&5
  2992. ac_status=$?
  2993. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2994. test $ac_status = 0; }; then :
  2995. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2996. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2997. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2998. # `rm'.
  2999. for ac_file in conftest.exe conftest conftest.*; do
  3000. test -f "$ac_file" || continue
  3001. case $ac_file in
  3002. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3003. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3004. break;;
  3005. * ) break;;
  3006. esac
  3007. done
  3008. else
  3009. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3010. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3011. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3012. See \`config.log' for more details" "$LINENO" 5; }
  3013. fi
  3014. rm -f conftest conftest$ac_cv_exeext
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3016. $as_echo "$ac_cv_exeext" >&6; }
  3017. rm -f conftest.$ac_ext
  3018. EXEEXT=$ac_cv_exeext
  3019. ac_exeext=$EXEEXT
  3020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3021. /* end confdefs.h. */
  3022. #include <stdio.h>
  3023. int
  3024. main ()
  3025. {
  3026. FILE *f = fopen ("conftest.out", "w");
  3027. return ferror (f) || fclose (f) != 0;
  3028. ;
  3029. return 0;
  3030. }
  3031. _ACEOF
  3032. ac_clean_files="$ac_clean_files conftest.out"
  3033. # Check that the compiler produces executables we can run. If not, either
  3034. # the compiler is broken, or we cross compile.
  3035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3036. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3037. if test "$cross_compiling" != yes; then
  3038. { { ac_try="$ac_link"
  3039. case "(($ac_try" in
  3040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3041. *) ac_try_echo=$ac_try;;
  3042. esac
  3043. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3044. $as_echo "$ac_try_echo"; } >&5
  3045. (eval "$ac_link") 2>&5
  3046. ac_status=$?
  3047. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3048. test $ac_status = 0; }
  3049. if { ac_try='./conftest$ac_cv_exeext'
  3050. { { case "(($ac_try" in
  3051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3052. *) ac_try_echo=$ac_try;;
  3053. esac
  3054. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3055. $as_echo "$ac_try_echo"; } >&5
  3056. (eval "$ac_try") 2>&5
  3057. ac_status=$?
  3058. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3059. test $ac_status = 0; }; }; then
  3060. cross_compiling=no
  3061. else
  3062. if test "$cross_compiling" = maybe; then
  3063. cross_compiling=yes
  3064. else
  3065. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3066. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3067. as_fn_error $? "cannot run C compiled programs.
  3068. If you meant to cross compile, use \`--host'.
  3069. See \`config.log' for more details" "$LINENO" 5; }
  3070. fi
  3071. fi
  3072. fi
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3074. $as_echo "$cross_compiling" >&6; }
  3075. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3076. ac_clean_files=$ac_clean_files_save
  3077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3078. $as_echo_n "checking for suffix of object files... " >&6; }
  3079. if ${ac_cv_objext+:} false; then :
  3080. $as_echo_n "(cached) " >&6
  3081. else
  3082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3083. /* end confdefs.h. */
  3084. int
  3085. main ()
  3086. {
  3087. ;
  3088. return 0;
  3089. }
  3090. _ACEOF
  3091. rm -f conftest.o conftest.obj
  3092. if { { ac_try="$ac_compile"
  3093. case "(($ac_try" in
  3094. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3095. *) ac_try_echo=$ac_try;;
  3096. esac
  3097. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3098. $as_echo "$ac_try_echo"; } >&5
  3099. (eval "$ac_compile") 2>&5
  3100. ac_status=$?
  3101. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3102. test $ac_status = 0; }; then :
  3103. for ac_file in conftest.o conftest.obj conftest.*; do
  3104. test -f "$ac_file" || continue;
  3105. case $ac_file in
  3106. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3107. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3108. break;;
  3109. esac
  3110. done
  3111. else
  3112. $as_echo "$as_me: failed program was:" >&5
  3113. sed 's/^/| /' conftest.$ac_ext >&5
  3114. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3115. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3116. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3117. See \`config.log' for more details" "$LINENO" 5; }
  3118. fi
  3119. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3120. fi
  3121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3122. $as_echo "$ac_cv_objext" >&6; }
  3123. OBJEXT=$ac_cv_objext
  3124. ac_objext=$OBJEXT
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3126. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3127. if ${ac_cv_c_compiler_gnu+:} false; then :
  3128. $as_echo_n "(cached) " >&6
  3129. else
  3130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3131. /* end confdefs.h. */
  3132. int
  3133. main ()
  3134. {
  3135. #ifndef __GNUC__
  3136. choke me
  3137. #endif
  3138. ;
  3139. return 0;
  3140. }
  3141. _ACEOF
  3142. if ac_fn_c_try_compile "$LINENO"; then :
  3143. ac_compiler_gnu=yes
  3144. else
  3145. ac_compiler_gnu=no
  3146. fi
  3147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3148. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3149. fi
  3150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3151. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3152. if test $ac_compiler_gnu = yes; then
  3153. GCC=yes
  3154. else
  3155. GCC=
  3156. fi
  3157. ac_test_CFLAGS=${CFLAGS+set}
  3158. ac_save_CFLAGS=$CFLAGS
  3159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3160. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3161. if ${ac_cv_prog_cc_g+:} false; then :
  3162. $as_echo_n "(cached) " >&6
  3163. else
  3164. ac_save_c_werror_flag=$ac_c_werror_flag
  3165. ac_c_werror_flag=yes
  3166. ac_cv_prog_cc_g=no
  3167. CFLAGS="-g"
  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. ac_cv_prog_cc_g=yes
  3179. else
  3180. CFLAGS=""
  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. else
  3192. ac_c_werror_flag=$ac_save_c_werror_flag
  3193. CFLAGS="-g"
  3194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3195. /* end confdefs.h. */
  3196. int
  3197. main ()
  3198. {
  3199. ;
  3200. return 0;
  3201. }
  3202. _ACEOF
  3203. if ac_fn_c_try_compile "$LINENO"; then :
  3204. ac_cv_prog_cc_g=yes
  3205. fi
  3206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3207. fi
  3208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3209. fi
  3210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3211. ac_c_werror_flag=$ac_save_c_werror_flag
  3212. fi
  3213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3214. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3215. if test "$ac_test_CFLAGS" = set; then
  3216. CFLAGS=$ac_save_CFLAGS
  3217. elif test $ac_cv_prog_cc_g = yes; then
  3218. if test "$GCC" = yes; then
  3219. CFLAGS="-g -O2"
  3220. else
  3221. CFLAGS="-g"
  3222. fi
  3223. else
  3224. if test "$GCC" = yes; then
  3225. CFLAGS="-O2"
  3226. else
  3227. CFLAGS=
  3228. fi
  3229. fi
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3231. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3232. if ${ac_cv_prog_cc_c89+:} false; then :
  3233. $as_echo_n "(cached) " >&6
  3234. else
  3235. ac_cv_prog_cc_c89=no
  3236. ac_save_CC=$CC
  3237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3238. /* end confdefs.h. */
  3239. #include <stdarg.h>
  3240. #include <stdio.h>
  3241. struct stat;
  3242. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3243. struct buf { int x; };
  3244. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3245. static char *e (p, i)
  3246. char **p;
  3247. int i;
  3248. {
  3249. return p[i];
  3250. }
  3251. static char *f (char * (*g) (char **, int), char **p, ...)
  3252. {
  3253. char *s;
  3254. va_list v;
  3255. va_start (v,p);
  3256. s = g (p, va_arg (v,int));
  3257. va_end (v);
  3258. return s;
  3259. }
  3260. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3261. function prototypes and stuff, but not '\xHH' hex character constants.
  3262. These don't provoke an error unfortunately, instead are silently treated
  3263. as 'x'. The following induces an error, until -std is added to get
  3264. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3265. array size at least. It's necessary to write '\x00'==0 to get something
  3266. that's true only with -std. */
  3267. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3268. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3269. inside strings and character constants. */
  3270. #define FOO(x) 'x'
  3271. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3272. int test (int i, double x);
  3273. struct s1 {int (*f) (int a);};
  3274. struct s2 {int (*f) (double a);};
  3275. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3276. int argc;
  3277. char **argv;
  3278. int
  3279. main ()
  3280. {
  3281. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3282. ;
  3283. return 0;
  3284. }
  3285. _ACEOF
  3286. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3287. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3288. do
  3289. CC="$ac_save_CC $ac_arg"
  3290. if ac_fn_c_try_compile "$LINENO"; then :
  3291. ac_cv_prog_cc_c89=$ac_arg
  3292. fi
  3293. rm -f core conftest.err conftest.$ac_objext
  3294. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3295. done
  3296. rm -f conftest.$ac_ext
  3297. CC=$ac_save_CC
  3298. fi
  3299. # AC_CACHE_VAL
  3300. case "x$ac_cv_prog_cc_c89" in
  3301. x)
  3302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3303. $as_echo "none needed" >&6; } ;;
  3304. xno)
  3305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3306. $as_echo "unsupported" >&6; } ;;
  3307. *)
  3308. CC="$CC $ac_cv_prog_cc_c89"
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3310. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3311. esac
  3312. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3313. fi
  3314. ac_ext=c
  3315. ac_cpp='$CPP $CPPFLAGS'
  3316. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3317. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3318. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3320. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3321. if ${ac_cv_path_SED+:} false; then :
  3322. $as_echo_n "(cached) " >&6
  3323. else
  3324. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3325. for ac_i in 1 2 3 4 5 6 7; do
  3326. ac_script="$ac_script$as_nl$ac_script"
  3327. done
  3328. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3329. { ac_script=; unset ac_script;}
  3330. if test -z "$SED"; then
  3331. ac_path_SED_found=false
  3332. # Loop through the user's path and test for each of PROGNAME-LIST
  3333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3334. for as_dir in $PATH
  3335. do
  3336. IFS=$as_save_IFS
  3337. test -z "$as_dir" && as_dir=.
  3338. for ac_prog in sed gsed; do
  3339. for ac_exec_ext in '' $ac_executable_extensions; do
  3340. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3341. as_fn_executable_p "$ac_path_SED" || continue
  3342. # Check for GNU ac_path_SED and select it if it is found.
  3343. # Check for GNU $ac_path_SED
  3344. case `"$ac_path_SED" --version 2>&1` in
  3345. *GNU*)
  3346. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3347. *)
  3348. ac_count=0
  3349. $as_echo_n 0123456789 >"conftest.in"
  3350. while :
  3351. do
  3352. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3353. mv "conftest.tmp" "conftest.in"
  3354. cp "conftest.in" "conftest.nl"
  3355. $as_echo '' >> "conftest.nl"
  3356. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3357. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3358. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3359. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3360. # Best one so far, save it but keep looking for a better one
  3361. ac_cv_path_SED="$ac_path_SED"
  3362. ac_path_SED_max=$ac_count
  3363. fi
  3364. # 10*(2^10) chars as input seems more than enough
  3365. test $ac_count -gt 10 && break
  3366. done
  3367. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3368. esac
  3369. $ac_path_SED_found && break 3
  3370. done
  3371. done
  3372. done
  3373. IFS=$as_save_IFS
  3374. if test -z "$ac_cv_path_SED"; then
  3375. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3376. fi
  3377. else
  3378. ac_cv_path_SED=$SED
  3379. fi
  3380. fi
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3382. $as_echo "$ac_cv_path_SED" >&6; }
  3383. SED="$ac_cv_path_SED"
  3384. rm -f conftest.sed
  3385. test -z "$SED" && SED=sed
  3386. Xsed="$SED -e 1s/^X//"
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3388. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3389. if ${ac_cv_path_GREP+:} false; then :
  3390. $as_echo_n "(cached) " >&6
  3391. else
  3392. if test -z "$GREP"; then
  3393. ac_path_GREP_found=false
  3394. # Loop through the user's path and test for each of PROGNAME-LIST
  3395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3396. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3397. do
  3398. IFS=$as_save_IFS
  3399. test -z "$as_dir" && as_dir=.
  3400. for ac_prog in grep ggrep; do
  3401. for ac_exec_ext in '' $ac_executable_extensions; do
  3402. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3403. as_fn_executable_p "$ac_path_GREP" || continue
  3404. # Check for GNU ac_path_GREP and select it if it is found.
  3405. # Check for GNU $ac_path_GREP
  3406. case `"$ac_path_GREP" --version 2>&1` in
  3407. *GNU*)
  3408. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3409. *)
  3410. ac_count=0
  3411. $as_echo_n 0123456789 >"conftest.in"
  3412. while :
  3413. do
  3414. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3415. mv "conftest.tmp" "conftest.in"
  3416. cp "conftest.in" "conftest.nl"
  3417. $as_echo 'GREP' >> "conftest.nl"
  3418. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3419. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3420. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3421. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3422. # Best one so far, save it but keep looking for a better one
  3423. ac_cv_path_GREP="$ac_path_GREP"
  3424. ac_path_GREP_max=$ac_count
  3425. fi
  3426. # 10*(2^10) chars as input seems more than enough
  3427. test $ac_count -gt 10 && break
  3428. done
  3429. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3430. esac
  3431. $ac_path_GREP_found && break 3
  3432. done
  3433. done
  3434. done
  3435. IFS=$as_save_IFS
  3436. if test -z "$ac_cv_path_GREP"; then
  3437. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3438. fi
  3439. else
  3440. ac_cv_path_GREP=$GREP
  3441. fi
  3442. fi
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3444. $as_echo "$ac_cv_path_GREP" >&6; }
  3445. GREP="$ac_cv_path_GREP"
  3446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3447. $as_echo_n "checking for egrep... " >&6; }
  3448. if ${ac_cv_path_EGREP+:} false; then :
  3449. $as_echo_n "(cached) " >&6
  3450. else
  3451. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3452. then ac_cv_path_EGREP="$GREP -E"
  3453. else
  3454. if test -z "$EGREP"; then
  3455. ac_path_EGREP_found=false
  3456. # Loop through the user's path and test for each of PROGNAME-LIST
  3457. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3458. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3459. do
  3460. IFS=$as_save_IFS
  3461. test -z "$as_dir" && as_dir=.
  3462. for ac_prog in egrep; do
  3463. for ac_exec_ext in '' $ac_executable_extensions; do
  3464. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3465. as_fn_executable_p "$ac_path_EGREP" || continue
  3466. # Check for GNU ac_path_EGREP and select it if it is found.
  3467. # Check for GNU $ac_path_EGREP
  3468. case `"$ac_path_EGREP" --version 2>&1` in
  3469. *GNU*)
  3470. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3471. *)
  3472. ac_count=0
  3473. $as_echo_n 0123456789 >"conftest.in"
  3474. while :
  3475. do
  3476. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3477. mv "conftest.tmp" "conftest.in"
  3478. cp "conftest.in" "conftest.nl"
  3479. $as_echo 'EGREP' >> "conftest.nl"
  3480. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3481. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3482. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3483. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3484. # Best one so far, save it but keep looking for a better one
  3485. ac_cv_path_EGREP="$ac_path_EGREP"
  3486. ac_path_EGREP_max=$ac_count
  3487. fi
  3488. # 10*(2^10) chars as input seems more than enough
  3489. test $ac_count -gt 10 && break
  3490. done
  3491. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3492. esac
  3493. $ac_path_EGREP_found && break 3
  3494. done
  3495. done
  3496. done
  3497. IFS=$as_save_IFS
  3498. if test -z "$ac_cv_path_EGREP"; then
  3499. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3500. fi
  3501. else
  3502. ac_cv_path_EGREP=$EGREP
  3503. fi
  3504. fi
  3505. fi
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3507. $as_echo "$ac_cv_path_EGREP" >&6; }
  3508. EGREP="$ac_cv_path_EGREP"
  3509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3510. $as_echo_n "checking for fgrep... " >&6; }
  3511. if ${ac_cv_path_FGREP+:} false; then :
  3512. $as_echo_n "(cached) " >&6
  3513. else
  3514. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3515. then ac_cv_path_FGREP="$GREP -F"
  3516. else
  3517. if test -z "$FGREP"; then
  3518. ac_path_FGREP_found=false
  3519. # Loop through the user's path and test for each of PROGNAME-LIST
  3520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3521. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3522. do
  3523. IFS=$as_save_IFS
  3524. test -z "$as_dir" && as_dir=.
  3525. for ac_prog in fgrep; do
  3526. for ac_exec_ext in '' $ac_executable_extensions; do
  3527. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3528. as_fn_executable_p "$ac_path_FGREP" || continue
  3529. # Check for GNU ac_path_FGREP and select it if it is found.
  3530. # Check for GNU $ac_path_FGREP
  3531. case `"$ac_path_FGREP" --version 2>&1` in
  3532. *GNU*)
  3533. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3534. *)
  3535. ac_count=0
  3536. $as_echo_n 0123456789 >"conftest.in"
  3537. while :
  3538. do
  3539. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3540. mv "conftest.tmp" "conftest.in"
  3541. cp "conftest.in" "conftest.nl"
  3542. $as_echo 'FGREP' >> "conftest.nl"
  3543. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3544. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3545. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3546. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3547. # Best one so far, save it but keep looking for a better one
  3548. ac_cv_path_FGREP="$ac_path_FGREP"
  3549. ac_path_FGREP_max=$ac_count
  3550. fi
  3551. # 10*(2^10) chars as input seems more than enough
  3552. test $ac_count -gt 10 && break
  3553. done
  3554. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3555. esac
  3556. $ac_path_FGREP_found && break 3
  3557. done
  3558. done
  3559. done
  3560. IFS=$as_save_IFS
  3561. if test -z "$ac_cv_path_FGREP"; then
  3562. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3563. fi
  3564. else
  3565. ac_cv_path_FGREP=$FGREP
  3566. fi
  3567. fi
  3568. fi
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3570. $as_echo "$ac_cv_path_FGREP" >&6; }
  3571. FGREP="$ac_cv_path_FGREP"
  3572. test -z "$GREP" && GREP=grep
  3573. # Check whether --with-gnu-ld was given.
  3574. if test "${with_gnu_ld+set}" = set; then :
  3575. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3576. else
  3577. with_gnu_ld=no
  3578. fi
  3579. ac_prog=ld
  3580. if test "$GCC" = yes; then
  3581. # Check if gcc -print-prog-name=ld gives a path.
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3583. $as_echo_n "checking for ld used by $CC... " >&6; }
  3584. case $host in
  3585. *-*-mingw*)
  3586. # gcc leaves a trailing carriage return which upsets mingw
  3587. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3588. *)
  3589. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3590. esac
  3591. case $ac_prog in
  3592. # Accept absolute paths.
  3593. [\\/]* | ?:[\\/]*)
  3594. re_direlt='/[^/][^/]*/\.\./'
  3595. # Canonicalize the pathname of ld
  3596. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3597. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3598. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3599. done
  3600. test -z "$LD" && LD="$ac_prog"
  3601. ;;
  3602. "")
  3603. # If it fails, then pretend we aren't using GCC.
  3604. ac_prog=ld
  3605. ;;
  3606. *)
  3607. # If it is relative, then search for the first ld in PATH.
  3608. with_gnu_ld=unknown
  3609. ;;
  3610. esac
  3611. elif test "$with_gnu_ld" = yes; then
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3613. $as_echo_n "checking for GNU ld... " >&6; }
  3614. else
  3615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3616. $as_echo_n "checking for non-GNU ld... " >&6; }
  3617. fi
  3618. if ${lt_cv_path_LD+:} false; then :
  3619. $as_echo_n "(cached) " >&6
  3620. else
  3621. if test -z "$LD"; then
  3622. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3623. for ac_dir in $PATH; do
  3624. IFS="$lt_save_ifs"
  3625. test -z "$ac_dir" && ac_dir=.
  3626. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3627. lt_cv_path_LD="$ac_dir/$ac_prog"
  3628. # Check to see if the program is GNU ld. I'd rather use --version,
  3629. # but apparently some variants of GNU ld only accept -v.
  3630. # Break only if it was the GNU/non-GNU ld that we prefer.
  3631. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3632. *GNU* | *'with BFD'*)
  3633. test "$with_gnu_ld" != no && break
  3634. ;;
  3635. *)
  3636. test "$with_gnu_ld" != yes && break
  3637. ;;
  3638. esac
  3639. fi
  3640. done
  3641. IFS="$lt_save_ifs"
  3642. else
  3643. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3644. fi
  3645. fi
  3646. LD="$lt_cv_path_LD"
  3647. if test -n "$LD"; then
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3649. $as_echo "$LD" >&6; }
  3650. else
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3652. $as_echo "no" >&6; }
  3653. fi
  3654. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3656. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3657. if ${lt_cv_prog_gnu_ld+:} false; then :
  3658. $as_echo_n "(cached) " >&6
  3659. else
  3660. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3661. case `$LD -v 2>&1 </dev/null` in
  3662. *GNU* | *'with BFD'*)
  3663. lt_cv_prog_gnu_ld=yes
  3664. ;;
  3665. *)
  3666. lt_cv_prog_gnu_ld=no
  3667. ;;
  3668. esac
  3669. fi
  3670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3671. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3672. with_gnu_ld=$lt_cv_prog_gnu_ld
  3673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3674. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3675. if ${lt_cv_path_NM+:} false; then :
  3676. $as_echo_n "(cached) " >&6
  3677. else
  3678. if test -n "$NM"; then
  3679. # Let the user override the test.
  3680. lt_cv_path_NM="$NM"
  3681. else
  3682. lt_nm_to_check="${ac_tool_prefix}nm"
  3683. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3684. lt_nm_to_check="$lt_nm_to_check nm"
  3685. fi
  3686. for lt_tmp_nm in $lt_nm_to_check; do
  3687. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3688. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3689. IFS="$lt_save_ifs"
  3690. test -z "$ac_dir" && ac_dir=.
  3691. tmp_nm="$ac_dir/$lt_tmp_nm"
  3692. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3693. # Check to see if the nm accepts a BSD-compat flag.
  3694. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3695. # nm: unknown option "B" ignored
  3696. # Tru64's nm complains that /dev/null is an invalid object file
  3697. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3698. */dev/null* | *'Invalid file or object type'*)
  3699. lt_cv_path_NM="$tmp_nm -B"
  3700. break
  3701. ;;
  3702. *)
  3703. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3704. */dev/null*)
  3705. lt_cv_path_NM="$tmp_nm -p"
  3706. break
  3707. ;;
  3708. *)
  3709. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3710. continue # so that we can try to find one that supports BSD flags
  3711. ;;
  3712. esac
  3713. ;;
  3714. esac
  3715. fi
  3716. done
  3717. IFS="$lt_save_ifs"
  3718. done
  3719. : ${lt_cv_path_NM=no}
  3720. fi
  3721. fi
  3722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3723. $as_echo "$lt_cv_path_NM" >&6; }
  3724. if test "$lt_cv_path_NM" != "no"; then
  3725. NM="$lt_cv_path_NM"
  3726. else
  3727. # Didn't find any BSD compatible name lister, look for dumpbin.
  3728. if test -n "$DUMPBIN"; then :
  3729. # Let the user override the test.
  3730. else
  3731. if test -n "$ac_tool_prefix"; then
  3732. for ac_prog in dumpbin "link -dump"
  3733. do
  3734. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3735. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3737. $as_echo_n "checking for $ac_word... " >&6; }
  3738. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3739. $as_echo_n "(cached) " >&6
  3740. else
  3741. if test -n "$DUMPBIN"; then
  3742. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3743. else
  3744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3745. for as_dir in $PATH
  3746. do
  3747. IFS=$as_save_IFS
  3748. test -z "$as_dir" && as_dir=.
  3749. for ac_exec_ext in '' $ac_executable_extensions; do
  3750. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3751. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3752. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3753. break 2
  3754. fi
  3755. done
  3756. done
  3757. IFS=$as_save_IFS
  3758. fi
  3759. fi
  3760. DUMPBIN=$ac_cv_prog_DUMPBIN
  3761. if test -n "$DUMPBIN"; then
  3762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3763. $as_echo "$DUMPBIN" >&6; }
  3764. else
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3766. $as_echo "no" >&6; }
  3767. fi
  3768. test -n "$DUMPBIN" && break
  3769. done
  3770. fi
  3771. if test -z "$DUMPBIN"; then
  3772. ac_ct_DUMPBIN=$DUMPBIN
  3773. for ac_prog in dumpbin "link -dump"
  3774. do
  3775. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3776. set dummy $ac_prog; ac_word=$2
  3777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3778. $as_echo_n "checking for $ac_word... " >&6; }
  3779. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3780. $as_echo_n "(cached) " >&6
  3781. else
  3782. if test -n "$ac_ct_DUMPBIN"; then
  3783. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3784. else
  3785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3786. for as_dir in $PATH
  3787. do
  3788. IFS=$as_save_IFS
  3789. test -z "$as_dir" && as_dir=.
  3790. for ac_exec_ext in '' $ac_executable_extensions; do
  3791. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3792. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3794. break 2
  3795. fi
  3796. done
  3797. done
  3798. IFS=$as_save_IFS
  3799. fi
  3800. fi
  3801. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3802. if test -n "$ac_ct_DUMPBIN"; then
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3804. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3805. else
  3806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3807. $as_echo "no" >&6; }
  3808. fi
  3809. test -n "$ac_ct_DUMPBIN" && break
  3810. done
  3811. if test "x$ac_ct_DUMPBIN" = x; then
  3812. DUMPBIN=":"
  3813. else
  3814. case $cross_compiling:$ac_tool_warned in
  3815. yes:)
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3817. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3818. ac_tool_warned=yes ;;
  3819. esac
  3820. DUMPBIN=$ac_ct_DUMPBIN
  3821. fi
  3822. fi
  3823. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3824. *COFF*)
  3825. DUMPBIN="$DUMPBIN -symbols"
  3826. ;;
  3827. *)
  3828. DUMPBIN=:
  3829. ;;
  3830. esac
  3831. fi
  3832. if test "$DUMPBIN" != ":"; then
  3833. NM="$DUMPBIN"
  3834. fi
  3835. fi
  3836. test -z "$NM" && NM=nm
  3837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3838. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3839. if ${lt_cv_nm_interface+:} false; then :
  3840. $as_echo_n "(cached) " >&6
  3841. else
  3842. lt_cv_nm_interface="BSD nm"
  3843. echo "int some_variable = 0;" > conftest.$ac_ext
  3844. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3845. (eval "$ac_compile" 2>conftest.err)
  3846. cat conftest.err >&5
  3847. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3848. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3849. cat conftest.err >&5
  3850. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3851. cat conftest.out >&5
  3852. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3853. lt_cv_nm_interface="MS dumpbin"
  3854. fi
  3855. rm -f conftest*
  3856. fi
  3857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3858. $as_echo "$lt_cv_nm_interface" >&6; }
  3859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3860. $as_echo_n "checking whether ln -s works... " >&6; }
  3861. LN_S=$as_ln_s
  3862. if test "$LN_S" = "ln -s"; then
  3863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3864. $as_echo "yes" >&6; }
  3865. else
  3866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3867. $as_echo "no, using $LN_S" >&6; }
  3868. fi
  3869. # find the maximum length of command line arguments
  3870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3871. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3872. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3873. $as_echo_n "(cached) " >&6
  3874. else
  3875. i=0
  3876. teststring="ABCD"
  3877. case $build_os in
  3878. msdosdjgpp*)
  3879. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3880. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3881. # during glob expansion). Even if it were fixed, the result of this
  3882. # check would be larger than it should be.
  3883. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3884. ;;
  3885. gnu*)
  3886. # Under GNU Hurd, this test is not required because there is
  3887. # no limit to the length of command line arguments.
  3888. # Libtool will interpret -1 as no limit whatsoever
  3889. lt_cv_sys_max_cmd_len=-1;
  3890. ;;
  3891. cygwin* | mingw* | cegcc*)
  3892. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3893. # about 5 minutes as the teststring grows exponentially.
  3894. # Worse, since 9x/ME are not pre-emptively multitasking,
  3895. # you end up with a "frozen" computer, even though with patience
  3896. # the test eventually succeeds (with a max line length of 256k).
  3897. # Instead, let's just punt: use the minimum linelength reported by
  3898. # all of the supported platforms: 8192 (on NT/2K/XP).
  3899. lt_cv_sys_max_cmd_len=8192;
  3900. ;;
  3901. mint*)
  3902. # On MiNT this can take a long time and run out of memory.
  3903. lt_cv_sys_max_cmd_len=8192;
  3904. ;;
  3905. amigaos*)
  3906. # On AmigaOS with pdksh, this test takes hours, literally.
  3907. # So we just punt and use a minimum line length of 8192.
  3908. lt_cv_sys_max_cmd_len=8192;
  3909. ;;
  3910. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3911. # This has been around since 386BSD, at least. Likely further.
  3912. if test -x /sbin/sysctl; then
  3913. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3914. elif test -x /usr/sbin/sysctl; then
  3915. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3916. else
  3917. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3918. fi
  3919. # And add a safety zone
  3920. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3921. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3922. ;;
  3923. interix*)
  3924. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3925. lt_cv_sys_max_cmd_len=196608
  3926. ;;
  3927. os2*)
  3928. # The test takes a long time on OS/2.
  3929. lt_cv_sys_max_cmd_len=8192
  3930. ;;
  3931. osf*)
  3932. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3933. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3934. # nice to cause kernel panics so lets avoid the loop below.
  3935. # First set a reasonable default.
  3936. lt_cv_sys_max_cmd_len=16384
  3937. #
  3938. if test -x /sbin/sysconfig; then
  3939. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3940. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3941. esac
  3942. fi
  3943. ;;
  3944. sco3.2v5*)
  3945. lt_cv_sys_max_cmd_len=102400
  3946. ;;
  3947. sysv5* | sco5v6* | sysv4.2uw2*)
  3948. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3949. if test -n "$kargmax"; then
  3950. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3951. else
  3952. lt_cv_sys_max_cmd_len=32768
  3953. fi
  3954. ;;
  3955. *)
  3956. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3957. if test -n "$lt_cv_sys_max_cmd_len"; then
  3958. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3959. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3960. else
  3961. # Make teststring a little bigger before we do anything with it.
  3962. # a 1K string should be a reasonable start.
  3963. for i in 1 2 3 4 5 6 7 8 ; do
  3964. teststring=$teststring$teststring
  3965. done
  3966. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3967. # If test is not a shell built-in, we'll probably end up computing a
  3968. # maximum length that is only half of the actual maximum length, but
  3969. # we can't tell.
  3970. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3971. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3972. test $i != 17 # 1/2 MB should be enough
  3973. do
  3974. i=`expr $i + 1`
  3975. teststring=$teststring$teststring
  3976. done
  3977. # Only check the string length outside the loop.
  3978. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3979. teststring=
  3980. # Add a significant safety factor because C++ compilers can tack on
  3981. # massive amounts of additional arguments before passing them to the
  3982. # linker. It appears as though 1/2 is a usable value.
  3983. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3984. fi
  3985. ;;
  3986. esac
  3987. fi
  3988. if test -n $lt_cv_sys_max_cmd_len ; then
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3990. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3991. else
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3993. $as_echo "none" >&6; }
  3994. fi
  3995. max_cmd_len=$lt_cv_sys_max_cmd_len
  3996. : ${CP="cp -f"}
  3997. : ${MV="mv -f"}
  3998. : ${RM="rm -f"}
  3999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4000. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4001. # Try some XSI features
  4002. xsi_shell=no
  4003. ( _lt_dummy="a/b/c"
  4004. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4005. = c,a/b,b/c, \
  4006. && eval 'test $(( 1 + 1 )) -eq 2 \
  4007. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4008. && xsi_shell=yes
  4009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4010. $as_echo "$xsi_shell" >&6; }
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4012. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4013. lt_shell_append=no
  4014. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4015. >/dev/null 2>&1 \
  4016. && lt_shell_append=yes
  4017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4018. $as_echo "$lt_shell_append" >&6; }
  4019. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4020. lt_unset=unset
  4021. else
  4022. lt_unset=false
  4023. fi
  4024. # test EBCDIC or ASCII
  4025. case `echo X|tr X '\101'` in
  4026. A) # ASCII based system
  4027. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4028. lt_SP2NL='tr \040 \012'
  4029. lt_NL2SP='tr \015\012 \040\040'
  4030. ;;
  4031. *) # EBCDIC based system
  4032. lt_SP2NL='tr \100 \n'
  4033. lt_NL2SP='tr \r\n \100\100'
  4034. ;;
  4035. esac
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4037. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4038. if ${lt_cv_to_host_file_cmd+:} false; then :
  4039. $as_echo_n "(cached) " >&6
  4040. else
  4041. case $host in
  4042. *-*-mingw* )
  4043. case $build in
  4044. *-*-mingw* ) # actually msys
  4045. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4046. ;;
  4047. *-*-cygwin* )
  4048. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4049. ;;
  4050. * ) # otherwise, assume *nix
  4051. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4052. ;;
  4053. esac
  4054. ;;
  4055. *-*-cygwin* )
  4056. case $build in
  4057. *-*-mingw* ) # actually msys
  4058. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4059. ;;
  4060. *-*-cygwin* )
  4061. lt_cv_to_host_file_cmd=func_convert_file_noop
  4062. ;;
  4063. * ) # otherwise, assume *nix
  4064. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4065. ;;
  4066. esac
  4067. ;;
  4068. * ) # unhandled hosts (and "normal" native builds)
  4069. lt_cv_to_host_file_cmd=func_convert_file_noop
  4070. ;;
  4071. esac
  4072. fi
  4073. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4075. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4077. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4078. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4079. $as_echo_n "(cached) " >&6
  4080. else
  4081. #assume ordinary cross tools, or native build.
  4082. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4083. case $host in
  4084. *-*-mingw* )
  4085. case $build in
  4086. *-*-mingw* ) # actually msys
  4087. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4088. ;;
  4089. esac
  4090. ;;
  4091. esac
  4092. fi
  4093. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4095. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4097. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4098. if ${lt_cv_ld_reload_flag+:} false; then :
  4099. $as_echo_n "(cached) " >&6
  4100. else
  4101. lt_cv_ld_reload_flag='-r'
  4102. fi
  4103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4104. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4105. reload_flag=$lt_cv_ld_reload_flag
  4106. case $reload_flag in
  4107. "" | " "*) ;;
  4108. *) reload_flag=" $reload_flag" ;;
  4109. esac
  4110. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4111. case $host_os in
  4112. cygwin* | mingw* | pw32* | cegcc*)
  4113. if test "$GCC" != yes; then
  4114. reload_cmds=false
  4115. fi
  4116. ;;
  4117. darwin*)
  4118. if test "$GCC" = yes; then
  4119. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4120. else
  4121. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4122. fi
  4123. ;;
  4124. esac
  4125. if test -n "$ac_tool_prefix"; then
  4126. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4127. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4129. $as_echo_n "checking for $ac_word... " >&6; }
  4130. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4131. $as_echo_n "(cached) " >&6
  4132. else
  4133. if test -n "$OBJDUMP"; then
  4134. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4135. else
  4136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4137. for as_dir in $PATH
  4138. do
  4139. IFS=$as_save_IFS
  4140. test -z "$as_dir" && as_dir=.
  4141. for ac_exec_ext in '' $ac_executable_extensions; do
  4142. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4143. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4144. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4145. break 2
  4146. fi
  4147. done
  4148. done
  4149. IFS=$as_save_IFS
  4150. fi
  4151. fi
  4152. OBJDUMP=$ac_cv_prog_OBJDUMP
  4153. if test -n "$OBJDUMP"; then
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4155. $as_echo "$OBJDUMP" >&6; }
  4156. else
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4158. $as_echo "no" >&6; }
  4159. fi
  4160. fi
  4161. if test -z "$ac_cv_prog_OBJDUMP"; then
  4162. ac_ct_OBJDUMP=$OBJDUMP
  4163. # Extract the first word of "objdump", so it can be a program name with args.
  4164. set dummy objdump; ac_word=$2
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4166. $as_echo_n "checking for $ac_word... " >&6; }
  4167. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4168. $as_echo_n "(cached) " >&6
  4169. else
  4170. if test -n "$ac_ct_OBJDUMP"; then
  4171. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4172. else
  4173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4174. for as_dir in $PATH
  4175. do
  4176. IFS=$as_save_IFS
  4177. test -z "$as_dir" && as_dir=.
  4178. for ac_exec_ext in '' $ac_executable_extensions; do
  4179. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4180. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4181. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4182. break 2
  4183. fi
  4184. done
  4185. done
  4186. IFS=$as_save_IFS
  4187. fi
  4188. fi
  4189. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4190. if test -n "$ac_ct_OBJDUMP"; then
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4192. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4193. else
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4195. $as_echo "no" >&6; }
  4196. fi
  4197. if test "x$ac_ct_OBJDUMP" = x; then
  4198. OBJDUMP="false"
  4199. else
  4200. case $cross_compiling:$ac_tool_warned in
  4201. yes:)
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4203. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4204. ac_tool_warned=yes ;;
  4205. esac
  4206. OBJDUMP=$ac_ct_OBJDUMP
  4207. fi
  4208. else
  4209. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4210. fi
  4211. test -z "$OBJDUMP" && OBJDUMP=objdump
  4212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4213. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4214. if ${lt_cv_deplibs_check_method+:} false; then :
  4215. $as_echo_n "(cached) " >&6
  4216. else
  4217. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4218. lt_cv_file_magic_test_file=
  4219. lt_cv_deplibs_check_method='unknown'
  4220. # Need to set the preceding variable on all platforms that support
  4221. # interlibrary dependencies.
  4222. # 'none' -- dependencies not supported.
  4223. # `unknown' -- same as none, but documents that we really don't know.
  4224. # 'pass_all' -- all dependencies passed with no checks.
  4225. # 'test_compile' -- check by making test program.
  4226. # 'file_magic [[regex]]' -- check by looking for files in library path
  4227. # which responds to the $file_magic_cmd with a given extended regex.
  4228. # If you have `file' or equivalent on your system and you're not sure
  4229. # whether `pass_all' will *always* work, you probably want this one.
  4230. case $host_os in
  4231. aix[4-9]*)
  4232. lt_cv_deplibs_check_method=pass_all
  4233. ;;
  4234. beos*)
  4235. lt_cv_deplibs_check_method=pass_all
  4236. ;;
  4237. bsdi[45]*)
  4238. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4239. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4240. lt_cv_file_magic_test_file=/shlib/libc.so
  4241. ;;
  4242. cygwin*)
  4243. # func_win32_libid is a shell function defined in ltmain.sh
  4244. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4245. lt_cv_file_magic_cmd='func_win32_libid'
  4246. lt_cv_deplibs_check_method=pass_all
  4247. ;;
  4248. mingw* | pw32*)
  4249. # Base MSYS/MinGW do not provide the 'file' command needed by
  4250. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4251. # unless we find 'file', for example because we are cross-compiling.
  4252. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4253. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4254. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4255. lt_cv_file_magic_cmd='func_win32_libid'
  4256. else
  4257. # Keep this pattern in sync with the one in func_win32_libid.
  4258. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4259. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4260. fi
  4261. lt_cv_deplibs_check_method=pass_all
  4262. ;;
  4263. cegcc*)
  4264. # use the weaker test based on 'objdump'. See mingw*.
  4265. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4266. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4267. ;;
  4268. darwin* | rhapsody*)
  4269. lt_cv_deplibs_check_method=pass_all
  4270. ;;
  4271. freebsd* | dragonfly*)
  4272. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4273. case $host_cpu in
  4274. i*86 )
  4275. # Not sure whether the presence of OpenBSD here was a mistake.
  4276. # Let's accept both of them until this is cleared up.
  4277. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4278. lt_cv_file_magic_cmd=/usr/bin/file
  4279. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4280. ;;
  4281. esac
  4282. else
  4283. lt_cv_deplibs_check_method=pass_all
  4284. fi
  4285. ;;
  4286. gnu*)
  4287. lt_cv_deplibs_check_method=pass_all
  4288. ;;
  4289. haiku*)
  4290. lt_cv_deplibs_check_method=pass_all
  4291. ;;
  4292. hpux10.20* | hpux11*)
  4293. lt_cv_file_magic_cmd=/usr/bin/file
  4294. case $host_cpu in
  4295. ia64*)
  4296. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4297. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4298. ;;
  4299. hppa*64*)
  4300. 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]'
  4301. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4302. ;;
  4303. *)
  4304. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4305. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4306. ;;
  4307. esac
  4308. ;;
  4309. interix[3-9]*)
  4310. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4311. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4312. ;;
  4313. irix5* | irix6* | nonstopux*)
  4314. case $LD in
  4315. *-32|*"-32 ") libmagic=32-bit;;
  4316. *-n32|*"-n32 ") libmagic=N32;;
  4317. *-64|*"-64 ") libmagic=64-bit;;
  4318. *) libmagic=never-match;;
  4319. esac
  4320. lt_cv_deplibs_check_method=pass_all
  4321. ;;
  4322. # This must be glibc/ELF.
  4323. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4324. lt_cv_deplibs_check_method=pass_all
  4325. ;;
  4326. netbsd*)
  4327. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4328. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4329. else
  4330. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4331. fi
  4332. ;;
  4333. newos6*)
  4334. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4335. lt_cv_file_magic_cmd=/usr/bin/file
  4336. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4337. ;;
  4338. *nto* | *qnx*)
  4339. lt_cv_deplibs_check_method=pass_all
  4340. ;;
  4341. openbsd*)
  4342. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4343. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4344. else
  4345. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4346. fi
  4347. ;;
  4348. osf3* | osf4* | osf5*)
  4349. lt_cv_deplibs_check_method=pass_all
  4350. ;;
  4351. rdos*)
  4352. lt_cv_deplibs_check_method=pass_all
  4353. ;;
  4354. solaris*)
  4355. lt_cv_deplibs_check_method=pass_all
  4356. ;;
  4357. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4358. lt_cv_deplibs_check_method=pass_all
  4359. ;;
  4360. sysv4 | sysv4.3*)
  4361. case $host_vendor in
  4362. motorola)
  4363. 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]'
  4364. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4365. ;;
  4366. ncr)
  4367. lt_cv_deplibs_check_method=pass_all
  4368. ;;
  4369. sequent)
  4370. lt_cv_file_magic_cmd='/bin/file'
  4371. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4372. ;;
  4373. sni)
  4374. lt_cv_file_magic_cmd='/bin/file'
  4375. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4376. lt_cv_file_magic_test_file=/lib/libc.so
  4377. ;;
  4378. siemens)
  4379. lt_cv_deplibs_check_method=pass_all
  4380. ;;
  4381. pc)
  4382. lt_cv_deplibs_check_method=pass_all
  4383. ;;
  4384. esac
  4385. ;;
  4386. tpf*)
  4387. lt_cv_deplibs_check_method=pass_all
  4388. ;;
  4389. esac
  4390. fi
  4391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4392. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4393. file_magic_glob=
  4394. want_nocaseglob=no
  4395. if test "$build" = "$host"; then
  4396. case $host_os in
  4397. mingw* | pw32*)
  4398. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4399. want_nocaseglob=yes
  4400. else
  4401. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4402. fi
  4403. ;;
  4404. esac
  4405. fi
  4406. file_magic_cmd=$lt_cv_file_magic_cmd
  4407. deplibs_check_method=$lt_cv_deplibs_check_method
  4408. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4409. if test -n "$ac_tool_prefix"; then
  4410. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4411. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4413. $as_echo_n "checking for $ac_word... " >&6; }
  4414. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4415. $as_echo_n "(cached) " >&6
  4416. else
  4417. if test -n "$DLLTOOL"; then
  4418. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4419. else
  4420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4421. for as_dir in $PATH
  4422. do
  4423. IFS=$as_save_IFS
  4424. test -z "$as_dir" && as_dir=.
  4425. for ac_exec_ext in '' $ac_executable_extensions; do
  4426. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4427. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4428. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4429. break 2
  4430. fi
  4431. done
  4432. done
  4433. IFS=$as_save_IFS
  4434. fi
  4435. fi
  4436. DLLTOOL=$ac_cv_prog_DLLTOOL
  4437. if test -n "$DLLTOOL"; then
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4439. $as_echo "$DLLTOOL" >&6; }
  4440. else
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4442. $as_echo "no" >&6; }
  4443. fi
  4444. fi
  4445. if test -z "$ac_cv_prog_DLLTOOL"; then
  4446. ac_ct_DLLTOOL=$DLLTOOL
  4447. # Extract the first word of "dlltool", so it can be a program name with args.
  4448. set dummy dlltool; ac_word=$2
  4449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4450. $as_echo_n "checking for $ac_word... " >&6; }
  4451. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4452. $as_echo_n "(cached) " >&6
  4453. else
  4454. if test -n "$ac_ct_DLLTOOL"; then
  4455. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4456. else
  4457. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4458. for as_dir in $PATH
  4459. do
  4460. IFS=$as_save_IFS
  4461. test -z "$as_dir" && as_dir=.
  4462. for ac_exec_ext in '' $ac_executable_extensions; do
  4463. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4464. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4465. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4466. break 2
  4467. fi
  4468. done
  4469. done
  4470. IFS=$as_save_IFS
  4471. fi
  4472. fi
  4473. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4474. if test -n "$ac_ct_DLLTOOL"; then
  4475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4476. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4477. else
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4479. $as_echo "no" >&6; }
  4480. fi
  4481. if test "x$ac_ct_DLLTOOL" = x; then
  4482. DLLTOOL="false"
  4483. else
  4484. case $cross_compiling:$ac_tool_warned in
  4485. yes:)
  4486. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4487. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4488. ac_tool_warned=yes ;;
  4489. esac
  4490. DLLTOOL=$ac_ct_DLLTOOL
  4491. fi
  4492. else
  4493. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4494. fi
  4495. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4497. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4498. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4499. $as_echo_n "(cached) " >&6
  4500. else
  4501. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4502. case $host_os in
  4503. cygwin* | mingw* | pw32* | cegcc*)
  4504. # two different shell functions defined in ltmain.sh
  4505. # decide which to use based on capabilities of $DLLTOOL
  4506. case `$DLLTOOL --help 2>&1` in
  4507. *--identify-strict*)
  4508. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4509. ;;
  4510. *)
  4511. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4512. ;;
  4513. esac
  4514. ;;
  4515. *)
  4516. # fallback: assume linklib IS sharedlib
  4517. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4518. ;;
  4519. esac
  4520. fi
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4522. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4523. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4524. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4525. if test -n "$ac_tool_prefix"; then
  4526. for ac_prog in ar
  4527. do
  4528. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4529. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4531. $as_echo_n "checking for $ac_word... " >&6; }
  4532. if ${ac_cv_prog_AR+:} false; then :
  4533. $as_echo_n "(cached) " >&6
  4534. else
  4535. if test -n "$AR"; then
  4536. ac_cv_prog_AR="$AR" # Let the user override the test.
  4537. else
  4538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4539. for as_dir in $PATH
  4540. do
  4541. IFS=$as_save_IFS
  4542. test -z "$as_dir" && as_dir=.
  4543. for ac_exec_ext in '' $ac_executable_extensions; do
  4544. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4545. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4546. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4547. break 2
  4548. fi
  4549. done
  4550. done
  4551. IFS=$as_save_IFS
  4552. fi
  4553. fi
  4554. AR=$ac_cv_prog_AR
  4555. if test -n "$AR"; then
  4556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4557. $as_echo "$AR" >&6; }
  4558. else
  4559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4560. $as_echo "no" >&6; }
  4561. fi
  4562. test -n "$AR" && break
  4563. done
  4564. fi
  4565. if test -z "$AR"; then
  4566. ac_ct_AR=$AR
  4567. for ac_prog in ar
  4568. do
  4569. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4570. set dummy $ac_prog; ac_word=$2
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4572. $as_echo_n "checking for $ac_word... " >&6; }
  4573. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4574. $as_echo_n "(cached) " >&6
  4575. else
  4576. if test -n "$ac_ct_AR"; then
  4577. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4578. else
  4579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4580. for as_dir in $PATH
  4581. do
  4582. IFS=$as_save_IFS
  4583. test -z "$as_dir" && as_dir=.
  4584. for ac_exec_ext in '' $ac_executable_extensions; do
  4585. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4586. ac_cv_prog_ac_ct_AR="$ac_prog"
  4587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4588. break 2
  4589. fi
  4590. done
  4591. done
  4592. IFS=$as_save_IFS
  4593. fi
  4594. fi
  4595. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4596. if test -n "$ac_ct_AR"; then
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4598. $as_echo "$ac_ct_AR" >&6; }
  4599. else
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4601. $as_echo "no" >&6; }
  4602. fi
  4603. test -n "$ac_ct_AR" && break
  4604. done
  4605. if test "x$ac_ct_AR" = x; then
  4606. AR="false"
  4607. else
  4608. case $cross_compiling:$ac_tool_warned in
  4609. yes:)
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4611. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4612. ac_tool_warned=yes ;;
  4613. esac
  4614. AR=$ac_ct_AR
  4615. fi
  4616. fi
  4617. : ${AR=ar}
  4618. : ${AR_FLAGS=cru}
  4619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4620. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4621. if ${lt_cv_ar_at_file+:} false; then :
  4622. $as_echo_n "(cached) " >&6
  4623. else
  4624. lt_cv_ar_at_file=no
  4625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4626. /* end confdefs.h. */
  4627. int
  4628. main ()
  4629. {
  4630. ;
  4631. return 0;
  4632. }
  4633. _ACEOF
  4634. if ac_fn_c_try_compile "$LINENO"; then :
  4635. echo conftest.$ac_objext > conftest.lst
  4636. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4637. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4638. (eval $lt_ar_try) 2>&5
  4639. ac_status=$?
  4640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4641. test $ac_status = 0; }
  4642. if test "$ac_status" -eq 0; then
  4643. # Ensure the archiver fails upon bogus file names.
  4644. rm -f conftest.$ac_objext libconftest.a
  4645. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4646. (eval $lt_ar_try) 2>&5
  4647. ac_status=$?
  4648. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4649. test $ac_status = 0; }
  4650. if test "$ac_status" -ne 0; then
  4651. lt_cv_ar_at_file=@
  4652. fi
  4653. fi
  4654. rm -f conftest.* libconftest.a
  4655. fi
  4656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4657. fi
  4658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4659. $as_echo "$lt_cv_ar_at_file" >&6; }
  4660. if test "x$lt_cv_ar_at_file" = xno; then
  4661. archiver_list_spec=
  4662. else
  4663. archiver_list_spec=$lt_cv_ar_at_file
  4664. fi
  4665. if test -n "$ac_tool_prefix"; then
  4666. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4667. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4669. $as_echo_n "checking for $ac_word... " >&6; }
  4670. if ${ac_cv_prog_STRIP+:} false; then :
  4671. $as_echo_n "(cached) " >&6
  4672. else
  4673. if test -n "$STRIP"; then
  4674. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4675. else
  4676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4677. for as_dir in $PATH
  4678. do
  4679. IFS=$as_save_IFS
  4680. test -z "$as_dir" && as_dir=.
  4681. for ac_exec_ext in '' $ac_executable_extensions; do
  4682. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4683. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4684. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4685. break 2
  4686. fi
  4687. done
  4688. done
  4689. IFS=$as_save_IFS
  4690. fi
  4691. fi
  4692. STRIP=$ac_cv_prog_STRIP
  4693. if test -n "$STRIP"; then
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4695. $as_echo "$STRIP" >&6; }
  4696. else
  4697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4698. $as_echo "no" >&6; }
  4699. fi
  4700. fi
  4701. if test -z "$ac_cv_prog_STRIP"; then
  4702. ac_ct_STRIP=$STRIP
  4703. # Extract the first word of "strip", so it can be a program name with args.
  4704. set dummy strip; ac_word=$2
  4705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4706. $as_echo_n "checking for $ac_word... " >&6; }
  4707. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4708. $as_echo_n "(cached) " >&6
  4709. else
  4710. if test -n "$ac_ct_STRIP"; then
  4711. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4712. else
  4713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4714. for as_dir in $PATH
  4715. do
  4716. IFS=$as_save_IFS
  4717. test -z "$as_dir" && as_dir=.
  4718. for ac_exec_ext in '' $ac_executable_extensions; do
  4719. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4720. ac_cv_prog_ac_ct_STRIP="strip"
  4721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4722. break 2
  4723. fi
  4724. done
  4725. done
  4726. IFS=$as_save_IFS
  4727. fi
  4728. fi
  4729. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4730. if test -n "$ac_ct_STRIP"; then
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4732. $as_echo "$ac_ct_STRIP" >&6; }
  4733. else
  4734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4735. $as_echo "no" >&6; }
  4736. fi
  4737. if test "x$ac_ct_STRIP" = x; then
  4738. STRIP=":"
  4739. else
  4740. case $cross_compiling:$ac_tool_warned in
  4741. yes:)
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4743. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4744. ac_tool_warned=yes ;;
  4745. esac
  4746. STRIP=$ac_ct_STRIP
  4747. fi
  4748. else
  4749. STRIP="$ac_cv_prog_STRIP"
  4750. fi
  4751. test -z "$STRIP" && STRIP=:
  4752. if test -n "$ac_tool_prefix"; then
  4753. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4754. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4756. $as_echo_n "checking for $ac_word... " >&6; }
  4757. if ${ac_cv_prog_RANLIB+:} false; then :
  4758. $as_echo_n "(cached) " >&6
  4759. else
  4760. if test -n "$RANLIB"; then
  4761. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4762. else
  4763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4764. for as_dir in $PATH
  4765. do
  4766. IFS=$as_save_IFS
  4767. test -z "$as_dir" && as_dir=.
  4768. for ac_exec_ext in '' $ac_executable_extensions; do
  4769. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4770. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4771. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4772. break 2
  4773. fi
  4774. done
  4775. done
  4776. IFS=$as_save_IFS
  4777. fi
  4778. fi
  4779. RANLIB=$ac_cv_prog_RANLIB
  4780. if test -n "$RANLIB"; then
  4781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4782. $as_echo "$RANLIB" >&6; }
  4783. else
  4784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4785. $as_echo "no" >&6; }
  4786. fi
  4787. fi
  4788. if test -z "$ac_cv_prog_RANLIB"; then
  4789. ac_ct_RANLIB=$RANLIB
  4790. # Extract the first word of "ranlib", so it can be a program name with args.
  4791. set dummy ranlib; ac_word=$2
  4792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4793. $as_echo_n "checking for $ac_word... " >&6; }
  4794. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4795. $as_echo_n "(cached) " >&6
  4796. else
  4797. if test -n "$ac_ct_RANLIB"; then
  4798. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4799. else
  4800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4801. for as_dir in $PATH
  4802. do
  4803. IFS=$as_save_IFS
  4804. test -z "$as_dir" && as_dir=.
  4805. for ac_exec_ext in '' $ac_executable_extensions; do
  4806. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4807. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4808. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4809. break 2
  4810. fi
  4811. done
  4812. done
  4813. IFS=$as_save_IFS
  4814. fi
  4815. fi
  4816. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4817. if test -n "$ac_ct_RANLIB"; then
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4819. $as_echo "$ac_ct_RANLIB" >&6; }
  4820. else
  4821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4822. $as_echo "no" >&6; }
  4823. fi
  4824. if test "x$ac_ct_RANLIB" = x; then
  4825. RANLIB=":"
  4826. else
  4827. case $cross_compiling:$ac_tool_warned in
  4828. yes:)
  4829. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4830. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4831. ac_tool_warned=yes ;;
  4832. esac
  4833. RANLIB=$ac_ct_RANLIB
  4834. fi
  4835. else
  4836. RANLIB="$ac_cv_prog_RANLIB"
  4837. fi
  4838. test -z "$RANLIB" && RANLIB=:
  4839. # Determine commands to create old-style static archives.
  4840. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4841. old_postinstall_cmds='chmod 644 $oldlib'
  4842. old_postuninstall_cmds=
  4843. if test -n "$RANLIB"; then
  4844. case $host_os in
  4845. openbsd*)
  4846. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4847. ;;
  4848. *)
  4849. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4850. ;;
  4851. esac
  4852. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4853. fi
  4854. case $host_os in
  4855. darwin*)
  4856. lock_old_archive_extraction=yes ;;
  4857. *)
  4858. lock_old_archive_extraction=no ;;
  4859. esac
  4860. for ac_prog in gawk mawk nawk awk
  4861. do
  4862. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4863. set dummy $ac_prog; ac_word=$2
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4865. $as_echo_n "checking for $ac_word... " >&6; }
  4866. if ${ac_cv_prog_AWK+:} false; then :
  4867. $as_echo_n "(cached) " >&6
  4868. else
  4869. if test -n "$AWK"; then
  4870. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4871. else
  4872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4873. for as_dir in $PATH
  4874. do
  4875. IFS=$as_save_IFS
  4876. test -z "$as_dir" && as_dir=.
  4877. for ac_exec_ext in '' $ac_executable_extensions; do
  4878. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4879. ac_cv_prog_AWK="$ac_prog"
  4880. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4881. break 2
  4882. fi
  4883. done
  4884. done
  4885. IFS=$as_save_IFS
  4886. fi
  4887. fi
  4888. AWK=$ac_cv_prog_AWK
  4889. if test -n "$AWK"; then
  4890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4891. $as_echo "$AWK" >&6; }
  4892. else
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4894. $as_echo "no" >&6; }
  4895. fi
  4896. test -n "$AWK" && break
  4897. done
  4898. # If no C compiler was specified, use CC.
  4899. LTCC=${LTCC-"$CC"}
  4900. # If no C compiler flags were specified, use CFLAGS.
  4901. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4902. # Allow CC to be a program name with arguments.
  4903. compiler=$CC
  4904. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4906. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4907. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4908. $as_echo_n "(cached) " >&6
  4909. else
  4910. # These are sane defaults that work on at least a few old systems.
  4911. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4912. # Character class describing NM global symbol codes.
  4913. symcode='[BCDEGRST]'
  4914. # Regexp to match symbols that can be accessed directly from C.
  4915. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4916. # Define system-specific variables.
  4917. case $host_os in
  4918. aix*)
  4919. symcode='[BCDT]'
  4920. ;;
  4921. cygwin* | mingw* | pw32* | cegcc*)
  4922. symcode='[ABCDGISTW]'
  4923. ;;
  4924. hpux*)
  4925. if test "$host_cpu" = ia64; then
  4926. symcode='[ABCDEGRST]'
  4927. fi
  4928. ;;
  4929. irix* | nonstopux*)
  4930. symcode='[BCDEGRST]'
  4931. ;;
  4932. osf*)
  4933. symcode='[BCDEGQRST]'
  4934. ;;
  4935. solaris*)
  4936. symcode='[BDRT]'
  4937. ;;
  4938. sco3.2v5*)
  4939. symcode='[DT]'
  4940. ;;
  4941. sysv4.2uw2*)
  4942. symcode='[DT]'
  4943. ;;
  4944. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4945. symcode='[ABDT]'
  4946. ;;
  4947. sysv4)
  4948. symcode='[DFNSTU]'
  4949. ;;
  4950. esac
  4951. # If we're using GNU nm, then use its standard symbol codes.
  4952. case `$NM -V 2>&1` in
  4953. *GNU* | *'with BFD'*)
  4954. symcode='[ABCDGIRSTW]' ;;
  4955. esac
  4956. # Transform an extracted symbol line into a proper C declaration.
  4957. # Some systems (esp. on ia64) link data and code symbols differently,
  4958. # so use this general approach.
  4959. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4960. # Transform an extracted symbol line into symbol name and symbol address
  4961. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4962. 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'"
  4963. # Handle CRLF in mingw tool chain
  4964. opt_cr=
  4965. case $build_os in
  4966. mingw*)
  4967. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4968. ;;
  4969. esac
  4970. # Try without a prefix underscore, then with it.
  4971. for ac_symprfx in "" "_"; do
  4972. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4973. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4974. # Write the raw and C identifiers.
  4975. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4976. # Fake it for dumpbin and say T for any non-static function
  4977. # and D for any global variable.
  4978. # Also find C++ and __fastcall symbols from MSVC++,
  4979. # which start with @ or ?.
  4980. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4981. " {last_section=section; section=\$ 3};"\
  4982. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4983. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4984. " \$ 0!~/External *\|/{next};"\
  4985. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4986. " {if(hide[section]) next};"\
  4987. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4988. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4989. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4990. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4991. " ' prfx=^$ac_symprfx"
  4992. else
  4993. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4994. fi
  4995. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4996. # Check to see that the pipe works correctly.
  4997. pipe_works=no
  4998. rm -f conftest*
  4999. cat > conftest.$ac_ext <<_LT_EOF
  5000. #ifdef __cplusplus
  5001. extern "C" {
  5002. #endif
  5003. char nm_test_var;
  5004. void nm_test_func(void);
  5005. void nm_test_func(void){}
  5006. #ifdef __cplusplus
  5007. }
  5008. #endif
  5009. int main(){nm_test_var='a';nm_test_func();return(0);}
  5010. _LT_EOF
  5011. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5012. (eval $ac_compile) 2>&5
  5013. ac_status=$?
  5014. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5015. test $ac_status = 0; }; then
  5016. # Now try to grab the symbols.
  5017. nlist=conftest.nm
  5018. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5019. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5020. ac_status=$?
  5021. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5022. test $ac_status = 0; } && test -s "$nlist"; then
  5023. # Try sorting and uniquifying the output.
  5024. if sort "$nlist" | uniq > "$nlist"T; then
  5025. mv -f "$nlist"T "$nlist"
  5026. else
  5027. rm -f "$nlist"T
  5028. fi
  5029. # Make sure that we snagged all the symbols we need.
  5030. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5031. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5032. cat <<_LT_EOF > conftest.$ac_ext
  5033. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5034. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5035. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5036. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5037. # define LT_DLSYM_CONST
  5038. #elif defined(__osf__)
  5039. /* This system does not cope well with relocations in const data. */
  5040. # define LT_DLSYM_CONST
  5041. #else
  5042. # define LT_DLSYM_CONST const
  5043. #endif
  5044. #ifdef __cplusplus
  5045. extern "C" {
  5046. #endif
  5047. _LT_EOF
  5048. # Now generate the symbol file.
  5049. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5050. cat <<_LT_EOF >> conftest.$ac_ext
  5051. /* The mapping between symbol names and symbols. */
  5052. LT_DLSYM_CONST struct {
  5053. const char *name;
  5054. void *address;
  5055. }
  5056. lt__PROGRAM__LTX_preloaded_symbols[] =
  5057. {
  5058. { "@PROGRAM@", (void *) 0 },
  5059. _LT_EOF
  5060. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5061. cat <<\_LT_EOF >> conftest.$ac_ext
  5062. {0, (void *) 0}
  5063. };
  5064. /* This works around a problem in FreeBSD linker */
  5065. #ifdef FREEBSD_WORKAROUND
  5066. static const void *lt_preloaded_setup() {
  5067. return lt__PROGRAM__LTX_preloaded_symbols;
  5068. }
  5069. #endif
  5070. #ifdef __cplusplus
  5071. }
  5072. #endif
  5073. _LT_EOF
  5074. # Now try linking the two files.
  5075. mv conftest.$ac_objext conftstm.$ac_objext
  5076. lt_globsym_save_LIBS=$LIBS
  5077. lt_globsym_save_CFLAGS=$CFLAGS
  5078. LIBS="conftstm.$ac_objext"
  5079. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5080. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5081. (eval $ac_link) 2>&5
  5082. ac_status=$?
  5083. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5084. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5085. pipe_works=yes
  5086. fi
  5087. LIBS=$lt_globsym_save_LIBS
  5088. CFLAGS=$lt_globsym_save_CFLAGS
  5089. else
  5090. echo "cannot find nm_test_func in $nlist" >&5
  5091. fi
  5092. else
  5093. echo "cannot find nm_test_var in $nlist" >&5
  5094. fi
  5095. else
  5096. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5097. fi
  5098. else
  5099. echo "$progname: failed program was:" >&5
  5100. cat conftest.$ac_ext >&5
  5101. fi
  5102. rm -rf conftest* conftst*
  5103. # Do not use the global_symbol_pipe unless it works.
  5104. if test "$pipe_works" = yes; then
  5105. break
  5106. else
  5107. lt_cv_sys_global_symbol_pipe=
  5108. fi
  5109. done
  5110. fi
  5111. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5112. lt_cv_sys_global_symbol_to_cdecl=
  5113. fi
  5114. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5116. $as_echo "failed" >&6; }
  5117. else
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5119. $as_echo "ok" >&6; }
  5120. fi
  5121. # Response file support.
  5122. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5123. nm_file_list_spec='@'
  5124. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5125. nm_file_list_spec='@'
  5126. fi
  5127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5128. $as_echo_n "checking for sysroot... " >&6; }
  5129. # Check whether --with-sysroot was given.
  5130. if test "${with_sysroot+set}" = set; then :
  5131. withval=$with_sysroot;
  5132. else
  5133. with_sysroot=no
  5134. fi
  5135. lt_sysroot=
  5136. case ${with_sysroot} in #(
  5137. yes)
  5138. if test "$GCC" = yes; then
  5139. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5140. fi
  5141. ;; #(
  5142. /*)
  5143. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5144. ;; #(
  5145. no|'')
  5146. ;; #(
  5147. *)
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5149. $as_echo "${with_sysroot}" >&6; }
  5150. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5151. ;;
  5152. esac
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5154. $as_echo "${lt_sysroot:-no}" >&6; }
  5155. # Check whether --enable-libtool-lock was given.
  5156. if test "${enable_libtool_lock+set}" = set; then :
  5157. enableval=$enable_libtool_lock;
  5158. fi
  5159. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5160. # Some flags need to be propagated to the compiler or linker for good
  5161. # libtool support.
  5162. case $host in
  5163. ia64-*-hpux*)
  5164. # Find out which ABI we are using.
  5165. echo 'int i;' > conftest.$ac_ext
  5166. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5167. (eval $ac_compile) 2>&5
  5168. ac_status=$?
  5169. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5170. test $ac_status = 0; }; then
  5171. case `/usr/bin/file conftest.$ac_objext` in
  5172. *ELF-32*)
  5173. HPUX_IA64_MODE="32"
  5174. ;;
  5175. *ELF-64*)
  5176. HPUX_IA64_MODE="64"
  5177. ;;
  5178. esac
  5179. fi
  5180. rm -rf conftest*
  5181. ;;
  5182. *-*-irix6*)
  5183. # Find out which ABI we are using.
  5184. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5185. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5186. (eval $ac_compile) 2>&5
  5187. ac_status=$?
  5188. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5189. test $ac_status = 0; }; then
  5190. if test "$lt_cv_prog_gnu_ld" = yes; then
  5191. case `/usr/bin/file conftest.$ac_objext` in
  5192. *32-bit*)
  5193. LD="${LD-ld} -melf32bsmip"
  5194. ;;
  5195. *N32*)
  5196. LD="${LD-ld} -melf32bmipn32"
  5197. ;;
  5198. *64-bit*)
  5199. LD="${LD-ld} -melf64bmip"
  5200. ;;
  5201. esac
  5202. else
  5203. case `/usr/bin/file conftest.$ac_objext` in
  5204. *32-bit*)
  5205. LD="${LD-ld} -32"
  5206. ;;
  5207. *N32*)
  5208. LD="${LD-ld} -n32"
  5209. ;;
  5210. *64-bit*)
  5211. LD="${LD-ld} -64"
  5212. ;;
  5213. esac
  5214. fi
  5215. fi
  5216. rm -rf conftest*
  5217. ;;
  5218. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5219. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5220. # Find out which ABI we are using.
  5221. echo 'int i;' > conftest.$ac_ext
  5222. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5223. (eval $ac_compile) 2>&5
  5224. ac_status=$?
  5225. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5226. test $ac_status = 0; }; then
  5227. case `/usr/bin/file conftest.o` in
  5228. *32-bit*)
  5229. case $host in
  5230. x86_64-*kfreebsd*-gnu)
  5231. LD="${LD-ld} -m elf_i386_fbsd"
  5232. ;;
  5233. x86_64-*linux*)
  5234. LD="${LD-ld} -m elf_i386"
  5235. ;;
  5236. ppc64-*linux*|powerpc64-*linux*)
  5237. LD="${LD-ld} -m elf32ppclinux"
  5238. ;;
  5239. s390x-*linux*)
  5240. LD="${LD-ld} -m elf_s390"
  5241. ;;
  5242. sparc64-*linux*)
  5243. LD="${LD-ld} -m elf32_sparc"
  5244. ;;
  5245. esac
  5246. ;;
  5247. *64-bit*)
  5248. case $host in
  5249. x86_64-*kfreebsd*-gnu)
  5250. LD="${LD-ld} -m elf_x86_64_fbsd"
  5251. ;;
  5252. x86_64-*linux*)
  5253. LD="${LD-ld} -m elf_x86_64"
  5254. ;;
  5255. ppc*-*linux*|powerpc*-*linux*)
  5256. LD="${LD-ld} -m elf64ppc"
  5257. ;;
  5258. s390*-*linux*|s390*-*tpf*)
  5259. LD="${LD-ld} -m elf64_s390"
  5260. ;;
  5261. sparc*-*linux*)
  5262. LD="${LD-ld} -m elf64_sparc"
  5263. ;;
  5264. esac
  5265. ;;
  5266. esac
  5267. fi
  5268. rm -rf conftest*
  5269. ;;
  5270. *-*-sco3.2v5*)
  5271. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5272. SAVE_CFLAGS="$CFLAGS"
  5273. CFLAGS="$CFLAGS -belf"
  5274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5275. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5276. if ${lt_cv_cc_needs_belf+:} false; then :
  5277. $as_echo_n "(cached) " >&6
  5278. else
  5279. ac_ext=c
  5280. ac_cpp='$CPP $CPPFLAGS'
  5281. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5282. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5283. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5285. /* end confdefs.h. */
  5286. int
  5287. main ()
  5288. {
  5289. ;
  5290. return 0;
  5291. }
  5292. _ACEOF
  5293. if ac_fn_c_try_link "$LINENO"; then :
  5294. lt_cv_cc_needs_belf=yes
  5295. else
  5296. lt_cv_cc_needs_belf=no
  5297. fi
  5298. rm -f core conftest.err conftest.$ac_objext \
  5299. conftest$ac_exeext conftest.$ac_ext
  5300. ac_ext=c
  5301. ac_cpp='$CPP $CPPFLAGS'
  5302. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5303. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5304. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5305. fi
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5307. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5308. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5309. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5310. CFLAGS="$SAVE_CFLAGS"
  5311. fi
  5312. ;;
  5313. *-*solaris*)
  5314. # Find out which ABI we are using.
  5315. echo 'int i;' > conftest.$ac_ext
  5316. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5317. (eval $ac_compile) 2>&5
  5318. ac_status=$?
  5319. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5320. test $ac_status = 0; }; then
  5321. case `/usr/bin/file conftest.o` in
  5322. *64-bit*)
  5323. case $lt_cv_prog_gnu_ld in
  5324. yes*)
  5325. case $host in
  5326. i?86-*-solaris*)
  5327. LD="${LD-ld} -m elf_x86_64"
  5328. ;;
  5329. sparc*-*-solaris*)
  5330. LD="${LD-ld} -m elf64_sparc"
  5331. ;;
  5332. esac
  5333. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5334. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5335. LD="${LD-ld}_sol2"
  5336. fi
  5337. ;;
  5338. *)
  5339. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5340. LD="${LD-ld} -64"
  5341. fi
  5342. ;;
  5343. esac
  5344. ;;
  5345. esac
  5346. fi
  5347. rm -rf conftest*
  5348. ;;
  5349. esac
  5350. need_locks="$enable_libtool_lock"
  5351. if test -n "$ac_tool_prefix"; then
  5352. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5353. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5355. $as_echo_n "checking for $ac_word... " >&6; }
  5356. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5357. $as_echo_n "(cached) " >&6
  5358. else
  5359. if test -n "$MANIFEST_TOOL"; then
  5360. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5361. else
  5362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5363. for as_dir in $PATH
  5364. do
  5365. IFS=$as_save_IFS
  5366. test -z "$as_dir" && as_dir=.
  5367. for ac_exec_ext in '' $ac_executable_extensions; do
  5368. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5369. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5370. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5371. break 2
  5372. fi
  5373. done
  5374. done
  5375. IFS=$as_save_IFS
  5376. fi
  5377. fi
  5378. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5379. if test -n "$MANIFEST_TOOL"; then
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5381. $as_echo "$MANIFEST_TOOL" >&6; }
  5382. else
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5384. $as_echo "no" >&6; }
  5385. fi
  5386. fi
  5387. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5388. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5389. # Extract the first word of "mt", so it can be a program name with args.
  5390. set dummy mt; ac_word=$2
  5391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5392. $as_echo_n "checking for $ac_word... " >&6; }
  5393. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5394. $as_echo_n "(cached) " >&6
  5395. else
  5396. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5397. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5398. else
  5399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5400. for as_dir in $PATH
  5401. do
  5402. IFS=$as_save_IFS
  5403. test -z "$as_dir" && as_dir=.
  5404. for ac_exec_ext in '' $ac_executable_extensions; do
  5405. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5406. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5407. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5408. break 2
  5409. fi
  5410. done
  5411. done
  5412. IFS=$as_save_IFS
  5413. fi
  5414. fi
  5415. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5416. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5418. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5419. else
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5421. $as_echo "no" >&6; }
  5422. fi
  5423. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5424. MANIFEST_TOOL=":"
  5425. else
  5426. case $cross_compiling:$ac_tool_warned in
  5427. yes:)
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5429. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5430. ac_tool_warned=yes ;;
  5431. esac
  5432. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5433. fi
  5434. else
  5435. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5436. fi
  5437. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5439. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5440. if ${lt_cv_path_mainfest_tool+:} false; then :
  5441. $as_echo_n "(cached) " >&6
  5442. else
  5443. lt_cv_path_mainfest_tool=no
  5444. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5445. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5446. cat conftest.err >&5
  5447. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5448. lt_cv_path_mainfest_tool=yes
  5449. fi
  5450. rm -f conftest*
  5451. fi
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5453. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5454. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5455. MANIFEST_TOOL=:
  5456. fi
  5457. case $host_os in
  5458. rhapsody* | darwin*)
  5459. if test -n "$ac_tool_prefix"; then
  5460. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5461. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5463. $as_echo_n "checking for $ac_word... " >&6; }
  5464. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5465. $as_echo_n "(cached) " >&6
  5466. else
  5467. if test -n "$DSYMUTIL"; then
  5468. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5469. else
  5470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5471. for as_dir in $PATH
  5472. do
  5473. IFS=$as_save_IFS
  5474. test -z "$as_dir" && as_dir=.
  5475. for ac_exec_ext in '' $ac_executable_extensions; do
  5476. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5477. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5478. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5479. break 2
  5480. fi
  5481. done
  5482. done
  5483. IFS=$as_save_IFS
  5484. fi
  5485. fi
  5486. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5487. if test -n "$DSYMUTIL"; then
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5489. $as_echo "$DSYMUTIL" >&6; }
  5490. else
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5492. $as_echo "no" >&6; }
  5493. fi
  5494. fi
  5495. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5496. ac_ct_DSYMUTIL=$DSYMUTIL
  5497. # Extract the first word of "dsymutil", so it can be a program name with args.
  5498. set dummy dsymutil; ac_word=$2
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5500. $as_echo_n "checking for $ac_word... " >&6; }
  5501. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5502. $as_echo_n "(cached) " >&6
  5503. else
  5504. if test -n "$ac_ct_DSYMUTIL"; then
  5505. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5506. else
  5507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5508. for as_dir in $PATH
  5509. do
  5510. IFS=$as_save_IFS
  5511. test -z "$as_dir" && as_dir=.
  5512. for ac_exec_ext in '' $ac_executable_extensions; do
  5513. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5514. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5515. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5516. break 2
  5517. fi
  5518. done
  5519. done
  5520. IFS=$as_save_IFS
  5521. fi
  5522. fi
  5523. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5524. if test -n "$ac_ct_DSYMUTIL"; then
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5526. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5527. else
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5529. $as_echo "no" >&6; }
  5530. fi
  5531. if test "x$ac_ct_DSYMUTIL" = x; then
  5532. DSYMUTIL=":"
  5533. else
  5534. case $cross_compiling:$ac_tool_warned in
  5535. yes:)
  5536. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5537. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5538. ac_tool_warned=yes ;;
  5539. esac
  5540. DSYMUTIL=$ac_ct_DSYMUTIL
  5541. fi
  5542. else
  5543. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5544. fi
  5545. if test -n "$ac_tool_prefix"; then
  5546. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5547. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5549. $as_echo_n "checking for $ac_word... " >&6; }
  5550. if ${ac_cv_prog_NMEDIT+:} false; then :
  5551. $as_echo_n "(cached) " >&6
  5552. else
  5553. if test -n "$NMEDIT"; then
  5554. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5555. else
  5556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5557. for as_dir in $PATH
  5558. do
  5559. IFS=$as_save_IFS
  5560. test -z "$as_dir" && as_dir=.
  5561. for ac_exec_ext in '' $ac_executable_extensions; do
  5562. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5563. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5564. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5565. break 2
  5566. fi
  5567. done
  5568. done
  5569. IFS=$as_save_IFS
  5570. fi
  5571. fi
  5572. NMEDIT=$ac_cv_prog_NMEDIT
  5573. if test -n "$NMEDIT"; then
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5575. $as_echo "$NMEDIT" >&6; }
  5576. else
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5578. $as_echo "no" >&6; }
  5579. fi
  5580. fi
  5581. if test -z "$ac_cv_prog_NMEDIT"; then
  5582. ac_ct_NMEDIT=$NMEDIT
  5583. # Extract the first word of "nmedit", so it can be a program name with args.
  5584. set dummy nmedit; ac_word=$2
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5586. $as_echo_n "checking for $ac_word... " >&6; }
  5587. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5588. $as_echo_n "(cached) " >&6
  5589. else
  5590. if test -n "$ac_ct_NMEDIT"; then
  5591. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5592. else
  5593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5594. for as_dir in $PATH
  5595. do
  5596. IFS=$as_save_IFS
  5597. test -z "$as_dir" && as_dir=.
  5598. for ac_exec_ext in '' $ac_executable_extensions; do
  5599. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5600. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5601. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5602. break 2
  5603. fi
  5604. done
  5605. done
  5606. IFS=$as_save_IFS
  5607. fi
  5608. fi
  5609. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5610. if test -n "$ac_ct_NMEDIT"; then
  5611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5612. $as_echo "$ac_ct_NMEDIT" >&6; }
  5613. else
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5615. $as_echo "no" >&6; }
  5616. fi
  5617. if test "x$ac_ct_NMEDIT" = x; then
  5618. NMEDIT=":"
  5619. else
  5620. case $cross_compiling:$ac_tool_warned in
  5621. yes:)
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5623. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5624. ac_tool_warned=yes ;;
  5625. esac
  5626. NMEDIT=$ac_ct_NMEDIT
  5627. fi
  5628. else
  5629. NMEDIT="$ac_cv_prog_NMEDIT"
  5630. fi
  5631. if test -n "$ac_tool_prefix"; then
  5632. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5633. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5635. $as_echo_n "checking for $ac_word... " >&6; }
  5636. if ${ac_cv_prog_LIPO+:} false; then :
  5637. $as_echo_n "(cached) " >&6
  5638. else
  5639. if test -n "$LIPO"; then
  5640. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5641. else
  5642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5643. for as_dir in $PATH
  5644. do
  5645. IFS=$as_save_IFS
  5646. test -z "$as_dir" && as_dir=.
  5647. for ac_exec_ext in '' $ac_executable_extensions; do
  5648. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5649. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5650. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5651. break 2
  5652. fi
  5653. done
  5654. done
  5655. IFS=$as_save_IFS
  5656. fi
  5657. fi
  5658. LIPO=$ac_cv_prog_LIPO
  5659. if test -n "$LIPO"; then
  5660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5661. $as_echo "$LIPO" >&6; }
  5662. else
  5663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5664. $as_echo "no" >&6; }
  5665. fi
  5666. fi
  5667. if test -z "$ac_cv_prog_LIPO"; then
  5668. ac_ct_LIPO=$LIPO
  5669. # Extract the first word of "lipo", so it can be a program name with args.
  5670. set dummy lipo; ac_word=$2
  5671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5672. $as_echo_n "checking for $ac_word... " >&6; }
  5673. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5674. $as_echo_n "(cached) " >&6
  5675. else
  5676. if test -n "$ac_ct_LIPO"; then
  5677. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5678. else
  5679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5680. for as_dir in $PATH
  5681. do
  5682. IFS=$as_save_IFS
  5683. test -z "$as_dir" && as_dir=.
  5684. for ac_exec_ext in '' $ac_executable_extensions; do
  5685. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5686. ac_cv_prog_ac_ct_LIPO="lipo"
  5687. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5688. break 2
  5689. fi
  5690. done
  5691. done
  5692. IFS=$as_save_IFS
  5693. fi
  5694. fi
  5695. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5696. if test -n "$ac_ct_LIPO"; then
  5697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5698. $as_echo "$ac_ct_LIPO" >&6; }
  5699. else
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5701. $as_echo "no" >&6; }
  5702. fi
  5703. if test "x$ac_ct_LIPO" = x; then
  5704. LIPO=":"
  5705. else
  5706. case $cross_compiling:$ac_tool_warned in
  5707. yes:)
  5708. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5709. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5710. ac_tool_warned=yes ;;
  5711. esac
  5712. LIPO=$ac_ct_LIPO
  5713. fi
  5714. else
  5715. LIPO="$ac_cv_prog_LIPO"
  5716. fi
  5717. if test -n "$ac_tool_prefix"; then
  5718. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5719. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5721. $as_echo_n "checking for $ac_word... " >&6; }
  5722. if ${ac_cv_prog_OTOOL+:} false; then :
  5723. $as_echo_n "(cached) " >&6
  5724. else
  5725. if test -n "$OTOOL"; then
  5726. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5727. else
  5728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5729. for as_dir in $PATH
  5730. do
  5731. IFS=$as_save_IFS
  5732. test -z "$as_dir" && as_dir=.
  5733. for ac_exec_ext in '' $ac_executable_extensions; do
  5734. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5735. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5736. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5737. break 2
  5738. fi
  5739. done
  5740. done
  5741. IFS=$as_save_IFS
  5742. fi
  5743. fi
  5744. OTOOL=$ac_cv_prog_OTOOL
  5745. if test -n "$OTOOL"; then
  5746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5747. $as_echo "$OTOOL" >&6; }
  5748. else
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5750. $as_echo "no" >&6; }
  5751. fi
  5752. fi
  5753. if test -z "$ac_cv_prog_OTOOL"; then
  5754. ac_ct_OTOOL=$OTOOL
  5755. # Extract the first word of "otool", so it can be a program name with args.
  5756. set dummy otool; ac_word=$2
  5757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5758. $as_echo_n "checking for $ac_word... " >&6; }
  5759. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5760. $as_echo_n "(cached) " >&6
  5761. else
  5762. if test -n "$ac_ct_OTOOL"; then
  5763. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5764. else
  5765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5766. for as_dir in $PATH
  5767. do
  5768. IFS=$as_save_IFS
  5769. test -z "$as_dir" && as_dir=.
  5770. for ac_exec_ext in '' $ac_executable_extensions; do
  5771. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5772. ac_cv_prog_ac_ct_OTOOL="otool"
  5773. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5774. break 2
  5775. fi
  5776. done
  5777. done
  5778. IFS=$as_save_IFS
  5779. fi
  5780. fi
  5781. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5782. if test -n "$ac_ct_OTOOL"; then
  5783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5784. $as_echo "$ac_ct_OTOOL" >&6; }
  5785. else
  5786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5787. $as_echo "no" >&6; }
  5788. fi
  5789. if test "x$ac_ct_OTOOL" = x; then
  5790. OTOOL=":"
  5791. else
  5792. case $cross_compiling:$ac_tool_warned in
  5793. yes:)
  5794. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5795. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5796. ac_tool_warned=yes ;;
  5797. esac
  5798. OTOOL=$ac_ct_OTOOL
  5799. fi
  5800. else
  5801. OTOOL="$ac_cv_prog_OTOOL"
  5802. fi
  5803. if test -n "$ac_tool_prefix"; then
  5804. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5805. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5807. $as_echo_n "checking for $ac_word... " >&6; }
  5808. if ${ac_cv_prog_OTOOL64+:} false; then :
  5809. $as_echo_n "(cached) " >&6
  5810. else
  5811. if test -n "$OTOOL64"; then
  5812. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5813. else
  5814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5815. for as_dir in $PATH
  5816. do
  5817. IFS=$as_save_IFS
  5818. test -z "$as_dir" && as_dir=.
  5819. for ac_exec_ext in '' $ac_executable_extensions; do
  5820. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5821. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5823. break 2
  5824. fi
  5825. done
  5826. done
  5827. IFS=$as_save_IFS
  5828. fi
  5829. fi
  5830. OTOOL64=$ac_cv_prog_OTOOL64
  5831. if test -n "$OTOOL64"; then
  5832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5833. $as_echo "$OTOOL64" >&6; }
  5834. else
  5835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5836. $as_echo "no" >&6; }
  5837. fi
  5838. fi
  5839. if test -z "$ac_cv_prog_OTOOL64"; then
  5840. ac_ct_OTOOL64=$OTOOL64
  5841. # Extract the first word of "otool64", so it can be a program name with args.
  5842. set dummy otool64; ac_word=$2
  5843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5844. $as_echo_n "checking for $ac_word... " >&6; }
  5845. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5846. $as_echo_n "(cached) " >&6
  5847. else
  5848. if test -n "$ac_ct_OTOOL64"; then
  5849. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5850. else
  5851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5852. for as_dir in $PATH
  5853. do
  5854. IFS=$as_save_IFS
  5855. test -z "$as_dir" && as_dir=.
  5856. for ac_exec_ext in '' $ac_executable_extensions; do
  5857. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5858. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5859. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5860. break 2
  5861. fi
  5862. done
  5863. done
  5864. IFS=$as_save_IFS
  5865. fi
  5866. fi
  5867. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5868. if test -n "$ac_ct_OTOOL64"; then
  5869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5870. $as_echo "$ac_ct_OTOOL64" >&6; }
  5871. else
  5872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5873. $as_echo "no" >&6; }
  5874. fi
  5875. if test "x$ac_ct_OTOOL64" = x; then
  5876. OTOOL64=":"
  5877. else
  5878. case $cross_compiling:$ac_tool_warned in
  5879. yes:)
  5880. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5881. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5882. ac_tool_warned=yes ;;
  5883. esac
  5884. OTOOL64=$ac_ct_OTOOL64
  5885. fi
  5886. else
  5887. OTOOL64="$ac_cv_prog_OTOOL64"
  5888. fi
  5889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5890. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5891. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5892. $as_echo_n "(cached) " >&6
  5893. else
  5894. lt_cv_apple_cc_single_mod=no
  5895. if test -z "${LT_MULTI_MODULE}"; then
  5896. # By default we will add the -single_module flag. You can override
  5897. # by either setting the environment variable LT_MULTI_MODULE
  5898. # non-empty at configure time, or by adding -multi_module to the
  5899. # link flags.
  5900. rm -rf libconftest.dylib*
  5901. echo "int foo(void){return 1;}" > conftest.c
  5902. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5903. -dynamiclib -Wl,-single_module conftest.c" >&5
  5904. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5905. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5906. _lt_result=$?
  5907. # If there is a non-empty error log, and "single_module"
  5908. # appears in it, assume the flag caused a linker warning
  5909. if test -s conftest.err && $GREP single_module conftest.err; then
  5910. cat conftest.err >&5
  5911. # Otherwise, if the output was created with a 0 exit code from
  5912. # the compiler, it worked.
  5913. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5914. lt_cv_apple_cc_single_mod=yes
  5915. else
  5916. cat conftest.err >&5
  5917. fi
  5918. rm -rf libconftest.dylib*
  5919. rm -f conftest.*
  5920. fi
  5921. fi
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5923. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5925. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5926. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5927. $as_echo_n "(cached) " >&6
  5928. else
  5929. lt_cv_ld_exported_symbols_list=no
  5930. save_LDFLAGS=$LDFLAGS
  5931. echo "_main" > conftest.sym
  5932. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5934. /* end confdefs.h. */
  5935. int
  5936. main ()
  5937. {
  5938. ;
  5939. return 0;
  5940. }
  5941. _ACEOF
  5942. if ac_fn_c_try_link "$LINENO"; then :
  5943. lt_cv_ld_exported_symbols_list=yes
  5944. else
  5945. lt_cv_ld_exported_symbols_list=no
  5946. fi
  5947. rm -f core conftest.err conftest.$ac_objext \
  5948. conftest$ac_exeext conftest.$ac_ext
  5949. LDFLAGS="$save_LDFLAGS"
  5950. fi
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5952. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5954. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5955. if ${lt_cv_ld_force_load+:} false; then :
  5956. $as_echo_n "(cached) " >&6
  5957. else
  5958. lt_cv_ld_force_load=no
  5959. cat > conftest.c << _LT_EOF
  5960. int forced_loaded() { return 2;}
  5961. _LT_EOF
  5962. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5963. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5964. echo "$AR cru libconftest.a conftest.o" >&5
  5965. $AR cru libconftest.a conftest.o 2>&5
  5966. echo "$RANLIB libconftest.a" >&5
  5967. $RANLIB libconftest.a 2>&5
  5968. cat > conftest.c << _LT_EOF
  5969. int main() { return 0;}
  5970. _LT_EOF
  5971. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5972. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5973. _lt_result=$?
  5974. if test -s conftest.err && $GREP force_load conftest.err; then
  5975. cat conftest.err >&5
  5976. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  5977. lt_cv_ld_force_load=yes
  5978. else
  5979. cat conftest.err >&5
  5980. fi
  5981. rm -f conftest.err libconftest.a conftest conftest.c
  5982. rm -rf conftest.dSYM
  5983. fi
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5985. $as_echo "$lt_cv_ld_force_load" >&6; }
  5986. case $host_os in
  5987. rhapsody* | darwin1.[012])
  5988. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5989. darwin1.*)
  5990. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5991. darwin*) # darwin 5.x on
  5992. # if running on 10.5 or later, the deployment target defaults
  5993. # to the OS version, if on x86, and 10.4, the deployment
  5994. # target defaults to 10.4. Don't you love it?
  5995. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5996. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5997. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5998. 10.[012]*)
  5999. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6000. 10.*)
  6001. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6002. esac
  6003. ;;
  6004. esac
  6005. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6006. _lt_dar_single_mod='$single_module'
  6007. fi
  6008. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6009. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6010. else
  6011. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6012. fi
  6013. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6014. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6015. else
  6016. _lt_dsymutil=
  6017. fi
  6018. ;;
  6019. esac
  6020. ac_ext=c
  6021. ac_cpp='$CPP $CPPFLAGS'
  6022. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6023. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6024. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6026. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6027. # On Suns, sometimes $CPP names a directory.
  6028. if test -n "$CPP" && test -d "$CPP"; then
  6029. CPP=
  6030. fi
  6031. if test -z "$CPP"; then
  6032. if ${ac_cv_prog_CPP+:} false; then :
  6033. $as_echo_n "(cached) " >&6
  6034. else
  6035. # Double quotes because CPP needs to be expanded
  6036. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6037. do
  6038. ac_preproc_ok=false
  6039. for ac_c_preproc_warn_flag in '' yes
  6040. do
  6041. # Use a header file that comes with gcc, so configuring glibc
  6042. # with a fresh cross-compiler works.
  6043. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6044. # <limits.h> exists even on freestanding compilers.
  6045. # On the NeXT, cc -E runs the code through the compiler's parser,
  6046. # not just through cpp. "Syntax error" is here to catch this case.
  6047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6048. /* end confdefs.h. */
  6049. #ifdef __STDC__
  6050. # include <limits.h>
  6051. #else
  6052. # include <assert.h>
  6053. #endif
  6054. Syntax error
  6055. _ACEOF
  6056. if ac_fn_c_try_cpp "$LINENO"; then :
  6057. else
  6058. # Broken: fails on valid input.
  6059. continue
  6060. fi
  6061. rm -f conftest.err conftest.i conftest.$ac_ext
  6062. # OK, works on sane cases. Now check whether nonexistent headers
  6063. # can be detected and how.
  6064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6065. /* end confdefs.h. */
  6066. #include <ac_nonexistent.h>
  6067. _ACEOF
  6068. if ac_fn_c_try_cpp "$LINENO"; then :
  6069. # Broken: success on invalid input.
  6070. continue
  6071. else
  6072. # Passes both tests.
  6073. ac_preproc_ok=:
  6074. break
  6075. fi
  6076. rm -f conftest.err conftest.i conftest.$ac_ext
  6077. done
  6078. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6079. rm -f conftest.i conftest.err conftest.$ac_ext
  6080. if $ac_preproc_ok; then :
  6081. break
  6082. fi
  6083. done
  6084. ac_cv_prog_CPP=$CPP
  6085. fi
  6086. CPP=$ac_cv_prog_CPP
  6087. else
  6088. ac_cv_prog_CPP=$CPP
  6089. fi
  6090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6091. $as_echo "$CPP" >&6; }
  6092. ac_preproc_ok=false
  6093. for ac_c_preproc_warn_flag in '' yes
  6094. do
  6095. # Use a header file that comes with gcc, so configuring glibc
  6096. # with a fresh cross-compiler works.
  6097. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6098. # <limits.h> exists even on freestanding compilers.
  6099. # On the NeXT, cc -E runs the code through the compiler's parser,
  6100. # not just through cpp. "Syntax error" is here to catch this case.
  6101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6102. /* end confdefs.h. */
  6103. #ifdef __STDC__
  6104. # include <limits.h>
  6105. #else
  6106. # include <assert.h>
  6107. #endif
  6108. Syntax error
  6109. _ACEOF
  6110. if ac_fn_c_try_cpp "$LINENO"; then :
  6111. else
  6112. # Broken: fails on valid input.
  6113. continue
  6114. fi
  6115. rm -f conftest.err conftest.i conftest.$ac_ext
  6116. # OK, works on sane cases. Now check whether nonexistent headers
  6117. # can be detected and how.
  6118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6119. /* end confdefs.h. */
  6120. #include <ac_nonexistent.h>
  6121. _ACEOF
  6122. if ac_fn_c_try_cpp "$LINENO"; then :
  6123. # Broken: success on invalid input.
  6124. continue
  6125. else
  6126. # Passes both tests.
  6127. ac_preproc_ok=:
  6128. break
  6129. fi
  6130. rm -f conftest.err conftest.i conftest.$ac_ext
  6131. done
  6132. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6133. rm -f conftest.i conftest.err conftest.$ac_ext
  6134. if $ac_preproc_ok; then :
  6135. else
  6136. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6137. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6138. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6139. See \`config.log' for more details" "$LINENO" 5; }
  6140. fi
  6141. ac_ext=c
  6142. ac_cpp='$CPP $CPPFLAGS'
  6143. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6144. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6145. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6147. $as_echo_n "checking for ANSI C header files... " >&6; }
  6148. if ${ac_cv_header_stdc+:} false; then :
  6149. $as_echo_n "(cached) " >&6
  6150. else
  6151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6152. /* end confdefs.h. */
  6153. #include <stdlib.h>
  6154. #include <stdarg.h>
  6155. #include <string.h>
  6156. #include <float.h>
  6157. int
  6158. main ()
  6159. {
  6160. ;
  6161. return 0;
  6162. }
  6163. _ACEOF
  6164. if ac_fn_c_try_compile "$LINENO"; then :
  6165. ac_cv_header_stdc=yes
  6166. else
  6167. ac_cv_header_stdc=no
  6168. fi
  6169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6170. if test $ac_cv_header_stdc = yes; then
  6171. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6173. /* end confdefs.h. */
  6174. #include <string.h>
  6175. _ACEOF
  6176. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6177. $EGREP "memchr" >/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. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6186. /* end confdefs.h. */
  6187. #include <stdlib.h>
  6188. _ACEOF
  6189. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6190. $EGREP "free" >/dev/null 2>&1; then :
  6191. else
  6192. ac_cv_header_stdc=no
  6193. fi
  6194. rm -f conftest*
  6195. fi
  6196. if test $ac_cv_header_stdc = yes; then
  6197. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6198. if test "$cross_compiling" = yes; then :
  6199. :
  6200. else
  6201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6202. /* end confdefs.h. */
  6203. #include <ctype.h>
  6204. #include <stdlib.h>
  6205. #if ((' ' & 0x0FF) == 0x020)
  6206. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6207. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6208. #else
  6209. # define ISLOWER(c) \
  6210. (('a' <= (c) && (c) <= 'i') \
  6211. || ('j' <= (c) && (c) <= 'r') \
  6212. || ('s' <= (c) && (c) <= 'z'))
  6213. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6214. #endif
  6215. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6216. int
  6217. main ()
  6218. {
  6219. int i;
  6220. for (i = 0; i < 256; i++)
  6221. if (XOR (islower (i), ISLOWER (i))
  6222. || toupper (i) != TOUPPER (i))
  6223. return 2;
  6224. return 0;
  6225. }
  6226. _ACEOF
  6227. if ac_fn_c_try_run "$LINENO"; then :
  6228. else
  6229. ac_cv_header_stdc=no
  6230. fi
  6231. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6232. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6233. fi
  6234. fi
  6235. fi
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6237. $as_echo "$ac_cv_header_stdc" >&6; }
  6238. if test $ac_cv_header_stdc = yes; then
  6239. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6240. fi
  6241. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6242. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6243. inttypes.h stdint.h unistd.h
  6244. do :
  6245. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6246. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6247. "
  6248. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6249. cat >>confdefs.h <<_ACEOF
  6250. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6251. _ACEOF
  6252. fi
  6253. done
  6254. for ac_header in dlfcn.h
  6255. do :
  6256. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6257. "
  6258. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6259. cat >>confdefs.h <<_ACEOF
  6260. #define HAVE_DLFCN_H 1
  6261. _ACEOF
  6262. fi
  6263. done
  6264. # Set options
  6265. enable_win32_dll=yes
  6266. case $host in
  6267. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6268. if test -n "$ac_tool_prefix"; then
  6269. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6270. set dummy ${ac_tool_prefix}as; ac_word=$2
  6271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6272. $as_echo_n "checking for $ac_word... " >&6; }
  6273. if ${ac_cv_prog_AS+:} false; then :
  6274. $as_echo_n "(cached) " >&6
  6275. else
  6276. if test -n "$AS"; then
  6277. ac_cv_prog_AS="$AS" # Let the user override the test.
  6278. else
  6279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6280. for as_dir in $PATH
  6281. do
  6282. IFS=$as_save_IFS
  6283. test -z "$as_dir" && as_dir=.
  6284. for ac_exec_ext in '' $ac_executable_extensions; do
  6285. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6286. ac_cv_prog_AS="${ac_tool_prefix}as"
  6287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6288. break 2
  6289. fi
  6290. done
  6291. done
  6292. IFS=$as_save_IFS
  6293. fi
  6294. fi
  6295. AS=$ac_cv_prog_AS
  6296. if test -n "$AS"; then
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6298. $as_echo "$AS" >&6; }
  6299. else
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6301. $as_echo "no" >&6; }
  6302. fi
  6303. fi
  6304. if test -z "$ac_cv_prog_AS"; then
  6305. ac_ct_AS=$AS
  6306. # Extract the first word of "as", so it can be a program name with args.
  6307. set dummy as; ac_word=$2
  6308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6309. $as_echo_n "checking for $ac_word... " >&6; }
  6310. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6311. $as_echo_n "(cached) " >&6
  6312. else
  6313. if test -n "$ac_ct_AS"; then
  6314. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6315. else
  6316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6317. for as_dir in $PATH
  6318. do
  6319. IFS=$as_save_IFS
  6320. test -z "$as_dir" && as_dir=.
  6321. for ac_exec_ext in '' $ac_executable_extensions; do
  6322. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6323. ac_cv_prog_ac_ct_AS="as"
  6324. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6325. break 2
  6326. fi
  6327. done
  6328. done
  6329. IFS=$as_save_IFS
  6330. fi
  6331. fi
  6332. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6333. if test -n "$ac_ct_AS"; then
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6335. $as_echo "$ac_ct_AS" >&6; }
  6336. else
  6337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6338. $as_echo "no" >&6; }
  6339. fi
  6340. if test "x$ac_ct_AS" = x; then
  6341. AS="false"
  6342. else
  6343. case $cross_compiling:$ac_tool_warned in
  6344. yes:)
  6345. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6346. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6347. ac_tool_warned=yes ;;
  6348. esac
  6349. AS=$ac_ct_AS
  6350. fi
  6351. else
  6352. AS="$ac_cv_prog_AS"
  6353. fi
  6354. if test -n "$ac_tool_prefix"; then
  6355. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6356. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6358. $as_echo_n "checking for $ac_word... " >&6; }
  6359. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6360. $as_echo_n "(cached) " >&6
  6361. else
  6362. if test -n "$DLLTOOL"; then
  6363. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6364. else
  6365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6366. for as_dir in $PATH
  6367. do
  6368. IFS=$as_save_IFS
  6369. test -z "$as_dir" && as_dir=.
  6370. for ac_exec_ext in '' $ac_executable_extensions; do
  6371. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6372. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6373. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6374. break 2
  6375. fi
  6376. done
  6377. done
  6378. IFS=$as_save_IFS
  6379. fi
  6380. fi
  6381. DLLTOOL=$ac_cv_prog_DLLTOOL
  6382. if test -n "$DLLTOOL"; then
  6383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6384. $as_echo "$DLLTOOL" >&6; }
  6385. else
  6386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6387. $as_echo "no" >&6; }
  6388. fi
  6389. fi
  6390. if test -z "$ac_cv_prog_DLLTOOL"; then
  6391. ac_ct_DLLTOOL=$DLLTOOL
  6392. # Extract the first word of "dlltool", so it can be a program name with args.
  6393. set dummy dlltool; ac_word=$2
  6394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6395. $as_echo_n "checking for $ac_word... " >&6; }
  6396. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6397. $as_echo_n "(cached) " >&6
  6398. else
  6399. if test -n "$ac_ct_DLLTOOL"; then
  6400. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6401. else
  6402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6403. for as_dir in $PATH
  6404. do
  6405. IFS=$as_save_IFS
  6406. test -z "$as_dir" && as_dir=.
  6407. for ac_exec_ext in '' $ac_executable_extensions; do
  6408. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6409. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6411. break 2
  6412. fi
  6413. done
  6414. done
  6415. IFS=$as_save_IFS
  6416. fi
  6417. fi
  6418. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6419. if test -n "$ac_ct_DLLTOOL"; then
  6420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6421. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6422. else
  6423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6424. $as_echo "no" >&6; }
  6425. fi
  6426. if test "x$ac_ct_DLLTOOL" = x; then
  6427. DLLTOOL="false"
  6428. else
  6429. case $cross_compiling:$ac_tool_warned in
  6430. yes:)
  6431. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6432. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6433. ac_tool_warned=yes ;;
  6434. esac
  6435. DLLTOOL=$ac_ct_DLLTOOL
  6436. fi
  6437. else
  6438. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6439. fi
  6440. if test -n "$ac_tool_prefix"; then
  6441. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6442. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6444. $as_echo_n "checking for $ac_word... " >&6; }
  6445. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6446. $as_echo_n "(cached) " >&6
  6447. else
  6448. if test -n "$OBJDUMP"; then
  6449. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6450. else
  6451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6452. for as_dir in $PATH
  6453. do
  6454. IFS=$as_save_IFS
  6455. test -z "$as_dir" && as_dir=.
  6456. for ac_exec_ext in '' $ac_executable_extensions; do
  6457. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6458. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6460. break 2
  6461. fi
  6462. done
  6463. done
  6464. IFS=$as_save_IFS
  6465. fi
  6466. fi
  6467. OBJDUMP=$ac_cv_prog_OBJDUMP
  6468. if test -n "$OBJDUMP"; then
  6469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6470. $as_echo "$OBJDUMP" >&6; }
  6471. else
  6472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6473. $as_echo "no" >&6; }
  6474. fi
  6475. fi
  6476. if test -z "$ac_cv_prog_OBJDUMP"; then
  6477. ac_ct_OBJDUMP=$OBJDUMP
  6478. # Extract the first word of "objdump", so it can be a program name with args.
  6479. set dummy objdump; ac_word=$2
  6480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6481. $as_echo_n "checking for $ac_word... " >&6; }
  6482. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6483. $as_echo_n "(cached) " >&6
  6484. else
  6485. if test -n "$ac_ct_OBJDUMP"; then
  6486. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6487. else
  6488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6489. for as_dir in $PATH
  6490. do
  6491. IFS=$as_save_IFS
  6492. test -z "$as_dir" && as_dir=.
  6493. for ac_exec_ext in '' $ac_executable_extensions; do
  6494. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6495. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6496. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6497. break 2
  6498. fi
  6499. done
  6500. done
  6501. IFS=$as_save_IFS
  6502. fi
  6503. fi
  6504. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6505. if test -n "$ac_ct_OBJDUMP"; then
  6506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6507. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6508. else
  6509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6510. $as_echo "no" >&6; }
  6511. fi
  6512. if test "x$ac_ct_OBJDUMP" = x; then
  6513. OBJDUMP="false"
  6514. else
  6515. case $cross_compiling:$ac_tool_warned in
  6516. yes:)
  6517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6518. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6519. ac_tool_warned=yes ;;
  6520. esac
  6521. OBJDUMP=$ac_ct_OBJDUMP
  6522. fi
  6523. else
  6524. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6525. fi
  6526. ;;
  6527. esac
  6528. test -z "$AS" && AS=as
  6529. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6530. test -z "$OBJDUMP" && OBJDUMP=objdump
  6531. enable_dlopen=no
  6532. # Check whether --enable-shared was given.
  6533. if test "${enable_shared+set}" = set; then :
  6534. enableval=$enable_shared; p=${PACKAGE-default}
  6535. case $enableval in
  6536. yes) enable_shared=yes ;;
  6537. no) enable_shared=no ;;
  6538. *)
  6539. enable_shared=no
  6540. # Look at the argument we got. We use all the common list separators.
  6541. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6542. for pkg in $enableval; do
  6543. IFS="$lt_save_ifs"
  6544. if test "X$pkg" = "X$p"; then
  6545. enable_shared=yes
  6546. fi
  6547. done
  6548. IFS="$lt_save_ifs"
  6549. ;;
  6550. esac
  6551. else
  6552. enable_shared=yes
  6553. fi
  6554. # Check whether --enable-static was given.
  6555. if test "${enable_static+set}" = set; then :
  6556. enableval=$enable_static; p=${PACKAGE-default}
  6557. case $enableval in
  6558. yes) enable_static=yes ;;
  6559. no) enable_static=no ;;
  6560. *)
  6561. enable_static=no
  6562. # Look at the argument we got. We use all the common list separators.
  6563. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6564. for pkg in $enableval; do
  6565. IFS="$lt_save_ifs"
  6566. if test "X$pkg" = "X$p"; then
  6567. enable_static=yes
  6568. fi
  6569. done
  6570. IFS="$lt_save_ifs"
  6571. ;;
  6572. esac
  6573. else
  6574. enable_static=yes
  6575. fi
  6576. # Check whether --with-pic was given.
  6577. if test "${with_pic+set}" = set; then :
  6578. withval=$with_pic; lt_p=${PACKAGE-default}
  6579. case $withval in
  6580. yes|no) pic_mode=$withval ;;
  6581. *)
  6582. pic_mode=default
  6583. # Look at the argument we got. We use all the common list separators.
  6584. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6585. for lt_pkg in $withval; do
  6586. IFS="$lt_save_ifs"
  6587. if test "X$lt_pkg" = "X$lt_p"; then
  6588. pic_mode=yes
  6589. fi
  6590. done
  6591. IFS="$lt_save_ifs"
  6592. ;;
  6593. esac
  6594. else
  6595. pic_mode=default
  6596. fi
  6597. test -z "$pic_mode" && pic_mode=default
  6598. # Check whether --enable-fast-install was given.
  6599. if test "${enable_fast_install+set}" = set; then :
  6600. enableval=$enable_fast_install; p=${PACKAGE-default}
  6601. case $enableval in
  6602. yes) enable_fast_install=yes ;;
  6603. no) enable_fast_install=no ;;
  6604. *)
  6605. enable_fast_install=no
  6606. # Look at the argument we got. We use all the common list separators.
  6607. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6608. for pkg in $enableval; do
  6609. IFS="$lt_save_ifs"
  6610. if test "X$pkg" = "X$p"; then
  6611. enable_fast_install=yes
  6612. fi
  6613. done
  6614. IFS="$lt_save_ifs"
  6615. ;;
  6616. esac
  6617. else
  6618. enable_fast_install=yes
  6619. fi
  6620. # This can be used to rebuild libtool when needed
  6621. LIBTOOL_DEPS="$ltmain"
  6622. # Always use our own libtool.
  6623. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6624. test -z "$LN_S" && LN_S="ln -s"
  6625. if test -n "${ZSH_VERSION+set}" ; then
  6626. setopt NO_GLOB_SUBST
  6627. fi
  6628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6629. $as_echo_n "checking for objdir... " >&6; }
  6630. if ${lt_cv_objdir+:} false; then :
  6631. $as_echo_n "(cached) " >&6
  6632. else
  6633. rm -f .libs 2>/dev/null
  6634. mkdir .libs 2>/dev/null
  6635. if test -d .libs; then
  6636. lt_cv_objdir=.libs
  6637. else
  6638. # MS-DOS does not allow filenames that begin with a dot.
  6639. lt_cv_objdir=_libs
  6640. fi
  6641. rmdir .libs 2>/dev/null
  6642. fi
  6643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6644. $as_echo "$lt_cv_objdir" >&6; }
  6645. objdir=$lt_cv_objdir
  6646. cat >>confdefs.h <<_ACEOF
  6647. #define LT_OBJDIR "$lt_cv_objdir/"
  6648. _ACEOF
  6649. case $host_os in
  6650. aix3*)
  6651. # AIX sometimes has problems with the GCC collect2 program. For some
  6652. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6653. # vanish in a puff of smoke.
  6654. if test "X${COLLECT_NAMES+set}" != Xset; then
  6655. COLLECT_NAMES=
  6656. export COLLECT_NAMES
  6657. fi
  6658. ;;
  6659. esac
  6660. # Global variables:
  6661. ofile=libtool
  6662. can_build_shared=yes
  6663. # All known linkers require a `.a' archive for static linking (except MSVC,
  6664. # which needs '.lib').
  6665. libext=a
  6666. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6667. old_CC="$CC"
  6668. old_CFLAGS="$CFLAGS"
  6669. # Set sane defaults for various variables
  6670. test -z "$CC" && CC=cc
  6671. test -z "$LTCC" && LTCC=$CC
  6672. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6673. test -z "$LD" && LD=ld
  6674. test -z "$ac_objext" && ac_objext=o
  6675. for cc_temp in $compiler""; do
  6676. case $cc_temp in
  6677. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6678. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6679. \-*) ;;
  6680. *) break;;
  6681. esac
  6682. done
  6683. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6684. # Only perform the check for file, if the check method requires it
  6685. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6686. case $deplibs_check_method in
  6687. file_magic*)
  6688. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6690. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6691. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6692. $as_echo_n "(cached) " >&6
  6693. else
  6694. case $MAGIC_CMD in
  6695. [\\/*] | ?:[\\/]*)
  6696. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6697. ;;
  6698. *)
  6699. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6700. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6701. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6702. for ac_dir in $ac_dummy; do
  6703. IFS="$lt_save_ifs"
  6704. test -z "$ac_dir" && ac_dir=.
  6705. if test -f $ac_dir/${ac_tool_prefix}file; then
  6706. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6707. if test -n "$file_magic_test_file"; then
  6708. case $deplibs_check_method in
  6709. "file_magic "*)
  6710. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6711. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6712. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6713. $EGREP "$file_magic_regex" > /dev/null; then
  6714. :
  6715. else
  6716. cat <<_LT_EOF 1>&2
  6717. *** Warning: the command libtool uses to detect shared libraries,
  6718. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6719. *** The result is that libtool may fail to recognize shared libraries
  6720. *** as such. This will affect the creation of libtool libraries that
  6721. *** depend on shared libraries, but programs linked with such libtool
  6722. *** libraries will work regardless of this problem. Nevertheless, you
  6723. *** may want to report the problem to your system manager and/or to
  6724. *** bug-libtool@gnu.org
  6725. _LT_EOF
  6726. fi ;;
  6727. esac
  6728. fi
  6729. break
  6730. fi
  6731. done
  6732. IFS="$lt_save_ifs"
  6733. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6734. ;;
  6735. esac
  6736. fi
  6737. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6738. if test -n "$MAGIC_CMD"; then
  6739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6740. $as_echo "$MAGIC_CMD" >&6; }
  6741. else
  6742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6743. $as_echo "no" >&6; }
  6744. fi
  6745. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6746. if test -n "$ac_tool_prefix"; then
  6747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6748. $as_echo_n "checking for file... " >&6; }
  6749. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6750. $as_echo_n "(cached) " >&6
  6751. else
  6752. case $MAGIC_CMD in
  6753. [\\/*] | ?:[\\/]*)
  6754. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6755. ;;
  6756. *)
  6757. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6758. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6759. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6760. for ac_dir in $ac_dummy; do
  6761. IFS="$lt_save_ifs"
  6762. test -z "$ac_dir" && ac_dir=.
  6763. if test -f $ac_dir/file; then
  6764. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6765. if test -n "$file_magic_test_file"; then
  6766. case $deplibs_check_method in
  6767. "file_magic "*)
  6768. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6769. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6770. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6771. $EGREP "$file_magic_regex" > /dev/null; then
  6772. :
  6773. else
  6774. cat <<_LT_EOF 1>&2
  6775. *** Warning: the command libtool uses to detect shared libraries,
  6776. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6777. *** The result is that libtool may fail to recognize shared libraries
  6778. *** as such. This will affect the creation of libtool libraries that
  6779. *** depend on shared libraries, but programs linked with such libtool
  6780. *** libraries will work regardless of this problem. Nevertheless, you
  6781. *** may want to report the problem to your system manager and/or to
  6782. *** bug-libtool@gnu.org
  6783. _LT_EOF
  6784. fi ;;
  6785. esac
  6786. fi
  6787. break
  6788. fi
  6789. done
  6790. IFS="$lt_save_ifs"
  6791. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6792. ;;
  6793. esac
  6794. fi
  6795. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6796. if test -n "$MAGIC_CMD"; then
  6797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6798. $as_echo "$MAGIC_CMD" >&6; }
  6799. else
  6800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6801. $as_echo "no" >&6; }
  6802. fi
  6803. else
  6804. MAGIC_CMD=:
  6805. fi
  6806. fi
  6807. fi
  6808. ;;
  6809. esac
  6810. # Use C for the default configuration in the libtool script
  6811. lt_save_CC="$CC"
  6812. ac_ext=c
  6813. ac_cpp='$CPP $CPPFLAGS'
  6814. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6815. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6816. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6817. # Source file extension for C test sources.
  6818. ac_ext=c
  6819. # Object file extension for compiled C test sources.
  6820. objext=o
  6821. objext=$objext
  6822. # Code to be used in simple compile tests
  6823. lt_simple_compile_test_code="int some_variable = 0;"
  6824. # Code to be used in simple link tests
  6825. lt_simple_link_test_code='int main(){return(0);}'
  6826. # If no C compiler was specified, use CC.
  6827. LTCC=${LTCC-"$CC"}
  6828. # If no C compiler flags were specified, use CFLAGS.
  6829. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6830. # Allow CC to be a program name with arguments.
  6831. compiler=$CC
  6832. # Save the default compiler, since it gets overwritten when the other
  6833. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6834. compiler_DEFAULT=$CC
  6835. # save warnings/boilerplate of simple test code
  6836. ac_outfile=conftest.$ac_objext
  6837. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6838. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6839. _lt_compiler_boilerplate=`cat conftest.err`
  6840. $RM conftest*
  6841. ac_outfile=conftest.$ac_objext
  6842. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6843. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6844. _lt_linker_boilerplate=`cat conftest.err`
  6845. $RM -r conftest*
  6846. ## CAVEAT EMPTOR:
  6847. ## There is no encapsulation within the following macros, do not change
  6848. ## the running order or otherwise move them around unless you know exactly
  6849. ## what you are doing...
  6850. if test -n "$compiler"; then
  6851. lt_prog_compiler_no_builtin_flag=
  6852. if test "$GCC" = yes; then
  6853. case $cc_basename in
  6854. nvcc*)
  6855. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6856. *)
  6857. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6858. esac
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6860. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6861. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6862. $as_echo_n "(cached) " >&6
  6863. else
  6864. lt_cv_prog_compiler_rtti_exceptions=no
  6865. ac_outfile=conftest.$ac_objext
  6866. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6867. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6868. # Insert the option either (1) after the last *FLAGS variable, or
  6869. # (2) before a word containing "conftest.", or (3) at the end.
  6870. # Note that $ac_compile itself does not contain backslashes and begins
  6871. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6872. # The option is referenced via a variable to avoid confusing sed.
  6873. lt_compile=`echo "$ac_compile" | $SED \
  6874. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6875. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6876. -e 's:$: $lt_compiler_flag:'`
  6877. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6878. (eval "$lt_compile" 2>conftest.err)
  6879. ac_status=$?
  6880. cat conftest.err >&5
  6881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6882. if (exit $ac_status) && test -s "$ac_outfile"; then
  6883. # The compiler can only warn and ignore the option if not recognized
  6884. # So say no if there are warnings other than the usual output.
  6885. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6886. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6887. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6888. lt_cv_prog_compiler_rtti_exceptions=yes
  6889. fi
  6890. fi
  6891. $RM conftest*
  6892. fi
  6893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6894. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6895. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6896. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6897. else
  6898. :
  6899. fi
  6900. fi
  6901. lt_prog_compiler_wl=
  6902. lt_prog_compiler_pic=
  6903. lt_prog_compiler_static=
  6904. if test "$GCC" = yes; then
  6905. lt_prog_compiler_wl='-Wl,'
  6906. lt_prog_compiler_static='-static'
  6907. case $host_os in
  6908. aix*)
  6909. # All AIX code is PIC.
  6910. if test "$host_cpu" = ia64; then
  6911. # AIX 5 now supports IA64 processor
  6912. lt_prog_compiler_static='-Bstatic'
  6913. fi
  6914. ;;
  6915. amigaos*)
  6916. case $host_cpu in
  6917. powerpc)
  6918. # see comment about AmigaOS4 .so support
  6919. lt_prog_compiler_pic='-fPIC'
  6920. ;;
  6921. m68k)
  6922. # FIXME: we need at least 68020 code to build shared libraries, but
  6923. # adding the `-m68020' flag to GCC prevents building anything better,
  6924. # like `-m68040'.
  6925. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6926. ;;
  6927. esac
  6928. ;;
  6929. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6930. # PIC is the default for these OSes.
  6931. ;;
  6932. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6933. # This hack is so that the source file can tell whether it is being
  6934. # built for inclusion in a dll (and should export symbols for example).
  6935. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6936. # (--disable-auto-import) libraries
  6937. lt_prog_compiler_pic='-DDLL_EXPORT'
  6938. ;;
  6939. darwin* | rhapsody*)
  6940. # PIC is the default on this platform
  6941. # Common symbols not allowed in MH_DYLIB files
  6942. lt_prog_compiler_pic='-fno-common'
  6943. ;;
  6944. haiku*)
  6945. # PIC is the default for Haiku.
  6946. # The "-static" flag exists, but is broken.
  6947. lt_prog_compiler_static=
  6948. ;;
  6949. hpux*)
  6950. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6951. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6952. # sets the default TLS model and affects inlining.
  6953. case $host_cpu in
  6954. hppa*64*)
  6955. # +Z the default
  6956. ;;
  6957. *)
  6958. lt_prog_compiler_pic='-fPIC'
  6959. ;;
  6960. esac
  6961. ;;
  6962. interix[3-9]*)
  6963. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6964. # Instead, we relocate shared libraries at runtime.
  6965. ;;
  6966. msdosdjgpp*)
  6967. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6968. # on systems that don't support them.
  6969. lt_prog_compiler_can_build_shared=no
  6970. enable_shared=no
  6971. ;;
  6972. *nto* | *qnx*)
  6973. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6974. # it will coredump.
  6975. lt_prog_compiler_pic='-fPIC -shared'
  6976. ;;
  6977. sysv4*MP*)
  6978. if test -d /usr/nec; then
  6979. lt_prog_compiler_pic=-Kconform_pic
  6980. fi
  6981. ;;
  6982. *)
  6983. lt_prog_compiler_pic='-fPIC'
  6984. ;;
  6985. esac
  6986. case $cc_basename in
  6987. nvcc*) # Cuda Compiler Driver 2.2
  6988. lt_prog_compiler_wl='-Xlinker '
  6989. if test -n "$lt_prog_compiler_pic"; then
  6990. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6991. fi
  6992. ;;
  6993. esac
  6994. else
  6995. # PORTME Check for flag to pass linker flags through the system compiler.
  6996. case $host_os in
  6997. aix*)
  6998. lt_prog_compiler_wl='-Wl,'
  6999. if test "$host_cpu" = ia64; then
  7000. # AIX 5 now supports IA64 processor
  7001. lt_prog_compiler_static='-Bstatic'
  7002. else
  7003. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7004. fi
  7005. ;;
  7006. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7007. # This hack is so that the source file can tell whether it is being
  7008. # built for inclusion in a dll (and should export symbols for example).
  7009. lt_prog_compiler_pic='-DDLL_EXPORT'
  7010. ;;
  7011. hpux9* | hpux10* | hpux11*)
  7012. lt_prog_compiler_wl='-Wl,'
  7013. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7014. # not for PA HP-UX.
  7015. case $host_cpu in
  7016. hppa*64*|ia64*)
  7017. # +Z the default
  7018. ;;
  7019. *)
  7020. lt_prog_compiler_pic='+Z'
  7021. ;;
  7022. esac
  7023. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7024. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7025. ;;
  7026. irix5* | irix6* | nonstopux*)
  7027. lt_prog_compiler_wl='-Wl,'
  7028. # PIC (with -KPIC) is the default.
  7029. lt_prog_compiler_static='-non_shared'
  7030. ;;
  7031. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7032. case $cc_basename in
  7033. # old Intel for x86_64 which still supported -KPIC.
  7034. ecc*)
  7035. lt_prog_compiler_wl='-Wl,'
  7036. lt_prog_compiler_pic='-KPIC'
  7037. lt_prog_compiler_static='-static'
  7038. ;;
  7039. # icc used to be incompatible with GCC.
  7040. # ICC 10 doesn't accept -KPIC any more.
  7041. icc* | ifort*)
  7042. lt_prog_compiler_wl='-Wl,'
  7043. lt_prog_compiler_pic='-fPIC'
  7044. lt_prog_compiler_static='-static'
  7045. ;;
  7046. # Lahey Fortran 8.1.
  7047. lf95*)
  7048. lt_prog_compiler_wl='-Wl,'
  7049. lt_prog_compiler_pic='--shared'
  7050. lt_prog_compiler_static='--static'
  7051. ;;
  7052. nagfor*)
  7053. # NAG Fortran compiler
  7054. lt_prog_compiler_wl='-Wl,-Wl,,'
  7055. lt_prog_compiler_pic='-PIC'
  7056. lt_prog_compiler_static='-Bstatic'
  7057. ;;
  7058. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7059. # Portland Group compilers (*not* the Pentium gcc compiler,
  7060. # which looks to be a dead project)
  7061. lt_prog_compiler_wl='-Wl,'
  7062. lt_prog_compiler_pic='-fpic'
  7063. lt_prog_compiler_static='-Bstatic'
  7064. ;;
  7065. ccc*)
  7066. lt_prog_compiler_wl='-Wl,'
  7067. # All Alpha code is PIC.
  7068. lt_prog_compiler_static='-non_shared'
  7069. ;;
  7070. xl* | bgxl* | bgf* | mpixl*)
  7071. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7072. lt_prog_compiler_wl='-Wl,'
  7073. lt_prog_compiler_pic='-qpic'
  7074. lt_prog_compiler_static='-qstaticlink'
  7075. ;;
  7076. *)
  7077. case `$CC -V 2>&1 | sed 5q` in
  7078. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7079. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7080. lt_prog_compiler_pic='-KPIC'
  7081. lt_prog_compiler_static='-Bstatic'
  7082. lt_prog_compiler_wl=''
  7083. ;;
  7084. *Sun\ F* | *Sun*Fortran*)
  7085. lt_prog_compiler_pic='-KPIC'
  7086. lt_prog_compiler_static='-Bstatic'
  7087. lt_prog_compiler_wl='-Qoption ld '
  7088. ;;
  7089. *Sun\ C*)
  7090. # Sun C 5.9
  7091. lt_prog_compiler_pic='-KPIC'
  7092. lt_prog_compiler_static='-Bstatic'
  7093. lt_prog_compiler_wl='-Wl,'
  7094. ;;
  7095. *Intel*\ [CF]*Compiler*)
  7096. lt_prog_compiler_wl='-Wl,'
  7097. lt_prog_compiler_pic='-fPIC'
  7098. lt_prog_compiler_static='-static'
  7099. ;;
  7100. *Portland\ Group*)
  7101. lt_prog_compiler_wl='-Wl,'
  7102. lt_prog_compiler_pic='-fpic'
  7103. lt_prog_compiler_static='-Bstatic'
  7104. ;;
  7105. esac
  7106. ;;
  7107. esac
  7108. ;;
  7109. newsos6)
  7110. lt_prog_compiler_pic='-KPIC'
  7111. lt_prog_compiler_static='-Bstatic'
  7112. ;;
  7113. *nto* | *qnx*)
  7114. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7115. # it will coredump.
  7116. lt_prog_compiler_pic='-fPIC -shared'
  7117. ;;
  7118. osf3* | osf4* | osf5*)
  7119. lt_prog_compiler_wl='-Wl,'
  7120. # All OSF/1 code is PIC.
  7121. lt_prog_compiler_static='-non_shared'
  7122. ;;
  7123. rdos*)
  7124. lt_prog_compiler_static='-non_shared'
  7125. ;;
  7126. solaris*)
  7127. lt_prog_compiler_pic='-KPIC'
  7128. lt_prog_compiler_static='-Bstatic'
  7129. case $cc_basename in
  7130. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7131. lt_prog_compiler_wl='-Qoption ld ';;
  7132. *)
  7133. lt_prog_compiler_wl='-Wl,';;
  7134. esac
  7135. ;;
  7136. sunos4*)
  7137. lt_prog_compiler_wl='-Qoption ld '
  7138. lt_prog_compiler_pic='-PIC'
  7139. lt_prog_compiler_static='-Bstatic'
  7140. ;;
  7141. sysv4 | sysv4.2uw2* | sysv4.3*)
  7142. lt_prog_compiler_wl='-Wl,'
  7143. lt_prog_compiler_pic='-KPIC'
  7144. lt_prog_compiler_static='-Bstatic'
  7145. ;;
  7146. sysv4*MP*)
  7147. if test -d /usr/nec ;then
  7148. lt_prog_compiler_pic='-Kconform_pic'
  7149. lt_prog_compiler_static='-Bstatic'
  7150. fi
  7151. ;;
  7152. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7153. lt_prog_compiler_wl='-Wl,'
  7154. lt_prog_compiler_pic='-KPIC'
  7155. lt_prog_compiler_static='-Bstatic'
  7156. ;;
  7157. unicos*)
  7158. lt_prog_compiler_wl='-Wl,'
  7159. lt_prog_compiler_can_build_shared=no
  7160. ;;
  7161. uts4*)
  7162. lt_prog_compiler_pic='-pic'
  7163. lt_prog_compiler_static='-Bstatic'
  7164. ;;
  7165. *)
  7166. lt_prog_compiler_can_build_shared=no
  7167. ;;
  7168. esac
  7169. fi
  7170. case $host_os in
  7171. # For platforms which do not support PIC, -DPIC is meaningless:
  7172. *djgpp*)
  7173. lt_prog_compiler_pic=
  7174. ;;
  7175. *)
  7176. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7177. ;;
  7178. esac
  7179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7180. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7181. if ${lt_cv_prog_compiler_pic+:} false; then :
  7182. $as_echo_n "(cached) " >&6
  7183. else
  7184. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7185. fi
  7186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7187. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7188. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7189. #
  7190. # Check to make sure the PIC flag actually works.
  7191. #
  7192. if test -n "$lt_prog_compiler_pic"; then
  7193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7194. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7195. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7196. $as_echo_n "(cached) " >&6
  7197. else
  7198. lt_cv_prog_compiler_pic_works=no
  7199. ac_outfile=conftest.$ac_objext
  7200. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7201. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7202. # Insert the option either (1) after the last *FLAGS variable, or
  7203. # (2) before a word containing "conftest.", or (3) at the end.
  7204. # Note that $ac_compile itself does not contain backslashes and begins
  7205. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7206. # The option is referenced via a variable to avoid confusing sed.
  7207. lt_compile=`echo "$ac_compile" | $SED \
  7208. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7209. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7210. -e 's:$: $lt_compiler_flag:'`
  7211. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7212. (eval "$lt_compile" 2>conftest.err)
  7213. ac_status=$?
  7214. cat conftest.err >&5
  7215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7216. if (exit $ac_status) && test -s "$ac_outfile"; then
  7217. # The compiler can only warn and ignore the option if not recognized
  7218. # So say no if there are warnings other than the usual output.
  7219. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7220. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7221. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7222. lt_cv_prog_compiler_pic_works=yes
  7223. fi
  7224. fi
  7225. $RM conftest*
  7226. fi
  7227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7228. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7229. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7230. case $lt_prog_compiler_pic in
  7231. "" | " "*) ;;
  7232. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7233. esac
  7234. else
  7235. lt_prog_compiler_pic=
  7236. lt_prog_compiler_can_build_shared=no
  7237. fi
  7238. fi
  7239. #
  7240. # Check to make sure the static flag actually works.
  7241. #
  7242. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7244. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7245. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7246. $as_echo_n "(cached) " >&6
  7247. else
  7248. lt_cv_prog_compiler_static_works=no
  7249. save_LDFLAGS="$LDFLAGS"
  7250. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7251. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7252. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7253. # The linker can only warn and ignore the option if not recognized
  7254. # So say no if there are warnings
  7255. if test -s conftest.err; then
  7256. # Append any errors to the config.log.
  7257. cat conftest.err 1>&5
  7258. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7259. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7260. if diff conftest.exp conftest.er2 >/dev/null; then
  7261. lt_cv_prog_compiler_static_works=yes
  7262. fi
  7263. else
  7264. lt_cv_prog_compiler_static_works=yes
  7265. fi
  7266. fi
  7267. $RM -r conftest*
  7268. LDFLAGS="$save_LDFLAGS"
  7269. fi
  7270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7271. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7272. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7273. :
  7274. else
  7275. lt_prog_compiler_static=
  7276. fi
  7277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7278. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7279. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7280. $as_echo_n "(cached) " >&6
  7281. else
  7282. lt_cv_prog_compiler_c_o=no
  7283. $RM -r conftest 2>/dev/null
  7284. mkdir conftest
  7285. cd conftest
  7286. mkdir out
  7287. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7288. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7289. # Insert the option either (1) after the last *FLAGS variable, or
  7290. # (2) before a word containing "conftest.", or (3) at the end.
  7291. # Note that $ac_compile itself does not contain backslashes and begins
  7292. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7293. lt_compile=`echo "$ac_compile" | $SED \
  7294. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7295. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7296. -e 's:$: $lt_compiler_flag:'`
  7297. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7298. (eval "$lt_compile" 2>out/conftest.err)
  7299. ac_status=$?
  7300. cat out/conftest.err >&5
  7301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7302. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7303. then
  7304. # The compiler can only warn and ignore the option if not recognized
  7305. # So say no if there are warnings
  7306. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7307. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7308. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7309. lt_cv_prog_compiler_c_o=yes
  7310. fi
  7311. fi
  7312. chmod u+w . 2>&5
  7313. $RM conftest*
  7314. # SGI C++ compiler will create directory out/ii_files/ for
  7315. # template instantiation
  7316. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7317. $RM out/* && rmdir out
  7318. cd ..
  7319. $RM -r conftest
  7320. $RM conftest*
  7321. fi
  7322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7323. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7325. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7326. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7327. $as_echo_n "(cached) " >&6
  7328. else
  7329. lt_cv_prog_compiler_c_o=no
  7330. $RM -r conftest 2>/dev/null
  7331. mkdir conftest
  7332. cd conftest
  7333. mkdir out
  7334. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7335. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7336. # Insert the option either (1) after the last *FLAGS variable, or
  7337. # (2) before a word containing "conftest.", or (3) at the end.
  7338. # Note that $ac_compile itself does not contain backslashes and begins
  7339. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7340. lt_compile=`echo "$ac_compile" | $SED \
  7341. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7342. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7343. -e 's:$: $lt_compiler_flag:'`
  7344. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7345. (eval "$lt_compile" 2>out/conftest.err)
  7346. ac_status=$?
  7347. cat out/conftest.err >&5
  7348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7349. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7350. then
  7351. # The compiler can only warn and ignore the option if not recognized
  7352. # So say no if there are warnings
  7353. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7354. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7355. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7356. lt_cv_prog_compiler_c_o=yes
  7357. fi
  7358. fi
  7359. chmod u+w . 2>&5
  7360. $RM conftest*
  7361. # SGI C++ compiler will create directory out/ii_files/ for
  7362. # template instantiation
  7363. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7364. $RM out/* && rmdir out
  7365. cd ..
  7366. $RM -r conftest
  7367. $RM conftest*
  7368. fi
  7369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7370. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7371. hard_links="nottested"
  7372. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7373. # do not overwrite the value of need_locks provided by the user
  7374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7375. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7376. hard_links=yes
  7377. $RM conftest*
  7378. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7379. touch conftest.a
  7380. ln conftest.a conftest.b 2>&5 || hard_links=no
  7381. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7383. $as_echo "$hard_links" >&6; }
  7384. if test "$hard_links" = no; then
  7385. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7386. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7387. need_locks=warn
  7388. fi
  7389. else
  7390. need_locks=no
  7391. fi
  7392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7393. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7394. runpath_var=
  7395. allow_undefined_flag=
  7396. always_export_symbols=no
  7397. archive_cmds=
  7398. archive_expsym_cmds=
  7399. compiler_needs_object=no
  7400. enable_shared_with_static_runtimes=no
  7401. export_dynamic_flag_spec=
  7402. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7403. hardcode_automatic=no
  7404. hardcode_direct=no
  7405. hardcode_direct_absolute=no
  7406. hardcode_libdir_flag_spec=
  7407. hardcode_libdir_separator=
  7408. hardcode_minus_L=no
  7409. hardcode_shlibpath_var=unsupported
  7410. inherit_rpath=no
  7411. link_all_deplibs=unknown
  7412. module_cmds=
  7413. module_expsym_cmds=
  7414. old_archive_from_new_cmds=
  7415. old_archive_from_expsyms_cmds=
  7416. thread_safe_flag_spec=
  7417. whole_archive_flag_spec=
  7418. # include_expsyms should be a list of space-separated symbols to be *always*
  7419. # included in the symbol list
  7420. include_expsyms=
  7421. # exclude_expsyms can be an extended regexp of symbols to exclude
  7422. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7423. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7424. # as well as any symbol that contains `d'.
  7425. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7426. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7427. # platforms (ab)use it in PIC code, but their linkers get confused if
  7428. # the symbol is explicitly referenced. Since portable code cannot
  7429. # rely on this symbol name, it's probably fine to never include it in
  7430. # preloaded symbol tables.
  7431. # Exclude shared library initialization/finalization symbols.
  7432. extract_expsyms_cmds=
  7433. case $host_os in
  7434. cygwin* | mingw* | pw32* | cegcc*)
  7435. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7436. # When not using gcc, we currently assume that we are using
  7437. # Microsoft Visual C++.
  7438. if test "$GCC" != yes; then
  7439. with_gnu_ld=no
  7440. fi
  7441. ;;
  7442. interix*)
  7443. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7444. with_gnu_ld=yes
  7445. ;;
  7446. openbsd*)
  7447. with_gnu_ld=no
  7448. ;;
  7449. esac
  7450. ld_shlibs=yes
  7451. # On some targets, GNU ld is compatible enough with the native linker
  7452. # that we're better off using the native interface for both.
  7453. lt_use_gnu_ld_interface=no
  7454. if test "$with_gnu_ld" = yes; then
  7455. case $host_os in
  7456. aix*)
  7457. # The AIX port of GNU ld has always aspired to compatibility
  7458. # with the native linker. However, as the warning in the GNU ld
  7459. # block says, versions before 2.19.5* couldn't really create working
  7460. # shared libraries, regardless of the interface used.
  7461. case `$LD -v 2>&1` in
  7462. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7463. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7464. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7465. *)
  7466. lt_use_gnu_ld_interface=yes
  7467. ;;
  7468. esac
  7469. ;;
  7470. *)
  7471. lt_use_gnu_ld_interface=yes
  7472. ;;
  7473. esac
  7474. fi
  7475. if test "$lt_use_gnu_ld_interface" = yes; then
  7476. # If archive_cmds runs LD, not CC, wlarc should be empty
  7477. wlarc='${wl}'
  7478. # Set some defaults for GNU ld with shared library support. These
  7479. # are reset later if shared libraries are not supported. Putting them
  7480. # here allows them to be overridden if necessary.
  7481. runpath_var=LD_RUN_PATH
  7482. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7483. export_dynamic_flag_spec='${wl}--export-dynamic'
  7484. # ancient GNU ld didn't support --whole-archive et. al.
  7485. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7486. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7487. else
  7488. whole_archive_flag_spec=
  7489. fi
  7490. supports_anon_versioning=no
  7491. case `$LD -v 2>&1` in
  7492. *GNU\ gold*) supports_anon_versioning=yes ;;
  7493. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7494. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7495. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7496. *\ 2.11.*) ;; # other 2.11 versions
  7497. *) supports_anon_versioning=yes ;;
  7498. esac
  7499. # See if GNU ld supports shared libraries.
  7500. case $host_os in
  7501. aix[3-9]*)
  7502. # On AIX/PPC, the GNU linker is very broken
  7503. if test "$host_cpu" != ia64; then
  7504. ld_shlibs=no
  7505. cat <<_LT_EOF 1>&2
  7506. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7507. *** to be unable to reliably create shared libraries on AIX.
  7508. *** Therefore, libtool is disabling shared libraries support. If you
  7509. *** really care for shared libraries, you may want to install binutils
  7510. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7511. *** You will then need to restart the configuration process.
  7512. _LT_EOF
  7513. fi
  7514. ;;
  7515. amigaos*)
  7516. case $host_cpu in
  7517. powerpc)
  7518. # see comment about AmigaOS4 .so support
  7519. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7520. archive_expsym_cmds=''
  7521. ;;
  7522. m68k)
  7523. 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)'
  7524. hardcode_libdir_flag_spec='-L$libdir'
  7525. hardcode_minus_L=yes
  7526. ;;
  7527. esac
  7528. ;;
  7529. beos*)
  7530. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7531. allow_undefined_flag=unsupported
  7532. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7533. # support --undefined. This deserves some investigation. FIXME
  7534. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7535. else
  7536. ld_shlibs=no
  7537. fi
  7538. ;;
  7539. cygwin* | mingw* | pw32* | cegcc*)
  7540. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7541. # as there is no search path for DLLs.
  7542. hardcode_libdir_flag_spec='-L$libdir'
  7543. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7544. allow_undefined_flag=unsupported
  7545. always_export_symbols=no
  7546. enable_shared_with_static_runtimes=yes
  7547. 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'
  7548. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7549. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7550. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7551. # If the export-symbols file already is a .def file (1st line
  7552. # is EXPORTS), use it as is; otherwise, prepend...
  7553. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7554. cp $export_symbols $output_objdir/$soname.def;
  7555. else
  7556. echo EXPORTS > $output_objdir/$soname.def;
  7557. cat $export_symbols >> $output_objdir/$soname.def;
  7558. fi~
  7559. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7560. else
  7561. ld_shlibs=no
  7562. fi
  7563. ;;
  7564. haiku*)
  7565. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7566. link_all_deplibs=yes
  7567. ;;
  7568. interix[3-9]*)
  7569. hardcode_direct=no
  7570. hardcode_shlibpath_var=no
  7571. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7572. export_dynamic_flag_spec='${wl}-E'
  7573. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7574. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7575. # default) and relocated if they conflict, which is a slow very memory
  7576. # consuming and fragmenting process. To avoid this, we pick a random,
  7577. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7578. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7579. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7580. 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'
  7581. ;;
  7582. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7583. tmp_diet=no
  7584. if test "$host_os" = linux-dietlibc; then
  7585. case $cc_basename in
  7586. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7587. esac
  7588. fi
  7589. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7590. && test "$tmp_diet" = no
  7591. then
  7592. tmp_addflag=' $pic_flag'
  7593. tmp_sharedflag='-shared'
  7594. case $cc_basename,$host_cpu in
  7595. pgcc*) # Portland Group C compiler
  7596. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7597. tmp_addflag=' $pic_flag'
  7598. ;;
  7599. pgf77* | pgf90* | pgf95* | pgfortran*)
  7600. # Portland Group f77 and f90 compilers
  7601. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7602. tmp_addflag=' $pic_flag -Mnomain' ;;
  7603. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7604. tmp_addflag=' -i_dynamic' ;;
  7605. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7606. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7607. ifc* | ifort*) # Intel Fortran compiler
  7608. tmp_addflag=' -nofor_main' ;;
  7609. lf95*) # Lahey Fortran 8.1
  7610. whole_archive_flag_spec=
  7611. tmp_sharedflag='--shared' ;;
  7612. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7613. tmp_sharedflag='-qmkshrobj'
  7614. tmp_addflag= ;;
  7615. nvcc*) # Cuda Compiler Driver 2.2
  7616. 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'
  7617. compiler_needs_object=yes
  7618. ;;
  7619. esac
  7620. case `$CC -V 2>&1 | sed 5q` in
  7621. *Sun\ C*) # Sun C 5.9
  7622. 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'
  7623. compiler_needs_object=yes
  7624. tmp_sharedflag='-G' ;;
  7625. *Sun\ F*) # Sun Fortran 8.3
  7626. tmp_sharedflag='-G' ;;
  7627. esac
  7628. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7629. if test "x$supports_anon_versioning" = xyes; then
  7630. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7631. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7632. echo "local: *; };" >> $output_objdir/$libname.ver~
  7633. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7634. fi
  7635. case $cc_basename in
  7636. xlf* | bgf* | bgxlf* | mpixlf*)
  7637. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7638. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7639. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7640. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7641. if test "x$supports_anon_versioning" = xyes; then
  7642. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7643. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7644. echo "local: *; };" >> $output_objdir/$libname.ver~
  7645. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7646. fi
  7647. ;;
  7648. esac
  7649. else
  7650. ld_shlibs=no
  7651. fi
  7652. ;;
  7653. netbsd*)
  7654. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7655. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7656. wlarc=
  7657. else
  7658. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7659. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7660. fi
  7661. ;;
  7662. solaris*)
  7663. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7664. ld_shlibs=no
  7665. cat <<_LT_EOF 1>&2
  7666. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7667. *** create shared libraries on Solaris systems. Therefore, libtool
  7668. *** is disabling shared libraries support. We urge you to upgrade GNU
  7669. *** binutils to release 2.9.1 or newer. Another option is to modify
  7670. *** your PATH or compiler configuration so that the native linker is
  7671. *** used, and then restart.
  7672. _LT_EOF
  7673. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7674. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7675. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7676. else
  7677. ld_shlibs=no
  7678. fi
  7679. ;;
  7680. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7681. case `$LD -v 2>&1` in
  7682. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7683. ld_shlibs=no
  7684. cat <<_LT_EOF 1>&2
  7685. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7686. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7687. *** is disabling shared libraries support. We urge you to upgrade GNU
  7688. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7689. *** your PATH or compiler configuration so that the native linker is
  7690. *** used, and then restart.
  7691. _LT_EOF
  7692. ;;
  7693. *)
  7694. # For security reasons, it is highly recommended that you always
  7695. # use absolute paths for naming shared libraries, and exclude the
  7696. # DT_RUNPATH tag from executables and libraries. But doing so
  7697. # requires that you compile everything twice, which is a pain.
  7698. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7699. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7700. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7701. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7702. else
  7703. ld_shlibs=no
  7704. fi
  7705. ;;
  7706. esac
  7707. ;;
  7708. sunos4*)
  7709. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7710. wlarc=
  7711. hardcode_direct=yes
  7712. hardcode_shlibpath_var=no
  7713. ;;
  7714. *)
  7715. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7716. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7717. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7718. else
  7719. ld_shlibs=no
  7720. fi
  7721. ;;
  7722. esac
  7723. if test "$ld_shlibs" = no; then
  7724. runpath_var=
  7725. hardcode_libdir_flag_spec=
  7726. export_dynamic_flag_spec=
  7727. whole_archive_flag_spec=
  7728. fi
  7729. else
  7730. # PORTME fill in a description of your system's linker (not GNU ld)
  7731. case $host_os in
  7732. aix3*)
  7733. allow_undefined_flag=unsupported
  7734. always_export_symbols=yes
  7735. 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'
  7736. # Note: this linker hardcodes the directories in LIBPATH if there
  7737. # are no directories specified by -L.
  7738. hardcode_minus_L=yes
  7739. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7740. # Neither direct hardcoding nor static linking is supported with a
  7741. # broken collect2.
  7742. hardcode_direct=unsupported
  7743. fi
  7744. ;;
  7745. aix[4-9]*)
  7746. if test "$host_cpu" = ia64; then
  7747. # On IA64, the linker does run time linking by default, so we don't
  7748. # have to do anything special.
  7749. aix_use_runtimelinking=no
  7750. exp_sym_flag='-Bexport'
  7751. no_entry_flag=""
  7752. else
  7753. # If we're using GNU nm, then we don't want the "-C" option.
  7754. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7755. # Also, AIX nm treats weak defined symbols like other global
  7756. # defined symbols, whereas GNU nm marks them as "W".
  7757. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7758. 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'
  7759. else
  7760. 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'
  7761. fi
  7762. aix_use_runtimelinking=no
  7763. # Test if we are trying to use run time linking or normal
  7764. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7765. # need to do runtime linking.
  7766. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7767. for ld_flag in $LDFLAGS; do
  7768. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7769. aix_use_runtimelinking=yes
  7770. break
  7771. fi
  7772. done
  7773. ;;
  7774. esac
  7775. exp_sym_flag='-bexport'
  7776. no_entry_flag='-bnoentry'
  7777. fi
  7778. # When large executables or shared objects are built, AIX ld can
  7779. # have problems creating the table of contents. If linking a library
  7780. # or program results in "error TOC overflow" add -mminimal-toc to
  7781. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7782. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7783. archive_cmds=''
  7784. hardcode_direct=yes
  7785. hardcode_direct_absolute=yes
  7786. hardcode_libdir_separator=':'
  7787. link_all_deplibs=yes
  7788. file_list_spec='${wl}-f,'
  7789. if test "$GCC" = yes; then
  7790. case $host_os in aix4.[012]|aix4.[012].*)
  7791. # We only want to do this on AIX 4.2 and lower, the check
  7792. # below for broken collect2 doesn't work under 4.3+
  7793. collect2name=`${CC} -print-prog-name=collect2`
  7794. if test -f "$collect2name" &&
  7795. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7796. then
  7797. # We have reworked collect2
  7798. :
  7799. else
  7800. # We have old collect2
  7801. hardcode_direct=unsupported
  7802. # It fails to find uninstalled libraries when the uninstalled
  7803. # path is not listed in the libpath. Setting hardcode_minus_L
  7804. # to unsupported forces relinking
  7805. hardcode_minus_L=yes
  7806. hardcode_libdir_flag_spec='-L$libdir'
  7807. hardcode_libdir_separator=
  7808. fi
  7809. ;;
  7810. esac
  7811. shared_flag='-shared'
  7812. if test "$aix_use_runtimelinking" = yes; then
  7813. shared_flag="$shared_flag "'${wl}-G'
  7814. fi
  7815. else
  7816. # not using gcc
  7817. if test "$host_cpu" = ia64; then
  7818. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7819. # chokes on -Wl,-G. The following line is correct:
  7820. shared_flag='-G'
  7821. else
  7822. if test "$aix_use_runtimelinking" = yes; then
  7823. shared_flag='${wl}-G'
  7824. else
  7825. shared_flag='${wl}-bM:SRE'
  7826. fi
  7827. fi
  7828. fi
  7829. export_dynamic_flag_spec='${wl}-bexpall'
  7830. # It seems that -bexpall does not export symbols beginning with
  7831. # underscore (_), so it is better to generate a list of symbols to export.
  7832. always_export_symbols=yes
  7833. if test "$aix_use_runtimelinking" = yes; then
  7834. # Warning - without using the other runtime loading flags (-brtl),
  7835. # -berok will link without error, but may produce a broken library.
  7836. allow_undefined_flag='-berok'
  7837. # Determine the default libpath from the value encoded in an
  7838. # empty executable.
  7839. if test "${lt_cv_aix_libpath+set}" = set; then
  7840. aix_libpath=$lt_cv_aix_libpath
  7841. else
  7842. if ${lt_cv_aix_libpath_+:} false; then :
  7843. $as_echo_n "(cached) " >&6
  7844. else
  7845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7846. /* end confdefs.h. */
  7847. int
  7848. main ()
  7849. {
  7850. ;
  7851. return 0;
  7852. }
  7853. _ACEOF
  7854. if ac_fn_c_try_link "$LINENO"; then :
  7855. lt_aix_libpath_sed='
  7856. /Import File Strings/,/^$/ {
  7857. /^0/ {
  7858. s/^0 *\([^ ]*\) *$/\1/
  7859. p
  7860. }
  7861. }'
  7862. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7863. # Check for a 64-bit object if we didn't find anything.
  7864. if test -z "$lt_cv_aix_libpath_"; then
  7865. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7866. fi
  7867. fi
  7868. rm -f core conftest.err conftest.$ac_objext \
  7869. conftest$ac_exeext conftest.$ac_ext
  7870. if test -z "$lt_cv_aix_libpath_"; then
  7871. lt_cv_aix_libpath_="/usr/lib:/lib"
  7872. fi
  7873. fi
  7874. aix_libpath=$lt_cv_aix_libpath_
  7875. fi
  7876. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7877. 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"
  7878. else
  7879. if test "$host_cpu" = ia64; then
  7880. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7881. allow_undefined_flag="-z nodefs"
  7882. 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"
  7883. else
  7884. # Determine the default libpath from the value encoded in an
  7885. # empty executable.
  7886. if test "${lt_cv_aix_libpath+set}" = set; then
  7887. aix_libpath=$lt_cv_aix_libpath
  7888. else
  7889. if ${lt_cv_aix_libpath_+:} false; then :
  7890. $as_echo_n "(cached) " >&6
  7891. else
  7892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7893. /* end confdefs.h. */
  7894. int
  7895. main ()
  7896. {
  7897. ;
  7898. return 0;
  7899. }
  7900. _ACEOF
  7901. if ac_fn_c_try_link "$LINENO"; then :
  7902. lt_aix_libpath_sed='
  7903. /Import File Strings/,/^$/ {
  7904. /^0/ {
  7905. s/^0 *\([^ ]*\) *$/\1/
  7906. p
  7907. }
  7908. }'
  7909. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7910. # Check for a 64-bit object if we didn't find anything.
  7911. if test -z "$lt_cv_aix_libpath_"; then
  7912. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7913. fi
  7914. fi
  7915. rm -f core conftest.err conftest.$ac_objext \
  7916. conftest$ac_exeext conftest.$ac_ext
  7917. if test -z "$lt_cv_aix_libpath_"; then
  7918. lt_cv_aix_libpath_="/usr/lib:/lib"
  7919. fi
  7920. fi
  7921. aix_libpath=$lt_cv_aix_libpath_
  7922. fi
  7923. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7924. # Warning - without using the other run time loading flags,
  7925. # -berok will link without error, but may produce a broken library.
  7926. no_undefined_flag=' ${wl}-bernotok'
  7927. allow_undefined_flag=' ${wl}-berok'
  7928. if test "$with_gnu_ld" = yes; then
  7929. # We only use this code for GNU lds that support --whole-archive.
  7930. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7931. else
  7932. # Exported symbols can be pulled into shared objects from archives
  7933. whole_archive_flag_spec='$convenience'
  7934. fi
  7935. archive_cmds_need_lc=yes
  7936. # This is similar to how AIX traditionally builds its shared libraries.
  7937. 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'
  7938. fi
  7939. fi
  7940. ;;
  7941. amigaos*)
  7942. case $host_cpu in
  7943. powerpc)
  7944. # see comment about AmigaOS4 .so support
  7945. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7946. archive_expsym_cmds=''
  7947. ;;
  7948. m68k)
  7949. 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)'
  7950. hardcode_libdir_flag_spec='-L$libdir'
  7951. hardcode_minus_L=yes
  7952. ;;
  7953. esac
  7954. ;;
  7955. bsdi[45]*)
  7956. export_dynamic_flag_spec=-rdynamic
  7957. ;;
  7958. cygwin* | mingw* | pw32* | cegcc*)
  7959. # When not using gcc, we currently assume that we are using
  7960. # Microsoft Visual C++.
  7961. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7962. # no search path for DLLs.
  7963. case $cc_basename in
  7964. cl*)
  7965. # Native MSVC
  7966. hardcode_libdir_flag_spec=' '
  7967. allow_undefined_flag=unsupported
  7968. always_export_symbols=yes
  7969. file_list_spec='@'
  7970. # Tell ltmain to make .lib files, not .a files.
  7971. libext=lib
  7972. # Tell ltmain to make .dll files, not .so files.
  7973. shrext_cmds=".dll"
  7974. # FIXME: Setting linknames here is a bad hack.
  7975. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7976. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7977. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7978. else
  7979. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7980. fi~
  7981. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7982. linknames='
  7983. # The linker will not automatically build a static lib if we build a DLL.
  7984. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7985. enable_shared_with_static_runtimes=yes
  7986. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7987. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7988. # Don't use ranlib
  7989. old_postinstall_cmds='chmod 644 $oldlib'
  7990. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7991. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7992. case $lt_outputfile in
  7993. *.exe|*.EXE) ;;
  7994. *)
  7995. lt_outputfile="$lt_outputfile.exe"
  7996. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7997. ;;
  7998. esac~
  7999. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8000. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8001. $RM "$lt_outputfile.manifest";
  8002. fi'
  8003. ;;
  8004. *)
  8005. # Assume MSVC wrapper
  8006. hardcode_libdir_flag_spec=' '
  8007. allow_undefined_flag=unsupported
  8008. # Tell ltmain to make .lib files, not .a files.
  8009. libext=lib
  8010. # Tell ltmain to make .dll files, not .so files.
  8011. shrext_cmds=".dll"
  8012. # FIXME: Setting linknames here is a bad hack.
  8013. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8014. # The linker will automatically build a .lib file if we build a DLL.
  8015. old_archive_from_new_cmds='true'
  8016. # FIXME: Should let the user specify the lib program.
  8017. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8018. enable_shared_with_static_runtimes=yes
  8019. ;;
  8020. esac
  8021. ;;
  8022. darwin* | rhapsody*)
  8023. archive_cmds_need_lc=no
  8024. hardcode_direct=no
  8025. hardcode_automatic=yes
  8026. hardcode_shlibpath_var=unsupported
  8027. if test "$lt_cv_ld_force_load" = "yes"; then
  8028. 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\"`'
  8029. else
  8030. whole_archive_flag_spec=''
  8031. fi
  8032. link_all_deplibs=yes
  8033. allow_undefined_flag="$_lt_dar_allow_undefined"
  8034. case $cc_basename in
  8035. ifort*) _lt_dar_can_shared=yes ;;
  8036. *) _lt_dar_can_shared=$GCC ;;
  8037. esac
  8038. if test "$_lt_dar_can_shared" = "yes"; then
  8039. output_verbose_link_cmd=func_echo_all
  8040. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8041. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8042. 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}"
  8043. 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}"
  8044. else
  8045. ld_shlibs=no
  8046. fi
  8047. ;;
  8048. dgux*)
  8049. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8050. hardcode_libdir_flag_spec='-L$libdir'
  8051. hardcode_shlibpath_var=no
  8052. ;;
  8053. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8054. # support. Future versions do this automatically, but an explicit c++rt0.o
  8055. # does not break anything, and helps significantly (at the cost of a little
  8056. # extra space).
  8057. freebsd2.2*)
  8058. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8059. hardcode_libdir_flag_spec='-R$libdir'
  8060. hardcode_direct=yes
  8061. hardcode_shlibpath_var=no
  8062. ;;
  8063. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8064. freebsd2.*)
  8065. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8066. hardcode_direct=yes
  8067. hardcode_minus_L=yes
  8068. hardcode_shlibpath_var=no
  8069. ;;
  8070. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8071. freebsd* | dragonfly*)
  8072. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8073. hardcode_libdir_flag_spec='-R$libdir'
  8074. hardcode_direct=yes
  8075. hardcode_shlibpath_var=no
  8076. ;;
  8077. hpux9*)
  8078. if test "$GCC" = yes; then
  8079. 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'
  8080. else
  8081. 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'
  8082. fi
  8083. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8084. hardcode_libdir_separator=:
  8085. hardcode_direct=yes
  8086. # hardcode_minus_L: Not really in the search PATH,
  8087. # but as the default location of the library.
  8088. hardcode_minus_L=yes
  8089. export_dynamic_flag_spec='${wl}-E'
  8090. ;;
  8091. hpux10*)
  8092. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8093. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8094. else
  8095. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8096. fi
  8097. if test "$with_gnu_ld" = no; then
  8098. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8099. hardcode_libdir_separator=:
  8100. hardcode_direct=yes
  8101. hardcode_direct_absolute=yes
  8102. export_dynamic_flag_spec='${wl}-E'
  8103. # hardcode_minus_L: Not really in the search PATH,
  8104. # but as the default location of the library.
  8105. hardcode_minus_L=yes
  8106. fi
  8107. ;;
  8108. hpux11*)
  8109. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8110. case $host_cpu in
  8111. hppa*64*)
  8112. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8113. ;;
  8114. ia64*)
  8115. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8116. ;;
  8117. *)
  8118. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8119. ;;
  8120. esac
  8121. else
  8122. case $host_cpu in
  8123. hppa*64*)
  8124. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8125. ;;
  8126. ia64*)
  8127. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8128. ;;
  8129. *)
  8130. # Older versions of the 11.00 compiler do not understand -b yet
  8131. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8133. $as_echo_n "checking if $CC understands -b... " >&6; }
  8134. if ${lt_cv_prog_compiler__b+:} false; then :
  8135. $as_echo_n "(cached) " >&6
  8136. else
  8137. lt_cv_prog_compiler__b=no
  8138. save_LDFLAGS="$LDFLAGS"
  8139. LDFLAGS="$LDFLAGS -b"
  8140. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8141. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8142. # The linker can only warn and ignore the option if not recognized
  8143. # So say no if there are warnings
  8144. if test -s conftest.err; then
  8145. # Append any errors to the config.log.
  8146. cat conftest.err 1>&5
  8147. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8148. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8149. if diff conftest.exp conftest.er2 >/dev/null; then
  8150. lt_cv_prog_compiler__b=yes
  8151. fi
  8152. else
  8153. lt_cv_prog_compiler__b=yes
  8154. fi
  8155. fi
  8156. $RM -r conftest*
  8157. LDFLAGS="$save_LDFLAGS"
  8158. fi
  8159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8160. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8161. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8162. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8163. else
  8164. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8165. fi
  8166. ;;
  8167. esac
  8168. fi
  8169. if test "$with_gnu_ld" = no; then
  8170. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8171. hardcode_libdir_separator=:
  8172. case $host_cpu in
  8173. hppa*64*|ia64*)
  8174. hardcode_direct=no
  8175. hardcode_shlibpath_var=no
  8176. ;;
  8177. *)
  8178. hardcode_direct=yes
  8179. hardcode_direct_absolute=yes
  8180. export_dynamic_flag_spec='${wl}-E'
  8181. # hardcode_minus_L: Not really in the search PATH,
  8182. # but as the default location of the library.
  8183. hardcode_minus_L=yes
  8184. ;;
  8185. esac
  8186. fi
  8187. ;;
  8188. irix5* | irix6* | nonstopux*)
  8189. if test "$GCC" = yes; then
  8190. 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'
  8191. # Try to use the -exported_symbol ld option, if it does not
  8192. # work, assume that -exports_file does not work either and
  8193. # implicitly export all symbols.
  8194. # This should be the same for all languages, so no per-tag cache variable.
  8195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8196. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8197. if ${lt_cv_irix_exported_symbol+:} false; then :
  8198. $as_echo_n "(cached) " >&6
  8199. else
  8200. save_LDFLAGS="$LDFLAGS"
  8201. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8203. /* end confdefs.h. */
  8204. int foo (void) { return 0; }
  8205. _ACEOF
  8206. if ac_fn_c_try_link "$LINENO"; then :
  8207. lt_cv_irix_exported_symbol=yes
  8208. else
  8209. lt_cv_irix_exported_symbol=no
  8210. fi
  8211. rm -f core conftest.err conftest.$ac_objext \
  8212. conftest$ac_exeext conftest.$ac_ext
  8213. LDFLAGS="$save_LDFLAGS"
  8214. fi
  8215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8216. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8217. if test "$lt_cv_irix_exported_symbol" = yes; then
  8218. 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'
  8219. fi
  8220. else
  8221. 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'
  8222. 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'
  8223. fi
  8224. archive_cmds_need_lc='no'
  8225. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8226. hardcode_libdir_separator=:
  8227. inherit_rpath=yes
  8228. link_all_deplibs=yes
  8229. ;;
  8230. netbsd*)
  8231. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8232. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8233. else
  8234. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8235. fi
  8236. hardcode_libdir_flag_spec='-R$libdir'
  8237. hardcode_direct=yes
  8238. hardcode_shlibpath_var=no
  8239. ;;
  8240. newsos6)
  8241. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8242. hardcode_direct=yes
  8243. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8244. hardcode_libdir_separator=:
  8245. hardcode_shlibpath_var=no
  8246. ;;
  8247. *nto* | *qnx*)
  8248. ;;
  8249. openbsd*)
  8250. if test -f /usr/libexec/ld.so; then
  8251. hardcode_direct=yes
  8252. hardcode_shlibpath_var=no
  8253. hardcode_direct_absolute=yes
  8254. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8255. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8256. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8257. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8258. export_dynamic_flag_spec='${wl}-E'
  8259. else
  8260. case $host_os in
  8261. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8262. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8263. hardcode_libdir_flag_spec='-R$libdir'
  8264. ;;
  8265. *)
  8266. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8267. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8268. ;;
  8269. esac
  8270. fi
  8271. else
  8272. ld_shlibs=no
  8273. fi
  8274. ;;
  8275. os2*)
  8276. hardcode_libdir_flag_spec='-L$libdir'
  8277. hardcode_minus_L=yes
  8278. allow_undefined_flag=unsupported
  8279. 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'
  8280. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8281. ;;
  8282. osf3*)
  8283. if test "$GCC" = yes; then
  8284. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8285. 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'
  8286. else
  8287. allow_undefined_flag=' -expect_unresolved \*'
  8288. 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'
  8289. fi
  8290. archive_cmds_need_lc='no'
  8291. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8292. hardcode_libdir_separator=:
  8293. ;;
  8294. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8295. if test "$GCC" = yes; then
  8296. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8297. 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'
  8298. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8299. else
  8300. allow_undefined_flag=' -expect_unresolved \*'
  8301. 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'
  8302. 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~
  8303. $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'
  8304. # Both c and cxx compiler support -rpath directly
  8305. hardcode_libdir_flag_spec='-rpath $libdir'
  8306. fi
  8307. archive_cmds_need_lc='no'
  8308. hardcode_libdir_separator=:
  8309. ;;
  8310. solaris*)
  8311. no_undefined_flag=' -z defs'
  8312. if test "$GCC" = yes; then
  8313. wlarc='${wl}'
  8314. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$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 -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'
  8317. else
  8318. case `$CC -V 2>&1` in
  8319. *"Compilers 5.0"*)
  8320. wlarc=''
  8321. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8322. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8323. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8324. ;;
  8325. *)
  8326. wlarc='${wl}'
  8327. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8328. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8329. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8330. ;;
  8331. esac
  8332. fi
  8333. hardcode_libdir_flag_spec='-R$libdir'
  8334. hardcode_shlibpath_var=no
  8335. case $host_os in
  8336. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8337. *)
  8338. # The compiler driver will combine and reorder linker options,
  8339. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8340. # but is careful enough not to reorder.
  8341. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8342. if test "$GCC" = yes; then
  8343. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8344. else
  8345. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8346. fi
  8347. ;;
  8348. esac
  8349. link_all_deplibs=yes
  8350. ;;
  8351. sunos4*)
  8352. if test "x$host_vendor" = xsequent; then
  8353. # Use $CC to link under sequent, because it throws in some extra .o
  8354. # files that make .init and .fini sections work.
  8355. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8356. else
  8357. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8358. fi
  8359. hardcode_libdir_flag_spec='-L$libdir'
  8360. hardcode_direct=yes
  8361. hardcode_minus_L=yes
  8362. hardcode_shlibpath_var=no
  8363. ;;
  8364. sysv4)
  8365. case $host_vendor in
  8366. sni)
  8367. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8368. hardcode_direct=yes # is this really true???
  8369. ;;
  8370. siemens)
  8371. ## LD is ld it makes a PLAMLIB
  8372. ## CC just makes a GrossModule.
  8373. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8374. reload_cmds='$CC -r -o $output$reload_objs'
  8375. hardcode_direct=no
  8376. ;;
  8377. motorola)
  8378. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8379. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8380. ;;
  8381. esac
  8382. runpath_var='LD_RUN_PATH'
  8383. hardcode_shlibpath_var=no
  8384. ;;
  8385. sysv4.3*)
  8386. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8387. hardcode_shlibpath_var=no
  8388. export_dynamic_flag_spec='-Bexport'
  8389. ;;
  8390. sysv4*MP*)
  8391. if test -d /usr/nec; then
  8392. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8393. hardcode_shlibpath_var=no
  8394. runpath_var=LD_RUN_PATH
  8395. hardcode_runpath_var=yes
  8396. ld_shlibs=yes
  8397. fi
  8398. ;;
  8399. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8400. no_undefined_flag='${wl}-z,text'
  8401. archive_cmds_need_lc=no
  8402. hardcode_shlibpath_var=no
  8403. runpath_var='LD_RUN_PATH'
  8404. if test "$GCC" = yes; then
  8405. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8406. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8407. else
  8408. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8409. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8410. fi
  8411. ;;
  8412. sysv5* | sco3.2v5* | sco5v6*)
  8413. # Note: We can NOT use -z defs as we might desire, because we do not
  8414. # link with -lc, and that would cause any symbols used from libc to
  8415. # always be unresolved, which means just about no library would
  8416. # ever link correctly. If we're not using GNU ld we use -z text
  8417. # though, which does catch some bad symbols but isn't as heavy-handed
  8418. # as -z defs.
  8419. no_undefined_flag='${wl}-z,text'
  8420. allow_undefined_flag='${wl}-z,nodefs'
  8421. archive_cmds_need_lc=no
  8422. hardcode_shlibpath_var=no
  8423. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8424. hardcode_libdir_separator=':'
  8425. link_all_deplibs=yes
  8426. export_dynamic_flag_spec='${wl}-Bexport'
  8427. runpath_var='LD_RUN_PATH'
  8428. if test "$GCC" = yes; then
  8429. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8430. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8431. else
  8432. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8433. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8434. fi
  8435. ;;
  8436. uts4*)
  8437. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8438. hardcode_libdir_flag_spec='-L$libdir'
  8439. hardcode_shlibpath_var=no
  8440. ;;
  8441. *)
  8442. ld_shlibs=no
  8443. ;;
  8444. esac
  8445. if test x$host_vendor = xsni; then
  8446. case $host in
  8447. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8448. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8449. ;;
  8450. esac
  8451. fi
  8452. fi
  8453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8454. $as_echo "$ld_shlibs" >&6; }
  8455. test "$ld_shlibs" = no && can_build_shared=no
  8456. with_gnu_ld=$with_gnu_ld
  8457. #
  8458. # Do we need to explicitly link libc?
  8459. #
  8460. case "x$archive_cmds_need_lc" in
  8461. x|xyes)
  8462. # Assume -lc should be added
  8463. archive_cmds_need_lc=yes
  8464. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8465. case $archive_cmds in
  8466. *'~'*)
  8467. # FIXME: we may have to deal with multi-command sequences.
  8468. ;;
  8469. '$CC '*)
  8470. # Test whether the compiler implicitly links with -lc since on some
  8471. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8472. # to ld, don't add -lc before -lgcc.
  8473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8474. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8475. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8476. $as_echo_n "(cached) " >&6
  8477. else
  8478. $RM conftest*
  8479. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8480. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8481. (eval $ac_compile) 2>&5
  8482. ac_status=$?
  8483. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8484. test $ac_status = 0; } 2>conftest.err; then
  8485. soname=conftest
  8486. lib=conftest
  8487. libobjs=conftest.$ac_objext
  8488. deplibs=
  8489. wl=$lt_prog_compiler_wl
  8490. pic_flag=$lt_prog_compiler_pic
  8491. compiler_flags=-v
  8492. linker_flags=-v
  8493. verstring=
  8494. output_objdir=.
  8495. libname=conftest
  8496. lt_save_allow_undefined_flag=$allow_undefined_flag
  8497. allow_undefined_flag=
  8498. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8499. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8500. ac_status=$?
  8501. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8502. test $ac_status = 0; }
  8503. then
  8504. lt_cv_archive_cmds_need_lc=no
  8505. else
  8506. lt_cv_archive_cmds_need_lc=yes
  8507. fi
  8508. allow_undefined_flag=$lt_save_allow_undefined_flag
  8509. else
  8510. cat conftest.err 1>&5
  8511. fi
  8512. $RM conftest*
  8513. fi
  8514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8515. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8516. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8517. ;;
  8518. esac
  8519. fi
  8520. ;;
  8521. esac
  8522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8523. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8524. if test "$GCC" = yes; then
  8525. case $host_os in
  8526. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8527. *) lt_awk_arg="/^libraries:/" ;;
  8528. esac
  8529. case $host_os in
  8530. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8531. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8532. esac
  8533. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8534. case $lt_search_path_spec in
  8535. *\;*)
  8536. # if the path contains ";" then we assume it to be the separator
  8537. # otherwise default to the standard path separator (i.e. ":") - it is
  8538. # assumed that no part of a normal pathname contains ";" but that should
  8539. # okay in the real world where ";" in dirpaths is itself problematic.
  8540. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8541. ;;
  8542. *)
  8543. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8544. ;;
  8545. esac
  8546. # Ok, now we have the path, separated by spaces, we can step through it
  8547. # and add multilib dir if necessary...
  8548. lt_tmp_lt_search_path_spec=
  8549. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8550. # ...but if some path already ends with the multilib dir we assume
  8551. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8552. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8553. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8554. lt_multi_os_dir=
  8555. ;;
  8556. esac
  8557. for lt_sys_path in $lt_search_path_spec; do
  8558. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8559. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8560. elif test -n "$lt_multi_os_dir"; then
  8561. test -d "$lt_sys_path" && \
  8562. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8563. fi
  8564. done
  8565. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8566. BEGIN {RS=" "; FS="/|\n";} {
  8567. lt_foo="";
  8568. lt_count=0;
  8569. for (lt_i = NF; lt_i > 0; lt_i--) {
  8570. if ($lt_i != "" && $lt_i != ".") {
  8571. if ($lt_i == "..") {
  8572. lt_count++;
  8573. } else {
  8574. if (lt_count == 0) {
  8575. lt_foo="/" $lt_i lt_foo;
  8576. } else {
  8577. lt_count--;
  8578. }
  8579. }
  8580. }
  8581. }
  8582. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8583. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8584. }'`
  8585. # AWK program above erroneously prepends '/' to C:/dos/paths
  8586. # for these hosts.
  8587. case $host_os in
  8588. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8589. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8590. esac
  8591. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8592. else
  8593. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8594. fi
  8595. library_names_spec=
  8596. libname_spec='lib$name'
  8597. soname_spec=
  8598. shrext_cmds=".so"
  8599. postinstall_cmds=
  8600. postuninstall_cmds=
  8601. finish_cmds=
  8602. finish_eval=
  8603. shlibpath_var=
  8604. shlibpath_overrides_runpath=unknown
  8605. version_type=none
  8606. dynamic_linker="$host_os ld.so"
  8607. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8608. need_lib_prefix=unknown
  8609. hardcode_into_libs=no
  8610. # when you set need_version to no, make sure it does not cause -set_version
  8611. # flags to be left without arguments
  8612. need_version=unknown
  8613. case $host_os in
  8614. aix3*)
  8615. version_type=linux # correct to gnu/linux during the next big refactor
  8616. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8617. shlibpath_var=LIBPATH
  8618. # AIX 3 has no versioning support, so we append a major version to the name.
  8619. soname_spec='${libname}${release}${shared_ext}$major'
  8620. ;;
  8621. aix[4-9]*)
  8622. version_type=linux # correct to gnu/linux during the next big refactor
  8623. need_lib_prefix=no
  8624. need_version=no
  8625. hardcode_into_libs=yes
  8626. if test "$host_cpu" = ia64; then
  8627. # AIX 5 supports IA64
  8628. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8629. shlibpath_var=LD_LIBRARY_PATH
  8630. else
  8631. # With GCC up to 2.95.x, collect2 would create an import file
  8632. # for dependence libraries. The import file would start with
  8633. # the line `#! .'. This would cause the generated library to
  8634. # depend on `.', always an invalid library. This was fixed in
  8635. # development snapshots of GCC prior to 3.0.
  8636. case $host_os in
  8637. aix4 | aix4.[01] | aix4.[01].*)
  8638. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8639. echo ' yes '
  8640. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8641. :
  8642. else
  8643. can_build_shared=no
  8644. fi
  8645. ;;
  8646. esac
  8647. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8648. # soname into executable. Probably we can add versioning support to
  8649. # collect2, so additional links can be useful in future.
  8650. if test "$aix_use_runtimelinking" = yes; then
  8651. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8652. # instead of lib<name>.a to let people know that these are not
  8653. # typical AIX shared libraries.
  8654. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8655. else
  8656. # We preserve .a as extension for shared libraries through AIX4.2
  8657. # and later when we are not doing run time linking.
  8658. library_names_spec='${libname}${release}.a $libname.a'
  8659. soname_spec='${libname}${release}${shared_ext}$major'
  8660. fi
  8661. shlibpath_var=LIBPATH
  8662. fi
  8663. ;;
  8664. amigaos*)
  8665. case $host_cpu in
  8666. powerpc)
  8667. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8668. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8669. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8670. ;;
  8671. m68k)
  8672. library_names_spec='$libname.ixlibrary $libname.a'
  8673. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8674. 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'
  8675. ;;
  8676. esac
  8677. ;;
  8678. beos*)
  8679. library_names_spec='${libname}${shared_ext}'
  8680. dynamic_linker="$host_os ld.so"
  8681. shlibpath_var=LIBRARY_PATH
  8682. ;;
  8683. bsdi[45]*)
  8684. version_type=linux # correct to gnu/linux during the next big refactor
  8685. need_version=no
  8686. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8687. soname_spec='${libname}${release}${shared_ext}$major'
  8688. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8689. shlibpath_var=LD_LIBRARY_PATH
  8690. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8691. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8692. # the default ld.so.conf also contains /usr/contrib/lib and
  8693. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8694. # libtool to hard-code these into programs
  8695. ;;
  8696. cygwin* | mingw* | pw32* | cegcc*)
  8697. version_type=windows
  8698. shrext_cmds=".dll"
  8699. need_version=no
  8700. need_lib_prefix=no
  8701. case $GCC,$cc_basename in
  8702. yes,*)
  8703. # gcc
  8704. library_names_spec='$libname.dll.a'
  8705. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8706. postinstall_cmds='base_file=`basename \${file}`~
  8707. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8708. dldir=$destdir/`dirname \$dlpath`~
  8709. test -d \$dldir || mkdir -p \$dldir~
  8710. $install_prog $dir/$dlname \$dldir/$dlname~
  8711. chmod a+x \$dldir/$dlname~
  8712. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8713. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8714. fi'
  8715. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8716. dlpath=$dir/\$dldll~
  8717. $RM \$dlpath'
  8718. shlibpath_overrides_runpath=yes
  8719. case $host_os in
  8720. cygwin*)
  8721. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8722. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8723. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8724. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8725. ;;
  8726. mingw* | cegcc*)
  8727. # MinGW DLLs use traditional 'lib' prefix
  8728. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8729. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8730. ;;
  8731. pw32*)
  8732. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8733. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8734. ;;
  8735. esac
  8736. dynamic_linker='Win32 ld.exe'
  8737. ;;
  8738. *,cl*)
  8739. # Native MSVC
  8740. libname_spec='$name'
  8741. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8742. library_names_spec='${libname}.dll.lib'
  8743. case $build_os in
  8744. mingw*)
  8745. sys_lib_search_path_spec=
  8746. lt_save_ifs=$IFS
  8747. IFS=';'
  8748. for lt_path in $LIB
  8749. do
  8750. IFS=$lt_save_ifs
  8751. # Let DOS variable expansion print the short 8.3 style file name.
  8752. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8753. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8754. done
  8755. IFS=$lt_save_ifs
  8756. # Convert to MSYS style.
  8757. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8758. ;;
  8759. cygwin*)
  8760. # Convert to unix form, then to dos form, then back to unix form
  8761. # but this time dos style (no spaces!) so that the unix form looks
  8762. # like /cygdrive/c/PROGRA~1:/cygdr...
  8763. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8764. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8765. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8766. ;;
  8767. *)
  8768. sys_lib_search_path_spec="$LIB"
  8769. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8770. # It is most probably a Windows format PATH.
  8771. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8772. else
  8773. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8774. fi
  8775. # FIXME: find the short name or the path components, as spaces are
  8776. # common. (e.g. "Program Files" -> "PROGRA~1")
  8777. ;;
  8778. esac
  8779. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8780. postinstall_cmds='base_file=`basename \${file}`~
  8781. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8782. dldir=$destdir/`dirname \$dlpath`~
  8783. test -d \$dldir || mkdir -p \$dldir~
  8784. $install_prog $dir/$dlname \$dldir/$dlname'
  8785. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8786. dlpath=$dir/\$dldll~
  8787. $RM \$dlpath'
  8788. shlibpath_overrides_runpath=yes
  8789. dynamic_linker='Win32 link.exe'
  8790. ;;
  8791. *)
  8792. # Assume MSVC wrapper
  8793. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8794. dynamic_linker='Win32 ld.exe'
  8795. ;;
  8796. esac
  8797. # FIXME: first we should search . and the directory the executable is in
  8798. shlibpath_var=PATH
  8799. ;;
  8800. darwin* | rhapsody*)
  8801. dynamic_linker="$host_os dyld"
  8802. version_type=darwin
  8803. need_lib_prefix=no
  8804. need_version=no
  8805. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8806. soname_spec='${libname}${release}${major}$shared_ext'
  8807. shlibpath_overrides_runpath=yes
  8808. shlibpath_var=DYLD_LIBRARY_PATH
  8809. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8810. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8811. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8812. ;;
  8813. dgux*)
  8814. version_type=linux # correct to gnu/linux during the next big refactor
  8815. need_lib_prefix=no
  8816. need_version=no
  8817. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8818. soname_spec='${libname}${release}${shared_ext}$major'
  8819. shlibpath_var=LD_LIBRARY_PATH
  8820. ;;
  8821. freebsd* | dragonfly*)
  8822. # DragonFly does not have aout. When/if they implement a new
  8823. # versioning mechanism, adjust this.
  8824. if test -x /usr/bin/objformat; then
  8825. objformat=`/usr/bin/objformat`
  8826. else
  8827. case $host_os in
  8828. freebsd[23].*) objformat=aout ;;
  8829. *) objformat=elf ;;
  8830. esac
  8831. fi
  8832. version_type=freebsd-$objformat
  8833. case $version_type in
  8834. freebsd-elf*)
  8835. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8836. need_version=no
  8837. need_lib_prefix=no
  8838. ;;
  8839. freebsd-*)
  8840. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8841. need_version=yes
  8842. ;;
  8843. esac
  8844. shlibpath_var=LD_LIBRARY_PATH
  8845. case $host_os in
  8846. freebsd2.*)
  8847. shlibpath_overrides_runpath=yes
  8848. ;;
  8849. freebsd3.[01]* | freebsdelf3.[01]*)
  8850. shlibpath_overrides_runpath=yes
  8851. hardcode_into_libs=yes
  8852. ;;
  8853. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8854. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8855. shlibpath_overrides_runpath=no
  8856. hardcode_into_libs=yes
  8857. ;;
  8858. *) # from 4.6 on, and DragonFly
  8859. shlibpath_overrides_runpath=yes
  8860. hardcode_into_libs=yes
  8861. ;;
  8862. esac
  8863. ;;
  8864. gnu*)
  8865. version_type=linux # correct to gnu/linux during the next big refactor
  8866. need_lib_prefix=no
  8867. need_version=no
  8868. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8869. soname_spec='${libname}${release}${shared_ext}$major'
  8870. shlibpath_var=LD_LIBRARY_PATH
  8871. shlibpath_overrides_runpath=no
  8872. hardcode_into_libs=yes
  8873. ;;
  8874. haiku*)
  8875. version_type=linux # correct to gnu/linux during the next big refactor
  8876. need_lib_prefix=no
  8877. need_version=no
  8878. dynamic_linker="$host_os runtime_loader"
  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. shlibpath_var=LIBRARY_PATH
  8882. shlibpath_overrides_runpath=yes
  8883. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8884. hardcode_into_libs=yes
  8885. ;;
  8886. hpux9* | hpux10* | hpux11*)
  8887. # Give a soname corresponding to the major version so that dld.sl refuses to
  8888. # link against other versions.
  8889. version_type=sunos
  8890. need_lib_prefix=no
  8891. need_version=no
  8892. case $host_cpu in
  8893. ia64*)
  8894. shrext_cmds='.so'
  8895. hardcode_into_libs=yes
  8896. dynamic_linker="$host_os dld.so"
  8897. shlibpath_var=LD_LIBRARY_PATH
  8898. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8899. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8900. soname_spec='${libname}${release}${shared_ext}$major'
  8901. if test "X$HPUX_IA64_MODE" = X32; then
  8902. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8903. else
  8904. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8905. fi
  8906. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8907. ;;
  8908. hppa*64*)
  8909. shrext_cmds='.sl'
  8910. hardcode_into_libs=yes
  8911. dynamic_linker="$host_os dld.sl"
  8912. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8913. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8914. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8915. soname_spec='${libname}${release}${shared_ext}$major'
  8916. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8917. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8918. ;;
  8919. *)
  8920. shrext_cmds='.sl'
  8921. dynamic_linker="$host_os dld.sl"
  8922. shlibpath_var=SHLIB_PATH
  8923. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8924. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8925. soname_spec='${libname}${release}${shared_ext}$major'
  8926. ;;
  8927. esac
  8928. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8929. postinstall_cmds='chmod 555 $lib'
  8930. # or fails outright, so override atomically:
  8931. install_override_mode=555
  8932. ;;
  8933. interix[3-9]*)
  8934. version_type=linux # correct to gnu/linux during the next big refactor
  8935. need_lib_prefix=no
  8936. need_version=no
  8937. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8938. soname_spec='${libname}${release}${shared_ext}$major'
  8939. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8940. shlibpath_var=LD_LIBRARY_PATH
  8941. shlibpath_overrides_runpath=no
  8942. hardcode_into_libs=yes
  8943. ;;
  8944. irix5* | irix6* | nonstopux*)
  8945. case $host_os in
  8946. nonstopux*) version_type=nonstopux ;;
  8947. *)
  8948. if test "$lt_cv_prog_gnu_ld" = yes; then
  8949. version_type=linux # correct to gnu/linux during the next big refactor
  8950. else
  8951. version_type=irix
  8952. fi ;;
  8953. esac
  8954. need_lib_prefix=no
  8955. need_version=no
  8956. soname_spec='${libname}${release}${shared_ext}$major'
  8957. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8958. case $host_os in
  8959. irix5* | nonstopux*)
  8960. libsuff= shlibsuff=
  8961. ;;
  8962. *)
  8963. case $LD in # libtool.m4 will add one of these switches to LD
  8964. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8965. libsuff= shlibsuff= libmagic=32-bit;;
  8966. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8967. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8968. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8969. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8970. *) libsuff= shlibsuff= libmagic=never-match;;
  8971. esac
  8972. ;;
  8973. esac
  8974. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8975. shlibpath_overrides_runpath=no
  8976. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8977. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8978. hardcode_into_libs=yes
  8979. ;;
  8980. # No shared lib support for Linux oldld, aout, or coff.
  8981. linux*oldld* | linux*aout* | linux*coff*)
  8982. dynamic_linker=no
  8983. ;;
  8984. # This must be glibc/ELF.
  8985. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8986. version_type=linux # correct to gnu/linux during the next big refactor
  8987. need_lib_prefix=no
  8988. need_version=no
  8989. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8990. soname_spec='${libname}${release}${shared_ext}$major'
  8991. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8992. shlibpath_var=LD_LIBRARY_PATH
  8993. shlibpath_overrides_runpath=no
  8994. # Some binutils ld are patched to set DT_RUNPATH
  8995. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8996. $as_echo_n "(cached) " >&6
  8997. else
  8998. lt_cv_shlibpath_overrides_runpath=no
  8999. save_LDFLAGS=$LDFLAGS
  9000. save_libdir=$libdir
  9001. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9002. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9004. /* end confdefs.h. */
  9005. int
  9006. main ()
  9007. {
  9008. ;
  9009. return 0;
  9010. }
  9011. _ACEOF
  9012. if ac_fn_c_try_link "$LINENO"; then :
  9013. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9014. lt_cv_shlibpath_overrides_runpath=yes
  9015. fi
  9016. fi
  9017. rm -f core conftest.err conftest.$ac_objext \
  9018. conftest$ac_exeext conftest.$ac_ext
  9019. LDFLAGS=$save_LDFLAGS
  9020. libdir=$save_libdir
  9021. fi
  9022. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9023. # This implies no fast_install, which is unacceptable.
  9024. # Some rework will be needed to allow for fast_install
  9025. # before this can be enabled.
  9026. hardcode_into_libs=yes
  9027. # Append ld.so.conf contents to the search path
  9028. if test -f /etc/ld.so.conf; then
  9029. 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' ' '`
  9030. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9031. fi
  9032. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9033. # powerpc, because MkLinux only supported shared libraries with the
  9034. # GNU dynamic linker. Since this was broken with cross compilers,
  9035. # most powerpc-linux boxes support dynamic linking these days and
  9036. # people can always --disable-shared, the test was removed, and we
  9037. # assume the GNU/Linux dynamic linker is in use.
  9038. dynamic_linker='GNU/Linux ld.so'
  9039. ;;
  9040. netbsd*)
  9041. version_type=sunos
  9042. need_lib_prefix=no
  9043. need_version=no
  9044. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9045. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9046. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9047. dynamic_linker='NetBSD (a.out) ld.so'
  9048. else
  9049. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9050. soname_spec='${libname}${release}${shared_ext}$major'
  9051. dynamic_linker='NetBSD ld.elf_so'
  9052. fi
  9053. shlibpath_var=LD_LIBRARY_PATH
  9054. shlibpath_overrides_runpath=yes
  9055. hardcode_into_libs=yes
  9056. ;;
  9057. newsos6)
  9058. version_type=linux # correct to gnu/linux during the next big refactor
  9059. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9060. shlibpath_var=LD_LIBRARY_PATH
  9061. shlibpath_overrides_runpath=yes
  9062. ;;
  9063. *nto* | *qnx*)
  9064. version_type=qnx
  9065. need_lib_prefix=no
  9066. need_version=no
  9067. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9068. soname_spec='${libname}${release}${shared_ext}$major'
  9069. shlibpath_var=LD_LIBRARY_PATH
  9070. shlibpath_overrides_runpath=no
  9071. hardcode_into_libs=yes
  9072. dynamic_linker='ldqnx.so'
  9073. ;;
  9074. openbsd*)
  9075. version_type=sunos
  9076. sys_lib_dlsearch_path_spec="/usr/lib"
  9077. need_lib_prefix=no
  9078. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9079. case $host_os in
  9080. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9081. *) need_version=no ;;
  9082. esac
  9083. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9084. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9085. shlibpath_var=LD_LIBRARY_PATH
  9086. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9087. case $host_os in
  9088. openbsd2.[89] | openbsd2.[89].*)
  9089. shlibpath_overrides_runpath=no
  9090. ;;
  9091. *)
  9092. shlibpath_overrides_runpath=yes
  9093. ;;
  9094. esac
  9095. else
  9096. shlibpath_overrides_runpath=yes
  9097. fi
  9098. ;;
  9099. os2*)
  9100. libname_spec='$name'
  9101. shrext_cmds=".dll"
  9102. need_lib_prefix=no
  9103. library_names_spec='$libname${shared_ext} $libname.a'
  9104. dynamic_linker='OS/2 ld.exe'
  9105. shlibpath_var=LIBPATH
  9106. ;;
  9107. osf3* | osf4* | osf5*)
  9108. version_type=osf
  9109. need_lib_prefix=no
  9110. need_version=no
  9111. soname_spec='${libname}${release}${shared_ext}$major'
  9112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9113. shlibpath_var=LD_LIBRARY_PATH
  9114. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9115. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9116. ;;
  9117. rdos*)
  9118. dynamic_linker=no
  9119. ;;
  9120. solaris*)
  9121. version_type=linux # correct to gnu/linux during the next big refactor
  9122. need_lib_prefix=no
  9123. need_version=no
  9124. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9125. soname_spec='${libname}${release}${shared_ext}$major'
  9126. shlibpath_var=LD_LIBRARY_PATH
  9127. shlibpath_overrides_runpath=yes
  9128. hardcode_into_libs=yes
  9129. # ldd complains unless libraries are executable
  9130. postinstall_cmds='chmod +x $lib'
  9131. ;;
  9132. sunos4*)
  9133. version_type=sunos
  9134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9135. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9136. shlibpath_var=LD_LIBRARY_PATH
  9137. shlibpath_overrides_runpath=yes
  9138. if test "$with_gnu_ld" = yes; then
  9139. need_lib_prefix=no
  9140. fi
  9141. need_version=yes
  9142. ;;
  9143. sysv4 | sysv4.3*)
  9144. version_type=linux # correct to gnu/linux during the next big refactor
  9145. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9146. soname_spec='${libname}${release}${shared_ext}$major'
  9147. shlibpath_var=LD_LIBRARY_PATH
  9148. case $host_vendor in
  9149. sni)
  9150. shlibpath_overrides_runpath=no
  9151. need_lib_prefix=no
  9152. runpath_var=LD_RUN_PATH
  9153. ;;
  9154. siemens)
  9155. need_lib_prefix=no
  9156. ;;
  9157. motorola)
  9158. need_lib_prefix=no
  9159. need_version=no
  9160. shlibpath_overrides_runpath=no
  9161. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9162. ;;
  9163. esac
  9164. ;;
  9165. sysv4*MP*)
  9166. if test -d /usr/nec ;then
  9167. version_type=linux # correct to gnu/linux during the next big refactor
  9168. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9169. soname_spec='$libname${shared_ext}.$major'
  9170. shlibpath_var=LD_LIBRARY_PATH
  9171. fi
  9172. ;;
  9173. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9174. version_type=freebsd-elf
  9175. need_lib_prefix=no
  9176. need_version=no
  9177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9178. soname_spec='${libname}${release}${shared_ext}$major'
  9179. shlibpath_var=LD_LIBRARY_PATH
  9180. shlibpath_overrides_runpath=yes
  9181. hardcode_into_libs=yes
  9182. if test "$with_gnu_ld" = yes; then
  9183. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9184. else
  9185. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9186. case $host_os in
  9187. sco3.2v5*)
  9188. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9189. ;;
  9190. esac
  9191. fi
  9192. sys_lib_dlsearch_path_spec='/usr/lib'
  9193. ;;
  9194. tpf*)
  9195. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9196. version_type=linux # correct to gnu/linux during the next big refactor
  9197. need_lib_prefix=no
  9198. need_version=no
  9199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9200. shlibpath_var=LD_LIBRARY_PATH
  9201. shlibpath_overrides_runpath=no
  9202. hardcode_into_libs=yes
  9203. ;;
  9204. uts4*)
  9205. version_type=linux # correct to gnu/linux during the next big refactor
  9206. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9207. soname_spec='${libname}${release}${shared_ext}$major'
  9208. shlibpath_var=LD_LIBRARY_PATH
  9209. ;;
  9210. *)
  9211. dynamic_linker=no
  9212. ;;
  9213. esac
  9214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9215. $as_echo "$dynamic_linker" >&6; }
  9216. test "$dynamic_linker" = no && can_build_shared=no
  9217. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9218. if test "$GCC" = yes; then
  9219. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9220. fi
  9221. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9222. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9223. fi
  9224. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9225. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9226. fi
  9227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9228. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9229. hardcode_action=
  9230. if test -n "$hardcode_libdir_flag_spec" ||
  9231. test -n "$runpath_var" ||
  9232. test "X$hardcode_automatic" = "Xyes" ; then
  9233. # We can hardcode non-existent directories.
  9234. if test "$hardcode_direct" != no &&
  9235. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9236. # have to relink, otherwise we might link with an installed library
  9237. # when we should be linking with a yet-to-be-installed one
  9238. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9239. test "$hardcode_minus_L" != no; then
  9240. # Linking always hardcodes the temporary library directory.
  9241. hardcode_action=relink
  9242. else
  9243. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9244. hardcode_action=immediate
  9245. fi
  9246. else
  9247. # We cannot hardcode anything, or else we can only hardcode existing
  9248. # directories.
  9249. hardcode_action=unsupported
  9250. fi
  9251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9252. $as_echo "$hardcode_action" >&6; }
  9253. if test "$hardcode_action" = relink ||
  9254. test "$inherit_rpath" = yes; then
  9255. # Fast installation is not supported
  9256. enable_fast_install=no
  9257. elif test "$shlibpath_overrides_runpath" = yes ||
  9258. test "$enable_shared" = no; then
  9259. # Fast installation is not necessary
  9260. enable_fast_install=needless
  9261. fi
  9262. if test "x$enable_dlopen" != xyes; then
  9263. enable_dlopen=unknown
  9264. enable_dlopen_self=unknown
  9265. enable_dlopen_self_static=unknown
  9266. else
  9267. lt_cv_dlopen=no
  9268. lt_cv_dlopen_libs=
  9269. case $host_os in
  9270. beos*)
  9271. lt_cv_dlopen="load_add_on"
  9272. lt_cv_dlopen_libs=
  9273. lt_cv_dlopen_self=yes
  9274. ;;
  9275. mingw* | pw32* | cegcc*)
  9276. lt_cv_dlopen="LoadLibrary"
  9277. lt_cv_dlopen_libs=
  9278. ;;
  9279. cygwin*)
  9280. lt_cv_dlopen="dlopen"
  9281. lt_cv_dlopen_libs=
  9282. ;;
  9283. darwin*)
  9284. # if libdl is installed we need to link against it
  9285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9286. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9287. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9288. $as_echo_n "(cached) " >&6
  9289. else
  9290. ac_check_lib_save_LIBS=$LIBS
  9291. LIBS="-ldl $LIBS"
  9292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9293. /* end confdefs.h. */
  9294. /* Override any GCC internal prototype to avoid an error.
  9295. Use char because int might match the return type of a GCC
  9296. builtin and then its argument prototype would still apply. */
  9297. #ifdef __cplusplus
  9298. extern "C"
  9299. #endif
  9300. char dlopen ();
  9301. int
  9302. main ()
  9303. {
  9304. return dlopen ();
  9305. ;
  9306. return 0;
  9307. }
  9308. _ACEOF
  9309. if ac_fn_c_try_link "$LINENO"; then :
  9310. ac_cv_lib_dl_dlopen=yes
  9311. else
  9312. ac_cv_lib_dl_dlopen=no
  9313. fi
  9314. rm -f core conftest.err conftest.$ac_objext \
  9315. conftest$ac_exeext conftest.$ac_ext
  9316. LIBS=$ac_check_lib_save_LIBS
  9317. fi
  9318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9319. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9320. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9321. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9322. else
  9323. lt_cv_dlopen="dyld"
  9324. lt_cv_dlopen_libs=
  9325. lt_cv_dlopen_self=yes
  9326. fi
  9327. ;;
  9328. *)
  9329. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9330. if test "x$ac_cv_func_shl_load" = xyes; then :
  9331. lt_cv_dlopen="shl_load"
  9332. else
  9333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9334. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9335. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9336. $as_echo_n "(cached) " >&6
  9337. else
  9338. ac_check_lib_save_LIBS=$LIBS
  9339. LIBS="-ldld $LIBS"
  9340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9341. /* end confdefs.h. */
  9342. /* Override any GCC internal prototype to avoid an error.
  9343. Use char because int might match the return type of a GCC
  9344. builtin and then its argument prototype would still apply. */
  9345. #ifdef __cplusplus
  9346. extern "C"
  9347. #endif
  9348. char shl_load ();
  9349. int
  9350. main ()
  9351. {
  9352. return shl_load ();
  9353. ;
  9354. return 0;
  9355. }
  9356. _ACEOF
  9357. if ac_fn_c_try_link "$LINENO"; then :
  9358. ac_cv_lib_dld_shl_load=yes
  9359. else
  9360. ac_cv_lib_dld_shl_load=no
  9361. fi
  9362. rm -f core conftest.err conftest.$ac_objext \
  9363. conftest$ac_exeext conftest.$ac_ext
  9364. LIBS=$ac_check_lib_save_LIBS
  9365. fi
  9366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9367. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9368. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9369. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9370. else
  9371. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9372. if test "x$ac_cv_func_dlopen" = xyes; then :
  9373. lt_cv_dlopen="dlopen"
  9374. else
  9375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9376. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9377. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9378. $as_echo_n "(cached) " >&6
  9379. else
  9380. ac_check_lib_save_LIBS=$LIBS
  9381. LIBS="-ldl $LIBS"
  9382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9383. /* end confdefs.h. */
  9384. /* Override any GCC internal prototype to avoid an error.
  9385. Use char because int might match the return type of a GCC
  9386. builtin and then its argument prototype would still apply. */
  9387. #ifdef __cplusplus
  9388. extern "C"
  9389. #endif
  9390. char dlopen ();
  9391. int
  9392. main ()
  9393. {
  9394. return dlopen ();
  9395. ;
  9396. return 0;
  9397. }
  9398. _ACEOF
  9399. if ac_fn_c_try_link "$LINENO"; then :
  9400. ac_cv_lib_dl_dlopen=yes
  9401. else
  9402. ac_cv_lib_dl_dlopen=no
  9403. fi
  9404. rm -f core conftest.err conftest.$ac_objext \
  9405. conftest$ac_exeext conftest.$ac_ext
  9406. LIBS=$ac_check_lib_save_LIBS
  9407. fi
  9408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9409. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9410. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9411. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9412. else
  9413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9414. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9415. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9416. $as_echo_n "(cached) " >&6
  9417. else
  9418. ac_check_lib_save_LIBS=$LIBS
  9419. LIBS="-lsvld $LIBS"
  9420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9421. /* end confdefs.h. */
  9422. /* Override any GCC internal prototype to avoid an error.
  9423. Use char because int might match the return type of a GCC
  9424. builtin and then its argument prototype would still apply. */
  9425. #ifdef __cplusplus
  9426. extern "C"
  9427. #endif
  9428. char dlopen ();
  9429. int
  9430. main ()
  9431. {
  9432. return dlopen ();
  9433. ;
  9434. return 0;
  9435. }
  9436. _ACEOF
  9437. if ac_fn_c_try_link "$LINENO"; then :
  9438. ac_cv_lib_svld_dlopen=yes
  9439. else
  9440. ac_cv_lib_svld_dlopen=no
  9441. fi
  9442. rm -f core conftest.err conftest.$ac_objext \
  9443. conftest$ac_exeext conftest.$ac_ext
  9444. LIBS=$ac_check_lib_save_LIBS
  9445. fi
  9446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9447. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9448. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9449. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9450. else
  9451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9452. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9453. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9454. $as_echo_n "(cached) " >&6
  9455. else
  9456. ac_check_lib_save_LIBS=$LIBS
  9457. LIBS="-ldld $LIBS"
  9458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9459. /* end confdefs.h. */
  9460. /* Override any GCC internal prototype to avoid an error.
  9461. Use char because int might match the return type of a GCC
  9462. builtin and then its argument prototype would still apply. */
  9463. #ifdef __cplusplus
  9464. extern "C"
  9465. #endif
  9466. char dld_link ();
  9467. int
  9468. main ()
  9469. {
  9470. return dld_link ();
  9471. ;
  9472. return 0;
  9473. }
  9474. _ACEOF
  9475. if ac_fn_c_try_link "$LINENO"; then :
  9476. ac_cv_lib_dld_dld_link=yes
  9477. else
  9478. ac_cv_lib_dld_dld_link=no
  9479. fi
  9480. rm -f core conftest.err conftest.$ac_objext \
  9481. conftest$ac_exeext conftest.$ac_ext
  9482. LIBS=$ac_check_lib_save_LIBS
  9483. fi
  9484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9485. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9486. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9487. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9488. fi
  9489. fi
  9490. fi
  9491. fi
  9492. fi
  9493. fi
  9494. ;;
  9495. esac
  9496. if test "x$lt_cv_dlopen" != xno; then
  9497. enable_dlopen=yes
  9498. else
  9499. enable_dlopen=no
  9500. fi
  9501. case $lt_cv_dlopen in
  9502. dlopen)
  9503. save_CPPFLAGS="$CPPFLAGS"
  9504. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9505. save_LDFLAGS="$LDFLAGS"
  9506. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9507. save_LIBS="$LIBS"
  9508. LIBS="$lt_cv_dlopen_libs $LIBS"
  9509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9510. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9511. if ${lt_cv_dlopen_self+:} false; then :
  9512. $as_echo_n "(cached) " >&6
  9513. else
  9514. if test "$cross_compiling" = yes; then :
  9515. lt_cv_dlopen_self=cross
  9516. else
  9517. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9518. lt_status=$lt_dlunknown
  9519. cat > conftest.$ac_ext <<_LT_EOF
  9520. #line $LINENO "configure"
  9521. #include "confdefs.h"
  9522. #if HAVE_DLFCN_H
  9523. #include <dlfcn.h>
  9524. #endif
  9525. #include <stdio.h>
  9526. #ifdef RTLD_GLOBAL
  9527. # define LT_DLGLOBAL RTLD_GLOBAL
  9528. #else
  9529. # ifdef DL_GLOBAL
  9530. # define LT_DLGLOBAL DL_GLOBAL
  9531. # else
  9532. # define LT_DLGLOBAL 0
  9533. # endif
  9534. #endif
  9535. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9536. find out it does not work in some platform. */
  9537. #ifndef LT_DLLAZY_OR_NOW
  9538. # ifdef RTLD_LAZY
  9539. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9540. # else
  9541. # ifdef DL_LAZY
  9542. # define LT_DLLAZY_OR_NOW DL_LAZY
  9543. # else
  9544. # ifdef RTLD_NOW
  9545. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9546. # else
  9547. # ifdef DL_NOW
  9548. # define LT_DLLAZY_OR_NOW DL_NOW
  9549. # else
  9550. # define LT_DLLAZY_OR_NOW 0
  9551. # endif
  9552. # endif
  9553. # endif
  9554. # endif
  9555. #endif
  9556. /* When -fvisbility=hidden is used, assume the code has been annotated
  9557. correspondingly for the symbols needed. */
  9558. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9559. int fnord () __attribute__((visibility("default")));
  9560. #endif
  9561. int fnord () { return 42; }
  9562. int main ()
  9563. {
  9564. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9565. int status = $lt_dlunknown;
  9566. if (self)
  9567. {
  9568. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9569. else
  9570. {
  9571. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9572. else puts (dlerror ());
  9573. }
  9574. /* dlclose (self); */
  9575. }
  9576. else
  9577. puts (dlerror ());
  9578. return status;
  9579. }
  9580. _LT_EOF
  9581. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9582. (eval $ac_link) 2>&5
  9583. ac_status=$?
  9584. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9585. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9586. (./conftest; exit; ) >&5 2>/dev/null
  9587. lt_status=$?
  9588. case x$lt_status in
  9589. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9590. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9591. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9592. esac
  9593. else :
  9594. # compilation failed
  9595. lt_cv_dlopen_self=no
  9596. fi
  9597. fi
  9598. rm -fr conftest*
  9599. fi
  9600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9601. $as_echo "$lt_cv_dlopen_self" >&6; }
  9602. if test "x$lt_cv_dlopen_self" = xyes; then
  9603. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9605. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9606. if ${lt_cv_dlopen_self_static+:} false; then :
  9607. $as_echo_n "(cached) " >&6
  9608. else
  9609. if test "$cross_compiling" = yes; then :
  9610. lt_cv_dlopen_self_static=cross
  9611. else
  9612. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9613. lt_status=$lt_dlunknown
  9614. cat > conftest.$ac_ext <<_LT_EOF
  9615. #line $LINENO "configure"
  9616. #include "confdefs.h"
  9617. #if HAVE_DLFCN_H
  9618. #include <dlfcn.h>
  9619. #endif
  9620. #include <stdio.h>
  9621. #ifdef RTLD_GLOBAL
  9622. # define LT_DLGLOBAL RTLD_GLOBAL
  9623. #else
  9624. # ifdef DL_GLOBAL
  9625. # define LT_DLGLOBAL DL_GLOBAL
  9626. # else
  9627. # define LT_DLGLOBAL 0
  9628. # endif
  9629. #endif
  9630. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9631. find out it does not work in some platform. */
  9632. #ifndef LT_DLLAZY_OR_NOW
  9633. # ifdef RTLD_LAZY
  9634. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9635. # else
  9636. # ifdef DL_LAZY
  9637. # define LT_DLLAZY_OR_NOW DL_LAZY
  9638. # else
  9639. # ifdef RTLD_NOW
  9640. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9641. # else
  9642. # ifdef DL_NOW
  9643. # define LT_DLLAZY_OR_NOW DL_NOW
  9644. # else
  9645. # define LT_DLLAZY_OR_NOW 0
  9646. # endif
  9647. # endif
  9648. # endif
  9649. # endif
  9650. #endif
  9651. /* When -fvisbility=hidden is used, assume the code has been annotated
  9652. correspondingly for the symbols needed. */
  9653. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9654. int fnord () __attribute__((visibility("default")));
  9655. #endif
  9656. int fnord () { return 42; }
  9657. int main ()
  9658. {
  9659. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9660. int status = $lt_dlunknown;
  9661. if (self)
  9662. {
  9663. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9664. else
  9665. {
  9666. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9667. else puts (dlerror ());
  9668. }
  9669. /* dlclose (self); */
  9670. }
  9671. else
  9672. puts (dlerror ());
  9673. return status;
  9674. }
  9675. _LT_EOF
  9676. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9677. (eval $ac_link) 2>&5
  9678. ac_status=$?
  9679. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9680. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9681. (./conftest; exit; ) >&5 2>/dev/null
  9682. lt_status=$?
  9683. case x$lt_status in
  9684. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9685. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9686. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9687. esac
  9688. else :
  9689. # compilation failed
  9690. lt_cv_dlopen_self_static=no
  9691. fi
  9692. fi
  9693. rm -fr conftest*
  9694. fi
  9695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9696. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9697. fi
  9698. CPPFLAGS="$save_CPPFLAGS"
  9699. LDFLAGS="$save_LDFLAGS"
  9700. LIBS="$save_LIBS"
  9701. ;;
  9702. esac
  9703. case $lt_cv_dlopen_self in
  9704. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9705. *) enable_dlopen_self=unknown ;;
  9706. esac
  9707. case $lt_cv_dlopen_self_static in
  9708. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9709. *) enable_dlopen_self_static=unknown ;;
  9710. esac
  9711. fi
  9712. striplib=
  9713. old_striplib=
  9714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9715. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9716. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9717. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9718. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9720. $as_echo "yes" >&6; }
  9721. else
  9722. # FIXME - insert some real tests, host_os isn't really good enough
  9723. case $host_os in
  9724. darwin*)
  9725. if test -n "$STRIP" ; then
  9726. striplib="$STRIP -x"
  9727. old_striplib="$STRIP -S"
  9728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9729. $as_echo "yes" >&6; }
  9730. else
  9731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9732. $as_echo "no" >&6; }
  9733. fi
  9734. ;;
  9735. *)
  9736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9737. $as_echo "no" >&6; }
  9738. ;;
  9739. esac
  9740. fi
  9741. # Report which library types will actually be built
  9742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9743. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9745. $as_echo "$can_build_shared" >&6; }
  9746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9747. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9748. test "$can_build_shared" = "no" && enable_shared=no
  9749. # On AIX, shared libraries and static libraries use the same namespace, and
  9750. # are all built from PIC.
  9751. case $host_os in
  9752. aix3*)
  9753. test "$enable_shared" = yes && enable_static=no
  9754. if test -n "$RANLIB"; then
  9755. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9756. postinstall_cmds='$RANLIB $lib'
  9757. fi
  9758. ;;
  9759. aix[4-9]*)
  9760. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9761. test "$enable_shared" = yes && enable_static=no
  9762. fi
  9763. ;;
  9764. esac
  9765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9766. $as_echo "$enable_shared" >&6; }
  9767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9768. $as_echo_n "checking whether to build static libraries... " >&6; }
  9769. # Make sure either enable_shared or enable_static is yes.
  9770. test "$enable_shared" = yes || enable_static=yes
  9771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9772. $as_echo "$enable_static" >&6; }
  9773. fi
  9774. ac_ext=c
  9775. ac_cpp='$CPP $CPPFLAGS'
  9776. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9777. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9778. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9779. CC="$lt_save_CC"
  9780. ac_config_commands="$ac_config_commands libtool"
  9781. # Only expand once:
  9782. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9783. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9784. LT_REVISION=$SDL_INTERFACE_AGE
  9785. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9786. ac_ext=c
  9787. ac_cpp='$CPP $CPPFLAGS'
  9788. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9789. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9790. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9791. if test -n "$ac_tool_prefix"; then
  9792. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9793. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9795. $as_echo_n "checking for $ac_word... " >&6; }
  9796. if ${ac_cv_prog_CC+:} false; then :
  9797. $as_echo_n "(cached) " >&6
  9798. else
  9799. if test -n "$CC"; then
  9800. ac_cv_prog_CC="$CC" # Let the user override the test.
  9801. else
  9802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9803. for as_dir in $PATH
  9804. do
  9805. IFS=$as_save_IFS
  9806. test -z "$as_dir" && as_dir=.
  9807. for ac_exec_ext in '' $ac_executable_extensions; do
  9808. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9809. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9810. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9811. break 2
  9812. fi
  9813. done
  9814. done
  9815. IFS=$as_save_IFS
  9816. fi
  9817. fi
  9818. CC=$ac_cv_prog_CC
  9819. if test -n "$CC"; then
  9820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9821. $as_echo "$CC" >&6; }
  9822. else
  9823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9824. $as_echo "no" >&6; }
  9825. fi
  9826. fi
  9827. if test -z "$ac_cv_prog_CC"; then
  9828. ac_ct_CC=$CC
  9829. # Extract the first word of "gcc", so it can be a program name with args.
  9830. set dummy gcc; ac_word=$2
  9831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9832. $as_echo_n "checking for $ac_word... " >&6; }
  9833. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9834. $as_echo_n "(cached) " >&6
  9835. else
  9836. if test -n "$ac_ct_CC"; then
  9837. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9838. else
  9839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9840. for as_dir in $PATH
  9841. do
  9842. IFS=$as_save_IFS
  9843. test -z "$as_dir" && as_dir=.
  9844. for ac_exec_ext in '' $ac_executable_extensions; do
  9845. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9846. ac_cv_prog_ac_ct_CC="gcc"
  9847. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9848. break 2
  9849. fi
  9850. done
  9851. done
  9852. IFS=$as_save_IFS
  9853. fi
  9854. fi
  9855. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9856. if test -n "$ac_ct_CC"; then
  9857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9858. $as_echo "$ac_ct_CC" >&6; }
  9859. else
  9860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9861. $as_echo "no" >&6; }
  9862. fi
  9863. if test "x$ac_ct_CC" = x; then
  9864. CC=""
  9865. else
  9866. case $cross_compiling:$ac_tool_warned in
  9867. yes:)
  9868. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9869. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9870. ac_tool_warned=yes ;;
  9871. esac
  9872. CC=$ac_ct_CC
  9873. fi
  9874. else
  9875. CC="$ac_cv_prog_CC"
  9876. fi
  9877. if test -z "$CC"; then
  9878. if test -n "$ac_tool_prefix"; then
  9879. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9880. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9882. $as_echo_n "checking for $ac_word... " >&6; }
  9883. if ${ac_cv_prog_CC+:} false; then :
  9884. $as_echo_n "(cached) " >&6
  9885. else
  9886. if test -n "$CC"; then
  9887. ac_cv_prog_CC="$CC" # Let the user override the test.
  9888. else
  9889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9890. for as_dir in $PATH
  9891. do
  9892. IFS=$as_save_IFS
  9893. test -z "$as_dir" && as_dir=.
  9894. for ac_exec_ext in '' $ac_executable_extensions; do
  9895. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9896. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9898. break 2
  9899. fi
  9900. done
  9901. done
  9902. IFS=$as_save_IFS
  9903. fi
  9904. fi
  9905. CC=$ac_cv_prog_CC
  9906. if test -n "$CC"; then
  9907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9908. $as_echo "$CC" >&6; }
  9909. else
  9910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9911. $as_echo "no" >&6; }
  9912. fi
  9913. fi
  9914. fi
  9915. if test -z "$CC"; then
  9916. # Extract the first word of "cc", so it can be a program name with args.
  9917. set dummy cc; ac_word=$2
  9918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9919. $as_echo_n "checking for $ac_word... " >&6; }
  9920. if ${ac_cv_prog_CC+:} false; then :
  9921. $as_echo_n "(cached) " >&6
  9922. else
  9923. if test -n "$CC"; then
  9924. ac_cv_prog_CC="$CC" # Let the user override the test.
  9925. else
  9926. ac_prog_rejected=no
  9927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9928. for as_dir in $PATH
  9929. do
  9930. IFS=$as_save_IFS
  9931. test -z "$as_dir" && as_dir=.
  9932. for ac_exec_ext in '' $ac_executable_extensions; do
  9933. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9934. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9935. ac_prog_rejected=yes
  9936. continue
  9937. fi
  9938. ac_cv_prog_CC="cc"
  9939. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9940. break 2
  9941. fi
  9942. done
  9943. done
  9944. IFS=$as_save_IFS
  9945. if test $ac_prog_rejected = yes; then
  9946. # We found a bogon in the path, so make sure we never use it.
  9947. set dummy $ac_cv_prog_CC
  9948. shift
  9949. if test $# != 0; then
  9950. # We chose a different compiler from the bogus one.
  9951. # However, it has the same basename, so the bogon will be chosen
  9952. # first if we set CC to just the basename; use the full file name.
  9953. shift
  9954. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9955. fi
  9956. fi
  9957. fi
  9958. fi
  9959. CC=$ac_cv_prog_CC
  9960. if test -n "$CC"; then
  9961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9962. $as_echo "$CC" >&6; }
  9963. else
  9964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9965. $as_echo "no" >&6; }
  9966. fi
  9967. fi
  9968. if test -z "$CC"; then
  9969. if test -n "$ac_tool_prefix"; then
  9970. for ac_prog in cl.exe
  9971. do
  9972. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9973. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9975. $as_echo_n "checking for $ac_word... " >&6; }
  9976. if ${ac_cv_prog_CC+:} false; then :
  9977. $as_echo_n "(cached) " >&6
  9978. else
  9979. if test -n "$CC"; then
  9980. ac_cv_prog_CC="$CC" # Let the user override the test.
  9981. else
  9982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9983. for as_dir in $PATH
  9984. do
  9985. IFS=$as_save_IFS
  9986. test -z "$as_dir" && as_dir=.
  9987. for ac_exec_ext in '' $ac_executable_extensions; do
  9988. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9989. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9990. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9991. break 2
  9992. fi
  9993. done
  9994. done
  9995. IFS=$as_save_IFS
  9996. fi
  9997. fi
  9998. CC=$ac_cv_prog_CC
  9999. if test -n "$CC"; then
  10000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10001. $as_echo "$CC" >&6; }
  10002. else
  10003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10004. $as_echo "no" >&6; }
  10005. fi
  10006. test -n "$CC" && break
  10007. done
  10008. fi
  10009. if test -z "$CC"; then
  10010. ac_ct_CC=$CC
  10011. for ac_prog in cl.exe
  10012. do
  10013. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10014. set dummy $ac_prog; ac_word=$2
  10015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10016. $as_echo_n "checking for $ac_word... " >&6; }
  10017. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10018. $as_echo_n "(cached) " >&6
  10019. else
  10020. if test -n "$ac_ct_CC"; then
  10021. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10022. else
  10023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10024. for as_dir in $PATH
  10025. do
  10026. IFS=$as_save_IFS
  10027. test -z "$as_dir" && as_dir=.
  10028. for ac_exec_ext in '' $ac_executable_extensions; do
  10029. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10030. ac_cv_prog_ac_ct_CC="$ac_prog"
  10031. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10032. break 2
  10033. fi
  10034. done
  10035. done
  10036. IFS=$as_save_IFS
  10037. fi
  10038. fi
  10039. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10040. if test -n "$ac_ct_CC"; then
  10041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10042. $as_echo "$ac_ct_CC" >&6; }
  10043. else
  10044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10045. $as_echo "no" >&6; }
  10046. fi
  10047. test -n "$ac_ct_CC" && break
  10048. done
  10049. if test "x$ac_ct_CC" = x; then
  10050. CC=""
  10051. else
  10052. case $cross_compiling:$ac_tool_warned in
  10053. yes:)
  10054. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10055. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10056. ac_tool_warned=yes ;;
  10057. esac
  10058. CC=$ac_ct_CC
  10059. fi
  10060. fi
  10061. fi
  10062. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10063. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10064. as_fn_error $? "no acceptable C compiler found in \$PATH
  10065. See \`config.log' for more details" "$LINENO" 5; }
  10066. # Provide some information about the compiler.
  10067. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10068. set X $ac_compile
  10069. ac_compiler=$2
  10070. for ac_option in --version -v -V -qversion; do
  10071. { { ac_try="$ac_compiler $ac_option >&5"
  10072. case "(($ac_try" in
  10073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10074. *) ac_try_echo=$ac_try;;
  10075. esac
  10076. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10077. $as_echo "$ac_try_echo"; } >&5
  10078. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10079. ac_status=$?
  10080. if test -s conftest.err; then
  10081. sed '10a\
  10082. ... rest of stderr output deleted ...
  10083. 10q' conftest.err >conftest.er1
  10084. cat conftest.er1 >&5
  10085. fi
  10086. rm -f conftest.er1 conftest.err
  10087. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10088. test $ac_status = 0; }
  10089. done
  10090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10091. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10092. if ${ac_cv_c_compiler_gnu+:} false; then :
  10093. $as_echo_n "(cached) " >&6
  10094. else
  10095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10096. /* end confdefs.h. */
  10097. int
  10098. main ()
  10099. {
  10100. #ifndef __GNUC__
  10101. choke me
  10102. #endif
  10103. ;
  10104. return 0;
  10105. }
  10106. _ACEOF
  10107. if ac_fn_c_try_compile "$LINENO"; then :
  10108. ac_compiler_gnu=yes
  10109. else
  10110. ac_compiler_gnu=no
  10111. fi
  10112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10113. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10114. fi
  10115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10116. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10117. if test $ac_compiler_gnu = yes; then
  10118. GCC=yes
  10119. else
  10120. GCC=
  10121. fi
  10122. ac_test_CFLAGS=${CFLAGS+set}
  10123. ac_save_CFLAGS=$CFLAGS
  10124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10125. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10126. if ${ac_cv_prog_cc_g+:} false; then :
  10127. $as_echo_n "(cached) " >&6
  10128. else
  10129. ac_save_c_werror_flag=$ac_c_werror_flag
  10130. ac_c_werror_flag=yes
  10131. ac_cv_prog_cc_g=no
  10132. CFLAGS="-g"
  10133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10134. /* end confdefs.h. */
  10135. int
  10136. main ()
  10137. {
  10138. ;
  10139. return 0;
  10140. }
  10141. _ACEOF
  10142. if ac_fn_c_try_compile "$LINENO"; then :
  10143. ac_cv_prog_cc_g=yes
  10144. else
  10145. CFLAGS=""
  10146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10147. /* end confdefs.h. */
  10148. int
  10149. main ()
  10150. {
  10151. ;
  10152. return 0;
  10153. }
  10154. _ACEOF
  10155. if ac_fn_c_try_compile "$LINENO"; then :
  10156. else
  10157. ac_c_werror_flag=$ac_save_c_werror_flag
  10158. CFLAGS="-g"
  10159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10160. /* end confdefs.h. */
  10161. int
  10162. main ()
  10163. {
  10164. ;
  10165. return 0;
  10166. }
  10167. _ACEOF
  10168. if ac_fn_c_try_compile "$LINENO"; then :
  10169. ac_cv_prog_cc_g=yes
  10170. fi
  10171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10172. fi
  10173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10174. fi
  10175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10176. ac_c_werror_flag=$ac_save_c_werror_flag
  10177. fi
  10178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10179. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10180. if test "$ac_test_CFLAGS" = set; then
  10181. CFLAGS=$ac_save_CFLAGS
  10182. elif test $ac_cv_prog_cc_g = yes; then
  10183. if test "$GCC" = yes; then
  10184. CFLAGS="-g -O2"
  10185. else
  10186. CFLAGS="-g"
  10187. fi
  10188. else
  10189. if test "$GCC" = yes; then
  10190. CFLAGS="-O2"
  10191. else
  10192. CFLAGS=
  10193. fi
  10194. fi
  10195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10196. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10197. if ${ac_cv_prog_cc_c89+:} false; then :
  10198. $as_echo_n "(cached) " >&6
  10199. else
  10200. ac_cv_prog_cc_c89=no
  10201. ac_save_CC=$CC
  10202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10203. /* end confdefs.h. */
  10204. #include <stdarg.h>
  10205. #include <stdio.h>
  10206. struct stat;
  10207. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10208. struct buf { int x; };
  10209. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10210. static char *e (p, i)
  10211. char **p;
  10212. int i;
  10213. {
  10214. return p[i];
  10215. }
  10216. static char *f (char * (*g) (char **, int), char **p, ...)
  10217. {
  10218. char *s;
  10219. va_list v;
  10220. va_start (v,p);
  10221. s = g (p, va_arg (v,int));
  10222. va_end (v);
  10223. return s;
  10224. }
  10225. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10226. function prototypes and stuff, but not '\xHH' hex character constants.
  10227. These don't provoke an error unfortunately, instead are silently treated
  10228. as 'x'. The following induces an error, until -std is added to get
  10229. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10230. array size at least. It's necessary to write '\x00'==0 to get something
  10231. that's true only with -std. */
  10232. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10233. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10234. inside strings and character constants. */
  10235. #define FOO(x) 'x'
  10236. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10237. int test (int i, double x);
  10238. struct s1 {int (*f) (int a);};
  10239. struct s2 {int (*f) (double a);};
  10240. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10241. int argc;
  10242. char **argv;
  10243. int
  10244. main ()
  10245. {
  10246. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10247. ;
  10248. return 0;
  10249. }
  10250. _ACEOF
  10251. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10252. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10253. do
  10254. CC="$ac_save_CC $ac_arg"
  10255. if ac_fn_c_try_compile "$LINENO"; then :
  10256. ac_cv_prog_cc_c89=$ac_arg
  10257. fi
  10258. rm -f core conftest.err conftest.$ac_objext
  10259. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10260. done
  10261. rm -f conftest.$ac_ext
  10262. CC=$ac_save_CC
  10263. fi
  10264. # AC_CACHE_VAL
  10265. case "x$ac_cv_prog_cc_c89" in
  10266. x)
  10267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10268. $as_echo "none needed" >&6; } ;;
  10269. xno)
  10270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10271. $as_echo "unsupported" >&6; } ;;
  10272. *)
  10273. CC="$CC $ac_cv_prog_cc_c89"
  10274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10275. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10276. esac
  10277. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10278. fi
  10279. ac_ext=c
  10280. ac_cpp='$CPP $CPPFLAGS'
  10281. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10282. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10283. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10284. ac_ext=cpp
  10285. ac_cpp='$CXXCPP $CPPFLAGS'
  10286. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10287. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10288. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10289. if test -z "$CXX"; then
  10290. if test -n "$CCC"; then
  10291. CXX=$CCC
  10292. else
  10293. if test -n "$ac_tool_prefix"; then
  10294. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10295. do
  10296. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10297. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10299. $as_echo_n "checking for $ac_word... " >&6; }
  10300. if ${ac_cv_prog_CXX+:} false; then :
  10301. $as_echo_n "(cached) " >&6
  10302. else
  10303. if test -n "$CXX"; then
  10304. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10305. else
  10306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10307. for as_dir in $PATH
  10308. do
  10309. IFS=$as_save_IFS
  10310. test -z "$as_dir" && as_dir=.
  10311. for ac_exec_ext in '' $ac_executable_extensions; do
  10312. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10313. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10314. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10315. break 2
  10316. fi
  10317. done
  10318. done
  10319. IFS=$as_save_IFS
  10320. fi
  10321. fi
  10322. CXX=$ac_cv_prog_CXX
  10323. if test -n "$CXX"; then
  10324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10325. $as_echo "$CXX" >&6; }
  10326. else
  10327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10328. $as_echo "no" >&6; }
  10329. fi
  10330. test -n "$CXX" && break
  10331. done
  10332. fi
  10333. if test -z "$CXX"; then
  10334. ac_ct_CXX=$CXX
  10335. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10336. do
  10337. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10338. set dummy $ac_prog; ac_word=$2
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10340. $as_echo_n "checking for $ac_word... " >&6; }
  10341. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10342. $as_echo_n "(cached) " >&6
  10343. else
  10344. if test -n "$ac_ct_CXX"; then
  10345. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10346. else
  10347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10348. for as_dir in $PATH
  10349. do
  10350. IFS=$as_save_IFS
  10351. test -z "$as_dir" && as_dir=.
  10352. for ac_exec_ext in '' $ac_executable_extensions; do
  10353. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10354. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10355. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10356. break 2
  10357. fi
  10358. done
  10359. done
  10360. IFS=$as_save_IFS
  10361. fi
  10362. fi
  10363. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10364. if test -n "$ac_ct_CXX"; then
  10365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10366. $as_echo "$ac_ct_CXX" >&6; }
  10367. else
  10368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10369. $as_echo "no" >&6; }
  10370. fi
  10371. test -n "$ac_ct_CXX" && break
  10372. done
  10373. if test "x$ac_ct_CXX" = x; then
  10374. CXX="g++"
  10375. else
  10376. case $cross_compiling:$ac_tool_warned in
  10377. yes:)
  10378. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10379. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10380. ac_tool_warned=yes ;;
  10381. esac
  10382. CXX=$ac_ct_CXX
  10383. fi
  10384. fi
  10385. fi
  10386. fi
  10387. # Provide some information about the compiler.
  10388. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10389. set X $ac_compile
  10390. ac_compiler=$2
  10391. for ac_option in --version -v -V -qversion; do
  10392. { { ac_try="$ac_compiler $ac_option >&5"
  10393. case "(($ac_try" in
  10394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10395. *) ac_try_echo=$ac_try;;
  10396. esac
  10397. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10398. $as_echo "$ac_try_echo"; } >&5
  10399. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10400. ac_status=$?
  10401. if test -s conftest.err; then
  10402. sed '10a\
  10403. ... rest of stderr output deleted ...
  10404. 10q' conftest.err >conftest.er1
  10405. cat conftest.er1 >&5
  10406. fi
  10407. rm -f conftest.er1 conftest.err
  10408. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10409. test $ac_status = 0; }
  10410. done
  10411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10412. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10413. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10414. $as_echo_n "(cached) " >&6
  10415. else
  10416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10417. /* end confdefs.h. */
  10418. int
  10419. main ()
  10420. {
  10421. #ifndef __GNUC__
  10422. choke me
  10423. #endif
  10424. ;
  10425. return 0;
  10426. }
  10427. _ACEOF
  10428. if ac_fn_cxx_try_compile "$LINENO"; then :
  10429. ac_compiler_gnu=yes
  10430. else
  10431. ac_compiler_gnu=no
  10432. fi
  10433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10434. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10435. fi
  10436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10437. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10438. if test $ac_compiler_gnu = yes; then
  10439. GXX=yes
  10440. else
  10441. GXX=
  10442. fi
  10443. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10444. ac_save_CXXFLAGS=$CXXFLAGS
  10445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10446. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10447. if ${ac_cv_prog_cxx_g+:} false; then :
  10448. $as_echo_n "(cached) " >&6
  10449. else
  10450. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10451. ac_cxx_werror_flag=yes
  10452. ac_cv_prog_cxx_g=no
  10453. CXXFLAGS="-g"
  10454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10455. /* end confdefs.h. */
  10456. int
  10457. main ()
  10458. {
  10459. ;
  10460. return 0;
  10461. }
  10462. _ACEOF
  10463. if ac_fn_cxx_try_compile "$LINENO"; then :
  10464. ac_cv_prog_cxx_g=yes
  10465. else
  10466. CXXFLAGS=""
  10467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10468. /* end confdefs.h. */
  10469. int
  10470. main ()
  10471. {
  10472. ;
  10473. return 0;
  10474. }
  10475. _ACEOF
  10476. if ac_fn_cxx_try_compile "$LINENO"; then :
  10477. else
  10478. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10479. CXXFLAGS="-g"
  10480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10481. /* end confdefs.h. */
  10482. int
  10483. main ()
  10484. {
  10485. ;
  10486. return 0;
  10487. }
  10488. _ACEOF
  10489. if ac_fn_cxx_try_compile "$LINENO"; then :
  10490. ac_cv_prog_cxx_g=yes
  10491. fi
  10492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10493. fi
  10494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10495. fi
  10496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10497. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10498. fi
  10499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10500. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10501. if test "$ac_test_CXXFLAGS" = set; then
  10502. CXXFLAGS=$ac_save_CXXFLAGS
  10503. elif test $ac_cv_prog_cxx_g = yes; then
  10504. if test "$GXX" = yes; then
  10505. CXXFLAGS="-g -O2"
  10506. else
  10507. CXXFLAGS="-g"
  10508. fi
  10509. else
  10510. if test "$GXX" = yes; then
  10511. CXXFLAGS="-O2"
  10512. else
  10513. CXXFLAGS=
  10514. fi
  10515. fi
  10516. ac_ext=c
  10517. ac_cpp='$CPP $CPPFLAGS'
  10518. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10519. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10520. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10521. func_stripname_cnf ()
  10522. {
  10523. case ${2} in
  10524. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10525. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10526. esac
  10527. } # func_stripname_cnf
  10528. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10529. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10530. (test "X$CXX" != "Xg++"))) ; then
  10531. ac_ext=cpp
  10532. ac_cpp='$CXXCPP $CPPFLAGS'
  10533. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10534. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10535. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10537. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10538. if test -z "$CXXCPP"; then
  10539. if ${ac_cv_prog_CXXCPP+:} false; then :
  10540. $as_echo_n "(cached) " >&6
  10541. else
  10542. # Double quotes because CXXCPP needs to be expanded
  10543. for CXXCPP in "$CXX -E" "/lib/cpp"
  10544. do
  10545. ac_preproc_ok=false
  10546. for ac_cxx_preproc_warn_flag in '' yes
  10547. do
  10548. # Use a header file that comes with gcc, so configuring glibc
  10549. # with a fresh cross-compiler works.
  10550. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10551. # <limits.h> exists even on freestanding compilers.
  10552. # On the NeXT, cc -E runs the code through the compiler's parser,
  10553. # not just through cpp. "Syntax error" is here to catch this case.
  10554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10555. /* end confdefs.h. */
  10556. #ifdef __STDC__
  10557. # include <limits.h>
  10558. #else
  10559. # include <assert.h>
  10560. #endif
  10561. Syntax error
  10562. _ACEOF
  10563. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10564. else
  10565. # Broken: fails on valid input.
  10566. continue
  10567. fi
  10568. rm -f conftest.err conftest.i conftest.$ac_ext
  10569. # OK, works on sane cases. Now check whether nonexistent headers
  10570. # can be detected and how.
  10571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10572. /* end confdefs.h. */
  10573. #include <ac_nonexistent.h>
  10574. _ACEOF
  10575. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10576. # Broken: success on invalid input.
  10577. continue
  10578. else
  10579. # Passes both tests.
  10580. ac_preproc_ok=:
  10581. break
  10582. fi
  10583. rm -f conftest.err conftest.i conftest.$ac_ext
  10584. done
  10585. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10586. rm -f conftest.i conftest.err conftest.$ac_ext
  10587. if $ac_preproc_ok; then :
  10588. break
  10589. fi
  10590. done
  10591. ac_cv_prog_CXXCPP=$CXXCPP
  10592. fi
  10593. CXXCPP=$ac_cv_prog_CXXCPP
  10594. else
  10595. ac_cv_prog_CXXCPP=$CXXCPP
  10596. fi
  10597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10598. $as_echo "$CXXCPP" >&6; }
  10599. ac_preproc_ok=false
  10600. for ac_cxx_preproc_warn_flag in '' yes
  10601. do
  10602. # Use a header file that comes with gcc, so configuring glibc
  10603. # with a fresh cross-compiler works.
  10604. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10605. # <limits.h> exists even on freestanding compilers.
  10606. # On the NeXT, cc -E runs the code through the compiler's parser,
  10607. # not just through cpp. "Syntax error" is here to catch this case.
  10608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10609. /* end confdefs.h. */
  10610. #ifdef __STDC__
  10611. # include <limits.h>
  10612. #else
  10613. # include <assert.h>
  10614. #endif
  10615. Syntax error
  10616. _ACEOF
  10617. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10618. else
  10619. # Broken: fails on valid input.
  10620. continue
  10621. fi
  10622. rm -f conftest.err conftest.i conftest.$ac_ext
  10623. # OK, works on sane cases. Now check whether nonexistent headers
  10624. # can be detected and how.
  10625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10626. /* end confdefs.h. */
  10627. #include <ac_nonexistent.h>
  10628. _ACEOF
  10629. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10630. # Broken: success on invalid input.
  10631. continue
  10632. else
  10633. # Passes both tests.
  10634. ac_preproc_ok=:
  10635. break
  10636. fi
  10637. rm -f conftest.err conftest.i conftest.$ac_ext
  10638. done
  10639. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10640. rm -f conftest.i conftest.err conftest.$ac_ext
  10641. if $ac_preproc_ok; then :
  10642. else
  10643. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10644. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10645. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10646. See \`config.log' for more details" "$LINENO" 5; }
  10647. fi
  10648. ac_ext=c
  10649. ac_cpp='$CPP $CPPFLAGS'
  10650. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10651. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10652. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10653. else
  10654. _lt_caught_CXX_error=yes
  10655. fi
  10656. ac_ext=cpp
  10657. ac_cpp='$CXXCPP $CPPFLAGS'
  10658. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10659. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10660. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10661. archive_cmds_need_lc_CXX=no
  10662. allow_undefined_flag_CXX=
  10663. always_export_symbols_CXX=no
  10664. archive_expsym_cmds_CXX=
  10665. compiler_needs_object_CXX=no
  10666. export_dynamic_flag_spec_CXX=
  10667. hardcode_direct_CXX=no
  10668. hardcode_direct_absolute_CXX=no
  10669. hardcode_libdir_flag_spec_CXX=
  10670. hardcode_libdir_separator_CXX=
  10671. hardcode_minus_L_CXX=no
  10672. hardcode_shlibpath_var_CXX=unsupported
  10673. hardcode_automatic_CXX=no
  10674. inherit_rpath_CXX=no
  10675. module_cmds_CXX=
  10676. module_expsym_cmds_CXX=
  10677. link_all_deplibs_CXX=unknown
  10678. old_archive_cmds_CXX=$old_archive_cmds
  10679. reload_flag_CXX=$reload_flag
  10680. reload_cmds_CXX=$reload_cmds
  10681. no_undefined_flag_CXX=
  10682. whole_archive_flag_spec_CXX=
  10683. enable_shared_with_static_runtimes_CXX=no
  10684. # Source file extension for C++ test sources.
  10685. ac_ext=cpp
  10686. # Object file extension for compiled C++ test sources.
  10687. objext=o
  10688. objext_CXX=$objext
  10689. # No sense in running all these tests if we already determined that
  10690. # the CXX compiler isn't working. Some variables (like enable_shared)
  10691. # are currently assumed to apply to all compilers on this platform,
  10692. # and will be corrupted by setting them based on a non-working compiler.
  10693. if test "$_lt_caught_CXX_error" != yes; then
  10694. # Code to be used in simple compile tests
  10695. lt_simple_compile_test_code="int some_variable = 0;"
  10696. # Code to be used in simple link tests
  10697. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10698. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10699. # If no C compiler was specified, use CC.
  10700. LTCC=${LTCC-"$CC"}
  10701. # If no C compiler flags were specified, use CFLAGS.
  10702. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10703. # Allow CC to be a program name with arguments.
  10704. compiler=$CC
  10705. # save warnings/boilerplate of simple test code
  10706. ac_outfile=conftest.$ac_objext
  10707. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10708. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10709. _lt_compiler_boilerplate=`cat conftest.err`
  10710. $RM conftest*
  10711. ac_outfile=conftest.$ac_objext
  10712. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10713. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10714. _lt_linker_boilerplate=`cat conftest.err`
  10715. $RM -r conftest*
  10716. # Allow CC to be a program name with arguments.
  10717. lt_save_CC=$CC
  10718. lt_save_CFLAGS=$CFLAGS
  10719. lt_save_LD=$LD
  10720. lt_save_GCC=$GCC
  10721. GCC=$GXX
  10722. lt_save_with_gnu_ld=$with_gnu_ld
  10723. lt_save_path_LD=$lt_cv_path_LD
  10724. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10725. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10726. else
  10727. $as_unset lt_cv_prog_gnu_ld
  10728. fi
  10729. if test -n "${lt_cv_path_LDCXX+set}"; then
  10730. lt_cv_path_LD=$lt_cv_path_LDCXX
  10731. else
  10732. $as_unset lt_cv_path_LD
  10733. fi
  10734. test -z "${LDCXX+set}" || LD=$LDCXX
  10735. CC=${CXX-"c++"}
  10736. CFLAGS=$CXXFLAGS
  10737. compiler=$CC
  10738. compiler_CXX=$CC
  10739. for cc_temp in $compiler""; do
  10740. case $cc_temp in
  10741. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10742. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10743. \-*) ;;
  10744. *) break;;
  10745. esac
  10746. done
  10747. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10748. if test -n "$compiler"; then
  10749. # We don't want -fno-exception when compiling C++ code, so set the
  10750. # no_builtin_flag separately
  10751. if test "$GXX" = yes; then
  10752. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10753. else
  10754. lt_prog_compiler_no_builtin_flag_CXX=
  10755. fi
  10756. if test "$GXX" = yes; then
  10757. # Set up default GNU C++ configuration
  10758. # Check whether --with-gnu-ld was given.
  10759. if test "${with_gnu_ld+set}" = set; then :
  10760. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10761. else
  10762. with_gnu_ld=no
  10763. fi
  10764. ac_prog=ld
  10765. if test "$GCC" = yes; then
  10766. # Check if gcc -print-prog-name=ld gives a path.
  10767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10768. $as_echo_n "checking for ld used by $CC... " >&6; }
  10769. case $host in
  10770. *-*-mingw*)
  10771. # gcc leaves a trailing carriage return which upsets mingw
  10772. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10773. *)
  10774. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10775. esac
  10776. case $ac_prog in
  10777. # Accept absolute paths.
  10778. [\\/]* | ?:[\\/]*)
  10779. re_direlt='/[^/][^/]*/\.\./'
  10780. # Canonicalize the pathname of ld
  10781. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10782. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10783. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10784. done
  10785. test -z "$LD" && LD="$ac_prog"
  10786. ;;
  10787. "")
  10788. # If it fails, then pretend we aren't using GCC.
  10789. ac_prog=ld
  10790. ;;
  10791. *)
  10792. # If it is relative, then search for the first ld in PATH.
  10793. with_gnu_ld=unknown
  10794. ;;
  10795. esac
  10796. elif test "$with_gnu_ld" = yes; then
  10797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10798. $as_echo_n "checking for GNU ld... " >&6; }
  10799. else
  10800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10801. $as_echo_n "checking for non-GNU ld... " >&6; }
  10802. fi
  10803. if ${lt_cv_path_LD+:} false; then :
  10804. $as_echo_n "(cached) " >&6
  10805. else
  10806. if test -z "$LD"; then
  10807. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10808. for ac_dir in $PATH; do
  10809. IFS="$lt_save_ifs"
  10810. test -z "$ac_dir" && ac_dir=.
  10811. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10812. lt_cv_path_LD="$ac_dir/$ac_prog"
  10813. # Check to see if the program is GNU ld. I'd rather use --version,
  10814. # but apparently some variants of GNU ld only accept -v.
  10815. # Break only if it was the GNU/non-GNU ld that we prefer.
  10816. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10817. *GNU* | *'with BFD'*)
  10818. test "$with_gnu_ld" != no && break
  10819. ;;
  10820. *)
  10821. test "$with_gnu_ld" != yes && break
  10822. ;;
  10823. esac
  10824. fi
  10825. done
  10826. IFS="$lt_save_ifs"
  10827. else
  10828. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10829. fi
  10830. fi
  10831. LD="$lt_cv_path_LD"
  10832. if test -n "$LD"; then
  10833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10834. $as_echo "$LD" >&6; }
  10835. else
  10836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10837. $as_echo "no" >&6; }
  10838. fi
  10839. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10841. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10842. if ${lt_cv_prog_gnu_ld+:} false; then :
  10843. $as_echo_n "(cached) " >&6
  10844. else
  10845. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10846. case `$LD -v 2>&1 </dev/null` in
  10847. *GNU* | *'with BFD'*)
  10848. lt_cv_prog_gnu_ld=yes
  10849. ;;
  10850. *)
  10851. lt_cv_prog_gnu_ld=no
  10852. ;;
  10853. esac
  10854. fi
  10855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10856. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10857. with_gnu_ld=$lt_cv_prog_gnu_ld
  10858. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10859. # archiving commands below assume that GNU ld is being used.
  10860. if test "$with_gnu_ld" = yes; then
  10861. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10862. 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'
  10863. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10864. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10865. # If archive_cmds runs LD, not CC, wlarc should be empty
  10866. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10867. # investigate it a little bit more. (MM)
  10868. wlarc='${wl}'
  10869. # ancient GNU ld didn't support --whole-archive et. al.
  10870. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10871. $GREP 'no-whole-archive' > /dev/null; then
  10872. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10873. else
  10874. whole_archive_flag_spec_CXX=
  10875. fi
  10876. else
  10877. with_gnu_ld=no
  10878. wlarc=
  10879. # A generic and very simple default shared library creation
  10880. # command for GNU C++ for the case where it uses the native
  10881. # linker, instead of GNU ld. If possible, this setting should
  10882. # overridden to take advantage of the native linker features on
  10883. # the platform it is being used on.
  10884. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10885. fi
  10886. # Commands to make compiler produce verbose output that lists
  10887. # what "hidden" libraries, object files and flags are used when
  10888. # linking a shared library.
  10889. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10890. else
  10891. GXX=no
  10892. with_gnu_ld=no
  10893. wlarc=
  10894. fi
  10895. # PORTME: fill in a description of your system's C++ link characteristics
  10896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10897. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10898. ld_shlibs_CXX=yes
  10899. case $host_os in
  10900. aix3*)
  10901. # FIXME: insert proper C++ library support
  10902. ld_shlibs_CXX=no
  10903. ;;
  10904. aix[4-9]*)
  10905. if test "$host_cpu" = ia64; then
  10906. # On IA64, the linker does run time linking by default, so we don't
  10907. # have to do anything special.
  10908. aix_use_runtimelinking=no
  10909. exp_sym_flag='-Bexport'
  10910. no_entry_flag=""
  10911. else
  10912. aix_use_runtimelinking=no
  10913. # Test if we are trying to use run time linking or normal
  10914. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10915. # need to do runtime linking.
  10916. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10917. for ld_flag in $LDFLAGS; do
  10918. case $ld_flag in
  10919. *-brtl*)
  10920. aix_use_runtimelinking=yes
  10921. break
  10922. ;;
  10923. esac
  10924. done
  10925. ;;
  10926. esac
  10927. exp_sym_flag='-bexport'
  10928. no_entry_flag='-bnoentry'
  10929. fi
  10930. # When large executables or shared objects are built, AIX ld can
  10931. # have problems creating the table of contents. If linking a library
  10932. # or program results in "error TOC overflow" add -mminimal-toc to
  10933. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10934. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10935. archive_cmds_CXX=''
  10936. hardcode_direct_CXX=yes
  10937. hardcode_direct_absolute_CXX=yes
  10938. hardcode_libdir_separator_CXX=':'
  10939. link_all_deplibs_CXX=yes
  10940. file_list_spec_CXX='${wl}-f,'
  10941. if test "$GXX" = yes; then
  10942. case $host_os in aix4.[012]|aix4.[012].*)
  10943. # We only want to do this on AIX 4.2 and lower, the check
  10944. # below for broken collect2 doesn't work under 4.3+
  10945. collect2name=`${CC} -print-prog-name=collect2`
  10946. if test -f "$collect2name" &&
  10947. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10948. then
  10949. # We have reworked collect2
  10950. :
  10951. else
  10952. # We have old collect2
  10953. hardcode_direct_CXX=unsupported
  10954. # It fails to find uninstalled libraries when the uninstalled
  10955. # path is not listed in the libpath. Setting hardcode_minus_L
  10956. # to unsupported forces relinking
  10957. hardcode_minus_L_CXX=yes
  10958. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10959. hardcode_libdir_separator_CXX=
  10960. fi
  10961. esac
  10962. shared_flag='-shared'
  10963. if test "$aix_use_runtimelinking" = yes; then
  10964. shared_flag="$shared_flag "'${wl}-G'
  10965. fi
  10966. else
  10967. # not using gcc
  10968. if test "$host_cpu" = ia64; then
  10969. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10970. # chokes on -Wl,-G. The following line is correct:
  10971. shared_flag='-G'
  10972. else
  10973. if test "$aix_use_runtimelinking" = yes; then
  10974. shared_flag='${wl}-G'
  10975. else
  10976. shared_flag='${wl}-bM:SRE'
  10977. fi
  10978. fi
  10979. fi
  10980. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10981. # It seems that -bexpall does not export symbols beginning with
  10982. # underscore (_), so it is better to generate a list of symbols to
  10983. # export.
  10984. always_export_symbols_CXX=yes
  10985. if test "$aix_use_runtimelinking" = yes; then
  10986. # Warning - without using the other runtime loading flags (-brtl),
  10987. # -berok will link without error, but may produce a broken library.
  10988. allow_undefined_flag_CXX='-berok'
  10989. # Determine the default libpath from the value encoded in an empty
  10990. # executable.
  10991. if test "${lt_cv_aix_libpath+set}" = set; then
  10992. aix_libpath=$lt_cv_aix_libpath
  10993. else
  10994. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10995. $as_echo_n "(cached) " >&6
  10996. else
  10997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10998. /* end confdefs.h. */
  10999. int
  11000. main ()
  11001. {
  11002. ;
  11003. return 0;
  11004. }
  11005. _ACEOF
  11006. if ac_fn_cxx_try_link "$LINENO"; then :
  11007. lt_aix_libpath_sed='
  11008. /Import File Strings/,/^$/ {
  11009. /^0/ {
  11010. s/^0 *\([^ ]*\) *$/\1/
  11011. p
  11012. }
  11013. }'
  11014. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11015. # Check for a 64-bit object if we didn't find anything.
  11016. if test -z "$lt_cv_aix_libpath__CXX"; then
  11017. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11018. fi
  11019. fi
  11020. rm -f core conftest.err conftest.$ac_objext \
  11021. conftest$ac_exeext conftest.$ac_ext
  11022. if test -z "$lt_cv_aix_libpath__CXX"; then
  11023. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11024. fi
  11025. fi
  11026. aix_libpath=$lt_cv_aix_libpath__CXX
  11027. fi
  11028. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11029. 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"
  11030. else
  11031. if test "$host_cpu" = ia64; then
  11032. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11033. allow_undefined_flag_CXX="-z nodefs"
  11034. 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"
  11035. else
  11036. # Determine the default libpath from the value encoded in an
  11037. # empty executable.
  11038. if test "${lt_cv_aix_libpath+set}" = set; then
  11039. aix_libpath=$lt_cv_aix_libpath
  11040. else
  11041. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11042. $as_echo_n "(cached) " >&6
  11043. else
  11044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11045. /* end confdefs.h. */
  11046. int
  11047. main ()
  11048. {
  11049. ;
  11050. return 0;
  11051. }
  11052. _ACEOF
  11053. if ac_fn_cxx_try_link "$LINENO"; then :
  11054. lt_aix_libpath_sed='
  11055. /Import File Strings/,/^$/ {
  11056. /^0/ {
  11057. s/^0 *\([^ ]*\) *$/\1/
  11058. p
  11059. }
  11060. }'
  11061. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11062. # Check for a 64-bit object if we didn't find anything.
  11063. if test -z "$lt_cv_aix_libpath__CXX"; then
  11064. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11065. fi
  11066. fi
  11067. rm -f core conftest.err conftest.$ac_objext \
  11068. conftest$ac_exeext conftest.$ac_ext
  11069. if test -z "$lt_cv_aix_libpath__CXX"; then
  11070. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11071. fi
  11072. fi
  11073. aix_libpath=$lt_cv_aix_libpath__CXX
  11074. fi
  11075. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11076. # Warning - without using the other run time loading flags,
  11077. # -berok will link without error, but may produce a broken library.
  11078. no_undefined_flag_CXX=' ${wl}-bernotok'
  11079. allow_undefined_flag_CXX=' ${wl}-berok'
  11080. if test "$with_gnu_ld" = yes; then
  11081. # We only use this code for GNU lds that support --whole-archive.
  11082. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11083. else
  11084. # Exported symbols can be pulled into shared objects from archives
  11085. whole_archive_flag_spec_CXX='$convenience'
  11086. fi
  11087. archive_cmds_need_lc_CXX=yes
  11088. # This is similar to how AIX traditionally builds its shared
  11089. # libraries.
  11090. 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'
  11091. fi
  11092. fi
  11093. ;;
  11094. beos*)
  11095. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11096. allow_undefined_flag_CXX=unsupported
  11097. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11098. # support --undefined. This deserves some investigation. FIXME
  11099. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11100. else
  11101. ld_shlibs_CXX=no
  11102. fi
  11103. ;;
  11104. chorus*)
  11105. case $cc_basename in
  11106. *)
  11107. # FIXME: insert proper C++ library support
  11108. ld_shlibs_CXX=no
  11109. ;;
  11110. esac
  11111. ;;
  11112. cygwin* | mingw* | pw32* | cegcc*)
  11113. case $GXX,$cc_basename in
  11114. ,cl* | no,cl*)
  11115. # Native MSVC
  11116. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11117. # no search path for DLLs.
  11118. hardcode_libdir_flag_spec_CXX=' '
  11119. allow_undefined_flag_CXX=unsupported
  11120. always_export_symbols_CXX=yes
  11121. file_list_spec_CXX='@'
  11122. # Tell ltmain to make .lib files, not .a files.
  11123. libext=lib
  11124. # Tell ltmain to make .dll files, not .so files.
  11125. shrext_cmds=".dll"
  11126. # FIXME: Setting linknames here is a bad hack.
  11127. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11128. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11129. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11130. else
  11131. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11132. fi~
  11133. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11134. linknames='
  11135. # The linker will not automatically build a static lib if we build a DLL.
  11136. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11137. enable_shared_with_static_runtimes_CXX=yes
  11138. # Don't use ranlib
  11139. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11140. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11141. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11142. case $lt_outputfile in
  11143. *.exe|*.EXE) ;;
  11144. *)
  11145. lt_outputfile="$lt_outputfile.exe"
  11146. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11147. ;;
  11148. esac~
  11149. func_to_tool_file "$lt_outputfile"~
  11150. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11151. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11152. $RM "$lt_outputfile.manifest";
  11153. fi'
  11154. ;;
  11155. *)
  11156. # g++
  11157. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11158. # as there is no search path for DLLs.
  11159. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11160. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11161. allow_undefined_flag_CXX=unsupported
  11162. always_export_symbols_CXX=no
  11163. enable_shared_with_static_runtimes_CXX=yes
  11164. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11165. 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'
  11166. # If the export-symbols file already is a .def file (1st line
  11167. # is EXPORTS), use it as is; otherwise, prepend...
  11168. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11169. cp $export_symbols $output_objdir/$soname.def;
  11170. else
  11171. echo EXPORTS > $output_objdir/$soname.def;
  11172. cat $export_symbols >> $output_objdir/$soname.def;
  11173. fi~
  11174. $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'
  11175. else
  11176. ld_shlibs_CXX=no
  11177. fi
  11178. ;;
  11179. esac
  11180. ;;
  11181. darwin* | rhapsody*)
  11182. archive_cmds_need_lc_CXX=no
  11183. hardcode_direct_CXX=no
  11184. hardcode_automatic_CXX=yes
  11185. hardcode_shlibpath_var_CXX=unsupported
  11186. if test "$lt_cv_ld_force_load" = "yes"; then
  11187. 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\"`'
  11188. else
  11189. whole_archive_flag_spec_CXX=''
  11190. fi
  11191. link_all_deplibs_CXX=yes
  11192. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11193. case $cc_basename in
  11194. ifort*) _lt_dar_can_shared=yes ;;
  11195. *) _lt_dar_can_shared=$GCC ;;
  11196. esac
  11197. if test "$_lt_dar_can_shared" = "yes"; then
  11198. output_verbose_link_cmd=func_echo_all
  11199. 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}"
  11200. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11201. 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}"
  11202. 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}"
  11203. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11204. 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}"
  11205. 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}"
  11206. fi
  11207. else
  11208. ld_shlibs_CXX=no
  11209. fi
  11210. ;;
  11211. dgux*)
  11212. case $cc_basename in
  11213. ec++*)
  11214. # FIXME: insert proper C++ library support
  11215. ld_shlibs_CXX=no
  11216. ;;
  11217. ghcx*)
  11218. # Green Hills C++ Compiler
  11219. # FIXME: insert proper C++ library support
  11220. ld_shlibs_CXX=no
  11221. ;;
  11222. *)
  11223. # FIXME: insert proper C++ library support
  11224. ld_shlibs_CXX=no
  11225. ;;
  11226. esac
  11227. ;;
  11228. freebsd2.*)
  11229. # C++ shared libraries reported to be fairly broken before
  11230. # switch to ELF
  11231. ld_shlibs_CXX=no
  11232. ;;
  11233. freebsd-elf*)
  11234. archive_cmds_need_lc_CXX=no
  11235. ;;
  11236. freebsd* | dragonfly*)
  11237. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11238. # conventions
  11239. ld_shlibs_CXX=yes
  11240. ;;
  11241. gnu*)
  11242. ;;
  11243. haiku*)
  11244. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11245. link_all_deplibs_CXX=yes
  11246. ;;
  11247. hpux9*)
  11248. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11249. hardcode_libdir_separator_CXX=:
  11250. export_dynamic_flag_spec_CXX='${wl}-E'
  11251. hardcode_direct_CXX=yes
  11252. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11253. # but as the default
  11254. # location of the library.
  11255. case $cc_basename in
  11256. CC*)
  11257. # FIXME: insert proper C++ library support
  11258. ld_shlibs_CXX=no
  11259. ;;
  11260. aCC*)
  11261. 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'
  11262. # Commands to make compiler produce verbose output that lists
  11263. # what "hidden" libraries, object files and flags are used when
  11264. # linking a shared library.
  11265. #
  11266. # There doesn't appear to be a way to prevent this compiler from
  11267. # explicitly linking system object files so we need to strip them
  11268. # from the output so that they don't get included in the library
  11269. # dependencies.
  11270. 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"'
  11271. ;;
  11272. *)
  11273. if test "$GXX" = yes; then
  11274. 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'
  11275. else
  11276. # FIXME: insert proper C++ library support
  11277. ld_shlibs_CXX=no
  11278. fi
  11279. ;;
  11280. esac
  11281. ;;
  11282. hpux10*|hpux11*)
  11283. if test $with_gnu_ld = no; then
  11284. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11285. hardcode_libdir_separator_CXX=:
  11286. case $host_cpu in
  11287. hppa*64*|ia64*)
  11288. ;;
  11289. *)
  11290. export_dynamic_flag_spec_CXX='${wl}-E'
  11291. ;;
  11292. esac
  11293. fi
  11294. case $host_cpu in
  11295. hppa*64*|ia64*)
  11296. hardcode_direct_CXX=no
  11297. hardcode_shlibpath_var_CXX=no
  11298. ;;
  11299. *)
  11300. hardcode_direct_CXX=yes
  11301. hardcode_direct_absolute_CXX=yes
  11302. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11303. # but as the default
  11304. # location of the library.
  11305. ;;
  11306. esac
  11307. case $cc_basename in
  11308. CC*)
  11309. # FIXME: insert proper C++ library support
  11310. ld_shlibs_CXX=no
  11311. ;;
  11312. aCC*)
  11313. case $host_cpu in
  11314. hppa*64*)
  11315. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11316. ;;
  11317. ia64*)
  11318. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11319. ;;
  11320. *)
  11321. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11322. ;;
  11323. esac
  11324. # Commands to make compiler produce verbose output that lists
  11325. # what "hidden" libraries, object files and flags are used when
  11326. # linking a shared library.
  11327. #
  11328. # There doesn't appear to be a way to prevent this compiler from
  11329. # explicitly linking system object files so we need to strip them
  11330. # from the output so that they don't get included in the library
  11331. # dependencies.
  11332. 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"'
  11333. ;;
  11334. *)
  11335. if test "$GXX" = yes; then
  11336. if test $with_gnu_ld = no; then
  11337. case $host_cpu in
  11338. hppa*64*)
  11339. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11340. ;;
  11341. ia64*)
  11342. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11343. ;;
  11344. *)
  11345. 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'
  11346. ;;
  11347. esac
  11348. fi
  11349. else
  11350. # FIXME: insert proper C++ library support
  11351. ld_shlibs_CXX=no
  11352. fi
  11353. ;;
  11354. esac
  11355. ;;
  11356. interix[3-9]*)
  11357. hardcode_direct_CXX=no
  11358. hardcode_shlibpath_var_CXX=no
  11359. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11360. export_dynamic_flag_spec_CXX='${wl}-E'
  11361. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11362. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11363. # default) and relocated if they conflict, which is a slow very memory
  11364. # consuming and fragmenting process. To avoid this, we pick a random,
  11365. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11366. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11367. 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'
  11368. 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'
  11369. ;;
  11370. irix5* | irix6*)
  11371. case $cc_basename in
  11372. CC*)
  11373. # SGI C++
  11374. 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'
  11375. # Archives containing C++ object files must be created using
  11376. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11377. # necessary to make sure instantiated templates are included
  11378. # in the archive.
  11379. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11380. ;;
  11381. *)
  11382. if test "$GXX" = yes; then
  11383. if test "$with_gnu_ld" = no; then
  11384. 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'
  11385. else
  11386. 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'
  11387. fi
  11388. fi
  11389. link_all_deplibs_CXX=yes
  11390. ;;
  11391. esac
  11392. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11393. hardcode_libdir_separator_CXX=:
  11394. inherit_rpath_CXX=yes
  11395. ;;
  11396. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11397. case $cc_basename in
  11398. KCC*)
  11399. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11400. # KCC will only create a shared library if the output file
  11401. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11402. # to its proper name (with version) after linking.
  11403. 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'
  11404. 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'
  11405. # Commands to make compiler produce verbose output that lists
  11406. # what "hidden" libraries, object files and flags are used when
  11407. # linking a shared library.
  11408. #
  11409. # There doesn't appear to be a way to prevent this compiler from
  11410. # explicitly linking system object files so we need to strip them
  11411. # from the output so that they don't get included in the library
  11412. # dependencies.
  11413. 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"'
  11414. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11415. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11416. # Archives containing C++ object files must be created using
  11417. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11418. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11419. ;;
  11420. icpc* | ecpc* )
  11421. # Intel C++
  11422. with_gnu_ld=yes
  11423. # version 8.0 and above of icpc choke on multiply defined symbols
  11424. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11425. # earlier do not add the objects themselves.
  11426. case `$CC -V 2>&1` in
  11427. *"Version 7."*)
  11428. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11429. 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'
  11430. ;;
  11431. *) # Version 8.0 or newer
  11432. tmp_idyn=
  11433. case $host_cpu in
  11434. ia64*) tmp_idyn=' -i_dynamic';;
  11435. esac
  11436. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11437. 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'
  11438. ;;
  11439. esac
  11440. archive_cmds_need_lc_CXX=no
  11441. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11442. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11443. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11444. ;;
  11445. pgCC* | pgcpp*)
  11446. # Portland Group C++ compiler
  11447. case `$CC -V` in
  11448. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11449. prelink_cmds_CXX='tpldir=Template.dir~
  11450. rm -rf $tpldir~
  11451. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11452. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11453. old_archive_cmds_CXX='tpldir=Template.dir~
  11454. rm -rf $tpldir~
  11455. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11456. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11457. $RANLIB $oldlib'
  11458. archive_cmds_CXX='tpldir=Template.dir~
  11459. rm -rf $tpldir~
  11460. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11461. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11462. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11463. rm -rf $tpldir~
  11464. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11465. $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'
  11466. ;;
  11467. *) # Version 6 and above use weak symbols
  11468. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11469. 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'
  11470. ;;
  11471. esac
  11472. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11473. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11474. 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'
  11475. ;;
  11476. cxx*)
  11477. # Compaq C++
  11478. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11479. 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'
  11480. runpath_var=LD_RUN_PATH
  11481. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11482. hardcode_libdir_separator_CXX=:
  11483. # Commands to make compiler produce verbose output that lists
  11484. # what "hidden" libraries, object files and flags are used when
  11485. # linking a shared library.
  11486. #
  11487. # There doesn't appear to be a way to prevent this compiler from
  11488. # explicitly linking system object files so we need to strip them
  11489. # from the output so that they don't get included in the library
  11490. # dependencies.
  11491. 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'
  11492. ;;
  11493. xl* | mpixl* | bgxl*)
  11494. # IBM XL 8.0 on PPC, with GNU ld
  11495. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11496. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11497. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11498. if test "x$supports_anon_versioning" = xyes; then
  11499. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11500. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11501. echo "local: *; };" >> $output_objdir/$libname.ver~
  11502. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11503. fi
  11504. ;;
  11505. *)
  11506. case `$CC -V 2>&1 | sed 5q` in
  11507. *Sun\ C*)
  11508. # Sun C++ 5.9
  11509. no_undefined_flag_CXX=' -zdefs'
  11510. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11511. 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'
  11512. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11513. 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'
  11514. compiler_needs_object_CXX=yes
  11515. # Not sure whether something based on
  11516. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11517. # would be better.
  11518. output_verbose_link_cmd='func_echo_all'
  11519. # Archives containing C++ object files must be created using
  11520. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11521. # necessary to make sure instantiated templates are included
  11522. # in the archive.
  11523. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11524. ;;
  11525. esac
  11526. ;;
  11527. esac
  11528. ;;
  11529. lynxos*)
  11530. # FIXME: insert proper C++ library support
  11531. ld_shlibs_CXX=no
  11532. ;;
  11533. m88k*)
  11534. # FIXME: insert proper C++ library support
  11535. ld_shlibs_CXX=no
  11536. ;;
  11537. mvs*)
  11538. case $cc_basename in
  11539. cxx*)
  11540. # FIXME: insert proper C++ library support
  11541. ld_shlibs_CXX=no
  11542. ;;
  11543. *)
  11544. # FIXME: insert proper C++ library support
  11545. ld_shlibs_CXX=no
  11546. ;;
  11547. esac
  11548. ;;
  11549. netbsd*)
  11550. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11551. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11552. wlarc=
  11553. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11554. hardcode_direct_CXX=yes
  11555. hardcode_shlibpath_var_CXX=no
  11556. fi
  11557. # Workaround some broken pre-1.5 toolchains
  11558. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11559. ;;
  11560. *nto* | *qnx*)
  11561. ld_shlibs_CXX=yes
  11562. ;;
  11563. openbsd2*)
  11564. # C++ shared libraries are fairly broken
  11565. ld_shlibs_CXX=no
  11566. ;;
  11567. openbsd*)
  11568. if test -f /usr/libexec/ld.so; then
  11569. hardcode_direct_CXX=yes
  11570. hardcode_shlibpath_var_CXX=no
  11571. hardcode_direct_absolute_CXX=yes
  11572. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11573. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11574. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11575. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11576. export_dynamic_flag_spec_CXX='${wl}-E'
  11577. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11578. fi
  11579. output_verbose_link_cmd=func_echo_all
  11580. else
  11581. ld_shlibs_CXX=no
  11582. fi
  11583. ;;
  11584. osf3* | osf4* | osf5*)
  11585. case $cc_basename in
  11586. KCC*)
  11587. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11588. # KCC will only create a shared library if the output file
  11589. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11590. # to its proper name (with version) after linking.
  11591. 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'
  11592. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11593. hardcode_libdir_separator_CXX=:
  11594. # Archives containing C++ object files must be created using
  11595. # the KAI C++ compiler.
  11596. case $host in
  11597. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11598. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11599. esac
  11600. ;;
  11601. RCC*)
  11602. # Rational C++ 2.4.1
  11603. # FIXME: insert proper C++ library support
  11604. ld_shlibs_CXX=no
  11605. ;;
  11606. cxx*)
  11607. case $host in
  11608. osf3*)
  11609. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11610. 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'
  11611. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11612. ;;
  11613. *)
  11614. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11615. 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'
  11616. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11617. echo "-hidden">> $lib.exp~
  11618. $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~
  11619. $RM $lib.exp'
  11620. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11621. ;;
  11622. esac
  11623. hardcode_libdir_separator_CXX=:
  11624. # Commands to make compiler produce verbose output that lists
  11625. # what "hidden" libraries, object files and flags are used when
  11626. # linking a shared library.
  11627. #
  11628. # There doesn't appear to be a way to prevent this compiler from
  11629. # explicitly linking system object files so we need to strip them
  11630. # from the output so that they don't get included in the library
  11631. # dependencies.
  11632. 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"'
  11633. ;;
  11634. *)
  11635. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11636. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11637. case $host in
  11638. osf3*)
  11639. 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'
  11640. ;;
  11641. *)
  11642. 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'
  11643. ;;
  11644. esac
  11645. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11646. hardcode_libdir_separator_CXX=:
  11647. # Commands to make compiler produce verbose output that lists
  11648. # what "hidden" libraries, object files and flags are used when
  11649. # linking a shared library.
  11650. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11651. else
  11652. # FIXME: insert proper C++ library support
  11653. ld_shlibs_CXX=no
  11654. fi
  11655. ;;
  11656. esac
  11657. ;;
  11658. psos*)
  11659. # FIXME: insert proper C++ library support
  11660. ld_shlibs_CXX=no
  11661. ;;
  11662. sunos4*)
  11663. case $cc_basename in
  11664. CC*)
  11665. # Sun C++ 4.x
  11666. # FIXME: insert proper C++ library support
  11667. ld_shlibs_CXX=no
  11668. ;;
  11669. lcc*)
  11670. # Lucid
  11671. # FIXME: insert proper C++ library support
  11672. ld_shlibs_CXX=no
  11673. ;;
  11674. *)
  11675. # FIXME: insert proper C++ library support
  11676. ld_shlibs_CXX=no
  11677. ;;
  11678. esac
  11679. ;;
  11680. solaris*)
  11681. case $cc_basename in
  11682. CC* | sunCC*)
  11683. # Sun C++ 4.2, 5.x and Centerline C++
  11684. archive_cmds_need_lc_CXX=yes
  11685. no_undefined_flag_CXX=' -zdefs'
  11686. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11687. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11688. $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'
  11689. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11690. hardcode_shlibpath_var_CXX=no
  11691. case $host_os in
  11692. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11693. *)
  11694. # The compiler driver will combine and reorder linker options,
  11695. # but understands `-z linker_flag'.
  11696. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11697. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11698. ;;
  11699. esac
  11700. link_all_deplibs_CXX=yes
  11701. output_verbose_link_cmd='func_echo_all'
  11702. # Archives containing C++ object files must be created using
  11703. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11704. # necessary to make sure instantiated templates are included
  11705. # in the archive.
  11706. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11707. ;;
  11708. gcx*)
  11709. # Green Hills C++ Compiler
  11710. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11711. # The C++ compiler must be used to create the archive.
  11712. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11713. ;;
  11714. *)
  11715. # GNU C++ compiler with Solaris linker
  11716. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11717. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11718. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11719. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11720. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11721. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11722. # Commands to make compiler produce verbose output that lists
  11723. # what "hidden" libraries, object files and flags are used when
  11724. # linking a shared library.
  11725. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11726. else
  11727. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11728. # platform.
  11729. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11730. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11731. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11732. # Commands to make compiler produce verbose output that lists
  11733. # what "hidden" libraries, object files and flags are used when
  11734. # linking a shared library.
  11735. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11736. fi
  11737. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11738. case $host_os in
  11739. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11740. *)
  11741. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11742. ;;
  11743. esac
  11744. fi
  11745. ;;
  11746. esac
  11747. ;;
  11748. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11749. no_undefined_flag_CXX='${wl}-z,text'
  11750. archive_cmds_need_lc_CXX=no
  11751. hardcode_shlibpath_var_CXX=no
  11752. runpath_var='LD_RUN_PATH'
  11753. case $cc_basename in
  11754. CC*)
  11755. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11756. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11757. ;;
  11758. *)
  11759. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11760. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11761. ;;
  11762. esac
  11763. ;;
  11764. sysv5* | sco3.2v5* | sco5v6*)
  11765. # Note: We can NOT use -z defs as we might desire, because we do not
  11766. # link with -lc, and that would cause any symbols used from libc to
  11767. # always be unresolved, which means just about no library would
  11768. # ever link correctly. If we're not using GNU ld we use -z text
  11769. # though, which does catch some bad symbols but isn't as heavy-handed
  11770. # as -z defs.
  11771. no_undefined_flag_CXX='${wl}-z,text'
  11772. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11773. archive_cmds_need_lc_CXX=no
  11774. hardcode_shlibpath_var_CXX=no
  11775. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11776. hardcode_libdir_separator_CXX=':'
  11777. link_all_deplibs_CXX=yes
  11778. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11779. runpath_var='LD_RUN_PATH'
  11780. case $cc_basename in
  11781. CC*)
  11782. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11783. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11784. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11785. '"$old_archive_cmds_CXX"
  11786. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11787. '"$reload_cmds_CXX"
  11788. ;;
  11789. *)
  11790. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11791. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11792. ;;
  11793. esac
  11794. ;;
  11795. tandem*)
  11796. case $cc_basename in
  11797. NCC*)
  11798. # NonStop-UX NCC 3.20
  11799. # FIXME: insert proper C++ library support
  11800. ld_shlibs_CXX=no
  11801. ;;
  11802. *)
  11803. # FIXME: insert proper C++ library support
  11804. ld_shlibs_CXX=no
  11805. ;;
  11806. esac
  11807. ;;
  11808. vxworks*)
  11809. # FIXME: insert proper C++ library support
  11810. ld_shlibs_CXX=no
  11811. ;;
  11812. *)
  11813. # FIXME: insert proper C++ library support
  11814. ld_shlibs_CXX=no
  11815. ;;
  11816. esac
  11817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11818. $as_echo "$ld_shlibs_CXX" >&6; }
  11819. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11820. GCC_CXX="$GXX"
  11821. LD_CXX="$LD"
  11822. ## CAVEAT EMPTOR:
  11823. ## There is no encapsulation within the following macros, do not change
  11824. ## the running order or otherwise move them around unless you know exactly
  11825. ## what you are doing...
  11826. # Dependencies to place before and after the object being linked:
  11827. predep_objects_CXX=
  11828. postdep_objects_CXX=
  11829. predeps_CXX=
  11830. postdeps_CXX=
  11831. compiler_lib_search_path_CXX=
  11832. cat > conftest.$ac_ext <<_LT_EOF
  11833. class Foo
  11834. {
  11835. public:
  11836. Foo (void) { a = 0; }
  11837. private:
  11838. int a;
  11839. };
  11840. _LT_EOF
  11841. _lt_libdeps_save_CFLAGS=$CFLAGS
  11842. case "$CC $CFLAGS " in #(
  11843. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11844. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11845. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11846. esac
  11847. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11848. (eval $ac_compile) 2>&5
  11849. ac_status=$?
  11850. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11851. test $ac_status = 0; }; then
  11852. # Parse the compiler output and extract the necessary
  11853. # objects, libraries and library flags.
  11854. # Sentinel used to keep track of whether or not we are before
  11855. # the conftest object file.
  11856. pre_test_object_deps_done=no
  11857. for p in `eval "$output_verbose_link_cmd"`; do
  11858. case ${prev}${p} in
  11859. -L* | -R* | -l*)
  11860. # Some compilers place space between "-{L,R}" and the path.
  11861. # Remove the space.
  11862. if test $p = "-L" ||
  11863. test $p = "-R"; then
  11864. prev=$p
  11865. continue
  11866. fi
  11867. # Expand the sysroot to ease extracting the directories later.
  11868. if test -z "$prev"; then
  11869. case $p in
  11870. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11871. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11872. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11873. esac
  11874. fi
  11875. case $p in
  11876. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11877. esac
  11878. if test "$pre_test_object_deps_done" = no; then
  11879. case ${prev} in
  11880. -L | -R)
  11881. # Internal compiler library paths should come after those
  11882. # provided the user. The postdeps already come after the
  11883. # user supplied libs so there is no need to process them.
  11884. if test -z "$compiler_lib_search_path_CXX"; then
  11885. compiler_lib_search_path_CXX="${prev}${p}"
  11886. else
  11887. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11888. fi
  11889. ;;
  11890. # The "-l" case would never come before the object being
  11891. # linked, so don't bother handling this case.
  11892. esac
  11893. else
  11894. if test -z "$postdeps_CXX"; then
  11895. postdeps_CXX="${prev}${p}"
  11896. else
  11897. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11898. fi
  11899. fi
  11900. prev=
  11901. ;;
  11902. *.lto.$objext) ;; # Ignore GCC LTO objects
  11903. *.$objext)
  11904. # This assumes that the test object file only shows up
  11905. # once in the compiler output.
  11906. if test "$p" = "conftest.$objext"; then
  11907. pre_test_object_deps_done=yes
  11908. continue
  11909. fi
  11910. if test "$pre_test_object_deps_done" = no; then
  11911. if test -z "$predep_objects_CXX"; then
  11912. predep_objects_CXX="$p"
  11913. else
  11914. predep_objects_CXX="$predep_objects_CXX $p"
  11915. fi
  11916. else
  11917. if test -z "$postdep_objects_CXX"; then
  11918. postdep_objects_CXX="$p"
  11919. else
  11920. postdep_objects_CXX="$postdep_objects_CXX $p"
  11921. fi
  11922. fi
  11923. ;;
  11924. *) ;; # Ignore the rest.
  11925. esac
  11926. done
  11927. # Clean up.
  11928. rm -f a.out a.exe
  11929. else
  11930. echo "libtool.m4: error: problem compiling CXX test program"
  11931. fi
  11932. $RM -f confest.$objext
  11933. CFLAGS=$_lt_libdeps_save_CFLAGS
  11934. # PORTME: override above test on systems where it is broken
  11935. case $host_os in
  11936. interix[3-9]*)
  11937. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11938. # hack all around it, let's just trust "g++" to DTRT.
  11939. predep_objects_CXX=
  11940. postdep_objects_CXX=
  11941. postdeps_CXX=
  11942. ;;
  11943. linux*)
  11944. case `$CC -V 2>&1 | sed 5q` in
  11945. *Sun\ C*)
  11946. # Sun C++ 5.9
  11947. # The more standards-conforming stlport4 library is
  11948. # incompatible with the Cstd library. Avoid specifying
  11949. # it if it's in CXXFLAGS. Ignore libCrun as
  11950. # -library=stlport4 depends on it.
  11951. case " $CXX $CXXFLAGS " in
  11952. *" -library=stlport4 "*)
  11953. solaris_use_stlport4=yes
  11954. ;;
  11955. esac
  11956. if test "$solaris_use_stlport4" != yes; then
  11957. postdeps_CXX='-library=Cstd -library=Crun'
  11958. fi
  11959. ;;
  11960. esac
  11961. ;;
  11962. solaris*)
  11963. case $cc_basename in
  11964. CC* | sunCC*)
  11965. # The more standards-conforming stlport4 library is
  11966. # incompatible with the Cstd library. Avoid specifying
  11967. # it if it's in CXXFLAGS. Ignore libCrun as
  11968. # -library=stlport4 depends on it.
  11969. case " $CXX $CXXFLAGS " in
  11970. *" -library=stlport4 "*)
  11971. solaris_use_stlport4=yes
  11972. ;;
  11973. esac
  11974. # Adding this requires a known-good setup of shared libraries for
  11975. # Sun compiler versions before 5.6, else PIC objects from an old
  11976. # archive will be linked into the output, leading to subtle bugs.
  11977. if test "$solaris_use_stlport4" != yes; then
  11978. postdeps_CXX='-library=Cstd -library=Crun'
  11979. fi
  11980. ;;
  11981. esac
  11982. ;;
  11983. esac
  11984. case " $postdeps_CXX " in
  11985. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11986. esac
  11987. compiler_lib_search_dirs_CXX=
  11988. if test -n "${compiler_lib_search_path_CXX}"; then
  11989. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11990. fi
  11991. lt_prog_compiler_wl_CXX=
  11992. lt_prog_compiler_pic_CXX=
  11993. lt_prog_compiler_static_CXX=
  11994. # C++ specific cases for pic, static, wl, etc.
  11995. if test "$GXX" = yes; then
  11996. lt_prog_compiler_wl_CXX='-Wl,'
  11997. lt_prog_compiler_static_CXX='-static'
  11998. case $host_os in
  11999. aix*)
  12000. # All AIX code is PIC.
  12001. if test "$host_cpu" = ia64; then
  12002. # AIX 5 now supports IA64 processor
  12003. lt_prog_compiler_static_CXX='-Bstatic'
  12004. fi
  12005. ;;
  12006. amigaos*)
  12007. case $host_cpu in
  12008. powerpc)
  12009. # see comment about AmigaOS4 .so support
  12010. lt_prog_compiler_pic_CXX='-fPIC'
  12011. ;;
  12012. m68k)
  12013. # FIXME: we need at least 68020 code to build shared libraries, but
  12014. # adding the `-m68020' flag to GCC prevents building anything better,
  12015. # like `-m68040'.
  12016. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12017. ;;
  12018. esac
  12019. ;;
  12020. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12021. # PIC is the default for these OSes.
  12022. ;;
  12023. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12024. # This hack is so that the source file can tell whether it is being
  12025. # built for inclusion in a dll (and should export symbols for example).
  12026. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12027. # (--disable-auto-import) libraries
  12028. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12029. ;;
  12030. darwin* | rhapsody*)
  12031. # PIC is the default on this platform
  12032. # Common symbols not allowed in MH_DYLIB files
  12033. lt_prog_compiler_pic_CXX='-fno-common'
  12034. ;;
  12035. *djgpp*)
  12036. # DJGPP does not support shared libraries at all
  12037. lt_prog_compiler_pic_CXX=
  12038. ;;
  12039. haiku*)
  12040. # PIC is the default for Haiku.
  12041. # The "-static" flag exists, but is broken.
  12042. lt_prog_compiler_static_CXX=
  12043. ;;
  12044. interix[3-9]*)
  12045. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12046. # Instead, we relocate shared libraries at runtime.
  12047. ;;
  12048. sysv4*MP*)
  12049. if test -d /usr/nec; then
  12050. lt_prog_compiler_pic_CXX=-Kconform_pic
  12051. fi
  12052. ;;
  12053. hpux*)
  12054. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12055. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12056. # sets the default TLS model and affects inlining.
  12057. case $host_cpu in
  12058. hppa*64*)
  12059. ;;
  12060. *)
  12061. lt_prog_compiler_pic_CXX='-fPIC'
  12062. ;;
  12063. esac
  12064. ;;
  12065. *qnx* | *nto*)
  12066. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12067. # it will coredump.
  12068. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12069. ;;
  12070. *)
  12071. lt_prog_compiler_pic_CXX='-fPIC'
  12072. ;;
  12073. esac
  12074. else
  12075. case $host_os in
  12076. aix[4-9]*)
  12077. # All AIX code is PIC.
  12078. if test "$host_cpu" = ia64; then
  12079. # AIX 5 now supports IA64 processor
  12080. lt_prog_compiler_static_CXX='-Bstatic'
  12081. else
  12082. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12083. fi
  12084. ;;
  12085. chorus*)
  12086. case $cc_basename in
  12087. cxch68*)
  12088. # Green Hills C++ Compiler
  12089. # _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"
  12090. ;;
  12091. esac
  12092. ;;
  12093. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12094. # This hack is so that the source file can tell whether it is being
  12095. # built for inclusion in a dll (and should export symbols for example).
  12096. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12097. ;;
  12098. dgux*)
  12099. case $cc_basename in
  12100. ec++*)
  12101. lt_prog_compiler_pic_CXX='-KPIC'
  12102. ;;
  12103. ghcx*)
  12104. # Green Hills C++ Compiler
  12105. lt_prog_compiler_pic_CXX='-pic'
  12106. ;;
  12107. *)
  12108. ;;
  12109. esac
  12110. ;;
  12111. freebsd* | dragonfly*)
  12112. # FreeBSD uses GNU C++
  12113. ;;
  12114. hpux9* | hpux10* | hpux11*)
  12115. case $cc_basename in
  12116. CC*)
  12117. lt_prog_compiler_wl_CXX='-Wl,'
  12118. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12119. if test "$host_cpu" != ia64; then
  12120. lt_prog_compiler_pic_CXX='+Z'
  12121. fi
  12122. ;;
  12123. aCC*)
  12124. lt_prog_compiler_wl_CXX='-Wl,'
  12125. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12126. case $host_cpu in
  12127. hppa*64*|ia64*)
  12128. # +Z the default
  12129. ;;
  12130. *)
  12131. lt_prog_compiler_pic_CXX='+Z'
  12132. ;;
  12133. esac
  12134. ;;
  12135. *)
  12136. ;;
  12137. esac
  12138. ;;
  12139. interix*)
  12140. # This is c89, which is MS Visual C++ (no shared libs)
  12141. # Anyone wants to do a port?
  12142. ;;
  12143. irix5* | irix6* | nonstopux*)
  12144. case $cc_basename in
  12145. CC*)
  12146. lt_prog_compiler_wl_CXX='-Wl,'
  12147. lt_prog_compiler_static_CXX='-non_shared'
  12148. # CC pic flag -KPIC is the default.
  12149. ;;
  12150. *)
  12151. ;;
  12152. esac
  12153. ;;
  12154. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12155. case $cc_basename in
  12156. KCC*)
  12157. # KAI C++ Compiler
  12158. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12159. lt_prog_compiler_pic_CXX='-fPIC'
  12160. ;;
  12161. ecpc* )
  12162. # old Intel C++ for x86_64 which still supported -KPIC.
  12163. lt_prog_compiler_wl_CXX='-Wl,'
  12164. lt_prog_compiler_pic_CXX='-KPIC'
  12165. lt_prog_compiler_static_CXX='-static'
  12166. ;;
  12167. icpc* )
  12168. # Intel C++, used to be incompatible with GCC.
  12169. # ICC 10 doesn't accept -KPIC any more.
  12170. lt_prog_compiler_wl_CXX='-Wl,'
  12171. lt_prog_compiler_pic_CXX='-fPIC'
  12172. lt_prog_compiler_static_CXX='-static'
  12173. ;;
  12174. pgCC* | pgcpp*)
  12175. # Portland Group C++ compiler
  12176. lt_prog_compiler_wl_CXX='-Wl,'
  12177. lt_prog_compiler_pic_CXX='-fpic'
  12178. lt_prog_compiler_static_CXX='-Bstatic'
  12179. ;;
  12180. cxx*)
  12181. # Compaq C++
  12182. # Make sure the PIC flag is empty. It appears that all Alpha
  12183. # Linux and Compaq Tru64 Unix objects are PIC.
  12184. lt_prog_compiler_pic_CXX=
  12185. lt_prog_compiler_static_CXX='-non_shared'
  12186. ;;
  12187. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12188. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12189. lt_prog_compiler_wl_CXX='-Wl,'
  12190. lt_prog_compiler_pic_CXX='-qpic'
  12191. lt_prog_compiler_static_CXX='-qstaticlink'
  12192. ;;
  12193. *)
  12194. case `$CC -V 2>&1 | sed 5q` in
  12195. *Sun\ C*)
  12196. # Sun C++ 5.9
  12197. lt_prog_compiler_pic_CXX='-KPIC'
  12198. lt_prog_compiler_static_CXX='-Bstatic'
  12199. lt_prog_compiler_wl_CXX='-Qoption ld '
  12200. ;;
  12201. esac
  12202. ;;
  12203. esac
  12204. ;;
  12205. lynxos*)
  12206. ;;
  12207. m88k*)
  12208. ;;
  12209. mvs*)
  12210. case $cc_basename in
  12211. cxx*)
  12212. lt_prog_compiler_pic_CXX='-W c,exportall'
  12213. ;;
  12214. *)
  12215. ;;
  12216. esac
  12217. ;;
  12218. netbsd*)
  12219. ;;
  12220. *qnx* | *nto*)
  12221. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12222. # it will coredump.
  12223. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12224. ;;
  12225. osf3* | osf4* | osf5*)
  12226. case $cc_basename in
  12227. KCC*)
  12228. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12229. ;;
  12230. RCC*)
  12231. # Rational C++ 2.4.1
  12232. lt_prog_compiler_pic_CXX='-pic'
  12233. ;;
  12234. cxx*)
  12235. # Digital/Compaq C++
  12236. lt_prog_compiler_wl_CXX='-Wl,'
  12237. # Make sure the PIC flag is empty. It appears that all Alpha
  12238. # Linux and Compaq Tru64 Unix objects are PIC.
  12239. lt_prog_compiler_pic_CXX=
  12240. lt_prog_compiler_static_CXX='-non_shared'
  12241. ;;
  12242. *)
  12243. ;;
  12244. esac
  12245. ;;
  12246. psos*)
  12247. ;;
  12248. solaris*)
  12249. case $cc_basename in
  12250. CC* | sunCC*)
  12251. # Sun C++ 4.2, 5.x and Centerline C++
  12252. lt_prog_compiler_pic_CXX='-KPIC'
  12253. lt_prog_compiler_static_CXX='-Bstatic'
  12254. lt_prog_compiler_wl_CXX='-Qoption ld '
  12255. ;;
  12256. gcx*)
  12257. # Green Hills C++ Compiler
  12258. lt_prog_compiler_pic_CXX='-PIC'
  12259. ;;
  12260. *)
  12261. ;;
  12262. esac
  12263. ;;
  12264. sunos4*)
  12265. case $cc_basename in
  12266. CC*)
  12267. # Sun C++ 4.x
  12268. lt_prog_compiler_pic_CXX='-pic'
  12269. lt_prog_compiler_static_CXX='-Bstatic'
  12270. ;;
  12271. lcc*)
  12272. # Lucid
  12273. lt_prog_compiler_pic_CXX='-pic'
  12274. ;;
  12275. *)
  12276. ;;
  12277. esac
  12278. ;;
  12279. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12280. case $cc_basename in
  12281. CC*)
  12282. lt_prog_compiler_wl_CXX='-Wl,'
  12283. lt_prog_compiler_pic_CXX='-KPIC'
  12284. lt_prog_compiler_static_CXX='-Bstatic'
  12285. ;;
  12286. esac
  12287. ;;
  12288. tandem*)
  12289. case $cc_basename in
  12290. NCC*)
  12291. # NonStop-UX NCC 3.20
  12292. lt_prog_compiler_pic_CXX='-KPIC'
  12293. ;;
  12294. *)
  12295. ;;
  12296. esac
  12297. ;;
  12298. vxworks*)
  12299. ;;
  12300. *)
  12301. lt_prog_compiler_can_build_shared_CXX=no
  12302. ;;
  12303. esac
  12304. fi
  12305. case $host_os in
  12306. # For platforms which do not support PIC, -DPIC is meaningless:
  12307. *djgpp*)
  12308. lt_prog_compiler_pic_CXX=
  12309. ;;
  12310. *)
  12311. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12312. ;;
  12313. esac
  12314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12315. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12316. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12317. $as_echo_n "(cached) " >&6
  12318. else
  12319. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12320. fi
  12321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12322. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12323. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12324. #
  12325. # Check to make sure the PIC flag actually works.
  12326. #
  12327. if test -n "$lt_prog_compiler_pic_CXX"; then
  12328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12329. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12330. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12331. $as_echo_n "(cached) " >&6
  12332. else
  12333. lt_cv_prog_compiler_pic_works_CXX=no
  12334. ac_outfile=conftest.$ac_objext
  12335. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12336. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12337. # Insert the option either (1) after the last *FLAGS variable, or
  12338. # (2) before a word containing "conftest.", or (3) at the end.
  12339. # Note that $ac_compile itself does not contain backslashes and begins
  12340. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12341. # The option is referenced via a variable to avoid confusing sed.
  12342. lt_compile=`echo "$ac_compile" | $SED \
  12343. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12344. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12345. -e 's:$: $lt_compiler_flag:'`
  12346. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12347. (eval "$lt_compile" 2>conftest.err)
  12348. ac_status=$?
  12349. cat conftest.err >&5
  12350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12351. if (exit $ac_status) && test -s "$ac_outfile"; then
  12352. # The compiler can only warn and ignore the option if not recognized
  12353. # So say no if there are warnings other than the usual output.
  12354. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12355. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12356. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12357. lt_cv_prog_compiler_pic_works_CXX=yes
  12358. fi
  12359. fi
  12360. $RM conftest*
  12361. fi
  12362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12363. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12364. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12365. case $lt_prog_compiler_pic_CXX in
  12366. "" | " "*) ;;
  12367. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12368. esac
  12369. else
  12370. lt_prog_compiler_pic_CXX=
  12371. lt_prog_compiler_can_build_shared_CXX=no
  12372. fi
  12373. fi
  12374. #
  12375. # Check to make sure the static flag actually works.
  12376. #
  12377. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12379. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12380. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12381. $as_echo_n "(cached) " >&6
  12382. else
  12383. lt_cv_prog_compiler_static_works_CXX=no
  12384. save_LDFLAGS="$LDFLAGS"
  12385. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12386. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12387. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12388. # The linker can only warn and ignore the option if not recognized
  12389. # So say no if there are warnings
  12390. if test -s conftest.err; then
  12391. # Append any errors to the config.log.
  12392. cat conftest.err 1>&5
  12393. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12394. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12395. if diff conftest.exp conftest.er2 >/dev/null; then
  12396. lt_cv_prog_compiler_static_works_CXX=yes
  12397. fi
  12398. else
  12399. lt_cv_prog_compiler_static_works_CXX=yes
  12400. fi
  12401. fi
  12402. $RM -r conftest*
  12403. LDFLAGS="$save_LDFLAGS"
  12404. fi
  12405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12406. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12407. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12408. :
  12409. else
  12410. lt_prog_compiler_static_CXX=
  12411. fi
  12412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12413. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12414. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12415. $as_echo_n "(cached) " >&6
  12416. else
  12417. lt_cv_prog_compiler_c_o_CXX=no
  12418. $RM -r conftest 2>/dev/null
  12419. mkdir conftest
  12420. cd conftest
  12421. mkdir out
  12422. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12423. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12424. # Insert the option either (1) after the last *FLAGS variable, or
  12425. # (2) before a word containing "conftest.", or (3) at the end.
  12426. # Note that $ac_compile itself does not contain backslashes and begins
  12427. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12428. lt_compile=`echo "$ac_compile" | $SED \
  12429. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12430. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12431. -e 's:$: $lt_compiler_flag:'`
  12432. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12433. (eval "$lt_compile" 2>out/conftest.err)
  12434. ac_status=$?
  12435. cat out/conftest.err >&5
  12436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12437. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12438. then
  12439. # The compiler can only warn and ignore the option if not recognized
  12440. # So say no if there are warnings
  12441. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12442. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12443. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12444. lt_cv_prog_compiler_c_o_CXX=yes
  12445. fi
  12446. fi
  12447. chmod u+w . 2>&5
  12448. $RM conftest*
  12449. # SGI C++ compiler will create directory out/ii_files/ for
  12450. # template instantiation
  12451. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12452. $RM out/* && rmdir out
  12453. cd ..
  12454. $RM -r conftest
  12455. $RM conftest*
  12456. fi
  12457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12458. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12460. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12461. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12462. $as_echo_n "(cached) " >&6
  12463. else
  12464. lt_cv_prog_compiler_c_o_CXX=no
  12465. $RM -r conftest 2>/dev/null
  12466. mkdir conftest
  12467. cd conftest
  12468. mkdir out
  12469. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12470. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12471. # Insert the option either (1) after the last *FLAGS variable, or
  12472. # (2) before a word containing "conftest.", or (3) at the end.
  12473. # Note that $ac_compile itself does not contain backslashes and begins
  12474. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12475. lt_compile=`echo "$ac_compile" | $SED \
  12476. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12477. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12478. -e 's:$: $lt_compiler_flag:'`
  12479. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12480. (eval "$lt_compile" 2>out/conftest.err)
  12481. ac_status=$?
  12482. cat out/conftest.err >&5
  12483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12484. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12485. then
  12486. # The compiler can only warn and ignore the option if not recognized
  12487. # So say no if there are warnings
  12488. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12489. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12490. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12491. lt_cv_prog_compiler_c_o_CXX=yes
  12492. fi
  12493. fi
  12494. chmod u+w . 2>&5
  12495. $RM conftest*
  12496. # SGI C++ compiler will create directory out/ii_files/ for
  12497. # template instantiation
  12498. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12499. $RM out/* && rmdir out
  12500. cd ..
  12501. $RM -r conftest
  12502. $RM conftest*
  12503. fi
  12504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12505. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12506. hard_links="nottested"
  12507. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12508. # do not overwrite the value of need_locks provided by the user
  12509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12510. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12511. hard_links=yes
  12512. $RM conftest*
  12513. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12514. touch conftest.a
  12515. ln conftest.a conftest.b 2>&5 || hard_links=no
  12516. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12518. $as_echo "$hard_links" >&6; }
  12519. if test "$hard_links" = no; then
  12520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12521. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12522. need_locks=warn
  12523. fi
  12524. else
  12525. need_locks=no
  12526. fi
  12527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12528. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12529. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12530. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12531. case $host_os in
  12532. aix[4-9]*)
  12533. # If we're using GNU nm, then we don't want the "-C" option.
  12534. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12535. # Also, AIX nm treats weak defined symbols like other global defined
  12536. # symbols, whereas GNU nm marks them as "W".
  12537. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12538. 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'
  12539. else
  12540. 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'
  12541. fi
  12542. ;;
  12543. pw32*)
  12544. export_symbols_cmds_CXX="$ltdll_cmds"
  12545. ;;
  12546. cygwin* | mingw* | cegcc*)
  12547. case $cc_basename in
  12548. cl*)
  12549. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12550. ;;
  12551. *)
  12552. 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'
  12553. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12554. ;;
  12555. esac
  12556. ;;
  12557. *)
  12558. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12559. ;;
  12560. esac
  12561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12562. $as_echo "$ld_shlibs_CXX" >&6; }
  12563. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12564. with_gnu_ld_CXX=$with_gnu_ld
  12565. #
  12566. # Do we need to explicitly link libc?
  12567. #
  12568. case "x$archive_cmds_need_lc_CXX" in
  12569. x|xyes)
  12570. # Assume -lc should be added
  12571. archive_cmds_need_lc_CXX=yes
  12572. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12573. case $archive_cmds_CXX in
  12574. *'~'*)
  12575. # FIXME: we may have to deal with multi-command sequences.
  12576. ;;
  12577. '$CC '*)
  12578. # Test whether the compiler implicitly links with -lc since on some
  12579. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12580. # to ld, don't add -lc before -lgcc.
  12581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12582. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12583. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12584. $as_echo_n "(cached) " >&6
  12585. else
  12586. $RM conftest*
  12587. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12588. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12589. (eval $ac_compile) 2>&5
  12590. ac_status=$?
  12591. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12592. test $ac_status = 0; } 2>conftest.err; then
  12593. soname=conftest
  12594. lib=conftest
  12595. libobjs=conftest.$ac_objext
  12596. deplibs=
  12597. wl=$lt_prog_compiler_wl_CXX
  12598. pic_flag=$lt_prog_compiler_pic_CXX
  12599. compiler_flags=-v
  12600. linker_flags=-v
  12601. verstring=
  12602. output_objdir=.
  12603. libname=conftest
  12604. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12605. allow_undefined_flag_CXX=
  12606. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12607. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12608. ac_status=$?
  12609. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12610. test $ac_status = 0; }
  12611. then
  12612. lt_cv_archive_cmds_need_lc_CXX=no
  12613. else
  12614. lt_cv_archive_cmds_need_lc_CXX=yes
  12615. fi
  12616. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12617. else
  12618. cat conftest.err 1>&5
  12619. fi
  12620. $RM conftest*
  12621. fi
  12622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12623. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12624. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12625. ;;
  12626. esac
  12627. fi
  12628. ;;
  12629. esac
  12630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12631. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12632. library_names_spec=
  12633. libname_spec='lib$name'
  12634. soname_spec=
  12635. shrext_cmds=".so"
  12636. postinstall_cmds=
  12637. postuninstall_cmds=
  12638. finish_cmds=
  12639. finish_eval=
  12640. shlibpath_var=
  12641. shlibpath_overrides_runpath=unknown
  12642. version_type=none
  12643. dynamic_linker="$host_os ld.so"
  12644. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12645. need_lib_prefix=unknown
  12646. hardcode_into_libs=no
  12647. # when you set need_version to no, make sure it does not cause -set_version
  12648. # flags to be left without arguments
  12649. need_version=unknown
  12650. case $host_os in
  12651. aix3*)
  12652. version_type=linux # correct to gnu/linux during the next big refactor
  12653. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12654. shlibpath_var=LIBPATH
  12655. # AIX 3 has no versioning support, so we append a major version to the name.
  12656. soname_spec='${libname}${release}${shared_ext}$major'
  12657. ;;
  12658. aix[4-9]*)
  12659. version_type=linux # correct to gnu/linux during the next big refactor
  12660. need_lib_prefix=no
  12661. need_version=no
  12662. hardcode_into_libs=yes
  12663. if test "$host_cpu" = ia64; then
  12664. # AIX 5 supports IA64
  12665. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12666. shlibpath_var=LD_LIBRARY_PATH
  12667. else
  12668. # With GCC up to 2.95.x, collect2 would create an import file
  12669. # for dependence libraries. The import file would start with
  12670. # the line `#! .'. This would cause the generated library to
  12671. # depend on `.', always an invalid library. This was fixed in
  12672. # development snapshots of GCC prior to 3.0.
  12673. case $host_os in
  12674. aix4 | aix4.[01] | aix4.[01].*)
  12675. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12676. echo ' yes '
  12677. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12678. :
  12679. else
  12680. can_build_shared=no
  12681. fi
  12682. ;;
  12683. esac
  12684. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12685. # soname into executable. Probably we can add versioning support to
  12686. # collect2, so additional links can be useful in future.
  12687. if test "$aix_use_runtimelinking" = yes; then
  12688. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12689. # instead of lib<name>.a to let people know that these are not
  12690. # typical AIX shared libraries.
  12691. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12692. else
  12693. # We preserve .a as extension for shared libraries through AIX4.2
  12694. # and later when we are not doing run time linking.
  12695. library_names_spec='${libname}${release}.a $libname.a'
  12696. soname_spec='${libname}${release}${shared_ext}$major'
  12697. fi
  12698. shlibpath_var=LIBPATH
  12699. fi
  12700. ;;
  12701. amigaos*)
  12702. case $host_cpu in
  12703. powerpc)
  12704. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12705. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12706. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12707. ;;
  12708. m68k)
  12709. library_names_spec='$libname.ixlibrary $libname.a'
  12710. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12711. 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'
  12712. ;;
  12713. esac
  12714. ;;
  12715. beos*)
  12716. library_names_spec='${libname}${shared_ext}'
  12717. dynamic_linker="$host_os ld.so"
  12718. shlibpath_var=LIBRARY_PATH
  12719. ;;
  12720. bsdi[45]*)
  12721. version_type=linux # correct to gnu/linux during the next big refactor
  12722. need_version=no
  12723. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12724. soname_spec='${libname}${release}${shared_ext}$major'
  12725. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12726. shlibpath_var=LD_LIBRARY_PATH
  12727. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12728. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12729. # the default ld.so.conf also contains /usr/contrib/lib and
  12730. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12731. # libtool to hard-code these into programs
  12732. ;;
  12733. cygwin* | mingw* | pw32* | cegcc*)
  12734. version_type=windows
  12735. shrext_cmds=".dll"
  12736. need_version=no
  12737. need_lib_prefix=no
  12738. case $GCC,$cc_basename in
  12739. yes,*)
  12740. # gcc
  12741. library_names_spec='$libname.dll.a'
  12742. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12743. postinstall_cmds='base_file=`basename \${file}`~
  12744. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12745. dldir=$destdir/`dirname \$dlpath`~
  12746. test -d \$dldir || mkdir -p \$dldir~
  12747. $install_prog $dir/$dlname \$dldir/$dlname~
  12748. chmod a+x \$dldir/$dlname~
  12749. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12750. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12751. fi'
  12752. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12753. dlpath=$dir/\$dldll~
  12754. $RM \$dlpath'
  12755. shlibpath_overrides_runpath=yes
  12756. case $host_os in
  12757. cygwin*)
  12758. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12759. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12760. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12761. ;;
  12762. mingw* | cegcc*)
  12763. # MinGW DLLs use traditional 'lib' prefix
  12764. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12765. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12766. ;;
  12767. pw32*)
  12768. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12769. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12770. ;;
  12771. esac
  12772. dynamic_linker='Win32 ld.exe'
  12773. ;;
  12774. *,cl*)
  12775. # Native MSVC
  12776. libname_spec='$name'
  12777. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12778. library_names_spec='${libname}.dll.lib'
  12779. case $build_os in
  12780. mingw*)
  12781. sys_lib_search_path_spec=
  12782. lt_save_ifs=$IFS
  12783. IFS=';'
  12784. for lt_path in $LIB
  12785. do
  12786. IFS=$lt_save_ifs
  12787. # Let DOS variable expansion print the short 8.3 style file name.
  12788. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12789. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12790. done
  12791. IFS=$lt_save_ifs
  12792. # Convert to MSYS style.
  12793. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12794. ;;
  12795. cygwin*)
  12796. # Convert to unix form, then to dos form, then back to unix form
  12797. # but this time dos style (no spaces!) so that the unix form looks
  12798. # like /cygdrive/c/PROGRA~1:/cygdr...
  12799. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12800. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12801. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12802. ;;
  12803. *)
  12804. sys_lib_search_path_spec="$LIB"
  12805. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12806. # It is most probably a Windows format PATH.
  12807. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12808. else
  12809. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12810. fi
  12811. # FIXME: find the short name or the path components, as spaces are
  12812. # common. (e.g. "Program Files" -> "PROGRA~1")
  12813. ;;
  12814. esac
  12815. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12816. postinstall_cmds='base_file=`basename \${file}`~
  12817. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12818. dldir=$destdir/`dirname \$dlpath`~
  12819. test -d \$dldir || mkdir -p \$dldir~
  12820. $install_prog $dir/$dlname \$dldir/$dlname'
  12821. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12822. dlpath=$dir/\$dldll~
  12823. $RM \$dlpath'
  12824. shlibpath_overrides_runpath=yes
  12825. dynamic_linker='Win32 link.exe'
  12826. ;;
  12827. *)
  12828. # Assume MSVC wrapper
  12829. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12830. dynamic_linker='Win32 ld.exe'
  12831. ;;
  12832. esac
  12833. # FIXME: first we should search . and the directory the executable is in
  12834. shlibpath_var=PATH
  12835. ;;
  12836. darwin* | rhapsody*)
  12837. dynamic_linker="$host_os dyld"
  12838. version_type=darwin
  12839. need_lib_prefix=no
  12840. need_version=no
  12841. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12842. soname_spec='${libname}${release}${major}$shared_ext'
  12843. shlibpath_overrides_runpath=yes
  12844. shlibpath_var=DYLD_LIBRARY_PATH
  12845. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12846. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12847. ;;
  12848. dgux*)
  12849. version_type=linux # correct to gnu/linux during the next big refactor
  12850. need_lib_prefix=no
  12851. need_version=no
  12852. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12853. soname_spec='${libname}${release}${shared_ext}$major'
  12854. shlibpath_var=LD_LIBRARY_PATH
  12855. ;;
  12856. freebsd* | dragonfly*)
  12857. # DragonFly does not have aout. When/if they implement a new
  12858. # versioning mechanism, adjust this.
  12859. if test -x /usr/bin/objformat; then
  12860. objformat=`/usr/bin/objformat`
  12861. else
  12862. case $host_os in
  12863. freebsd[23].*) objformat=aout ;;
  12864. *) objformat=elf ;;
  12865. esac
  12866. fi
  12867. version_type=freebsd-$objformat
  12868. case $version_type in
  12869. freebsd-elf*)
  12870. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12871. need_version=no
  12872. need_lib_prefix=no
  12873. ;;
  12874. freebsd-*)
  12875. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12876. need_version=yes
  12877. ;;
  12878. esac
  12879. shlibpath_var=LD_LIBRARY_PATH
  12880. case $host_os in
  12881. freebsd2.*)
  12882. shlibpath_overrides_runpath=yes
  12883. ;;
  12884. freebsd3.[01]* | freebsdelf3.[01]*)
  12885. shlibpath_overrides_runpath=yes
  12886. hardcode_into_libs=yes
  12887. ;;
  12888. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12889. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12890. shlibpath_overrides_runpath=no
  12891. hardcode_into_libs=yes
  12892. ;;
  12893. *) # from 4.6 on, and DragonFly
  12894. shlibpath_overrides_runpath=yes
  12895. hardcode_into_libs=yes
  12896. ;;
  12897. esac
  12898. ;;
  12899. gnu*)
  12900. version_type=linux # correct to gnu/linux during the next big refactor
  12901. need_lib_prefix=no
  12902. need_version=no
  12903. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12904. soname_spec='${libname}${release}${shared_ext}$major'
  12905. shlibpath_var=LD_LIBRARY_PATH
  12906. shlibpath_overrides_runpath=no
  12907. hardcode_into_libs=yes
  12908. ;;
  12909. haiku*)
  12910. version_type=linux # correct to gnu/linux during the next big refactor
  12911. need_lib_prefix=no
  12912. need_version=no
  12913. dynamic_linker="$host_os runtime_loader"
  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. shlibpath_var=LIBRARY_PATH
  12917. shlibpath_overrides_runpath=yes
  12918. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12919. hardcode_into_libs=yes
  12920. ;;
  12921. hpux9* | hpux10* | hpux11*)
  12922. # Give a soname corresponding to the major version so that dld.sl refuses to
  12923. # link against other versions.
  12924. version_type=sunos
  12925. need_lib_prefix=no
  12926. need_version=no
  12927. case $host_cpu in
  12928. ia64*)
  12929. shrext_cmds='.so'
  12930. hardcode_into_libs=yes
  12931. dynamic_linker="$host_os dld.so"
  12932. shlibpath_var=LD_LIBRARY_PATH
  12933. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12934. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12935. soname_spec='${libname}${release}${shared_ext}$major'
  12936. if test "X$HPUX_IA64_MODE" = X32; then
  12937. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12938. else
  12939. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12940. fi
  12941. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12942. ;;
  12943. hppa*64*)
  12944. shrext_cmds='.sl'
  12945. hardcode_into_libs=yes
  12946. dynamic_linker="$host_os dld.sl"
  12947. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12948. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12949. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12950. soname_spec='${libname}${release}${shared_ext}$major'
  12951. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12952. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12953. ;;
  12954. *)
  12955. shrext_cmds='.sl'
  12956. dynamic_linker="$host_os dld.sl"
  12957. shlibpath_var=SHLIB_PATH
  12958. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12959. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12960. soname_spec='${libname}${release}${shared_ext}$major'
  12961. ;;
  12962. esac
  12963. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12964. postinstall_cmds='chmod 555 $lib'
  12965. # or fails outright, so override atomically:
  12966. install_override_mode=555
  12967. ;;
  12968. interix[3-9]*)
  12969. version_type=linux # correct to gnu/linux during the next big refactor
  12970. need_lib_prefix=no
  12971. need_version=no
  12972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12973. soname_spec='${libname}${release}${shared_ext}$major'
  12974. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12975. shlibpath_var=LD_LIBRARY_PATH
  12976. shlibpath_overrides_runpath=no
  12977. hardcode_into_libs=yes
  12978. ;;
  12979. irix5* | irix6* | nonstopux*)
  12980. case $host_os in
  12981. nonstopux*) version_type=nonstopux ;;
  12982. *)
  12983. if test "$lt_cv_prog_gnu_ld" = yes; then
  12984. version_type=linux # correct to gnu/linux during the next big refactor
  12985. else
  12986. version_type=irix
  12987. fi ;;
  12988. esac
  12989. need_lib_prefix=no
  12990. need_version=no
  12991. soname_spec='${libname}${release}${shared_ext}$major'
  12992. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12993. case $host_os in
  12994. irix5* | nonstopux*)
  12995. libsuff= shlibsuff=
  12996. ;;
  12997. *)
  12998. case $LD in # libtool.m4 will add one of these switches to LD
  12999. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13000. libsuff= shlibsuff= libmagic=32-bit;;
  13001. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13002. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13003. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13004. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13005. *) libsuff= shlibsuff= libmagic=never-match;;
  13006. esac
  13007. ;;
  13008. esac
  13009. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13010. shlibpath_overrides_runpath=no
  13011. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13012. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13013. hardcode_into_libs=yes
  13014. ;;
  13015. # No shared lib support for Linux oldld, aout, or coff.
  13016. linux*oldld* | linux*aout* | linux*coff*)
  13017. dynamic_linker=no
  13018. ;;
  13019. # This must be glibc/ELF.
  13020. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13021. version_type=linux # correct to gnu/linux during the next big refactor
  13022. need_lib_prefix=no
  13023. need_version=no
  13024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13025. soname_spec='${libname}${release}${shared_ext}$major'
  13026. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13027. shlibpath_var=LD_LIBRARY_PATH
  13028. shlibpath_overrides_runpath=no
  13029. # Some binutils ld are patched to set DT_RUNPATH
  13030. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13031. $as_echo_n "(cached) " >&6
  13032. else
  13033. lt_cv_shlibpath_overrides_runpath=no
  13034. save_LDFLAGS=$LDFLAGS
  13035. save_libdir=$libdir
  13036. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13037. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13039. /* end confdefs.h. */
  13040. int
  13041. main ()
  13042. {
  13043. ;
  13044. return 0;
  13045. }
  13046. _ACEOF
  13047. if ac_fn_cxx_try_link "$LINENO"; then :
  13048. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13049. lt_cv_shlibpath_overrides_runpath=yes
  13050. fi
  13051. fi
  13052. rm -f core conftest.err conftest.$ac_objext \
  13053. conftest$ac_exeext conftest.$ac_ext
  13054. LDFLAGS=$save_LDFLAGS
  13055. libdir=$save_libdir
  13056. fi
  13057. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13058. # This implies no fast_install, which is unacceptable.
  13059. # Some rework will be needed to allow for fast_install
  13060. # before this can be enabled.
  13061. hardcode_into_libs=yes
  13062. # Append ld.so.conf contents to the search path
  13063. if test -f /etc/ld.so.conf; then
  13064. 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' ' '`
  13065. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13066. fi
  13067. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13068. # powerpc, because MkLinux only supported shared libraries with the
  13069. # GNU dynamic linker. Since this was broken with cross compilers,
  13070. # most powerpc-linux boxes support dynamic linking these days and
  13071. # people can always --disable-shared, the test was removed, and we
  13072. # assume the GNU/Linux dynamic linker is in use.
  13073. dynamic_linker='GNU/Linux ld.so'
  13074. ;;
  13075. netbsd*)
  13076. version_type=sunos
  13077. need_lib_prefix=no
  13078. need_version=no
  13079. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13080. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13081. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13082. dynamic_linker='NetBSD (a.out) ld.so'
  13083. else
  13084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13085. soname_spec='${libname}${release}${shared_ext}$major'
  13086. dynamic_linker='NetBSD ld.elf_so'
  13087. fi
  13088. shlibpath_var=LD_LIBRARY_PATH
  13089. shlibpath_overrides_runpath=yes
  13090. hardcode_into_libs=yes
  13091. ;;
  13092. newsos6)
  13093. version_type=linux # correct to gnu/linux during the next big refactor
  13094. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13095. shlibpath_var=LD_LIBRARY_PATH
  13096. shlibpath_overrides_runpath=yes
  13097. ;;
  13098. *nto* | *qnx*)
  13099. version_type=qnx
  13100. need_lib_prefix=no
  13101. need_version=no
  13102. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13103. soname_spec='${libname}${release}${shared_ext}$major'
  13104. shlibpath_var=LD_LIBRARY_PATH
  13105. shlibpath_overrides_runpath=no
  13106. hardcode_into_libs=yes
  13107. dynamic_linker='ldqnx.so'
  13108. ;;
  13109. openbsd*)
  13110. version_type=sunos
  13111. sys_lib_dlsearch_path_spec="/usr/lib"
  13112. need_lib_prefix=no
  13113. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13114. case $host_os in
  13115. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13116. *) need_version=no ;;
  13117. esac
  13118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13119. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13120. shlibpath_var=LD_LIBRARY_PATH
  13121. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13122. case $host_os in
  13123. openbsd2.[89] | openbsd2.[89].*)
  13124. shlibpath_overrides_runpath=no
  13125. ;;
  13126. *)
  13127. shlibpath_overrides_runpath=yes
  13128. ;;
  13129. esac
  13130. else
  13131. shlibpath_overrides_runpath=yes
  13132. fi
  13133. ;;
  13134. os2*)
  13135. libname_spec='$name'
  13136. shrext_cmds=".dll"
  13137. need_lib_prefix=no
  13138. library_names_spec='$libname${shared_ext} $libname.a'
  13139. dynamic_linker='OS/2 ld.exe'
  13140. shlibpath_var=LIBPATH
  13141. ;;
  13142. osf3* | osf4* | osf5*)
  13143. version_type=osf
  13144. need_lib_prefix=no
  13145. need_version=no
  13146. soname_spec='${libname}${release}${shared_ext}$major'
  13147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13148. shlibpath_var=LD_LIBRARY_PATH
  13149. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13150. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13151. ;;
  13152. rdos*)
  13153. dynamic_linker=no
  13154. ;;
  13155. solaris*)
  13156. version_type=linux # correct to gnu/linux during the next big refactor
  13157. need_lib_prefix=no
  13158. need_version=no
  13159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13160. soname_spec='${libname}${release}${shared_ext}$major'
  13161. shlibpath_var=LD_LIBRARY_PATH
  13162. shlibpath_overrides_runpath=yes
  13163. hardcode_into_libs=yes
  13164. # ldd complains unless libraries are executable
  13165. postinstall_cmds='chmod +x $lib'
  13166. ;;
  13167. sunos4*)
  13168. version_type=sunos
  13169. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13170. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13171. shlibpath_var=LD_LIBRARY_PATH
  13172. shlibpath_overrides_runpath=yes
  13173. if test "$with_gnu_ld" = yes; then
  13174. need_lib_prefix=no
  13175. fi
  13176. need_version=yes
  13177. ;;
  13178. sysv4 | sysv4.3*)
  13179. version_type=linux # correct to gnu/linux during the next big refactor
  13180. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13181. soname_spec='${libname}${release}${shared_ext}$major'
  13182. shlibpath_var=LD_LIBRARY_PATH
  13183. case $host_vendor in
  13184. sni)
  13185. shlibpath_overrides_runpath=no
  13186. need_lib_prefix=no
  13187. runpath_var=LD_RUN_PATH
  13188. ;;
  13189. siemens)
  13190. need_lib_prefix=no
  13191. ;;
  13192. motorola)
  13193. need_lib_prefix=no
  13194. need_version=no
  13195. shlibpath_overrides_runpath=no
  13196. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13197. ;;
  13198. esac
  13199. ;;
  13200. sysv4*MP*)
  13201. if test -d /usr/nec ;then
  13202. version_type=linux # correct to gnu/linux during the next big refactor
  13203. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13204. soname_spec='$libname${shared_ext}.$major'
  13205. shlibpath_var=LD_LIBRARY_PATH
  13206. fi
  13207. ;;
  13208. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13209. version_type=freebsd-elf
  13210. need_lib_prefix=no
  13211. need_version=no
  13212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13213. soname_spec='${libname}${release}${shared_ext}$major'
  13214. shlibpath_var=LD_LIBRARY_PATH
  13215. shlibpath_overrides_runpath=yes
  13216. hardcode_into_libs=yes
  13217. if test "$with_gnu_ld" = yes; then
  13218. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13219. else
  13220. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13221. case $host_os in
  13222. sco3.2v5*)
  13223. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13224. ;;
  13225. esac
  13226. fi
  13227. sys_lib_dlsearch_path_spec='/usr/lib'
  13228. ;;
  13229. tpf*)
  13230. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13231. version_type=linux # correct to gnu/linux during the next big refactor
  13232. need_lib_prefix=no
  13233. need_version=no
  13234. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13235. shlibpath_var=LD_LIBRARY_PATH
  13236. shlibpath_overrides_runpath=no
  13237. hardcode_into_libs=yes
  13238. ;;
  13239. uts4*)
  13240. version_type=linux # correct to gnu/linux during the next big refactor
  13241. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13242. soname_spec='${libname}${release}${shared_ext}$major'
  13243. shlibpath_var=LD_LIBRARY_PATH
  13244. ;;
  13245. *)
  13246. dynamic_linker=no
  13247. ;;
  13248. esac
  13249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13250. $as_echo "$dynamic_linker" >&6; }
  13251. test "$dynamic_linker" = no && can_build_shared=no
  13252. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13253. if test "$GCC" = yes; then
  13254. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13255. fi
  13256. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13257. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13258. fi
  13259. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13260. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13261. fi
  13262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13263. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13264. hardcode_action_CXX=
  13265. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13266. test -n "$runpath_var_CXX" ||
  13267. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13268. # We can hardcode non-existent directories.
  13269. if test "$hardcode_direct_CXX" != no &&
  13270. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13271. # have to relink, otherwise we might link with an installed library
  13272. # when we should be linking with a yet-to-be-installed one
  13273. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13274. test "$hardcode_minus_L_CXX" != no; then
  13275. # Linking always hardcodes the temporary library directory.
  13276. hardcode_action_CXX=relink
  13277. else
  13278. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13279. hardcode_action_CXX=immediate
  13280. fi
  13281. else
  13282. # We cannot hardcode anything, or else we can only hardcode existing
  13283. # directories.
  13284. hardcode_action_CXX=unsupported
  13285. fi
  13286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13287. $as_echo "$hardcode_action_CXX" >&6; }
  13288. if test "$hardcode_action_CXX" = relink ||
  13289. test "$inherit_rpath_CXX" = yes; then
  13290. # Fast installation is not supported
  13291. enable_fast_install=no
  13292. elif test "$shlibpath_overrides_runpath" = yes ||
  13293. test "$enable_shared" = no; then
  13294. # Fast installation is not necessary
  13295. enable_fast_install=needless
  13296. fi
  13297. fi # test -n "$compiler"
  13298. CC=$lt_save_CC
  13299. CFLAGS=$lt_save_CFLAGS
  13300. LDCXX=$LD
  13301. LD=$lt_save_LD
  13302. GCC=$lt_save_GCC
  13303. with_gnu_ld=$lt_save_with_gnu_ld
  13304. lt_cv_path_LDCXX=$lt_cv_path_LD
  13305. lt_cv_path_LD=$lt_save_path_LD
  13306. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13307. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13308. fi # test "$_lt_caught_CXX_error" != yes
  13309. ac_ext=c
  13310. ac_cpp='$CPP $CPPFLAGS'
  13311. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13312. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13313. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13314. # Find a good install program. We prefer a C program (faster),
  13315. # so one script is as good as another. But avoid the broken or
  13316. # incompatible versions:
  13317. # SysV /etc/install, /usr/sbin/install
  13318. # SunOS /usr/etc/install
  13319. # IRIX /sbin/install
  13320. # AIX /bin/install
  13321. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13322. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13323. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13324. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13325. # OS/2's system install, which has a completely different semantic
  13326. # ./install, which can be erroneously created by make from ./install.sh.
  13327. # Reject install programs that cannot install multiple files.
  13328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13329. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13330. if test -z "$INSTALL"; then
  13331. if ${ac_cv_path_install+:} false; then :
  13332. $as_echo_n "(cached) " >&6
  13333. else
  13334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13335. for as_dir in $PATH
  13336. do
  13337. IFS=$as_save_IFS
  13338. test -z "$as_dir" && as_dir=.
  13339. # Account for people who put trailing slashes in PATH elements.
  13340. case $as_dir/ in #((
  13341. ./ | .// | /[cC]/* | \
  13342. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13343. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13344. /usr/ucb/* ) ;;
  13345. *)
  13346. # OSF1 and SCO ODT 3.0 have their own names for install.
  13347. # Don't use installbsd from OSF since it installs stuff as root
  13348. # by default.
  13349. for ac_prog in ginstall scoinst install; do
  13350. for ac_exec_ext in '' $ac_executable_extensions; do
  13351. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13352. if test $ac_prog = install &&
  13353. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13354. # AIX install. It has an incompatible calling convention.
  13355. :
  13356. elif test $ac_prog = install &&
  13357. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13358. # program-specific install script used by HP pwplus--don't use.
  13359. :
  13360. else
  13361. rm -rf conftest.one conftest.two conftest.dir
  13362. echo one > conftest.one
  13363. echo two > conftest.two
  13364. mkdir conftest.dir
  13365. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13366. test -s conftest.one && test -s conftest.two &&
  13367. test -s conftest.dir/conftest.one &&
  13368. test -s conftest.dir/conftest.two
  13369. then
  13370. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13371. break 3
  13372. fi
  13373. fi
  13374. fi
  13375. done
  13376. done
  13377. ;;
  13378. esac
  13379. done
  13380. IFS=$as_save_IFS
  13381. rm -rf conftest.one conftest.two conftest.dir
  13382. fi
  13383. if test "${ac_cv_path_install+set}" = set; then
  13384. INSTALL=$ac_cv_path_install
  13385. else
  13386. # As a last resort, use the slow shell script. Don't cache a
  13387. # value for INSTALL within a source directory, because that will
  13388. # break other packages using the cache if that directory is
  13389. # removed, or if the value is a relative name.
  13390. INSTALL=$ac_install_sh
  13391. fi
  13392. fi
  13393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13394. $as_echo "$INSTALL" >&6; }
  13395. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13396. # It thinks the first close brace ends the variable substitution.
  13397. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13398. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13399. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13401. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13402. set x ${MAKE-make}
  13403. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13404. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13405. $as_echo_n "(cached) " >&6
  13406. else
  13407. cat >conftest.make <<\_ACEOF
  13408. SHELL = /bin/sh
  13409. all:
  13410. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13411. _ACEOF
  13412. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13413. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13414. *@@@%%%=?*=@@@%%%*)
  13415. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13416. *)
  13417. eval ac_cv_prog_make_${ac_make}_set=no;;
  13418. esac
  13419. rm -f conftest.make
  13420. fi
  13421. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13423. $as_echo "yes" >&6; }
  13424. SET_MAKE=
  13425. else
  13426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13427. $as_echo "no" >&6; }
  13428. SET_MAKE="MAKE=${MAKE-make}"
  13429. fi
  13430. if test -n "$ac_tool_prefix"; then
  13431. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13432. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13434. $as_echo_n "checking for $ac_word... " >&6; }
  13435. if ${ac_cv_prog_WINDRES+:} false; then :
  13436. $as_echo_n "(cached) " >&6
  13437. else
  13438. if test -n "$WINDRES"; then
  13439. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13440. else
  13441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13442. for as_dir in $PATH
  13443. do
  13444. IFS=$as_save_IFS
  13445. test -z "$as_dir" && as_dir=.
  13446. for ac_exec_ext in '' $ac_executable_extensions; do
  13447. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13448. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13449. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13450. break 2
  13451. fi
  13452. done
  13453. done
  13454. IFS=$as_save_IFS
  13455. fi
  13456. fi
  13457. WINDRES=$ac_cv_prog_WINDRES
  13458. if test -n "$WINDRES"; then
  13459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13460. $as_echo "$WINDRES" >&6; }
  13461. else
  13462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13463. $as_echo "no" >&6; }
  13464. fi
  13465. fi
  13466. if test -z "$ac_cv_prog_WINDRES"; then
  13467. ac_ct_WINDRES=$WINDRES
  13468. # Extract the first word of "windres", so it can be a program name with args.
  13469. set dummy windres; ac_word=$2
  13470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13471. $as_echo_n "checking for $ac_word... " >&6; }
  13472. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13473. $as_echo_n "(cached) " >&6
  13474. else
  13475. if test -n "$ac_ct_WINDRES"; then
  13476. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13477. else
  13478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13479. for as_dir in $PATH
  13480. do
  13481. IFS=$as_save_IFS
  13482. test -z "$as_dir" && as_dir=.
  13483. for ac_exec_ext in '' $ac_executable_extensions; do
  13484. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13485. ac_cv_prog_ac_ct_WINDRES="windres"
  13486. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13487. break 2
  13488. fi
  13489. done
  13490. done
  13491. IFS=$as_save_IFS
  13492. fi
  13493. fi
  13494. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13495. if test -n "$ac_ct_WINDRES"; then
  13496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13497. $as_echo "$ac_ct_WINDRES" >&6; }
  13498. else
  13499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13500. $as_echo "no" >&6; }
  13501. fi
  13502. if test "x$ac_ct_WINDRES" = x; then
  13503. WINDRES=":"
  13504. else
  13505. case $cross_compiling:$ac_tool_warned in
  13506. yes:)
  13507. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13508. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13509. ac_tool_warned=yes ;;
  13510. esac
  13511. WINDRES=$ac_ct_WINDRES
  13512. fi
  13513. else
  13514. WINDRES="$ac_cv_prog_WINDRES"
  13515. fi
  13516. case "$host" in
  13517. *-*-mingw32*)
  13518. # Except on msys, where make can't handle full pathnames (bug 1972)
  13519. ;;
  13520. *)
  13521. srcdir=`cd $srcdir && pwd`
  13522. ;;
  13523. esac
  13524. INCLUDE="-I$srcdir/include"
  13525. if test x$srcdir != x.; then
  13526. INCLUDE="-Iinclude $INCLUDE"
  13527. elif test -d .hg; then
  13528. as_fn_error $? "
  13529. *** When building from Mercurial you should configure and build in a
  13530. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13531. " "$LINENO" 5
  13532. fi
  13533. BASE_CFLAGS=""
  13534. BASE_LDFLAGS=""
  13535. case "$host" in
  13536. *-*-cygwin*)
  13537. # We build SDL on cygwin without the UNIX emulation layer
  13538. save_CFLAGS="$CFLAGS"
  13539. have_no_cygwin=no
  13540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13541. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13542. CFLAGS="$save_CFLAGS -mno-cygwin"
  13543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13544. /* end confdefs.h. */
  13545. int
  13546. main ()
  13547. {
  13548. ;
  13549. return 0;
  13550. }
  13551. _ACEOF
  13552. if ac_fn_c_try_compile "$LINENO"; then :
  13553. have_no_cygwin=yes
  13554. fi
  13555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13557. $as_echo "$have_no_cygwin" >&6; }
  13558. CFLAGS="$save_CFLAGS"
  13559. if test x$have_no_cygwin = xyes; then
  13560. BASE_CFLAGS="-mno-cygwin"
  13561. BASE_LDFLAGS="-mno-cygwin"
  13562. fi
  13563. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13564. ;;
  13565. esac
  13566. # Uncomment the following line if you want to force SDL and applications
  13567. # built with it to be compiled for a particular architecture.
  13568. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13569. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13570. # The default optimization for SDL is -O3 (Bug #31)
  13571. if test "x$orig_CFLAGS" = x; then
  13572. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13573. fi
  13574. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13575. BUILD_LDFLAGS="$LDFLAGS"
  13576. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13577. ## These are common directories to find software packages
  13578. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13579. # if test -d $path/include; then
  13580. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13581. # fi
  13582. # if test -d $path/lib; then
  13583. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13584. # fi
  13585. #done
  13586. SDL_CFLAGS="$BASE_CFLAGS"
  13587. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13588. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13589. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13590. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13591. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13592. find_lib()
  13593. {
  13594. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13595. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13596. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13597. if test "$cross_compiling" = yes; then
  13598. host_lib_path=""
  13599. else
  13600. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13601. fi
  13602. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13603. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13604. if test x$lib != x; then
  13605. echo $lib
  13606. return
  13607. fi
  13608. done
  13609. }
  13610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13611. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13612. if ${ac_cv_c_const+:} false; then :
  13613. $as_echo_n "(cached) " >&6
  13614. else
  13615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13616. /* end confdefs.h. */
  13617. int
  13618. main ()
  13619. {
  13620. #ifndef __cplusplus
  13621. /* Ultrix mips cc rejects this sort of thing. */
  13622. typedef int charset[2];
  13623. const charset cs = { 0, 0 };
  13624. /* SunOS 4.1.1 cc rejects this. */
  13625. char const *const *pcpcc;
  13626. char **ppc;
  13627. /* NEC SVR4.0.2 mips cc rejects this. */
  13628. struct point {int x, y;};
  13629. static struct point const zero = {0,0};
  13630. /* AIX XL C 1.02.0.0 rejects this.
  13631. It does not let you subtract one const X* pointer from another in
  13632. an arm of an if-expression whose if-part is not a constant
  13633. expression */
  13634. const char *g = "string";
  13635. pcpcc = &g + (g ? g-g : 0);
  13636. /* HPUX 7.0 cc rejects these. */
  13637. ++pcpcc;
  13638. ppc = (char**) pcpcc;
  13639. pcpcc = (char const *const *) ppc;
  13640. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13641. char tx;
  13642. char *t = &tx;
  13643. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13644. *t++ = 0;
  13645. if (s) return 0;
  13646. }
  13647. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13648. int x[] = {25, 17};
  13649. const int *foo = &x[0];
  13650. ++foo;
  13651. }
  13652. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13653. typedef const int *iptr;
  13654. iptr p = 0;
  13655. ++p;
  13656. }
  13657. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13658. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13659. struct s { int j; const int *ap[3]; } bx;
  13660. struct s *b = &bx; b->j = 5;
  13661. }
  13662. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13663. const int foo = 10;
  13664. if (!foo) return 0;
  13665. }
  13666. return !cs[0] && !zero.x;
  13667. #endif
  13668. ;
  13669. return 0;
  13670. }
  13671. _ACEOF
  13672. if ac_fn_c_try_compile "$LINENO"; then :
  13673. ac_cv_c_const=yes
  13674. else
  13675. ac_cv_c_const=no
  13676. fi
  13677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13678. fi
  13679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13680. $as_echo "$ac_cv_c_const" >&6; }
  13681. if test $ac_cv_c_const = no; then
  13682. $as_echo "#define const /**/" >>confdefs.h
  13683. fi
  13684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13685. $as_echo_n "checking for inline... " >&6; }
  13686. if ${ac_cv_c_inline+:} false; then :
  13687. $as_echo_n "(cached) " >&6
  13688. else
  13689. ac_cv_c_inline=no
  13690. for ac_kw in inline __inline__ __inline; do
  13691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13692. /* end confdefs.h. */
  13693. #ifndef __cplusplus
  13694. typedef int foo_t;
  13695. static $ac_kw foo_t static_foo () {return 0; }
  13696. $ac_kw foo_t foo () {return 0; }
  13697. #endif
  13698. _ACEOF
  13699. if ac_fn_c_try_compile "$LINENO"; then :
  13700. ac_cv_c_inline=$ac_kw
  13701. fi
  13702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13703. test "$ac_cv_c_inline" != no && break
  13704. done
  13705. fi
  13706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13707. $as_echo "$ac_cv_c_inline" >&6; }
  13708. case $ac_cv_c_inline in
  13709. inline | yes) ;;
  13710. *)
  13711. case $ac_cv_c_inline in
  13712. no) ac_val=;;
  13713. *) ac_val=$ac_cv_c_inline;;
  13714. esac
  13715. cat >>confdefs.h <<_ACEOF
  13716. #ifndef __cplusplus
  13717. #define inline $ac_val
  13718. #endif
  13719. _ACEOF
  13720. ;;
  13721. esac
  13722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13723. $as_echo_n "checking for working volatile... " >&6; }
  13724. if ${ac_cv_c_volatile+:} false; then :
  13725. $as_echo_n "(cached) " >&6
  13726. else
  13727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13728. /* end confdefs.h. */
  13729. int
  13730. main ()
  13731. {
  13732. volatile int x;
  13733. int * volatile y = (int *) 0;
  13734. return !x && !y;
  13735. ;
  13736. return 0;
  13737. }
  13738. _ACEOF
  13739. if ac_fn_c_try_compile "$LINENO"; then :
  13740. ac_cv_c_volatile=yes
  13741. else
  13742. ac_cv_c_volatile=no
  13743. fi
  13744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13745. fi
  13746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13747. $as_echo "$ac_cv_c_volatile" >&6; }
  13748. if test $ac_cv_c_volatile = no; then
  13749. $as_echo "#define volatile /**/" >>confdefs.h
  13750. fi
  13751. # Check whether --enable-assertions was given.
  13752. if test "${enable_assertions+set}" = set; then :
  13753. enableval=$enable_assertions;
  13754. else
  13755. enable_assertions=auto
  13756. fi
  13757. case "$enable_assertions" in
  13758. auto) # Use optimization settings to determine assertion level
  13759. ;;
  13760. disabled)
  13761. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13762. ;;
  13763. release)
  13764. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13765. ;;
  13766. enabled)
  13767. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13768. ;;
  13769. paranoid)
  13770. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13771. ;;
  13772. *)
  13773. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13774. ;;
  13775. esac
  13776. # Check whether --enable-dependency-tracking was given.
  13777. if test "${enable_dependency_tracking+set}" = set; then :
  13778. enableval=$enable_dependency_tracking;
  13779. else
  13780. enable_dependency_tracking=yes
  13781. fi
  13782. if test x$enable_dependency_tracking = xyes; then
  13783. have_gcc_mmd_mt=no
  13784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13785. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13787. /* end confdefs.h. */
  13788. #if !defined(__GNUC__) || __GNUC__ < 3
  13789. #error Dependency tracking requires GCC 3.0 or newer
  13790. #endif
  13791. int
  13792. main ()
  13793. {
  13794. ;
  13795. return 0;
  13796. }
  13797. _ACEOF
  13798. if ac_fn_c_try_compile "$LINENO"; then :
  13799. have_gcc_mmd_mt=yes
  13800. fi
  13801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13803. $as_echo "$have_gcc_mmd_mt" >&6; }
  13804. if test x$have_gcc_mmd_mt = xyes; then
  13805. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13806. fi
  13807. fi
  13808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13809. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13810. have_no_undefined=no
  13811. case "$host" in
  13812. *-*-openbsd*)
  13813. ;;
  13814. *)
  13815. save_LDFLAGS="$LDFLAGS"
  13816. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13818. /* end confdefs.h. */
  13819. int
  13820. main ()
  13821. {
  13822. ;
  13823. return 0;
  13824. }
  13825. _ACEOF
  13826. if ac_fn_c_try_link "$LINENO"; then :
  13827. have_no_undefined=yes
  13828. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13829. fi
  13830. rm -f core conftest.err conftest.$ac_objext \
  13831. conftest$ac_exeext conftest.$ac_ext
  13832. LDFLAGS="$save_LDFLAGS"
  13833. ;;
  13834. esac
  13835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13836. $as_echo "$have_no_undefined" >&6; }
  13837. # Check whether --enable-libc was given.
  13838. if test "${enable_libc+set}" = set; then :
  13839. enableval=$enable_libc;
  13840. else
  13841. enable_libc=yes
  13842. fi
  13843. if test x$enable_libc = xyes; then
  13844. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13846. $as_echo_n "checking for ANSI C header files... " >&6; }
  13847. if ${ac_cv_header_stdc+:} false; then :
  13848. $as_echo_n "(cached) " >&6
  13849. else
  13850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13851. /* end confdefs.h. */
  13852. #include <stdlib.h>
  13853. #include <stdarg.h>
  13854. #include <string.h>
  13855. #include <float.h>
  13856. int
  13857. main ()
  13858. {
  13859. ;
  13860. return 0;
  13861. }
  13862. _ACEOF
  13863. if ac_fn_c_try_compile "$LINENO"; then :
  13864. ac_cv_header_stdc=yes
  13865. else
  13866. ac_cv_header_stdc=no
  13867. fi
  13868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13869. if test $ac_cv_header_stdc = yes; then
  13870. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13872. /* end confdefs.h. */
  13873. #include <string.h>
  13874. _ACEOF
  13875. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13876. $EGREP "memchr" >/dev/null 2>&1; then :
  13877. else
  13878. ac_cv_header_stdc=no
  13879. fi
  13880. rm -f conftest*
  13881. fi
  13882. if test $ac_cv_header_stdc = yes; then
  13883. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13885. /* end confdefs.h. */
  13886. #include <stdlib.h>
  13887. _ACEOF
  13888. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13889. $EGREP "free" >/dev/null 2>&1; then :
  13890. else
  13891. ac_cv_header_stdc=no
  13892. fi
  13893. rm -f conftest*
  13894. fi
  13895. if test $ac_cv_header_stdc = yes; then
  13896. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13897. if test "$cross_compiling" = yes; then :
  13898. :
  13899. else
  13900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13901. /* end confdefs.h. */
  13902. #include <ctype.h>
  13903. #include <stdlib.h>
  13904. #if ((' ' & 0x0FF) == 0x020)
  13905. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13906. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13907. #else
  13908. # define ISLOWER(c) \
  13909. (('a' <= (c) && (c) <= 'i') \
  13910. || ('j' <= (c) && (c) <= 'r') \
  13911. || ('s' <= (c) && (c) <= 'z'))
  13912. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13913. #endif
  13914. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13915. int
  13916. main ()
  13917. {
  13918. int i;
  13919. for (i = 0; i < 256; i++)
  13920. if (XOR (islower (i), ISLOWER (i))
  13921. || toupper (i) != TOUPPER (i))
  13922. return 2;
  13923. return 0;
  13924. }
  13925. _ACEOF
  13926. if ac_fn_c_try_run "$LINENO"; then :
  13927. else
  13928. ac_cv_header_stdc=no
  13929. fi
  13930. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13931. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13932. fi
  13933. fi
  13934. fi
  13935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13936. $as_echo "$ac_cv_header_stdc" >&6; }
  13937. if test $ac_cv_header_stdc = yes; then
  13938. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13939. fi
  13940. 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
  13941. do :
  13942. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13943. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13944. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13945. cat >>confdefs.h <<_ACEOF
  13946. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13947. _ACEOF
  13948. fi
  13949. done
  13950. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13951. if test "x$ac_cv_type_size_t" = xyes; then :
  13952. else
  13953. cat >>confdefs.h <<_ACEOF
  13954. #define size_t unsigned int
  13955. _ACEOF
  13956. fi
  13957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13958. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13959. if ${ac_cv_define_M_PI+:} false; then :
  13960. $as_echo_n "(cached) " >&6
  13961. else
  13962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13963. /* end confdefs.h. */
  13964. #include <math.h>
  13965. #ifdef M_PI
  13966. YES_IS_DEFINED
  13967. #endif
  13968. _ACEOF
  13969. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13970. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13971. ac_cv_define_M_PI=yes
  13972. else
  13973. ac_cv_define_M_PI=no
  13974. fi
  13975. rm -f conftest*
  13976. fi
  13977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  13978. $as_echo "$ac_cv_define_M_PI" >&6; }
  13979. if test "$ac_cv_define_M_PI" = "yes" ; then
  13980. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  13981. fi
  13982. case "$host" in
  13983. *-*-cygwin* | *-*-mingw32*)
  13984. ;;
  13985. *)
  13986. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13987. # for constant arguments. Useless!
  13988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13989. $as_echo_n "checking for working alloca.h... " >&6; }
  13990. if ${ac_cv_working_alloca_h+:} false; then :
  13991. $as_echo_n "(cached) " >&6
  13992. else
  13993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13994. /* end confdefs.h. */
  13995. #include <alloca.h>
  13996. int
  13997. main ()
  13998. {
  13999. char *p = (char *) alloca (2 * sizeof (int));
  14000. if (p) return 0;
  14001. ;
  14002. return 0;
  14003. }
  14004. _ACEOF
  14005. if ac_fn_c_try_link "$LINENO"; then :
  14006. ac_cv_working_alloca_h=yes
  14007. else
  14008. ac_cv_working_alloca_h=no
  14009. fi
  14010. rm -f core conftest.err conftest.$ac_objext \
  14011. conftest$ac_exeext conftest.$ac_ext
  14012. fi
  14013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14014. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14015. if test $ac_cv_working_alloca_h = yes; then
  14016. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14017. fi
  14018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14019. $as_echo_n "checking for alloca... " >&6; }
  14020. if ${ac_cv_func_alloca_works+:} false; then :
  14021. $as_echo_n "(cached) " >&6
  14022. else
  14023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14024. /* end confdefs.h. */
  14025. #ifdef __GNUC__
  14026. # define alloca __builtin_alloca
  14027. #else
  14028. # ifdef _MSC_VER
  14029. # include <malloc.h>
  14030. # define alloca _alloca
  14031. # else
  14032. # ifdef HAVE_ALLOCA_H
  14033. # include <alloca.h>
  14034. # else
  14035. # ifdef _AIX
  14036. #pragma alloca
  14037. # else
  14038. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14039. void *alloca (size_t);
  14040. # endif
  14041. # endif
  14042. # endif
  14043. # endif
  14044. #endif
  14045. int
  14046. main ()
  14047. {
  14048. char *p = (char *) alloca (1);
  14049. if (p) return 0;
  14050. ;
  14051. return 0;
  14052. }
  14053. _ACEOF
  14054. if ac_fn_c_try_link "$LINENO"; then :
  14055. ac_cv_func_alloca_works=yes
  14056. else
  14057. ac_cv_func_alloca_works=no
  14058. fi
  14059. rm -f core conftest.err conftest.$ac_objext \
  14060. conftest$ac_exeext conftest.$ac_ext
  14061. fi
  14062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14063. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14064. if test $ac_cv_func_alloca_works = yes; then
  14065. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14066. else
  14067. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14068. # that cause trouble. Some versions do not even contain alloca or
  14069. # contain a buggy version. If you still want to use their alloca,
  14070. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14071. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14072. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14074. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14075. if ${ac_cv_os_cray+:} false; then :
  14076. $as_echo_n "(cached) " >&6
  14077. else
  14078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14079. /* end confdefs.h. */
  14080. #if defined CRAY && ! defined CRAY2
  14081. webecray
  14082. #else
  14083. wenotbecray
  14084. #endif
  14085. _ACEOF
  14086. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14087. $EGREP "webecray" >/dev/null 2>&1; then :
  14088. ac_cv_os_cray=yes
  14089. else
  14090. ac_cv_os_cray=no
  14091. fi
  14092. rm -f conftest*
  14093. fi
  14094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14095. $as_echo "$ac_cv_os_cray" >&6; }
  14096. if test $ac_cv_os_cray = yes; then
  14097. for ac_func in _getb67 GETB67 getb67; do
  14098. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14099. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14100. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14101. cat >>confdefs.h <<_ACEOF
  14102. #define CRAY_STACKSEG_END $ac_func
  14103. _ACEOF
  14104. break
  14105. fi
  14106. done
  14107. fi
  14108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14109. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14110. if ${ac_cv_c_stack_direction+:} false; then :
  14111. $as_echo_n "(cached) " >&6
  14112. else
  14113. if test "$cross_compiling" = yes; then :
  14114. ac_cv_c_stack_direction=0
  14115. else
  14116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14117. /* end confdefs.h. */
  14118. $ac_includes_default
  14119. int
  14120. find_stack_direction (int *addr, int depth)
  14121. {
  14122. int dir, dummy = 0;
  14123. if (! addr)
  14124. addr = &dummy;
  14125. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14126. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14127. return dir + dummy;
  14128. }
  14129. int
  14130. main (int argc, char **argv)
  14131. {
  14132. return find_stack_direction (0, argc + !argv + 20) < 0;
  14133. }
  14134. _ACEOF
  14135. if ac_fn_c_try_run "$LINENO"; then :
  14136. ac_cv_c_stack_direction=1
  14137. else
  14138. ac_cv_c_stack_direction=-1
  14139. fi
  14140. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14141. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14142. fi
  14143. fi
  14144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14145. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14146. cat >>confdefs.h <<_ACEOF
  14147. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14148. _ACEOF
  14149. fi
  14150. ;;
  14151. esac
  14152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14153. $as_echo_n "checking for working memcmp... " >&6; }
  14154. if ${ac_cv_func_memcmp_working+:} false; then :
  14155. $as_echo_n "(cached) " >&6
  14156. else
  14157. if test "$cross_compiling" = yes; then :
  14158. ac_cv_func_memcmp_working=no
  14159. else
  14160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14161. /* end confdefs.h. */
  14162. $ac_includes_default
  14163. int
  14164. main ()
  14165. {
  14166. /* Some versions of memcmp are not 8-bit clean. */
  14167. char c0 = '\100', c1 = '\200', c2 = '\201';
  14168. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14169. return 1;
  14170. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14171. or more and with at least one buffer not starting on a 4-byte boundary.
  14172. William Lewis provided this test program. */
  14173. {
  14174. char foo[21];
  14175. char bar[21];
  14176. int i;
  14177. for (i = 0; i < 4; i++)
  14178. {
  14179. char *a = foo + i;
  14180. char *b = bar + i;
  14181. strcpy (a, "--------01111111");
  14182. strcpy (b, "--------10000000");
  14183. if (memcmp (a, b, 16) >= 0)
  14184. return 1;
  14185. }
  14186. return 0;
  14187. }
  14188. ;
  14189. return 0;
  14190. }
  14191. _ACEOF
  14192. if ac_fn_c_try_run "$LINENO"; then :
  14193. ac_cv_func_memcmp_working=yes
  14194. else
  14195. ac_cv_func_memcmp_working=no
  14196. fi
  14197. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14198. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14199. fi
  14200. fi
  14201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14202. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14203. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14204. *" memcmp.$ac_objext "* ) ;;
  14205. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14206. ;;
  14207. esac
  14208. if test x$ac_cv_func_memcmp_working = xyes; then
  14209. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14210. fi
  14211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14212. $as_echo_n "checking for working strtod... " >&6; }
  14213. if ${ac_cv_func_strtod+:} false; then :
  14214. $as_echo_n "(cached) " >&6
  14215. else
  14216. if test "$cross_compiling" = yes; then :
  14217. ac_cv_func_strtod=no
  14218. else
  14219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14220. /* end confdefs.h. */
  14221. $ac_includes_default
  14222. #ifndef strtod
  14223. double strtod ();
  14224. #endif
  14225. int
  14226. main()
  14227. {
  14228. {
  14229. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14230. char *string = " +69";
  14231. char *term;
  14232. double value;
  14233. value = strtod (string, &term);
  14234. if (value != 69 || term != (string + 4))
  14235. return 1;
  14236. }
  14237. {
  14238. /* Under Solaris 2.4, strtod returns the wrong value for the
  14239. terminating character under some conditions. */
  14240. char *string = "NaN";
  14241. char *term;
  14242. strtod (string, &term);
  14243. if (term != string && *(term - 1) == 0)
  14244. return 1;
  14245. }
  14246. return 0;
  14247. }
  14248. _ACEOF
  14249. if ac_fn_c_try_run "$LINENO"; then :
  14250. ac_cv_func_strtod=yes
  14251. else
  14252. ac_cv_func_strtod=no
  14253. fi
  14254. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14255. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14256. fi
  14257. fi
  14258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14259. $as_echo "$ac_cv_func_strtod" >&6; }
  14260. if test $ac_cv_func_strtod = no; then
  14261. case " $LIBOBJS " in
  14262. *" strtod.$ac_objext "* ) ;;
  14263. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14264. ;;
  14265. esac
  14266. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14267. if test "x$ac_cv_func_pow" = xyes; then :
  14268. fi
  14269. if test $ac_cv_func_pow = no; then
  14270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14271. $as_echo_n "checking for pow in -lm... " >&6; }
  14272. if ${ac_cv_lib_m_pow+:} false; then :
  14273. $as_echo_n "(cached) " >&6
  14274. else
  14275. ac_check_lib_save_LIBS=$LIBS
  14276. LIBS="-lm $LIBS"
  14277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14278. /* end confdefs.h. */
  14279. /* Override any GCC internal prototype to avoid an error.
  14280. Use char because int might match the return type of a GCC
  14281. builtin and then its argument prototype would still apply. */
  14282. #ifdef __cplusplus
  14283. extern "C"
  14284. #endif
  14285. char pow ();
  14286. int
  14287. main ()
  14288. {
  14289. return pow ();
  14290. ;
  14291. return 0;
  14292. }
  14293. _ACEOF
  14294. if ac_fn_c_try_link "$LINENO"; then :
  14295. ac_cv_lib_m_pow=yes
  14296. else
  14297. ac_cv_lib_m_pow=no
  14298. fi
  14299. rm -f core conftest.err conftest.$ac_objext \
  14300. conftest$ac_exeext conftest.$ac_ext
  14301. LIBS=$ac_check_lib_save_LIBS
  14302. fi
  14303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14304. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14305. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14306. POW_LIB=-lm
  14307. else
  14308. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14309. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14310. fi
  14311. fi
  14312. fi
  14313. if test x$ac_cv_func_strtod = xyes; then
  14314. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14315. fi
  14316. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14317. if test "x$ac_cv_func_mprotect" = xyes; then :
  14318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14319. /* end confdefs.h. */
  14320. #include <sys/types.h>
  14321. #include <sys/mman.h>
  14322. int
  14323. main ()
  14324. {
  14325. ;
  14326. return 0;
  14327. }
  14328. _ACEOF
  14329. if ac_fn_c_try_compile "$LINENO"; then :
  14330. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14331. fi
  14332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14333. fi
  14334. 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
  14335. do :
  14336. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14337. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14338. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14339. cat >>confdefs.h <<_ACEOF
  14340. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14341. _ACEOF
  14342. fi
  14343. done
  14344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14345. $as_echo_n "checking for pow in -lm... " >&6; }
  14346. if ${ac_cv_lib_m_pow+:} false; then :
  14347. $as_echo_n "(cached) " >&6
  14348. else
  14349. ac_check_lib_save_LIBS=$LIBS
  14350. LIBS="-lm $LIBS"
  14351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14352. /* end confdefs.h. */
  14353. /* Override any GCC internal prototype to avoid an error.
  14354. Use char because int might match the return type of a GCC
  14355. builtin and then its argument prototype would still apply. */
  14356. #ifdef __cplusplus
  14357. extern "C"
  14358. #endif
  14359. char pow ();
  14360. int
  14361. main ()
  14362. {
  14363. return pow ();
  14364. ;
  14365. return 0;
  14366. }
  14367. _ACEOF
  14368. if ac_fn_c_try_link "$LINENO"; then :
  14369. ac_cv_lib_m_pow=yes
  14370. else
  14371. ac_cv_lib_m_pow=no
  14372. fi
  14373. rm -f core conftest.err conftest.$ac_objext \
  14374. conftest$ac_exeext conftest.$ac_ext
  14375. LIBS=$ac_check_lib_save_LIBS
  14376. fi
  14377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14378. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14379. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14380. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14381. fi
  14382. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
  14383. do :
  14384. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14385. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14386. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14387. cat >>confdefs.h <<_ACEOF
  14388. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14389. _ACEOF
  14390. fi
  14391. done
  14392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14393. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14394. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14395. $as_echo_n "(cached) " >&6
  14396. else
  14397. ac_check_lib_save_LIBS=$LIBS
  14398. LIBS="-liconv $LIBS"
  14399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14400. /* end confdefs.h. */
  14401. /* Override any GCC internal prototype to avoid an error.
  14402. Use char because int might match the return type of a GCC
  14403. builtin and then its argument prototype would still apply. */
  14404. #ifdef __cplusplus
  14405. extern "C"
  14406. #endif
  14407. char iconv_open ();
  14408. int
  14409. main ()
  14410. {
  14411. return iconv_open ();
  14412. ;
  14413. return 0;
  14414. }
  14415. _ACEOF
  14416. if ac_fn_c_try_link "$LINENO"; then :
  14417. ac_cv_lib_iconv_iconv_open=yes
  14418. else
  14419. ac_cv_lib_iconv_iconv_open=no
  14420. fi
  14421. rm -f core conftest.err conftest.$ac_objext \
  14422. conftest$ac_exeext conftest.$ac_ext
  14423. LIBS=$ac_check_lib_save_LIBS
  14424. fi
  14425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14426. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14427. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14428. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14429. fi
  14430. for ac_func in iconv
  14431. do :
  14432. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14433. if test "x$ac_cv_func_iconv" = xyes; then :
  14434. cat >>confdefs.h <<_ACEOF
  14435. #define HAVE_ICONV 1
  14436. _ACEOF
  14437. fi
  14438. done
  14439. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14440. "
  14441. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14442. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14443. fi
  14444. fi
  14445. # Check whether --enable-gcc-atomics was given.
  14446. if test "${enable_gcc_atomics+set}" = set; then :
  14447. enableval=$enable_gcc_atomics;
  14448. else
  14449. enable_gcc_atomics=yes
  14450. fi
  14451. if test x$enable_gcc_atomics = xyes; then
  14452. have_gcc_atomics=no
  14453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14454. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14456. /* end confdefs.h. */
  14457. int
  14458. main ()
  14459. {
  14460. int a;
  14461. void *x, *y, *z;
  14462. __sync_lock_test_and_set(&a, 4);
  14463. __sync_lock_test_and_set(&x, y);
  14464. __sync_fetch_and_add(&a, 1);
  14465. __sync_bool_compare_and_swap(&a, 5, 10);
  14466. __sync_bool_compare_and_swap(&x, y, z);
  14467. ;
  14468. return 0;
  14469. }
  14470. _ACEOF
  14471. if ac_fn_c_try_link "$LINENO"; then :
  14472. have_gcc_atomics=yes
  14473. fi
  14474. rm -f core conftest.err conftest.$ac_objext \
  14475. conftest$ac_exeext conftest.$ac_ext
  14476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14477. $as_echo "$have_gcc_atomics" >&6; }
  14478. if test x$have_gcc_atomics = xyes; then
  14479. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14480. else
  14481. # See if we have the minimum operation needed for GCC atomics
  14482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14483. /* end confdefs.h. */
  14484. int
  14485. main ()
  14486. {
  14487. int a;
  14488. __sync_lock_test_and_set(&a, 1);
  14489. __sync_lock_release(&a);
  14490. ;
  14491. return 0;
  14492. }
  14493. _ACEOF
  14494. if ac_fn_c_try_link "$LINENO"; then :
  14495. have_gcc_sync_lock_test_and_set=yes
  14496. fi
  14497. rm -f core conftest.err conftest.$ac_objext \
  14498. conftest$ac_exeext conftest.$ac_ext
  14499. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14500. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14501. fi
  14502. fi
  14503. fi
  14504. # Standard C sources
  14505. SOURCES="$SOURCES $srcdir/src/*.c"
  14506. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14507. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14508. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14509. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14510. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14511. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14512. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14513. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14514. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14515. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14516. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14517. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14518. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14519. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14520. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14521. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14522. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14523. # Check whether --enable-atomic was given.
  14524. if test "${enable_atomic+set}" = set; then :
  14525. enableval=$enable_atomic;
  14526. else
  14527. enable_atomic=yes
  14528. fi
  14529. if test x$enable_atomic != xyes; then
  14530. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14531. else
  14532. SUMMARY_modules="${SUMMARY_modules} atomic"
  14533. fi
  14534. # Check whether --enable-audio was given.
  14535. if test "${enable_audio+set}" = set; then :
  14536. enableval=$enable_audio;
  14537. else
  14538. enable_audio=yes
  14539. fi
  14540. if test x$enable_audio != xyes; then
  14541. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14542. else
  14543. SUMMARY_modules="${SUMMARY_modules} audio"
  14544. fi
  14545. # Check whether --enable-video was given.
  14546. if test "${enable_video+set}" = set; then :
  14547. enableval=$enable_video;
  14548. else
  14549. enable_video=yes
  14550. fi
  14551. if test x$enable_video != xyes; then
  14552. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14553. else
  14554. SUMMARY_modules="${SUMMARY_modules} video"
  14555. fi
  14556. # Check whether --enable-render was given.
  14557. if test "${enable_render+set}" = set; then :
  14558. enableval=$enable_render;
  14559. else
  14560. enable_render=yes
  14561. fi
  14562. if test x$enable_render != xyes; then
  14563. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14564. else
  14565. SUMMARY_modules="${SUMMARY_modules} render"
  14566. fi
  14567. # Check whether --enable-events was given.
  14568. if test "${enable_events+set}" = set; then :
  14569. enableval=$enable_events;
  14570. else
  14571. enable_events=yes
  14572. fi
  14573. if test x$enable_events != xyes; then
  14574. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14575. else
  14576. SUMMARY_modules="${SUMMARY_modules} events"
  14577. fi
  14578. # Check whether --enable-joystick was given.
  14579. if test "${enable_joystick+set}" = set; then :
  14580. enableval=$enable_joystick;
  14581. else
  14582. enable_joystick=yes
  14583. fi
  14584. if test x$enable_joystick != xyes; then
  14585. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14586. else
  14587. SUMMARY_modules="${SUMMARY_modules} joystick"
  14588. fi
  14589. # Check whether --enable-haptic was given.
  14590. if test "${enable_haptic+set}" = set; then :
  14591. enableval=$enable_haptic;
  14592. else
  14593. enable_haptic=yes
  14594. fi
  14595. if test x$enable_haptic != xyes; then
  14596. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14597. else
  14598. SUMMARY_modules="${SUMMARY_modules} haptic"
  14599. fi
  14600. # Check whether --enable-power was given.
  14601. if test "${enable_power+set}" = set; then :
  14602. enableval=$enable_power;
  14603. else
  14604. enable_power=yes
  14605. fi
  14606. if test x$enable_power != xyes; then
  14607. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14608. else
  14609. SUMMARY_modules="${SUMMARY_modules} power"
  14610. fi
  14611. # Check whether --enable-filesystem was given.
  14612. if test "${enable_filesystem+set}" = set; then :
  14613. enableval=$enable_filesystem;
  14614. else
  14615. enable_filesystem=yes
  14616. fi
  14617. if test x$enable_filesystem != xyes; then
  14618. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14619. else
  14620. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14621. fi
  14622. # Check whether --enable-threads was given.
  14623. if test "${enable_threads+set}" = set; then :
  14624. enableval=$enable_threads;
  14625. else
  14626. enable_threads=yes
  14627. fi
  14628. if test x$enable_threads != xyes; then
  14629. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14630. else
  14631. SUMMARY_modules="${SUMMARY_modules} threads"
  14632. fi
  14633. # Check whether --enable-timers was given.
  14634. if test "${enable_timers+set}" = set; then :
  14635. enableval=$enable_timers;
  14636. else
  14637. enable_timers=yes
  14638. fi
  14639. if test x$enable_timers != xyes; then
  14640. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14641. else
  14642. SUMMARY_modules="${SUMMARY_modules} timers"
  14643. fi
  14644. # Check whether --enable-file was given.
  14645. if test "${enable_file+set}" = set; then :
  14646. enableval=$enable_file;
  14647. else
  14648. enable_file=yes
  14649. fi
  14650. if test x$enable_file != xyes; then
  14651. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14652. else
  14653. SUMMARY_modules="${SUMMARY_modules} file"
  14654. fi
  14655. # Check whether --enable-loadso was given.
  14656. if test "${enable_loadso+set}" = set; then :
  14657. enableval=$enable_loadso;
  14658. else
  14659. enable_loadso=yes
  14660. fi
  14661. if test x$enable_loadso != xyes; then
  14662. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14663. else
  14664. SUMMARY_modules="${SUMMARY_modules} loadso"
  14665. fi
  14666. # Check whether --enable-cpuinfo was given.
  14667. if test "${enable_cpuinfo+set}" = set; then :
  14668. enableval=$enable_cpuinfo;
  14669. else
  14670. enable_cpuinfo=yes
  14671. fi
  14672. if test x$enable_cpuinfo != xyes; then
  14673. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14674. else
  14675. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14676. fi
  14677. # Check whether --enable-assembly was given.
  14678. if test "${enable_assembly+set}" = set; then :
  14679. enableval=$enable_assembly;
  14680. else
  14681. enable_assembly=yes
  14682. fi
  14683. if test x$enable_assembly = xyes; then
  14684. SUMMARY_modules="${SUMMARY_modules} assembly"
  14685. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14686. # Make sure that we don't generate floating point code that would
  14687. # cause illegal instruction exceptions on older processors
  14688. case "$host" in
  14689. *-*-darwin*)
  14690. # Don't need to worry about Apple hardware, it's all SSE capable
  14691. default_ssemath=yes
  14692. ;;
  14693. *64-*-*)
  14694. # x86 64-bit architectures all have SSE instructions
  14695. default_ssemath=yes
  14696. ;;
  14697. *)
  14698. default_ssemath=no
  14699. ;;
  14700. esac
  14701. # Check whether --enable-ssemath was given.
  14702. if test "${enable_ssemath+set}" = set; then :
  14703. enableval=$enable_ssemath;
  14704. else
  14705. enable_ssemath=$default_ssemath
  14706. fi
  14707. if test x$enable_ssemath = xno; then
  14708. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
  14709. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14710. fi
  14711. fi
  14712. # Check whether --enable-mmx was given.
  14713. if test "${enable_mmx+set}" = set; then :
  14714. enableval=$enable_mmx;
  14715. else
  14716. enable_mmx=yes
  14717. fi
  14718. if test x$enable_mmx = xyes; then
  14719. save_CFLAGS="$CFLAGS"
  14720. have_gcc_mmx=no
  14721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14722. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14723. mmx_CFLAGS="-mmmx"
  14724. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14726. /* end confdefs.h. */
  14727. #ifdef __MINGW32__
  14728. #include <_mingw.h>
  14729. #ifdef __MINGW64_VERSION_MAJOR
  14730. #include <intrin.h>
  14731. #else
  14732. #include <mmintrin.h>
  14733. #endif
  14734. #else
  14735. #include <mmintrin.h>
  14736. #endif
  14737. #ifndef __MMX__
  14738. #error Assembler CPP flag not enabled
  14739. #endif
  14740. int
  14741. main ()
  14742. {
  14743. ;
  14744. return 0;
  14745. }
  14746. _ACEOF
  14747. if ac_fn_c_try_compile "$LINENO"; then :
  14748. have_gcc_mmx=yes
  14749. fi
  14750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14752. $as_echo "$have_gcc_mmx" >&6; }
  14753. CFLAGS="$save_CFLAGS"
  14754. if test x$have_gcc_mmx = xyes; then
  14755. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14756. SUMMARY_math="${SUMMARY_math} mmx"
  14757. fi
  14758. fi
  14759. # Check whether --enable-3dnow was given.
  14760. if test "${enable_3dnow+set}" = set; then :
  14761. enableval=$enable_3dnow;
  14762. else
  14763. enable_3dnow=yes
  14764. fi
  14765. if test x$enable_3dnow = xyes; then
  14766. save_CFLAGS="$CFLAGS"
  14767. have_gcc_3dnow=no
  14768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14769. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14770. amd3dnow_CFLAGS="-m3dnow"
  14771. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14773. /* end confdefs.h. */
  14774. #include <mm3dnow.h>
  14775. #ifndef __3dNOW__
  14776. #error Assembler CPP flag not enabled
  14777. #endif
  14778. int
  14779. main ()
  14780. {
  14781. void *p = 0;
  14782. _m_prefetch(p);
  14783. ;
  14784. return 0;
  14785. }
  14786. _ACEOF
  14787. if ac_fn_c_try_link "$LINENO"; then :
  14788. have_gcc_3dnow=yes
  14789. fi
  14790. rm -f core conftest.err conftest.$ac_objext \
  14791. conftest$ac_exeext conftest.$ac_ext
  14792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14793. $as_echo "$have_gcc_3dnow" >&6; }
  14794. CFLAGS="$save_CFLAGS"
  14795. if test x$have_gcc_3dnow = xyes; then
  14796. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14797. SUMMARY_math="${SUMMARY_math} 3dnow"
  14798. fi
  14799. fi
  14800. # Check whether --enable-sse was given.
  14801. if test "${enable_sse+set}" = set; then :
  14802. enableval=$enable_sse;
  14803. else
  14804. enable_sse=yes
  14805. fi
  14806. if test x$enable_sse = xyes; then
  14807. save_CFLAGS="$CFLAGS"
  14808. have_gcc_sse=no
  14809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14810. $as_echo_n "checking for GCC -msse option... " >&6; }
  14811. sse_CFLAGS="-msse"
  14812. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14814. /* end confdefs.h. */
  14815. #ifdef __MINGW32__
  14816. #include <_mingw.h>
  14817. #ifdef __MINGW64_VERSION_MAJOR
  14818. #include <intrin.h>
  14819. #else
  14820. #include <xmmintrin.h>
  14821. #endif
  14822. #else
  14823. #include <xmmintrin.h>
  14824. #endif
  14825. #ifndef __SSE__
  14826. #error Assembler CPP flag not enabled
  14827. #endif
  14828. int
  14829. main ()
  14830. {
  14831. ;
  14832. return 0;
  14833. }
  14834. _ACEOF
  14835. if ac_fn_c_try_compile "$LINENO"; then :
  14836. have_gcc_sse=yes
  14837. fi
  14838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14840. $as_echo "$have_gcc_sse" >&6; }
  14841. CFLAGS="$save_CFLAGS"
  14842. if test x$have_gcc_sse = xyes; then
  14843. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14844. SUMMARY_math="${SUMMARY_math} sse"
  14845. fi
  14846. fi
  14847. # Check whether --enable-sse2 was given.
  14848. if test "${enable_sse2+set}" = set; then :
  14849. enableval=$enable_sse2;
  14850. else
  14851. enable_sse2=$default_ssemath
  14852. fi
  14853. if test x$enable_sse2 = xyes; then
  14854. save_CFLAGS="$CFLAGS"
  14855. have_gcc_sse2=no
  14856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14857. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14858. sse2_CFLAGS="-msse2"
  14859. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14861. /* end confdefs.h. */
  14862. #ifdef __MINGW32__
  14863. #include <_mingw.h>
  14864. #ifdef __MINGW64_VERSION_MAJOR
  14865. #include <intrin.h>
  14866. #else
  14867. #include <emmintrin.h>
  14868. #endif
  14869. #else
  14870. #include <emmintrin.h>
  14871. #endif
  14872. #ifndef __SSE2__
  14873. #error Assembler CPP flag not enabled
  14874. #endif
  14875. int
  14876. main ()
  14877. {
  14878. ;
  14879. return 0;
  14880. }
  14881. _ACEOF
  14882. if ac_fn_c_try_compile "$LINENO"; then :
  14883. have_gcc_sse2=yes
  14884. fi
  14885. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14887. $as_echo "$have_gcc_sse2" >&6; }
  14888. CFLAGS="$save_CFLAGS"
  14889. if test x$have_gcc_sse2 = xyes; then
  14890. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14891. SUMMARY_math="${SUMMARY_math} sse2"
  14892. fi
  14893. fi
  14894. # Check whether --enable-altivec was given.
  14895. if test "${enable_altivec+set}" = set; then :
  14896. enableval=$enable_altivec;
  14897. else
  14898. enable_altivec=yes
  14899. fi
  14900. if test x$enable_altivec = xyes; then
  14901. save_CFLAGS="$CFLAGS"
  14902. have_gcc_altivec=no
  14903. have_altivec_h_hdr=no
  14904. altivec_CFLAGS="-maltivec"
  14905. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14907. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14909. /* end confdefs.h. */
  14910. #include <altivec.h>
  14911. vector unsigned int vzero() {
  14912. return vec_splat_u32(0);
  14913. }
  14914. int
  14915. main ()
  14916. {
  14917. ;
  14918. return 0;
  14919. }
  14920. _ACEOF
  14921. if ac_fn_c_try_compile "$LINENO"; then :
  14922. have_gcc_altivec=yes
  14923. have_altivec_h_hdr=yes
  14924. fi
  14925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14927. $as_echo "$have_gcc_altivec" >&6; }
  14928. if test x$have_gcc_altivec = xno; then
  14929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  14930. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  14931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14932. /* end confdefs.h. */
  14933. vector unsigned int vzero() {
  14934. return vec_splat_u32(0);
  14935. }
  14936. int
  14937. main ()
  14938. {
  14939. ;
  14940. return 0;
  14941. }
  14942. _ACEOF
  14943. if ac_fn_c_try_compile "$LINENO"; then :
  14944. have_gcc_altivec=yes
  14945. fi
  14946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14948. $as_echo "$have_gcc_altivec" >&6; }
  14949. fi
  14950. if test x$have_gcc_altivec = xno; then
  14951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  14952. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  14953. altivec_CFLAGS="-faltivec"
  14954. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14956. /* end confdefs.h. */
  14957. #include <altivec.h>
  14958. vector unsigned int vzero() {
  14959. return vec_splat_u32(0);
  14960. }
  14961. int
  14962. main ()
  14963. {
  14964. ;
  14965. return 0;
  14966. }
  14967. _ACEOF
  14968. if ac_fn_c_try_compile "$LINENO"; then :
  14969. have_gcc_altivec=yes
  14970. have_altivec_h_hdr=yes
  14971. fi
  14972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14974. $as_echo "$have_gcc_altivec" >&6; }
  14975. fi
  14976. if test x$have_gcc_altivec = xno; then
  14977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  14978. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  14979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14980. /* end confdefs.h. */
  14981. vector unsigned int vzero() {
  14982. return vec_splat_u32(0);
  14983. }
  14984. int
  14985. main ()
  14986. {
  14987. ;
  14988. return 0;
  14989. }
  14990. _ACEOF
  14991. if ac_fn_c_try_compile "$LINENO"; then :
  14992. have_gcc_altivec=yes
  14993. fi
  14994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14996. $as_echo "$have_gcc_altivec" >&6; }
  14997. fi
  14998. CFLAGS="$save_CFLAGS"
  14999. if test x$have_gcc_altivec = xyes; then
  15000. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15001. if test x$have_altivec_h_hdr = xyes; then
  15002. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15003. fi
  15004. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15005. SUMMARY_math="${SUMMARY_math} altivec"
  15006. fi
  15007. fi
  15008. fi
  15009. CheckOSS()
  15010. {
  15011. # Check whether --enable-oss was given.
  15012. if test "${enable_oss+set}" = set; then :
  15013. enableval=$enable_oss;
  15014. else
  15015. enable_oss=maybe
  15016. fi
  15017. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15018. # use sndio instead. So on there, we default to disabled. You can force
  15019. # it on if you really want, though.
  15020. if test x$enable_oss = xmaybe; then
  15021. enable_oss=yes
  15022. case "$host" in
  15023. *-*-openbsd*)
  15024. enable_oss=no;;
  15025. esac
  15026. fi
  15027. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15029. $as_echo_n "checking for OSS audio support... " >&6; }
  15030. have_oss=no
  15031. if test x$have_oss != xyes; then
  15032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15033. /* end confdefs.h. */
  15034. #include <sys/soundcard.h>
  15035. int
  15036. main ()
  15037. {
  15038. int arg = SNDCTL_DSP_SETFRAGMENT;
  15039. ;
  15040. return 0;
  15041. }
  15042. _ACEOF
  15043. if ac_fn_c_try_compile "$LINENO"; then :
  15044. have_oss=yes
  15045. fi
  15046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15047. fi
  15048. if test x$have_oss != xyes; then
  15049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15050. /* end confdefs.h. */
  15051. #include <soundcard.h>
  15052. int
  15053. main ()
  15054. {
  15055. int arg = SNDCTL_DSP_SETFRAGMENT;
  15056. ;
  15057. return 0;
  15058. }
  15059. _ACEOF
  15060. if ac_fn_c_try_compile "$LINENO"; then :
  15061. have_oss=yes
  15062. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15063. fi
  15064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15065. fi
  15066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15067. $as_echo "$have_oss" >&6; }
  15068. if test x$have_oss = xyes; then
  15069. SUMMARY_audio="${SUMMARY_audio} oss"
  15070. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15071. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15072. have_audio=yes
  15073. # We may need to link with ossaudio emulation library
  15074. case "$host" in
  15075. *-*-openbsd*|*-*-netbsd*)
  15076. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15077. esac
  15078. fi
  15079. fi
  15080. }
  15081. CheckALSA()
  15082. {
  15083. # Check whether --enable-alsa was given.
  15084. if test "${enable_alsa+set}" = set; then :
  15085. enableval=$enable_alsa;
  15086. else
  15087. enable_alsa=yes
  15088. fi
  15089. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15090. alsa_save_CFLAGS="$CFLAGS"
  15091. alsa_save_LDFLAGS="$LDFLAGS"
  15092. alsa_save_LIBS="$LIBS"
  15093. alsa_found=yes
  15094. # Check whether --with-alsa-prefix was given.
  15095. if test "${with_alsa_prefix+set}" = set; then :
  15096. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15097. else
  15098. alsa_prefix=""
  15099. fi
  15100. # Check whether --with-alsa-inc-prefix was given.
  15101. if test "${with_alsa_inc_prefix+set}" = set; then :
  15102. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15103. else
  15104. alsa_inc_prefix=""
  15105. fi
  15106. # Check whether --enable-alsatest was given.
  15107. if test "${enable_alsatest+set}" = set; then :
  15108. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15109. else
  15110. enable_alsatest=yes
  15111. fi
  15112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15113. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15114. if test "$alsa_inc_prefix" != "" ; then
  15115. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15116. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15117. fi
  15118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15119. $as_echo "$ALSA_CFLAGS" >&6; }
  15120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15121. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15122. if test "$alsa_prefix" != "" ; then
  15123. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15124. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15125. fi
  15126. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15127. LIBS=`echo $LIBS | sed 's/-lm//'`
  15128. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15129. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15130. LIBS=`echo $LIBS | sed 's/ //'`
  15131. LIBS="$ALSA_LIBS $LIBS"
  15132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15133. $as_echo "$ALSA_LIBS" >&6; }
  15134. min_alsa_version=0.9.0
  15135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15136. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15137. no_alsa=""
  15138. alsa_min_major_version=`echo $min_alsa_version | \
  15139. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15140. alsa_min_minor_version=`echo $min_alsa_version | \
  15141. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15142. alsa_min_micro_version=`echo $min_alsa_version | \
  15143. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15144. ac_ext=c
  15145. ac_cpp='$CPP $CPPFLAGS'
  15146. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15147. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15148. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15150. /* end confdefs.h. */
  15151. #include <alsa/asoundlib.h>
  15152. int
  15153. main ()
  15154. {
  15155. /* ensure backward compatibility */
  15156. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15157. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15158. #endif
  15159. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15160. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15161. #endif
  15162. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15163. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15164. #endif
  15165. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15166. exit(0);
  15167. # else
  15168. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15169. # error not present
  15170. # endif
  15171. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15172. exit(0);
  15173. # else
  15174. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15175. # error not present
  15176. # endif
  15177. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15178. # error not present
  15179. # endif
  15180. # endif
  15181. # endif
  15182. exit(0);
  15183. ;
  15184. return 0;
  15185. }
  15186. _ACEOF
  15187. if ac_fn_c_try_compile "$LINENO"; then :
  15188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15189. $as_echo "found." >&6; }
  15190. else
  15191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15192. $as_echo "not present." >&6; }
  15193. alsa_found=no
  15194. fi
  15195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15196. ac_ext=c
  15197. ac_cpp='$CPP $CPPFLAGS'
  15198. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15199. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15200. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15201. if test "x$enable_alsatest" = "xyes"; then
  15202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15203. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15204. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15205. $as_echo_n "(cached) " >&6
  15206. else
  15207. ac_check_lib_save_LIBS=$LIBS
  15208. LIBS="-lasound $LIBS"
  15209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15210. /* end confdefs.h. */
  15211. /* Override any GCC internal prototype to avoid an error.
  15212. Use char because int might match the return type of a GCC
  15213. builtin and then its argument prototype would still apply. */
  15214. #ifdef __cplusplus
  15215. extern "C"
  15216. #endif
  15217. char snd_ctl_open ();
  15218. int
  15219. main ()
  15220. {
  15221. return snd_ctl_open ();
  15222. ;
  15223. return 0;
  15224. }
  15225. _ACEOF
  15226. if ac_fn_c_try_link "$LINENO"; then :
  15227. ac_cv_lib_asound_snd_ctl_open=yes
  15228. else
  15229. ac_cv_lib_asound_snd_ctl_open=no
  15230. fi
  15231. rm -f core conftest.err conftest.$ac_objext \
  15232. conftest$ac_exeext conftest.$ac_ext
  15233. LIBS=$ac_check_lib_save_LIBS
  15234. fi
  15235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15236. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15237. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15238. cat >>confdefs.h <<_ACEOF
  15239. #define HAVE_LIBASOUND 1
  15240. _ACEOF
  15241. LIBS="-lasound $LIBS"
  15242. else
  15243. alsa_found=no
  15244. fi
  15245. fi
  15246. if test "x$alsa_found" = "xyes" ; then
  15247. have_alsa=yes
  15248. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15249. LIBS=`echo $LIBS | sed 's/ //'`
  15250. LIBS="-lasound $LIBS"
  15251. fi
  15252. if test "x$alsa_found" = "xno" ; then
  15253. have_alsa=no
  15254. CFLAGS="$alsa_save_CFLAGS"
  15255. LDFLAGS="$alsa_save_LDFLAGS"
  15256. LIBS="$alsa_save_LIBS"
  15257. ALSA_CFLAGS=""
  15258. ALSA_LIBS=""
  15259. fi
  15260. # Restore all flags from before the ALSA detection runs
  15261. CFLAGS="$alsa_save_CFLAGS"
  15262. LDFLAGS="$alsa_save_LDFLAGS"
  15263. LIBS="$alsa_save_LIBS"
  15264. if test x$have_alsa = xyes; then
  15265. # Check whether --enable-alsa-shared was given.
  15266. if test "${enable_alsa_shared+set}" = set; then :
  15267. enableval=$enable_alsa_shared;
  15268. else
  15269. enable_alsa_shared=yes
  15270. fi
  15271. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15272. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15273. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15274. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15275. if test x$have_loadso != xyes && \
  15276. test x$enable_alsa_shared = xyes; then
  15277. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15278. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15279. fi
  15280. if test x$have_loadso = xyes && \
  15281. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15282. echo "-- dynamic libasound -> $alsa_lib"
  15283. cat >>confdefs.h <<_ACEOF
  15284. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15285. _ACEOF
  15286. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15287. else
  15288. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15289. SUMMARY_audio="${SUMMARY_audio} alsa"
  15290. fi
  15291. have_audio=yes
  15292. fi
  15293. fi
  15294. }
  15295. CheckESD()
  15296. {
  15297. # Check whether --enable-esd was given.
  15298. if test "${enable_esd+set}" = set; then :
  15299. enableval=$enable_esd;
  15300. else
  15301. enable_esd=yes
  15302. fi
  15303. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15304. # Check whether --with-esd-prefix was given.
  15305. if test "${with_esd_prefix+set}" = set; then :
  15306. withval=$with_esd_prefix; esd_prefix="$withval"
  15307. else
  15308. esd_prefix=""
  15309. fi
  15310. # Check whether --with-esd-exec-prefix was given.
  15311. if test "${with_esd_exec_prefix+set}" = set; then :
  15312. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15313. else
  15314. esd_exec_prefix=""
  15315. fi
  15316. # Check whether --enable-esdtest was given.
  15317. if test "${enable_esdtest+set}" = set; then :
  15318. enableval=$enable_esdtest;
  15319. else
  15320. enable_esdtest=yes
  15321. fi
  15322. if test x$esd_exec_prefix != x ; then
  15323. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15324. if test x${ESD_CONFIG+set} != xset ; then
  15325. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15326. fi
  15327. fi
  15328. if test x$esd_prefix != x ; then
  15329. esd_args="$esd_args --prefix=$esd_prefix"
  15330. if test x${ESD_CONFIG+set} != xset ; then
  15331. ESD_CONFIG=$esd_prefix/bin/esd-config
  15332. fi
  15333. fi
  15334. # Extract the first word of "esd-config", so it can be a program name with args.
  15335. set dummy esd-config; ac_word=$2
  15336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15337. $as_echo_n "checking for $ac_word... " >&6; }
  15338. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15339. $as_echo_n "(cached) " >&6
  15340. else
  15341. case $ESD_CONFIG in
  15342. [\\/]* | ?:[\\/]*)
  15343. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15344. ;;
  15345. *)
  15346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15347. for as_dir in $PATH
  15348. do
  15349. IFS=$as_save_IFS
  15350. test -z "$as_dir" && as_dir=.
  15351. for ac_exec_ext in '' $ac_executable_extensions; do
  15352. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15353. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15354. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15355. break 2
  15356. fi
  15357. done
  15358. done
  15359. IFS=$as_save_IFS
  15360. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15361. ;;
  15362. esac
  15363. fi
  15364. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15365. if test -n "$ESD_CONFIG"; then
  15366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15367. $as_echo "$ESD_CONFIG" >&6; }
  15368. else
  15369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15370. $as_echo "no" >&6; }
  15371. fi
  15372. min_esd_version=0.2.8
  15373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15374. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15375. no_esd=""
  15376. if test "$ESD_CONFIG" = "no" ; then
  15377. no_esd=yes
  15378. else
  15379. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15380. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15381. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15382. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15383. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15384. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15385. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15386. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15387. if test "x$enable_esdtest" = "xyes" ; then
  15388. ac_save_CFLAGS="$CFLAGS"
  15389. ac_save_LIBS="$LIBS"
  15390. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15391. LIBS="$LIBS $ESD_LIBS"
  15392. rm -f conf.esdtest
  15393. if test "$cross_compiling" = yes; then :
  15394. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15395. else
  15396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15397. /* end confdefs.h. */
  15398. #include <stdio.h>
  15399. #include <stdlib.h>
  15400. #include <string.h>
  15401. #include <esd.h>
  15402. char*
  15403. my_strdup (char *str)
  15404. {
  15405. char *new_str;
  15406. if (str)
  15407. {
  15408. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15409. strcpy (new_str, str);
  15410. }
  15411. else
  15412. new_str = NULL;
  15413. return new_str;
  15414. }
  15415. int main ()
  15416. {
  15417. int major, minor, micro;
  15418. char *tmp_version;
  15419. system ("touch conf.esdtest");
  15420. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15421. tmp_version = my_strdup("$min_esd_version");
  15422. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15423. printf("%s, bad version string\n", "$min_esd_version");
  15424. exit(1);
  15425. }
  15426. if (($esd_major_version > major) ||
  15427. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15428. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15429. {
  15430. return 0;
  15431. }
  15432. else
  15433. {
  15434. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15435. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15436. printf("*** best to upgrade to the required version.\n");
  15437. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15438. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15439. printf("*** config.cache before re-running configure\n");
  15440. return 1;
  15441. }
  15442. }
  15443. _ACEOF
  15444. if ac_fn_c_try_run "$LINENO"; then :
  15445. else
  15446. no_esd=yes
  15447. fi
  15448. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15449. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15450. fi
  15451. CFLAGS="$ac_save_CFLAGS"
  15452. LIBS="$ac_save_LIBS"
  15453. fi
  15454. fi
  15455. if test "x$no_esd" = x ; then
  15456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15457. $as_echo "yes" >&6; }
  15458. have_esd=yes
  15459. else
  15460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15461. $as_echo "no" >&6; }
  15462. if test "$ESD_CONFIG" = "no" ; then
  15463. echo "*** The esd-config script installed by ESD could not be found"
  15464. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15465. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15466. echo "*** full path to esd-config."
  15467. else
  15468. if test -f conf.esdtest ; then
  15469. :
  15470. else
  15471. echo "*** Could not run ESD test program, checking why..."
  15472. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15473. LIBS="$LIBS $ESD_LIBS"
  15474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15475. /* end confdefs.h. */
  15476. #include <stdio.h>
  15477. #include <esd.h>
  15478. int
  15479. main ()
  15480. {
  15481. return 0;
  15482. ;
  15483. return 0;
  15484. }
  15485. _ACEOF
  15486. if ac_fn_c_try_link "$LINENO"; then :
  15487. echo "*** The test program compiled, but did not run. This usually means"
  15488. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15489. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15490. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15491. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15492. echo "*** is required on your system"
  15493. echo "***"
  15494. echo "*** If you have an old version installed, it is best to remove it, although"
  15495. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15496. else
  15497. echo "*** The test program failed to compile or link. See the file config.log for the"
  15498. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15499. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15500. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15501. fi
  15502. rm -f core conftest.err conftest.$ac_objext \
  15503. conftest$ac_exeext conftest.$ac_ext
  15504. CFLAGS="$ac_save_CFLAGS"
  15505. LIBS="$ac_save_LIBS"
  15506. fi
  15507. fi
  15508. ESD_CFLAGS=""
  15509. ESD_LIBS=""
  15510. have_esd=no
  15511. fi
  15512. rm -f conf.esdtest
  15513. if test x$have_esd = xyes; then
  15514. # Check whether --enable-esd-shared was given.
  15515. if test "${enable_esd_shared+set}" = set; then :
  15516. enableval=$enable_esd_shared;
  15517. else
  15518. enable_esd_shared=yes
  15519. fi
  15520. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15521. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15522. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15523. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15524. if test x$have_loadso != xyes && \
  15525. test x$enable_esd_shared = xyes; then
  15526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15527. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15528. fi
  15529. if test x$have_loadso = xyes && \
  15530. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15531. echo "-- dynamic libesd -> $esd_lib"
  15532. cat >>confdefs.h <<_ACEOF
  15533. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15534. _ACEOF
  15535. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15536. else
  15537. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15538. SUMMARY_audio="${SUMMARY_audio} esd"
  15539. fi
  15540. have_audio=yes
  15541. fi
  15542. fi
  15543. }
  15544. CheckPulseAudio()
  15545. {
  15546. # Check whether --enable-pulseaudio was given.
  15547. if test "${enable_pulseaudio+set}" = set; then :
  15548. enableval=$enable_pulseaudio;
  15549. else
  15550. enable_pulseaudio=yes
  15551. fi
  15552. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15553. audio_pulseaudio=no
  15554. PULSEAUDIO_REQUIRED_VERSION=0.9
  15555. # Extract the first word of "pkg-config", so it can be a program name with args.
  15556. set dummy pkg-config; ac_word=$2
  15557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15558. $as_echo_n "checking for $ac_word... " >&6; }
  15559. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15560. $as_echo_n "(cached) " >&6
  15561. else
  15562. case $PKG_CONFIG in
  15563. [\\/]* | ?:[\\/]*)
  15564. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15565. ;;
  15566. *)
  15567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15568. for as_dir in $PATH
  15569. do
  15570. IFS=$as_save_IFS
  15571. test -z "$as_dir" && as_dir=.
  15572. for ac_exec_ext in '' $ac_executable_extensions; do
  15573. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15574. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15575. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15576. break 2
  15577. fi
  15578. done
  15579. done
  15580. IFS=$as_save_IFS
  15581. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15582. ;;
  15583. esac
  15584. fi
  15585. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15586. if test -n "$PKG_CONFIG"; then
  15587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15588. $as_echo "$PKG_CONFIG" >&6; }
  15589. else
  15590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15591. $as_echo "no" >&6; }
  15592. fi
  15593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15594. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15595. if test x$PKG_CONFIG != xno; then
  15596. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15597. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15598. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15599. audio_pulseaudio=yes
  15600. fi
  15601. fi
  15602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15603. $as_echo "$audio_pulseaudio" >&6; }
  15604. if test x$audio_pulseaudio = xyes; then
  15605. # Check whether --enable-pulseaudio-shared was given.
  15606. if test "${enable_pulseaudio_shared+set}" = set; then :
  15607. enableval=$enable_pulseaudio_shared;
  15608. else
  15609. enable_pulseaudio_shared=yes
  15610. fi
  15611. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15612. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15613. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15614. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15615. if test x$have_loadso != xyes && \
  15616. test x$enable_pulseaudio_shared = xyes; then
  15617. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15618. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15619. fi
  15620. if test x$have_loadso = xyes && \
  15621. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15622. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15623. cat >>confdefs.h <<_ACEOF
  15624. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15625. _ACEOF
  15626. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15627. case "$host" in
  15628. # On Solaris, pulseaudio must be linked deferred explicitly
  15629. # to prevent undefined symbol failures.
  15630. *-*-solaris*)
  15631. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15632. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15633. esac
  15634. else
  15635. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15636. SUMMARY_audio="${SUMMARY_audio} pulse"
  15637. fi
  15638. have_audio=yes
  15639. fi
  15640. fi
  15641. }
  15642. CheckARTSC()
  15643. {
  15644. # Check whether --enable-arts was given.
  15645. if test "${enable_arts+set}" = set; then :
  15646. enableval=$enable_arts;
  15647. else
  15648. enable_arts=yes
  15649. fi
  15650. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15651. # Extract the first word of "artsc-config", so it can be a program name with args.
  15652. set dummy artsc-config; ac_word=$2
  15653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15654. $as_echo_n "checking for $ac_word... " >&6; }
  15655. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15656. $as_echo_n "(cached) " >&6
  15657. else
  15658. case $ARTSCONFIG in
  15659. [\\/]* | ?:[\\/]*)
  15660. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15661. ;;
  15662. *)
  15663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15664. for as_dir in $PATH
  15665. do
  15666. IFS=$as_save_IFS
  15667. test -z "$as_dir" && as_dir=.
  15668. for ac_exec_ext in '' $ac_executable_extensions; do
  15669. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15670. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15671. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15672. break 2
  15673. fi
  15674. done
  15675. done
  15676. IFS=$as_save_IFS
  15677. ;;
  15678. esac
  15679. fi
  15680. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15681. if test -n "$ARTSCONFIG"; then
  15682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15683. $as_echo "$ARTSCONFIG" >&6; }
  15684. else
  15685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15686. $as_echo "no" >&6; }
  15687. fi
  15688. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15689. : # arts isn't installed
  15690. else
  15691. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15692. ARTS_LIBS=`$ARTSCONFIG --libs`
  15693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15694. $as_echo_n "checking for aRts development environment... " >&6; }
  15695. audio_arts=no
  15696. save_CFLAGS="$CFLAGS"
  15697. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15699. /* end confdefs.h. */
  15700. #include <artsc.h>
  15701. int
  15702. main ()
  15703. {
  15704. arts_stream_t stream;
  15705. ;
  15706. return 0;
  15707. }
  15708. _ACEOF
  15709. if ac_fn_c_try_compile "$LINENO"; then :
  15710. audio_arts=yes
  15711. fi
  15712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15713. CFLAGS="$save_CFLAGS"
  15714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15715. $as_echo "$audio_arts" >&6; }
  15716. if test x$audio_arts = xyes; then
  15717. # Check whether --enable-arts-shared was given.
  15718. if test "${enable_arts_shared+set}" = set; then :
  15719. enableval=$enable_arts_shared;
  15720. else
  15721. enable_arts_shared=yes
  15722. fi
  15723. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15724. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15725. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15726. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15727. if test x$have_loadso != xyes && \
  15728. test x$enable_arts_shared = xyes; then
  15729. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15730. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15731. fi
  15732. if test x$have_loadso = xyes && \
  15733. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15734. echo "-- dynamic libartsc -> $arts_lib"
  15735. cat >>confdefs.h <<_ACEOF
  15736. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15737. _ACEOF
  15738. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15739. else
  15740. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15741. SUMMARY_audio="${SUMMARY_audio} arts"
  15742. fi
  15743. have_audio=yes
  15744. fi
  15745. fi
  15746. fi
  15747. }
  15748. CheckNAS()
  15749. {
  15750. # Check whether --enable-nas was given.
  15751. if test "${enable_nas+set}" = set; then :
  15752. enableval=$enable_nas;
  15753. else
  15754. enable_nas=yes
  15755. fi
  15756. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15757. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15758. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15759. have_nas_hdr=yes
  15760. fi
  15761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15762. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15763. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15764. $as_echo_n "(cached) " >&6
  15765. else
  15766. ac_check_lib_save_LIBS=$LIBS
  15767. LIBS="-laudio $LIBS"
  15768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15769. /* end confdefs.h. */
  15770. /* Override any GCC internal prototype to avoid an error.
  15771. Use char because int might match the return type of a GCC
  15772. builtin and then its argument prototype would still apply. */
  15773. #ifdef __cplusplus
  15774. extern "C"
  15775. #endif
  15776. char AuOpenServer ();
  15777. int
  15778. main ()
  15779. {
  15780. return AuOpenServer ();
  15781. ;
  15782. return 0;
  15783. }
  15784. _ACEOF
  15785. if ac_fn_c_try_link "$LINENO"; then :
  15786. ac_cv_lib_audio_AuOpenServer=yes
  15787. else
  15788. ac_cv_lib_audio_AuOpenServer=no
  15789. fi
  15790. rm -f core conftest.err conftest.$ac_objext \
  15791. conftest$ac_exeext conftest.$ac_ext
  15792. LIBS=$ac_check_lib_save_LIBS
  15793. fi
  15794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15795. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15796. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15797. have_nas_lib=yes
  15798. fi
  15799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15800. $as_echo_n "checking for NAS audio support... " >&6; }
  15801. have_nas=no
  15802. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15803. have_nas=yes
  15804. NAS_LIBS="-laudio"
  15805. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15806. have_nas=yes
  15807. NAS_CFLAGS="-I/usr/X11R6/include/"
  15808. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15809. fi
  15810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15811. $as_echo "$have_nas" >&6; }
  15812. if test x$have_nas = xyes; then
  15813. # Check whether --enable-nas-shared was given.
  15814. if test "${enable_nas_shared+set}" = set; then :
  15815. enableval=$enable_nas_shared;
  15816. else
  15817. enable_nas_shared=yes
  15818. fi
  15819. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15820. if test x$have_loadso != xyes && \
  15821. test x$enable_nas_shared = xyes; then
  15822. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15823. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15824. fi
  15825. if test x$have_loadso = xyes && \
  15826. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15827. echo "-- dynamic libaudio -> $nas_lib"
  15828. cat >>confdefs.h <<_ACEOF
  15829. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15830. _ACEOF
  15831. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  15832. else
  15833. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  15834. SUMMARY_audio="${SUMMARY_audio} nas"
  15835. fi
  15836. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  15837. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  15838. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  15839. have_audio=yes
  15840. fi
  15841. fi
  15842. }
  15843. CheckSNDIO()
  15844. {
  15845. # Check whether --enable-sndio was given.
  15846. if test "${enable_sndio+set}" = set; then :
  15847. enableval=$enable_sndio;
  15848. else
  15849. enable_sndio=yes
  15850. fi
  15851. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  15852. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  15853. if test "x$ac_cv_header_sndio_h" = xyes; then :
  15854. have_sndio_hdr=yes
  15855. fi
  15856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  15857. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  15858. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  15859. $as_echo_n "(cached) " >&6
  15860. else
  15861. ac_check_lib_save_LIBS=$LIBS
  15862. LIBS="-lsndio $LIBS"
  15863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15864. /* end confdefs.h. */
  15865. /* Override any GCC internal prototype to avoid an error.
  15866. Use char because int might match the return type of a GCC
  15867. builtin and then its argument prototype would still apply. */
  15868. #ifdef __cplusplus
  15869. extern "C"
  15870. #endif
  15871. char sio_open ();
  15872. int
  15873. main ()
  15874. {
  15875. return sio_open ();
  15876. ;
  15877. return 0;
  15878. }
  15879. _ACEOF
  15880. if ac_fn_c_try_link "$LINENO"; then :
  15881. ac_cv_lib_sndio_sio_open=yes
  15882. else
  15883. ac_cv_lib_sndio_sio_open=no
  15884. fi
  15885. rm -f core conftest.err conftest.$ac_objext \
  15886. conftest$ac_exeext conftest.$ac_ext
  15887. LIBS=$ac_check_lib_save_LIBS
  15888. fi
  15889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  15890. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  15891. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  15892. have_sndio_lib=yes
  15893. fi
  15894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  15895. $as_echo_n "checking for sndio audio support... " >&6; }
  15896. have_sndio=no
  15897. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  15898. have_sndio=yes
  15899. SNDIO_LIBS="-lsndio"
  15900. fi
  15901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  15902. $as_echo "$have_sndio" >&6; }
  15903. if test x$have_sndio = xyes; then
  15904. # Check whether --enable-sndio-shared was given.
  15905. if test "${enable_sndio_shared+set}" = set; then :
  15906. enableval=$enable_sndio_shared;
  15907. else
  15908. enable_sndio_shared=yes
  15909. fi
  15910. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15911. if test x$have_loadso != xyes && \
  15912. test x$enable_sndio_shared = xyes; then
  15913. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  15914. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  15915. fi
  15916. if test x$have_loadso = xyes && \
  15917. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  15918. echo "-- dynamic libsndio -> $sndio_lib"
  15919. cat >>confdefs.h <<_ACEOF
  15920. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  15921. _ACEOF
  15922. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  15923. else
  15924. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  15925. SUMMARY_audio="${SUMMARY_audio} sndio"
  15926. fi
  15927. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  15928. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  15929. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  15930. have_audio=yes
  15931. fi
  15932. fi
  15933. }
  15934. CheckDiskAudio()
  15935. {
  15936. # Check whether --enable-diskaudio was given.
  15937. if test "${enable_diskaudio+set}" = set; then :
  15938. enableval=$enable_diskaudio;
  15939. else
  15940. enable_diskaudio=yes
  15941. fi
  15942. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  15943. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  15944. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  15945. SUMMARY_audio="${SUMMARY_audio} disk"
  15946. fi
  15947. }
  15948. CheckDummyAudio()
  15949. {
  15950. # Check whether --enable-dummyaudio was given.
  15951. if test "${enable_dummyaudio+set}" = set; then :
  15952. enableval=$enable_dummyaudio;
  15953. else
  15954. enable_dummyaudio=yes
  15955. fi
  15956. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  15957. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  15958. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  15959. SUMMARY_audio="${SUMMARY_audio} dummy"
  15960. fi
  15961. }
  15962. CheckVisibilityHidden()
  15963. {
  15964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  15965. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  15966. have_gcc_fvisibility=no
  15967. visibility_CFLAGS="-fvisibility=hidden"
  15968. save_CFLAGS="$CFLAGS"
  15969. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  15970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15971. /* end confdefs.h. */
  15972. #if !defined(__GNUC__) || __GNUC__ < 4
  15973. #error SDL only uses visibility attributes in GCC 4 or newer
  15974. #endif
  15975. int
  15976. main ()
  15977. {
  15978. ;
  15979. return 0;
  15980. }
  15981. _ACEOF
  15982. if ac_fn_c_try_compile "$LINENO"; then :
  15983. have_gcc_fvisibility=yes
  15984. fi
  15985. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  15987. $as_echo "$have_gcc_fvisibility" >&6; }
  15988. CFLAGS="$save_CFLAGS"
  15989. if test x$have_gcc_fvisibility = xyes; then
  15990. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  15991. fi
  15992. }
  15993. CheckStackBoundary()
  15994. {
  15995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  15996. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  15997. have_gcc_preferred_stack_boundary=no
  15998. save_CFLAGS="$CFLAGS"
  15999. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16001. /* end confdefs.h. */
  16002. int x = 0;
  16003. int
  16004. main ()
  16005. {
  16006. ;
  16007. return 0;
  16008. }
  16009. _ACEOF
  16010. if ac_fn_c_try_compile "$LINENO"; then :
  16011. have_gcc_preferred_stack_boundary=yes
  16012. fi
  16013. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16015. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16016. CFLAGS="$save_CFLAGS"
  16017. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16018. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16019. fi
  16020. }
  16021. CheckDeclarationAfterStatement()
  16022. {
  16023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16024. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16025. have_gcc_declaration_after_statement=no
  16026. save_CFLAGS="$CFLAGS"
  16027. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16029. /* end confdefs.h. */
  16030. int x = 0;
  16031. int
  16032. main ()
  16033. {
  16034. ;
  16035. return 0;
  16036. }
  16037. _ACEOF
  16038. if ac_fn_c_try_compile "$LINENO"; then :
  16039. have_gcc_declaration_after_statement=yes
  16040. fi
  16041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16043. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16044. CFLAGS="$save_CFLAGS"
  16045. if test x$have_gcc_declaration_after_statement = xyes; then
  16046. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16047. fi
  16048. }
  16049. CheckWarnAll()
  16050. {
  16051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16052. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16053. have_gcc_Wall=no
  16054. save_CFLAGS="$CFLAGS"
  16055. CFLAGS="$save_CFLAGS -Wall"
  16056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16057. /* end confdefs.h. */
  16058. int x = 0;
  16059. int
  16060. main ()
  16061. {
  16062. ;
  16063. return 0;
  16064. }
  16065. _ACEOF
  16066. if ac_fn_c_try_compile "$LINENO"; then :
  16067. have_gcc_Wall=yes
  16068. fi
  16069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16071. $as_echo "$have_gcc_Wall" >&6; }
  16072. CFLAGS="$save_CFLAGS"
  16073. if test x$have_gcc_Wall = xyes; then
  16074. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16076. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16077. need_gcc_Wno_multichar=no
  16078. case "$host" in
  16079. *-*-haiku*)
  16080. need_gcc_Wno_multichar=yes
  16081. ;;
  16082. esac
  16083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16084. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16085. if test x$need_gcc_Wno_multichar = xyes; then
  16086. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16087. fi
  16088. fi
  16089. }
  16090. CheckWayland()
  16091. {
  16092. # Check whether --enable-video-wayland was given.
  16093. if test "${enable_video_wayland+set}" = set; then :
  16094. enableval=$enable_video_wayland;
  16095. else
  16096. enable_video_wayland=yes
  16097. fi
  16098. # Check whether --enable-video-wayland-qt-touch was given.
  16099. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16100. enableval=$enable_video_wayland_qt_touch;
  16101. else
  16102. enable_video_wayland_qt_touch=yes
  16103. fi
  16104. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16105. # Extract the first word of "pkg-config", so it can be a program name with args.
  16106. set dummy pkg-config; ac_word=$2
  16107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16108. $as_echo_n "checking for $ac_word... " >&6; }
  16109. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16110. $as_echo_n "(cached) " >&6
  16111. else
  16112. case $PKG_CONFIG in
  16113. [\\/]* | ?:[\\/]*)
  16114. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16115. ;;
  16116. *)
  16117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16118. for as_dir in $PATH
  16119. do
  16120. IFS=$as_save_IFS
  16121. test -z "$as_dir" && as_dir=.
  16122. for ac_exec_ext in '' $ac_executable_extensions; do
  16123. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16124. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16125. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16126. break 2
  16127. fi
  16128. done
  16129. done
  16130. IFS=$as_save_IFS
  16131. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16132. ;;
  16133. esac
  16134. fi
  16135. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16136. if test -n "$PKG_CONFIG"; then
  16137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16138. $as_echo "$PKG_CONFIG" >&6; }
  16139. else
  16140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16141. $as_echo "no" >&6; }
  16142. fi
  16143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16144. $as_echo_n "checking for Wayland support... " >&6; }
  16145. video_wayland=no
  16146. if test x$PKG_CONFIG != xno && \
  16147. test x$video_opengl_egl = xyes && \
  16148. test x$video_opengles_v2 = xyes; then
  16149. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16150. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16151. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16152. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16153. WAYLAND_CORE_PROTOCOL_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-client`
  16154. WAYLAND_PROTOCOLS_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
  16155. video_wayland=yes
  16156. fi
  16157. fi
  16158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16159. $as_echo "$video_wayland" >&6; }
  16160. if test x$video_wayland = xyes; then
  16161. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16162. if test x$enable_video_wayland_qt_touch = xyes; then
  16163. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16164. fi
  16165. WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1"
  16166. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16167. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16168. # Check whether --enable-wayland-shared was given.
  16169. if test "${enable_wayland_shared+set}" = set; then :
  16170. enableval=$enable_wayland_shared;
  16171. else
  16172. enable_wayland_shared=maybe
  16173. fi
  16174. case "$host" in
  16175. *)
  16176. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16177. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16178. if test x$wayland_egl_lib = x; then
  16179. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16180. fi
  16181. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16182. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16183. ;;
  16184. esac
  16185. if test x$enable_wayland_shared = xmaybe; then
  16186. enable_wayland_shared=yes
  16187. fi
  16188. if test x$have_loadso != xyes && \
  16189. test x$enable_wayland_shared = xyes; then
  16190. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16191. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16192. enable_wayland_shared=no
  16193. fi
  16194. if test x$have_loadso = xyes && \
  16195. test x$enable_wayland_shared = xyes && \
  16196. test x$wayland_client_lib != x && \
  16197. test x$wayland_egl_lib != x && \
  16198. test x$wayland_cursor_lib != x && \
  16199. test x$xkbcommon_lib != x; then
  16200. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16201. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16202. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16203. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16204. cat >>confdefs.h <<_ACEOF
  16205. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16206. _ACEOF
  16207. cat >>confdefs.h <<_ACEOF
  16208. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16209. _ACEOF
  16210. cat >>confdefs.h <<_ACEOF
  16211. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16212. _ACEOF
  16213. cat >>confdefs.h <<_ACEOF
  16214. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16215. _ACEOF
  16216. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16217. else
  16218. enable_wayland_shared=no
  16219. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16220. SUMMARY_video="${SUMMARY_video} wayland"
  16221. fi
  16222. have_video=yes
  16223. fi
  16224. fi
  16225. }
  16226. CheckMir()
  16227. {
  16228. # Check whether --enable-video-mir was given.
  16229. if test "${enable_video_mir+set}" = set; then :
  16230. enableval=$enable_video_mir;
  16231. else
  16232. enable_video_mir=yes
  16233. fi
  16234. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16235. # Extract the first word of "pkg-config", so it can be a program name with args.
  16236. set dummy pkg-config; ac_word=$2
  16237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16238. $as_echo_n "checking for $ac_word... " >&6; }
  16239. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16240. $as_echo_n "(cached) " >&6
  16241. else
  16242. case $PKG_CONFIG in
  16243. [\\/]* | ?:[\\/]*)
  16244. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16245. ;;
  16246. *)
  16247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16248. for as_dir in $PATH
  16249. do
  16250. IFS=$as_save_IFS
  16251. test -z "$as_dir" && as_dir=.
  16252. for ac_exec_ext in '' $ac_executable_extensions; do
  16253. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16254. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16255. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16256. break 2
  16257. fi
  16258. done
  16259. done
  16260. IFS=$as_save_IFS
  16261. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16262. ;;
  16263. esac
  16264. fi
  16265. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16266. if test -n "$PKG_CONFIG"; then
  16267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16268. $as_echo "$PKG_CONFIG" >&6; }
  16269. else
  16270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16271. $as_echo "no" >&6; }
  16272. fi
  16273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16274. $as_echo_n "checking for Mir support... " >&6; }
  16275. video_mir=no
  16276. if test x$PKG_CONFIG != xno; then
  16277. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16278. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16279. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16280. save_CFLAGS="$CFLAGS"
  16281. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16283. /* end confdefs.h. */
  16284. #include <mir_toolkit/mir_client_library.h>
  16285. int
  16286. main ()
  16287. {
  16288. MirPointerButton button = mir_pointer_button_primary;
  16289. MirPointerConfinementState confined = mir_pointer_unconfined;
  16290. ;
  16291. return 0;
  16292. }
  16293. _ACEOF
  16294. if ac_fn_c_try_compile "$LINENO"; then :
  16295. video_mir=yes
  16296. fi
  16297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16298. CFLAGS="$save_CFLAGS"
  16299. fi
  16300. fi
  16301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16302. $as_echo "$video_mir" >&6; }
  16303. if test x$video_mir = xyes; then
  16304. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16305. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16306. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16307. # Check whether --enable-mir-shared was given.
  16308. if test "${enable_mir_shared+set}" = set; then :
  16309. enableval=$enable_mir_shared;
  16310. else
  16311. enable_mir_shared=maybe
  16312. fi
  16313. case "$host" in
  16314. *)
  16315. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16316. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16317. ;;
  16318. esac
  16319. if test x$enable_mir_shared = xmaybe; then
  16320. enable_mir_shared=yes
  16321. fi
  16322. if test x$have_loadso != xyes && \
  16323. test x$enable_mir_shared = xyes; then
  16324. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16325. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16326. enable_mir_shared=no
  16327. fi
  16328. if test x$have_loadso = xyes && \
  16329. test x$enable_mir_shared = xyes && \
  16330. test x$mirclient_lib != x && \
  16331. test x$xkbcommon_lib != x; then
  16332. echo "-- dynamic libmirclient -> $mirclient_lib"
  16333. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16334. cat >>confdefs.h <<_ACEOF
  16335. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16336. _ACEOF
  16337. cat >>confdefs.h <<_ACEOF
  16338. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16339. _ACEOF
  16340. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16341. else
  16342. enable_mir_shared=no
  16343. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16344. SUMMARY_video="${SUMMARY_video} mir"
  16345. fi
  16346. have_video=yes
  16347. fi
  16348. fi
  16349. }
  16350. CheckNativeClient()
  16351. {
  16352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16353. /* end confdefs.h. */
  16354. #if !defined(__native_client__)
  16355. #error "NO NACL"
  16356. #endif
  16357. int
  16358. main ()
  16359. {
  16360. ;
  16361. return 0;
  16362. }
  16363. _ACEOF
  16364. if ac_fn_c_try_compile "$LINENO"; then :
  16365. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16366. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16367. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16368. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16369. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16370. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16371. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16372. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16373. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16374. SUMMARY_audio="${SUMMARY_audio} nacl"
  16375. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16376. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16377. fi
  16378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16379. }
  16380. CheckX11()
  16381. {
  16382. # Check whether --enable-video-x11 was given.
  16383. if test "${enable_video_x11+set}" = set; then :
  16384. enableval=$enable_video_x11;
  16385. else
  16386. enable_video_x11=yes
  16387. fi
  16388. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16389. case "$host" in
  16390. *-*-darwin*)
  16391. # This isn't necessary for X11, but fixes GLX detection
  16392. if test "x$x_includes" = xNONE && \
  16393. test "x$x_libraries" = xNONE && \
  16394. test -d /usr/X11R6/include && \
  16395. test -d /usr/X11R6/lib; then
  16396. x_includes="/usr/X11R6/include"
  16397. x_libraries="/usr/X11R6/lib"
  16398. fi
  16399. ;;
  16400. esac
  16401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16402. $as_echo_n "checking for X... " >&6; }
  16403. # Check whether --with-x was given.
  16404. if test "${with_x+set}" = set; then :
  16405. withval=$with_x;
  16406. fi
  16407. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16408. if test "x$with_x" = xno; then
  16409. # The user explicitly disabled X.
  16410. have_x=disabled
  16411. else
  16412. case $x_includes,$x_libraries in #(
  16413. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16414. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16415. $as_echo_n "(cached) " >&6
  16416. else
  16417. # One or both of the vars are not set, and there is no cached value.
  16418. ac_x_includes=no ac_x_libraries=no
  16419. rm -f -r conftest.dir
  16420. if mkdir conftest.dir; then
  16421. cd conftest.dir
  16422. cat >Imakefile <<'_ACEOF'
  16423. incroot:
  16424. @echo incroot='${INCROOT}'
  16425. usrlibdir:
  16426. @echo usrlibdir='${USRLIBDIR}'
  16427. libdir:
  16428. @echo libdir='${LIBDIR}'
  16429. _ACEOF
  16430. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16431. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16432. for ac_var in incroot usrlibdir libdir; do
  16433. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16434. done
  16435. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16436. for ac_extension in a so sl dylib la dll; do
  16437. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16438. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16439. ac_im_usrlibdir=$ac_im_libdir; break
  16440. fi
  16441. done
  16442. # Screen out bogus values from the imake configuration. They are
  16443. # bogus both because they are the default anyway, and because
  16444. # using them would break gcc on systems where it needs fixed includes.
  16445. case $ac_im_incroot in
  16446. /usr/include) ac_x_includes= ;;
  16447. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16448. esac
  16449. case $ac_im_usrlibdir in
  16450. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16451. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16452. esac
  16453. fi
  16454. cd ..
  16455. rm -f -r conftest.dir
  16456. fi
  16457. # Standard set of common directories for X headers.
  16458. # Check X11 before X11Rn because it is often a symlink to the current release.
  16459. ac_x_header_dirs='
  16460. /usr/X11/include
  16461. /usr/X11R7/include
  16462. /usr/X11R6/include
  16463. /usr/X11R5/include
  16464. /usr/X11R4/include
  16465. /usr/include/X11
  16466. /usr/include/X11R7
  16467. /usr/include/X11R6
  16468. /usr/include/X11R5
  16469. /usr/include/X11R4
  16470. /usr/local/X11/include
  16471. /usr/local/X11R7/include
  16472. /usr/local/X11R6/include
  16473. /usr/local/X11R5/include
  16474. /usr/local/X11R4/include
  16475. /usr/local/include/X11
  16476. /usr/local/include/X11R7
  16477. /usr/local/include/X11R6
  16478. /usr/local/include/X11R5
  16479. /usr/local/include/X11R4
  16480. /usr/X386/include
  16481. /usr/x386/include
  16482. /usr/XFree86/include/X11
  16483. /usr/include
  16484. /usr/local/include
  16485. /usr/unsupported/include
  16486. /usr/athena/include
  16487. /usr/local/x11r5/include
  16488. /usr/lpp/Xamples/include
  16489. /usr/openwin/include
  16490. /usr/openwin/share/include'
  16491. if test "$ac_x_includes" = no; then
  16492. # Guess where to find include files, by looking for Xlib.h.
  16493. # First, try using that file with no special directory specified.
  16494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16495. /* end confdefs.h. */
  16496. #include <X11/Xlib.h>
  16497. _ACEOF
  16498. if ac_fn_c_try_cpp "$LINENO"; then :
  16499. # We can compile using X headers with no special include directory.
  16500. ac_x_includes=
  16501. else
  16502. for ac_dir in $ac_x_header_dirs; do
  16503. if test -r "$ac_dir/X11/Xlib.h"; then
  16504. ac_x_includes=$ac_dir
  16505. break
  16506. fi
  16507. done
  16508. fi
  16509. rm -f conftest.err conftest.i conftest.$ac_ext
  16510. fi # $ac_x_includes = no
  16511. if test "$ac_x_libraries" = no; then
  16512. # Check for the libraries.
  16513. # See if we find them without any special options.
  16514. # Don't add to $LIBS permanently.
  16515. ac_save_LIBS=$LIBS
  16516. LIBS="-lX11 $LIBS"
  16517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16518. /* end confdefs.h. */
  16519. #include <X11/Xlib.h>
  16520. int
  16521. main ()
  16522. {
  16523. XrmInitialize ()
  16524. ;
  16525. return 0;
  16526. }
  16527. _ACEOF
  16528. if ac_fn_c_try_link "$LINENO"; then :
  16529. LIBS=$ac_save_LIBS
  16530. # We can link X programs with no special library path.
  16531. ac_x_libraries=
  16532. else
  16533. LIBS=$ac_save_LIBS
  16534. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16535. do
  16536. # Don't even attempt the hair of trying to link an X program!
  16537. for ac_extension in a so sl dylib la dll; do
  16538. if test -r "$ac_dir/libX11.$ac_extension"; then
  16539. ac_x_libraries=$ac_dir
  16540. break 2
  16541. fi
  16542. done
  16543. done
  16544. fi
  16545. rm -f core conftest.err conftest.$ac_objext \
  16546. conftest$ac_exeext conftest.$ac_ext
  16547. fi # $ac_x_libraries = no
  16548. case $ac_x_includes,$ac_x_libraries in #(
  16549. no,* | *,no | *\'*)
  16550. # Didn't find X, or a directory has "'" in its name.
  16551. ac_cv_have_x="have_x=no";; #(
  16552. *)
  16553. # Record where we found X for the cache.
  16554. ac_cv_have_x="have_x=yes\
  16555. ac_x_includes='$ac_x_includes'\
  16556. ac_x_libraries='$ac_x_libraries'"
  16557. esac
  16558. fi
  16559. ;; #(
  16560. *) have_x=yes;;
  16561. esac
  16562. eval "$ac_cv_have_x"
  16563. fi # $with_x != no
  16564. if test "$have_x" != yes; then
  16565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16566. $as_echo "$have_x" >&6; }
  16567. no_x=yes
  16568. else
  16569. # If each of the values was on the command line, it overrides each guess.
  16570. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16571. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16572. # Update the cache value to reflect the command line values.
  16573. ac_cv_have_x="have_x=yes\
  16574. ac_x_includes='$x_includes'\
  16575. ac_x_libraries='$x_libraries'"
  16576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16577. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16578. fi
  16579. if test "$no_x" = yes; then
  16580. # Not all programs may use this symbol, but it does not hurt to define it.
  16581. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16582. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16583. else
  16584. if test -n "$x_includes"; then
  16585. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16586. fi
  16587. # It would also be nice to do this for all -L options, not just this one.
  16588. if test -n "$x_libraries"; then
  16589. X_LIBS="$X_LIBS -L$x_libraries"
  16590. # For Solaris; some versions of Sun CC require a space after -R and
  16591. # others require no space. Words are not sufficient . . . .
  16592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16593. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16594. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16595. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16596. ac_c_werror_flag=yes
  16597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16598. /* end confdefs.h. */
  16599. int
  16600. main ()
  16601. {
  16602. ;
  16603. return 0;
  16604. }
  16605. _ACEOF
  16606. if ac_fn_c_try_link "$LINENO"; then :
  16607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16608. $as_echo "no" >&6; }
  16609. X_LIBS="$X_LIBS -R$x_libraries"
  16610. else
  16611. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16613. /* end confdefs.h. */
  16614. int
  16615. main ()
  16616. {
  16617. ;
  16618. return 0;
  16619. }
  16620. _ACEOF
  16621. if ac_fn_c_try_link "$LINENO"; then :
  16622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16623. $as_echo "yes" >&6; }
  16624. X_LIBS="$X_LIBS -R $x_libraries"
  16625. else
  16626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16627. $as_echo "neither works" >&6; }
  16628. fi
  16629. rm -f core conftest.err conftest.$ac_objext \
  16630. conftest$ac_exeext conftest.$ac_ext
  16631. fi
  16632. rm -f core conftest.err conftest.$ac_objext \
  16633. conftest$ac_exeext conftest.$ac_ext
  16634. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16635. LIBS=$ac_xsave_LIBS
  16636. fi
  16637. # Check for system-dependent libraries X programs must link with.
  16638. # Do this before checking for the system-independent R6 libraries
  16639. # (-lICE), since we may need -lsocket or whatever for X linking.
  16640. if test "$ISC" = yes; then
  16641. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16642. else
  16643. # Martyn Johnson says this is needed for Ultrix, if the X
  16644. # libraries were built with DECnet support. And Karl Berry says
  16645. # the Alpha needs dnet_stub (dnet does not exist).
  16646. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16648. /* end confdefs.h. */
  16649. /* Override any GCC internal prototype to avoid an error.
  16650. Use char because int might match the return type of a GCC
  16651. builtin and then its argument prototype would still apply. */
  16652. #ifdef __cplusplus
  16653. extern "C"
  16654. #endif
  16655. char XOpenDisplay ();
  16656. int
  16657. main ()
  16658. {
  16659. return XOpenDisplay ();
  16660. ;
  16661. return 0;
  16662. }
  16663. _ACEOF
  16664. if ac_fn_c_try_link "$LINENO"; then :
  16665. else
  16666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16667. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16668. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16669. $as_echo_n "(cached) " >&6
  16670. else
  16671. ac_check_lib_save_LIBS=$LIBS
  16672. LIBS="-ldnet $LIBS"
  16673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16674. /* end confdefs.h. */
  16675. /* Override any GCC internal prototype to avoid an error.
  16676. Use char because int might match the return type of a GCC
  16677. builtin and then its argument prototype would still apply. */
  16678. #ifdef __cplusplus
  16679. extern "C"
  16680. #endif
  16681. char dnet_ntoa ();
  16682. int
  16683. main ()
  16684. {
  16685. return dnet_ntoa ();
  16686. ;
  16687. return 0;
  16688. }
  16689. _ACEOF
  16690. if ac_fn_c_try_link "$LINENO"; then :
  16691. ac_cv_lib_dnet_dnet_ntoa=yes
  16692. else
  16693. ac_cv_lib_dnet_dnet_ntoa=no
  16694. fi
  16695. rm -f core conftest.err conftest.$ac_objext \
  16696. conftest$ac_exeext conftest.$ac_ext
  16697. LIBS=$ac_check_lib_save_LIBS
  16698. fi
  16699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16700. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  16701. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  16702. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16703. fi
  16704. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  16706. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  16707. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  16708. $as_echo_n "(cached) " >&6
  16709. else
  16710. ac_check_lib_save_LIBS=$LIBS
  16711. LIBS="-ldnet_stub $LIBS"
  16712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16713. /* end confdefs.h. */
  16714. /* Override any GCC internal prototype to avoid an error.
  16715. Use char because int might match the return type of a GCC
  16716. builtin and then its argument prototype would still apply. */
  16717. #ifdef __cplusplus
  16718. extern "C"
  16719. #endif
  16720. char dnet_ntoa ();
  16721. int
  16722. main ()
  16723. {
  16724. return dnet_ntoa ();
  16725. ;
  16726. return 0;
  16727. }
  16728. _ACEOF
  16729. if ac_fn_c_try_link "$LINENO"; then :
  16730. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16731. else
  16732. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16733. fi
  16734. rm -f core conftest.err conftest.$ac_objext \
  16735. conftest$ac_exeext conftest.$ac_ext
  16736. LIBS=$ac_check_lib_save_LIBS
  16737. fi
  16738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16739. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  16740. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  16741. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16742. fi
  16743. fi
  16744. fi
  16745. rm -f core conftest.err conftest.$ac_objext \
  16746. conftest$ac_exeext conftest.$ac_ext
  16747. LIBS="$ac_xsave_LIBS"
  16748. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  16749. # to get the SysV transport functions.
  16750. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  16751. # needs -lnsl.
  16752. # The nsl library prevents programs from opening the X display
  16753. # on Irix 5.2, according to T.E. Dickey.
  16754. # The functions gethostbyname, getservbyname, and inet_addr are
  16755. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  16756. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16757. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16758. fi
  16759. if test $ac_cv_func_gethostbyname = no; then
  16760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16761. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16762. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16763. $as_echo_n "(cached) " >&6
  16764. else
  16765. ac_check_lib_save_LIBS=$LIBS
  16766. LIBS="-lnsl $LIBS"
  16767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16768. /* end confdefs.h. */
  16769. /* Override any GCC internal prototype to avoid an error.
  16770. Use char because int might match the return type of a GCC
  16771. builtin and then its argument prototype would still apply. */
  16772. #ifdef __cplusplus
  16773. extern "C"
  16774. #endif
  16775. char gethostbyname ();
  16776. int
  16777. main ()
  16778. {
  16779. return gethostbyname ();
  16780. ;
  16781. return 0;
  16782. }
  16783. _ACEOF
  16784. if ac_fn_c_try_link "$LINENO"; then :
  16785. ac_cv_lib_nsl_gethostbyname=yes
  16786. else
  16787. ac_cv_lib_nsl_gethostbyname=no
  16788. fi
  16789. rm -f core conftest.err conftest.$ac_objext \
  16790. conftest$ac_exeext conftest.$ac_ext
  16791. LIBS=$ac_check_lib_save_LIBS
  16792. fi
  16793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16794. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16795. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16796. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  16797. fi
  16798. if test $ac_cv_lib_nsl_gethostbyname = no; then
  16799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  16800. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  16801. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  16802. $as_echo_n "(cached) " >&6
  16803. else
  16804. ac_check_lib_save_LIBS=$LIBS
  16805. LIBS="-lbsd $LIBS"
  16806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16807. /* end confdefs.h. */
  16808. /* Override any GCC internal prototype to avoid an error.
  16809. Use char because int might match the return type of a GCC
  16810. builtin and then its argument prototype would still apply. */
  16811. #ifdef __cplusplus
  16812. extern "C"
  16813. #endif
  16814. char gethostbyname ();
  16815. int
  16816. main ()
  16817. {
  16818. return gethostbyname ();
  16819. ;
  16820. return 0;
  16821. }
  16822. _ACEOF
  16823. if ac_fn_c_try_link "$LINENO"; then :
  16824. ac_cv_lib_bsd_gethostbyname=yes
  16825. else
  16826. ac_cv_lib_bsd_gethostbyname=no
  16827. fi
  16828. rm -f core conftest.err conftest.$ac_objext \
  16829. conftest$ac_exeext conftest.$ac_ext
  16830. LIBS=$ac_check_lib_save_LIBS
  16831. fi
  16832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  16833. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  16834. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  16835. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  16836. fi
  16837. fi
  16838. fi
  16839. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  16840. # socket/setsockopt and other routines are undefined under SCO ODT
  16841. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  16842. # on later versions), says Simon Leinen: it contains gethostby*
  16843. # variants that don't use the name server (or something). -lsocket
  16844. # must be given before -lnsl if both are needed. We assume that
  16845. # if connect needs -lnsl, so does gethostbyname.
  16846. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  16847. if test "x$ac_cv_func_connect" = xyes; then :
  16848. fi
  16849. if test $ac_cv_func_connect = no; then
  16850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  16851. $as_echo_n "checking for connect in -lsocket... " >&6; }
  16852. if ${ac_cv_lib_socket_connect+:} false; then :
  16853. $as_echo_n "(cached) " >&6
  16854. else
  16855. ac_check_lib_save_LIBS=$LIBS
  16856. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  16857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16858. /* end confdefs.h. */
  16859. /* Override any GCC internal prototype to avoid an error.
  16860. Use char because int might match the return type of a GCC
  16861. builtin and then its argument prototype would still apply. */
  16862. #ifdef __cplusplus
  16863. extern "C"
  16864. #endif
  16865. char connect ();
  16866. int
  16867. main ()
  16868. {
  16869. return connect ();
  16870. ;
  16871. return 0;
  16872. }
  16873. _ACEOF
  16874. if ac_fn_c_try_link "$LINENO"; then :
  16875. ac_cv_lib_socket_connect=yes
  16876. else
  16877. ac_cv_lib_socket_connect=no
  16878. fi
  16879. rm -f core conftest.err conftest.$ac_objext \
  16880. conftest$ac_exeext conftest.$ac_ext
  16881. LIBS=$ac_check_lib_save_LIBS
  16882. fi
  16883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  16884. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  16885. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  16886. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  16887. fi
  16888. fi
  16889. # Guillermo Gomez says -lposix is necessary on A/UX.
  16890. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  16891. if test "x$ac_cv_func_remove" = xyes; then :
  16892. fi
  16893. if test $ac_cv_func_remove = no; then
  16894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  16895. $as_echo_n "checking for remove in -lposix... " >&6; }
  16896. if ${ac_cv_lib_posix_remove+:} false; then :
  16897. $as_echo_n "(cached) " >&6
  16898. else
  16899. ac_check_lib_save_LIBS=$LIBS
  16900. LIBS="-lposix $LIBS"
  16901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16902. /* end confdefs.h. */
  16903. /* Override any GCC internal prototype to avoid an error.
  16904. Use char because int might match the return type of a GCC
  16905. builtin and then its argument prototype would still apply. */
  16906. #ifdef __cplusplus
  16907. extern "C"
  16908. #endif
  16909. char remove ();
  16910. int
  16911. main ()
  16912. {
  16913. return remove ();
  16914. ;
  16915. return 0;
  16916. }
  16917. _ACEOF
  16918. if ac_fn_c_try_link "$LINENO"; then :
  16919. ac_cv_lib_posix_remove=yes
  16920. else
  16921. ac_cv_lib_posix_remove=no
  16922. fi
  16923. rm -f core conftest.err conftest.$ac_objext \
  16924. conftest$ac_exeext conftest.$ac_ext
  16925. LIBS=$ac_check_lib_save_LIBS
  16926. fi
  16927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  16928. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  16929. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  16930. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  16931. fi
  16932. fi
  16933. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  16934. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  16935. if test "x$ac_cv_func_shmat" = xyes; then :
  16936. fi
  16937. if test $ac_cv_func_shmat = no; then
  16938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  16939. $as_echo_n "checking for shmat in -lipc... " >&6; }
  16940. if ${ac_cv_lib_ipc_shmat+:} false; then :
  16941. $as_echo_n "(cached) " >&6
  16942. else
  16943. ac_check_lib_save_LIBS=$LIBS
  16944. LIBS="-lipc $LIBS"
  16945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16946. /* end confdefs.h. */
  16947. /* Override any GCC internal prototype to avoid an error.
  16948. Use char because int might match the return type of a GCC
  16949. builtin and then its argument prototype would still apply. */
  16950. #ifdef __cplusplus
  16951. extern "C"
  16952. #endif
  16953. char shmat ();
  16954. int
  16955. main ()
  16956. {
  16957. return shmat ();
  16958. ;
  16959. return 0;
  16960. }
  16961. _ACEOF
  16962. if ac_fn_c_try_link "$LINENO"; then :
  16963. ac_cv_lib_ipc_shmat=yes
  16964. else
  16965. ac_cv_lib_ipc_shmat=no
  16966. fi
  16967. rm -f core conftest.err conftest.$ac_objext \
  16968. conftest$ac_exeext conftest.$ac_ext
  16969. LIBS=$ac_check_lib_save_LIBS
  16970. fi
  16971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  16972. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  16973. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  16974. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  16975. fi
  16976. fi
  16977. fi
  16978. # Check for libraries that X11R6 Xt/Xaw programs need.
  16979. ac_save_LDFLAGS=$LDFLAGS
  16980. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  16981. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  16982. # check for ICE first), but we must link in the order -lSM -lICE or
  16983. # we get undefined symbols. So assume we have SM if we have ICE.
  16984. # These have to be linked with before -lX11, unlike the other
  16985. # libraries we check for below, so use a different variable.
  16986. # John Interrante, Karl Berry
  16987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  16988. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  16989. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  16990. $as_echo_n "(cached) " >&6
  16991. else
  16992. ac_check_lib_save_LIBS=$LIBS
  16993. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  16994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16995. /* end confdefs.h. */
  16996. /* Override any GCC internal prototype to avoid an error.
  16997. Use char because int might match the return type of a GCC
  16998. builtin and then its argument prototype would still apply. */
  16999. #ifdef __cplusplus
  17000. extern "C"
  17001. #endif
  17002. char IceConnectionNumber ();
  17003. int
  17004. main ()
  17005. {
  17006. return IceConnectionNumber ();
  17007. ;
  17008. return 0;
  17009. }
  17010. _ACEOF
  17011. if ac_fn_c_try_link "$LINENO"; then :
  17012. ac_cv_lib_ICE_IceConnectionNumber=yes
  17013. else
  17014. ac_cv_lib_ICE_IceConnectionNumber=no
  17015. fi
  17016. rm -f core conftest.err conftest.$ac_objext \
  17017. conftest$ac_exeext conftest.$ac_ext
  17018. LIBS=$ac_check_lib_save_LIBS
  17019. fi
  17020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17021. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17022. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17023. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17024. fi
  17025. LDFLAGS=$ac_save_LDFLAGS
  17026. fi
  17027. if test x$have_x = xyes; then
  17028. # Check whether --enable-x11-shared was given.
  17029. if test "${enable_x11_shared+set}" = set; then :
  17030. enableval=$enable_x11_shared;
  17031. else
  17032. enable_x11_shared=maybe
  17033. fi
  17034. case "$host" in
  17035. *-*-darwin*)
  17036. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17037. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17038. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17039. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17040. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17041. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17042. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17043. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17044. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17045. ;;
  17046. *-*-openbsd*)
  17047. x11_lib='libX11.so'
  17048. x11ext_lib='libXext.so'
  17049. xcursor_lib='libXcursor.so'
  17050. xinerama_lib='libXinerama.so'
  17051. xinput_lib='libXi.so'
  17052. xrandr_lib='libXrandr.so'
  17053. xrender_lib='libXrender.so'
  17054. xss_lib='libXss.so'
  17055. xvidmode_lib='libXxf86vm.so'
  17056. ;;
  17057. *)
  17058. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17059. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17060. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17061. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17062. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17063. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17064. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17065. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17066. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17067. ;;
  17068. esac
  17069. if test x$ac_cv_func_shmat != xyes; then
  17070. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17071. fi
  17072. CFLAGS="$CFLAGS $X_CFLAGS"
  17073. LDFLAGS="$LDFLAGS $X_LIBS"
  17074. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17075. #include <X11/Xproto.h>
  17076. "
  17077. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17078. have_xext_h_hdr=yes
  17079. else
  17080. have_xext_h_hdr=no
  17081. fi
  17082. if test x$have_xext_h_hdr != xyes; then
  17083. as_fn_error $? "
  17084. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17085. " "$LINENO" 5
  17086. fi
  17087. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17088. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17089. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17090. # Needed so SDL applications can include SDL_syswm.h
  17091. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17092. if test x$enable_x11_shared = xmaybe; then
  17093. enable_x11_shared=yes
  17094. fi
  17095. if test x$have_loadso != xyes && \
  17096. test x$enable_x11_shared = xyes; then
  17097. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17098. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17099. enable_x11_shared=no
  17100. fi
  17101. if test x$have_loadso = xyes && \
  17102. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17103. echo "-- dynamic libX11 -> $x11_lib"
  17104. echo "-- dynamic libX11ext -> $x11ext_lib"
  17105. cat >>confdefs.h <<_ACEOF
  17106. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17107. _ACEOF
  17108. cat >>confdefs.h <<_ACEOF
  17109. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17110. _ACEOF
  17111. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17112. else
  17113. enable_x11_shared=no
  17114. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17115. SUMMARY_video="${SUMMARY_video} x11"
  17116. fi
  17117. have_video=yes
  17118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17119. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17120. have_const_param_XextAddDisplay=no
  17121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17122. /* end confdefs.h. */
  17123. #include <X11/Xlib.h>
  17124. #include <X11/Xproto.h>
  17125. #include <X11/extensions/Xext.h>
  17126. #include <X11/extensions/extutil.h>
  17127. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17128. int
  17129. main ()
  17130. {
  17131. ;
  17132. return 0;
  17133. }
  17134. _ACEOF
  17135. if ac_fn_c_try_compile "$LINENO"; then :
  17136. have_const_param_XextAddDisplay=yes
  17137. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17138. fi
  17139. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17141. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17143. $as_echo_n "checking for XGenericEvent... " >&6; }
  17144. have_XGenericEvent=no
  17145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17146. /* end confdefs.h. */
  17147. #include <X11/Xlib.h>
  17148. int
  17149. main ()
  17150. {
  17151. Display *display;
  17152. XEvent event;
  17153. XGenericEventCookie *cookie = &event.xcookie;
  17154. XNextEvent(display, &event);
  17155. XGetEventData(display, cookie);
  17156. XFreeEventData(display, cookie);
  17157. ;
  17158. return 0;
  17159. }
  17160. _ACEOF
  17161. if ac_fn_c_try_compile "$LINENO"; then :
  17162. have_XGenericEvent=yes
  17163. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17164. fi
  17165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17167. $as_echo "$have_XGenericEvent" >&6; }
  17168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17169. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17170. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17171. $as_echo_n "(cached) " >&6
  17172. else
  17173. ac_check_lib_save_LIBS=$LIBS
  17174. LIBS="-lX11 $LIBS"
  17175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17176. /* end confdefs.h. */
  17177. /* Override any GCC internal prototype to avoid an error.
  17178. Use char because int might match the return type of a GCC
  17179. builtin and then its argument prototype would still apply. */
  17180. #ifdef __cplusplus
  17181. extern "C"
  17182. #endif
  17183. char XkbKeycodeToKeysym ();
  17184. int
  17185. main ()
  17186. {
  17187. return XkbKeycodeToKeysym ();
  17188. ;
  17189. return 0;
  17190. }
  17191. _ACEOF
  17192. if ac_fn_c_try_link "$LINENO"; then :
  17193. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17194. else
  17195. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17196. fi
  17197. rm -f core conftest.err conftest.$ac_objext \
  17198. conftest$ac_exeext conftest.$ac_ext
  17199. LIBS=$ac_check_lib_save_LIBS
  17200. fi
  17201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17202. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17203. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17204. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17205. fi
  17206. # Check whether --enable-video-x11-xcursor was given.
  17207. if test "${enable_video_x11_xcursor+set}" = set; then :
  17208. enableval=$enable_video_x11_xcursor;
  17209. else
  17210. enable_video_x11_xcursor=yes
  17211. fi
  17212. if test x$enable_video_x11_xcursor = xyes; then
  17213. definitely_enable_video_x11_xcursor=no
  17214. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17215. "
  17216. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17217. have_xcursor_h_hdr=yes
  17218. else
  17219. have_xcursor_h_hdr=no
  17220. fi
  17221. if test x$have_xcursor_h_hdr = xyes; then
  17222. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17223. echo "-- dynamic libXcursor -> $xcursor_lib"
  17224. cat >>confdefs.h <<_ACEOF
  17225. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17226. _ACEOF
  17227. definitely_enable_video_x11_xcursor=yes
  17228. else
  17229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17230. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17231. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17232. $as_echo_n "(cached) " >&6
  17233. else
  17234. ac_check_lib_save_LIBS=$LIBS
  17235. LIBS="-lXcursor $LIBS"
  17236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17237. /* end confdefs.h. */
  17238. /* Override any GCC internal prototype to avoid an error.
  17239. Use char because int might match the return type of a GCC
  17240. builtin and then its argument prototype would still apply. */
  17241. #ifdef __cplusplus
  17242. extern "C"
  17243. #endif
  17244. char XcursorImageCreate ();
  17245. int
  17246. main ()
  17247. {
  17248. return XcursorImageCreate ();
  17249. ;
  17250. return 0;
  17251. }
  17252. _ACEOF
  17253. if ac_fn_c_try_link "$LINENO"; then :
  17254. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17255. else
  17256. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17257. fi
  17258. rm -f core conftest.err conftest.$ac_objext \
  17259. conftest$ac_exeext conftest.$ac_ext
  17260. LIBS=$ac_check_lib_save_LIBS
  17261. fi
  17262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17263. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17264. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17265. have_xcursor_lib=yes
  17266. fi
  17267. if test x$have_xcursor_lib = xyes ; then
  17268. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17269. definitely_enable_video_x11_xcursor=yes
  17270. fi
  17271. fi
  17272. fi
  17273. fi
  17274. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17275. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17276. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17277. fi
  17278. # Check whether --enable-video-x11-xdbe was given.
  17279. if test "${enable_video_x11_xdbe+set}" = set; then :
  17280. enableval=$enable_video_x11_xdbe;
  17281. else
  17282. enable_video_x11_xdbe=yes
  17283. fi
  17284. if test x$enable_video_x11_xdbe = xyes; then
  17285. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17286. "
  17287. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17288. have_dbe_h_hdr=yes
  17289. else
  17290. have_dbe_h_hdr=no
  17291. fi
  17292. if test x$have_dbe_h_hdr = xyes; then
  17293. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17294. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17295. fi
  17296. fi
  17297. # Check whether --enable-video-x11-xinerama was given.
  17298. if test "${enable_video_x11_xinerama+set}" = set; then :
  17299. enableval=$enable_video_x11_xinerama;
  17300. else
  17301. enable_video_x11_xinerama=yes
  17302. fi
  17303. if test x$enable_video_x11_xinerama = xyes; then
  17304. definitely_enable_video_x11_xinerama=no
  17305. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17306. "
  17307. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17308. have_xinerama_h_hdr=yes
  17309. else
  17310. have_xinerama_h_hdr=no
  17311. fi
  17312. if test x$have_xinerama_h_hdr = xyes; then
  17313. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17314. echo "-- dynamic libXinerama -> $xinerama_lib"
  17315. cat >>confdefs.h <<_ACEOF
  17316. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17317. _ACEOF
  17318. definitely_enable_video_x11_xinerama=yes
  17319. else
  17320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17321. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17322. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17323. $as_echo_n "(cached) " >&6
  17324. else
  17325. ac_check_lib_save_LIBS=$LIBS
  17326. LIBS="-lXinerama $LIBS"
  17327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17328. /* end confdefs.h. */
  17329. /* Override any GCC internal prototype to avoid an error.
  17330. Use char because int might match the return type of a GCC
  17331. builtin and then its argument prototype would still apply. */
  17332. #ifdef __cplusplus
  17333. extern "C"
  17334. #endif
  17335. char XineramaQueryExtension ();
  17336. int
  17337. main ()
  17338. {
  17339. return XineramaQueryExtension ();
  17340. ;
  17341. return 0;
  17342. }
  17343. _ACEOF
  17344. if ac_fn_c_try_link "$LINENO"; then :
  17345. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17346. else
  17347. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17348. fi
  17349. rm -f core conftest.err conftest.$ac_objext \
  17350. conftest$ac_exeext conftest.$ac_ext
  17351. LIBS=$ac_check_lib_save_LIBS
  17352. fi
  17353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17354. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17355. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17356. have_xinerama_lib=yes
  17357. fi
  17358. if test x$have_xinerama_lib = xyes ; then
  17359. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17360. definitely_enable_video_x11_xinerama=yes
  17361. fi
  17362. fi
  17363. fi
  17364. fi
  17365. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17366. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17367. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17368. fi
  17369. # Check whether --enable-video-x11-xinput was given.
  17370. if test "${enable_video_x11_xinput+set}" = set; then :
  17371. enableval=$enable_video_x11_xinput;
  17372. else
  17373. enable_video_x11_xinput=yes
  17374. fi
  17375. if test x$enable_video_x11_xinput = xyes; then
  17376. definitely_enable_video_x11_xinput=no
  17377. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17378. "
  17379. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17380. have_xinput_h_hdr=yes
  17381. else
  17382. have_xinput_h_hdr=no
  17383. fi
  17384. if test x$have_xinput_h_hdr = xyes; then
  17385. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17386. echo "-- dynamic libXi -> $xinput_lib"
  17387. cat >>confdefs.h <<_ACEOF
  17388. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17389. _ACEOF
  17390. definitely_enable_video_x11_xinput=yes
  17391. else
  17392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17393. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17394. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17395. $as_echo_n "(cached) " >&6
  17396. else
  17397. ac_check_lib_save_LIBS=$LIBS
  17398. LIBS="-lXi $LIBS"
  17399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17400. /* end confdefs.h. */
  17401. /* Override any GCC internal prototype to avoid an error.
  17402. Use char because int might match the return type of a GCC
  17403. builtin and then its argument prototype would still apply. */
  17404. #ifdef __cplusplus
  17405. extern "C"
  17406. #endif
  17407. char XOpenDevice ();
  17408. int
  17409. main ()
  17410. {
  17411. return XOpenDevice ();
  17412. ;
  17413. return 0;
  17414. }
  17415. _ACEOF
  17416. if ac_fn_c_try_link "$LINENO"; then :
  17417. ac_cv_lib_Xi_XOpenDevice=yes
  17418. else
  17419. ac_cv_lib_Xi_XOpenDevice=no
  17420. fi
  17421. rm -f core conftest.err conftest.$ac_objext \
  17422. conftest$ac_exeext conftest.$ac_ext
  17423. LIBS=$ac_check_lib_save_LIBS
  17424. fi
  17425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17426. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17427. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17428. have_xinput_lib=yes
  17429. fi
  17430. if test x$have_xinput_lib = xyes ; then
  17431. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17432. definitely_enable_video_x11_xinput=yes
  17433. fi
  17434. fi
  17435. fi
  17436. fi
  17437. if test x$definitely_enable_video_x11_xinput = xyes; then
  17438. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17439. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17441. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17442. have_xinput2_multitouch=no
  17443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17444. /* end confdefs.h. */
  17445. #include <X11/Xlib.h>
  17446. #include <X11/Xproto.h>
  17447. #include <X11/extensions/XInput2.h>
  17448. int
  17449. main ()
  17450. {
  17451. int event_type = XI_TouchBegin;
  17452. XITouchClassInfo *t;
  17453. ;
  17454. return 0;
  17455. }
  17456. _ACEOF
  17457. if ac_fn_c_try_compile "$LINENO"; then :
  17458. have_xinput2_multitouch=yes
  17459. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17460. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17461. fi
  17462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17464. $as_echo "$have_xinput2_multitouch" >&6; }
  17465. fi
  17466. # Check whether --enable-video-x11-xrandr was given.
  17467. if test "${enable_video_x11_xrandr+set}" = set; then :
  17468. enableval=$enable_video_x11_xrandr;
  17469. else
  17470. enable_video_x11_xrandr=yes
  17471. fi
  17472. if test x$enable_video_x11_xrandr = xyes; then
  17473. definitely_enable_video_x11_xrandr=no
  17474. have_xrandr_h_hdr=no
  17475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17476. /* end confdefs.h. */
  17477. #include <X11/Xlib.h>
  17478. #include <X11/extensions/Xrandr.h>
  17479. int
  17480. main ()
  17481. {
  17482. XRRScreenResources *res = NULL;
  17483. ;
  17484. return 0;
  17485. }
  17486. _ACEOF
  17487. if ac_fn_c_try_compile "$LINENO"; then :
  17488. have_xrandr_h_hdr=yes
  17489. fi
  17490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17491. if test x$have_xrandr_h_hdr = xyes; then
  17492. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17493. echo "-- dynamic libXrandr -> $xrandr_lib"
  17494. cat >>confdefs.h <<_ACEOF
  17495. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17496. _ACEOF
  17497. definitely_enable_video_x11_xrandr=yes
  17498. else
  17499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17500. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17501. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17502. $as_echo_n "(cached) " >&6
  17503. else
  17504. ac_check_lib_save_LIBS=$LIBS
  17505. LIBS="-lXrandr $LIBS"
  17506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17507. /* end confdefs.h. */
  17508. /* Override any GCC internal prototype to avoid an error.
  17509. Use char because int might match the return type of a GCC
  17510. builtin and then its argument prototype would still apply. */
  17511. #ifdef __cplusplus
  17512. extern "C"
  17513. #endif
  17514. char XRRQueryExtension ();
  17515. int
  17516. main ()
  17517. {
  17518. return XRRQueryExtension ();
  17519. ;
  17520. return 0;
  17521. }
  17522. _ACEOF
  17523. if ac_fn_c_try_link "$LINENO"; then :
  17524. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17525. else
  17526. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17527. fi
  17528. rm -f core conftest.err conftest.$ac_objext \
  17529. conftest$ac_exeext conftest.$ac_ext
  17530. LIBS=$ac_check_lib_save_LIBS
  17531. fi
  17532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17533. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17534. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17535. have_xrandr_lib=yes
  17536. fi
  17537. if test x$have_xrandr_lib = xyes ; then
  17538. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17539. definitely_enable_video_x11_xrandr=yes
  17540. fi
  17541. fi
  17542. fi
  17543. fi
  17544. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17545. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17546. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17547. fi
  17548. # Check whether --enable-video-x11-scrnsaver was given.
  17549. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17550. enableval=$enable_video_x11_scrnsaver;
  17551. else
  17552. enable_video_x11_scrnsaver=yes
  17553. fi
  17554. if test x$enable_video_x11_scrnsaver = xyes; then
  17555. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17556. "
  17557. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17558. have_scrnsaver_h_hdr=yes
  17559. else
  17560. have_scrnsaver_h_hdr=no
  17561. fi
  17562. if test x$have_scrnsaver_h_hdr = xyes; then
  17563. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17564. echo "-- dynamic libXss -> $xss_lib"
  17565. cat >>confdefs.h <<_ACEOF
  17566. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17567. _ACEOF
  17568. definitely_enable_video_x11_scrnsaver=yes
  17569. else
  17570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17571. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17572. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17573. $as_echo_n "(cached) " >&6
  17574. else
  17575. ac_check_lib_save_LIBS=$LIBS
  17576. LIBS="-lXss $LIBS"
  17577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17578. /* end confdefs.h. */
  17579. /* Override any GCC internal prototype to avoid an error.
  17580. Use char because int might match the return type of a GCC
  17581. builtin and then its argument prototype would still apply. */
  17582. #ifdef __cplusplus
  17583. extern "C"
  17584. #endif
  17585. char XScreenSaverSuspend ();
  17586. int
  17587. main ()
  17588. {
  17589. return XScreenSaverSuspend ();
  17590. ;
  17591. return 0;
  17592. }
  17593. _ACEOF
  17594. if ac_fn_c_try_link "$LINENO"; then :
  17595. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17596. else
  17597. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17598. fi
  17599. rm -f core conftest.err conftest.$ac_objext \
  17600. conftest$ac_exeext conftest.$ac_ext
  17601. LIBS=$ac_check_lib_save_LIBS
  17602. fi
  17603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17604. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17605. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17606. have_xss_lib=yes
  17607. fi
  17608. if test x$have_xss_lib = xyes ; then
  17609. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17610. definitely_enable_video_x11_scrnsaver=yes
  17611. fi
  17612. fi
  17613. fi
  17614. fi
  17615. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17616. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17617. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17618. fi
  17619. # Check whether --enable-video-x11-xshape was given.
  17620. if test "${enable_video_x11_xshape+set}" = set; then :
  17621. enableval=$enable_video_x11_xshape;
  17622. else
  17623. enable_video_x11_xshape=yes
  17624. fi
  17625. if test x$enable_video_x11_xshape = xyes; then
  17626. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17627. "
  17628. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17629. have_shape_h_hdr=yes
  17630. else
  17631. have_shape_h_hdr=no
  17632. fi
  17633. if test x$have_shape_h_hdr = xyes; then
  17634. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17635. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  17636. fi
  17637. fi
  17638. # Check whether --enable-video-x11-vm was given.
  17639. if test "${enable_video_x11_vm+set}" = set; then :
  17640. enableval=$enable_video_x11_vm;
  17641. else
  17642. enable_video_x11_vm=yes
  17643. fi
  17644. if test x$enable_video_x11_vm = xyes; then
  17645. definitely_enable_video_x11_vm=no
  17646. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17647. "
  17648. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17649. have_vm_h_hdr=yes
  17650. else
  17651. have_vm_h_hdr=no
  17652. fi
  17653. if test x$have_vm_h_hdr = xyes; then
  17654. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17655. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17656. cat >>confdefs.h <<_ACEOF
  17657. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17658. _ACEOF
  17659. definitely_enable_video_x11_vm=yes
  17660. else
  17661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17662. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17663. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17664. $as_echo_n "(cached) " >&6
  17665. else
  17666. ac_check_lib_save_LIBS=$LIBS
  17667. LIBS="-lXxf86vm $LIBS"
  17668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17669. /* end confdefs.h. */
  17670. /* Override any GCC internal prototype to avoid an error.
  17671. Use char because int might match the return type of a GCC
  17672. builtin and then its argument prototype would still apply. */
  17673. #ifdef __cplusplus
  17674. extern "C"
  17675. #endif
  17676. char XF86VidModeQueryVersion ();
  17677. int
  17678. main ()
  17679. {
  17680. return XF86VidModeQueryVersion ();
  17681. ;
  17682. return 0;
  17683. }
  17684. _ACEOF
  17685. if ac_fn_c_try_link "$LINENO"; then :
  17686. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17687. else
  17688. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17689. fi
  17690. rm -f core conftest.err conftest.$ac_objext \
  17691. conftest$ac_exeext conftest.$ac_ext
  17692. LIBS=$ac_check_lib_save_LIBS
  17693. fi
  17694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17695. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17696. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  17697. have_vm_lib=yes
  17698. fi
  17699. if test x$have_vm_lib = xyes ; then
  17700. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  17701. definitely_enable_video_x11_vm=yes
  17702. fi
  17703. fi
  17704. fi
  17705. fi
  17706. if test x$definitely_enable_video_x11_vm = xyes; then
  17707. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  17708. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  17709. fi
  17710. fi
  17711. fi
  17712. }
  17713. CheckVivanteVideo()
  17714. {
  17715. # Check whether --enable-video-vivante was given.
  17716. if test "${enable_video_vivante+set}" = set; then :
  17717. enableval=$enable_video_vivante;
  17718. else
  17719. enable_video_vivante=yes
  17720. fi
  17721. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  17722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  17723. $as_echo_n "checking for Vivante VDK API... " >&6; }
  17724. have_vivante_vdk=no
  17725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17726. /* end confdefs.h. */
  17727. #define LINUX
  17728. #define EGL_API_FB
  17729. #include <gc_vdk.h>
  17730. int
  17731. main ()
  17732. {
  17733. ;
  17734. return 0;
  17735. }
  17736. _ACEOF
  17737. if ac_fn_c_try_compile "$LINENO"; then :
  17738. have_vivante_vdk=yes
  17739. fi
  17740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  17742. $as_echo "$have_vivante_vdk" >&6; }
  17743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  17744. $as_echo_n "checking for Vivante FB API... " >&6; }
  17745. have_vivante_egl=no
  17746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17747. /* end confdefs.h. */
  17748. #define LINUX
  17749. #define EGL_API_FB
  17750. #include <EGL/eglvivante.h>
  17751. int
  17752. main ()
  17753. {
  17754. ;
  17755. return 0;
  17756. }
  17757. _ACEOF
  17758. if ac_fn_c_try_compile "$LINENO"; then :
  17759. have_vivante_egl=yes
  17760. fi
  17761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  17763. $as_echo "$have_vivante_egl" >&6; }
  17764. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  17765. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  17766. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  17767. if test x$have_vivante_vdk = xyes; then
  17768. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  17769. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  17770. fi
  17771. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  17772. SUMMARY_video="${SUMMARY_video} vivante"
  17773. have_video=yes
  17774. fi
  17775. fi
  17776. }
  17777. CheckHaikuVideo()
  17778. {
  17779. if test x$enable_video = xyes; then
  17780. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  17781. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  17782. have_video=yes
  17783. SUMMARY_video="${SUMMARY_video} haiku"
  17784. fi
  17785. }
  17786. CheckCOCOA()
  17787. {
  17788. # Check whether --enable-video-cocoa was given.
  17789. if test "${enable_video_cocoa+set}" = set; then :
  17790. enableval=$enable_video_cocoa;
  17791. else
  17792. enable_video_cocoa=yes
  17793. fi
  17794. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  17795. save_CFLAGS="$CFLAGS"
  17796. CFLAGS="$CFLAGS -x objective-c"
  17797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  17798. $as_echo_n "checking for Cocoa framework... " >&6; }
  17799. have_cocoa=no
  17800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17801. /* end confdefs.h. */
  17802. #import <Cocoa/Cocoa.h>
  17803. int
  17804. main ()
  17805. {
  17806. ;
  17807. return 0;
  17808. }
  17809. _ACEOF
  17810. if ac_fn_c_try_compile "$LINENO"; then :
  17811. have_cocoa=yes
  17812. fi
  17813. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  17815. $as_echo "$have_cocoa" >&6; }
  17816. CFLAGS="$save_CFLAGS"
  17817. if test x$have_cocoa = xyes; then
  17818. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  17819. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  17820. SUMMARY_video="${SUMMARY_video} cocoa"
  17821. have_video=yes
  17822. fi
  17823. fi
  17824. }
  17825. CheckDirectFB()
  17826. {
  17827. # Check whether --enable-video-directfb was given.
  17828. if test "${enable_video_directfb+set}" = set; then :
  17829. enableval=$enable_video_directfb;
  17830. else
  17831. enable_video_directfb=no
  17832. fi
  17833. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  17834. video_directfb=no
  17835. DIRECTFB_REQUIRED_VERSION=1.0.0
  17836. for ac_prog in directfb-config
  17837. do
  17838. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17839. set dummy $ac_prog; ac_word=$2
  17840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17841. $as_echo_n "checking for $ac_word... " >&6; }
  17842. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  17843. $as_echo_n "(cached) " >&6
  17844. else
  17845. case $DIRECTFBCONFIG in
  17846. [\\/]* | ?:[\\/]*)
  17847. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  17848. ;;
  17849. *)
  17850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17851. as_dummy="$prefix/bin:$PATH"
  17852. for as_dir in $as_dummy
  17853. do
  17854. IFS=$as_save_IFS
  17855. test -z "$as_dir" && as_dir=.
  17856. for ac_exec_ext in '' $ac_executable_extensions; do
  17857. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17858. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17859. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17860. break 2
  17861. fi
  17862. done
  17863. done
  17864. IFS=$as_save_IFS
  17865. ;;
  17866. esac
  17867. fi
  17868. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  17869. if test -n "$DIRECTFBCONFIG"; then
  17870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  17871. $as_echo "$DIRECTFBCONFIG" >&6; }
  17872. else
  17873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17874. $as_echo "no" >&6; }
  17875. fi
  17876. test -n "$DIRECTFBCONFIG" && break
  17877. done
  17878. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  17879. if test x$DIRECTFBCONFIG = xno; then
  17880. # Extract the first word of "pkg-config", so it can be a program name with args.
  17881. set dummy pkg-config; ac_word=$2
  17882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17883. $as_echo_n "checking for $ac_word... " >&6; }
  17884. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17885. $as_echo_n "(cached) " >&6
  17886. else
  17887. case $PKG_CONFIG in
  17888. [\\/]* | ?:[\\/]*)
  17889. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17890. ;;
  17891. *)
  17892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17893. for as_dir in $PATH
  17894. do
  17895. IFS=$as_save_IFS
  17896. test -z "$as_dir" && as_dir=.
  17897. for ac_exec_ext in '' $ac_executable_extensions; do
  17898. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17899. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17900. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17901. break 2
  17902. fi
  17903. done
  17904. done
  17905. IFS=$as_save_IFS
  17906. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17907. ;;
  17908. esac
  17909. fi
  17910. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17911. if test -n "$PKG_CONFIG"; then
  17912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17913. $as_echo "$PKG_CONFIG" >&6; }
  17914. else
  17915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17916. $as_echo "no" >&6; }
  17917. fi
  17918. if test x$PKG_CONFIG != xno; then
  17919. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  17920. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  17921. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  17922. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  17923. video_directfb=yes
  17924. fi
  17925. fi
  17926. else
  17927. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  17928. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17929. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  17930. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17931. if test $HAVE_VERSION -ge $NEED_VERSION; then
  17932. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  17933. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  17934. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  17935. video_directfb=yes
  17936. fi
  17937. fi
  17938. if test x$video_directfb = xyes; then
  17939. # SuSE 11.1 installs directfb-config without directfb-devel
  17940. save_CPPFLAGS="$CPPFLAGS"
  17941. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  17942. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  17943. if test "x$ac_cv_header_directfb_h" = xyes; then :
  17944. have_directfb_hdr=yes
  17945. else
  17946. have_directfb_hdr=no
  17947. fi
  17948. CPPFLAGS="$save_CPPFLAGS"
  17949. video_directfb=$have_directfb_hdr
  17950. fi
  17951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  17952. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  17953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  17954. $as_echo "$video_directfb" >&6; }
  17955. if test x$video_directfb = xyes; then
  17956. # Check whether --enable-directfb-shared was given.
  17957. if test "${enable_directfb_shared+set}" = set; then :
  17958. enableval=$enable_directfb_shared;
  17959. else
  17960. enable_directfb_shared=yes
  17961. fi
  17962. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  17963. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  17964. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  17965. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  17966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  17967. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  17968. directfb_shared=no
  17969. directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  17970. # | sed 's/.*\/\(.*\)/\1/; q'`]
  17971. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  17972. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  17973. if test x$have_loadso != xyes && \
  17974. test x$enable_directfb_shared = xyes; then
  17975. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  17976. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  17977. fi
  17978. if test x$have_loadso = xyes && \
  17979. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  17980. directfb_shared=yes
  17981. echo "-- $directfb_lib_spec -> $directfb_lib"
  17982. cat >>confdefs.h <<_ACEOF
  17983. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  17984. _ACEOF
  17985. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  17986. else
  17987. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  17988. SUMMARY_video="${SUMMARY_video} directfb"
  17989. fi
  17990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  17991. $as_echo "$directfb_shared" >&6; }
  17992. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  17993. have_video=yes
  17994. fi
  17995. fi
  17996. }
  17997. CheckFusionSound()
  17998. {
  17999. # Check whether --enable-fusionsound was given.
  18000. if test "${enable_fusionsound+set}" = set; then :
  18001. enableval=$enable_fusionsound;
  18002. else
  18003. enable_fusionsound=no
  18004. fi
  18005. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  18006. fusionsound=no
  18007. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  18008. # Extract the first word of "pkg-config", so it can be a program name with args.
  18009. set dummy pkg-config; ac_word=$2
  18010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18011. $as_echo_n "checking for $ac_word... " >&6; }
  18012. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18013. $as_echo_n "(cached) " >&6
  18014. else
  18015. case $PKG_CONFIG in
  18016. [\\/]* | ?:[\\/]*)
  18017. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18018. ;;
  18019. *)
  18020. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18021. for as_dir in $PATH
  18022. do
  18023. IFS=$as_save_IFS
  18024. test -z "$as_dir" && as_dir=.
  18025. for ac_exec_ext in '' $ac_executable_extensions; do
  18026. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18027. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18028. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18029. break 2
  18030. fi
  18031. done
  18032. done
  18033. IFS=$as_save_IFS
  18034. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18035. ;;
  18036. esac
  18037. fi
  18038. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18039. if test -n "$PKG_CONFIG"; then
  18040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18041. $as_echo "$PKG_CONFIG" >&6; }
  18042. else
  18043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18044. $as_echo "no" >&6; }
  18045. fi
  18046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  18047. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  18048. if test x$PKG_CONFIG != xno; then
  18049. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  18050. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  18051. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  18052. fusionsound=yes
  18053. fi
  18054. fi
  18055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  18056. $as_echo "$fusionsound" >&6; }
  18057. if test x$fusionsound = xyes; then
  18058. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  18059. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  18060. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  18061. # Check whether --enable-fusionsound-shared was given.
  18062. if test "${enable_fusionsound_shared+set}" = set; then :
  18063. enableval=$enable_fusionsound_shared;
  18064. else
  18065. enable_fusionsound_shared=yes
  18066. fi
  18067. fusionsound_shared=no
  18068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  18069. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  18070. if test x$have_loadso != xyes && \
  18071. test x$enable_fusionsound_shared = xyes; then
  18072. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  18073. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  18074. fi
  18075. if test x$have_loadso = xyes && \
  18076. test x$enable_fusionsound_shared = xyes; then
  18077. cat >>confdefs.h <<_ACEOF
  18078. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  18079. _ACEOF
  18080. fusionsound_shared=yes
  18081. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  18082. else
  18083. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  18084. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  18085. fi
  18086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  18087. $as_echo "$fusionsound_shared" >&6; }
  18088. have_audio=yes
  18089. fi
  18090. fi
  18091. }
  18092. CheckDummyVideo()
  18093. {
  18094. # Check whether --enable-video-dummy was given.
  18095. if test "${enable_video_dummy+set}" = set; then :
  18096. enableval=$enable_video_dummy;
  18097. else
  18098. enable_video_dummy=yes
  18099. fi
  18100. if test x$enable_video_dummy = xyes; then
  18101. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18102. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18103. have_video=yes
  18104. SUMMARY_video="${SUMMARY_video} dummy"
  18105. fi
  18106. }
  18107. # Check whether --enable-video-opengl was given.
  18108. if test "${enable_video_opengl+set}" = set; then :
  18109. enableval=$enable_video_opengl;
  18110. else
  18111. enable_video_opengl=yes
  18112. fi
  18113. CheckOpenGLX11()
  18114. {
  18115. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18117. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18118. video_opengl=no
  18119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18120. /* end confdefs.h. */
  18121. #include <GL/gl.h>
  18122. #include <GL/glx.h>
  18123. int
  18124. main ()
  18125. {
  18126. ;
  18127. return 0;
  18128. }
  18129. _ACEOF
  18130. if ac_fn_c_try_compile "$LINENO"; then :
  18131. video_opengl=yes
  18132. fi
  18133. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18135. $as_echo "$video_opengl" >&6; }
  18136. if test x$video_opengl = xyes; then
  18137. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18138. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18139. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18140. SUMMARY_video="${SUMMARY_video} opengl"
  18141. fi
  18142. fi
  18143. }
  18144. # Check whether --enable-video-opengles was given.
  18145. if test "${enable_video_opengles+set}" = set; then :
  18146. enableval=$enable_video_opengles;
  18147. else
  18148. enable_video_opengles=yes
  18149. fi
  18150. # Check whether --enable-video-opengles1 was given.
  18151. if test "${enable_video_opengles1+set}" = set; then :
  18152. enableval=$enable_video_opengles1;
  18153. else
  18154. enable_video_opengles1=yes
  18155. fi
  18156. # Check whether --enable-video-opengles2 was given.
  18157. if test "${enable_video_opengles2+set}" = set; then :
  18158. enableval=$enable_video_opengles2;
  18159. else
  18160. enable_video_opengles2=yes
  18161. fi
  18162. CheckOpenGLESX11()
  18163. {
  18164. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18166. $as_echo_n "checking for EGL support... " >&6; }
  18167. video_opengl_egl=no
  18168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18169. /* end confdefs.h. */
  18170. #define LINUX
  18171. #define EGL_API_FB
  18172. #include <EGL/egl.h>
  18173. #include <EGL/eglext.h>
  18174. int
  18175. main ()
  18176. {
  18177. ;
  18178. return 0;
  18179. }
  18180. _ACEOF
  18181. if ac_fn_c_try_compile "$LINENO"; then :
  18182. video_opengl_egl=yes
  18183. fi
  18184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18186. $as_echo "$video_opengl_egl" >&6; }
  18187. if test x$video_opengl_egl = xyes; then
  18188. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18189. fi
  18190. if test x$enable_video_opengles1 = xyes; then
  18191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18192. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18193. video_opengles_v1=no
  18194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18195. /* end confdefs.h. */
  18196. #include <GLES/gl.h>
  18197. #include <GLES/glext.h>
  18198. int
  18199. main ()
  18200. {
  18201. ;
  18202. return 0;
  18203. }
  18204. _ACEOF
  18205. if ac_fn_c_try_compile "$LINENO"; then :
  18206. video_opengles_v1=yes
  18207. fi
  18208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18210. $as_echo "$video_opengles_v1" >&6; }
  18211. if test x$video_opengles_v1 = xyes; then
  18212. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18213. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18214. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18215. fi
  18216. fi
  18217. if test x$enable_video_opengles2 = xyes; then
  18218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18219. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18220. video_opengles_v2=no
  18221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18222. /* end confdefs.h. */
  18223. #include <GLES2/gl2.h>
  18224. #include <GLES2/gl2ext.h>
  18225. int
  18226. main ()
  18227. {
  18228. ;
  18229. return 0;
  18230. }
  18231. _ACEOF
  18232. if ac_fn_c_try_compile "$LINENO"; then :
  18233. video_opengles_v2=yes
  18234. fi
  18235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18237. $as_echo "$video_opengles_v2" >&6; }
  18238. if test x$video_opengles_v2 = xyes; then
  18239. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18240. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18241. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18242. fi
  18243. fi
  18244. fi
  18245. }
  18246. CheckWINDOWSGL()
  18247. {
  18248. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18249. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18250. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18251. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18252. SUMMARY_video="${SUMMARY_video} opengl"
  18253. fi
  18254. }
  18255. CheckWINDOWSGLES()
  18256. {
  18257. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18259. $as_echo_n "checking for EGL support... " >&6; }
  18260. video_opengl_egl=no
  18261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18262. /* end confdefs.h. */
  18263. #include <EGL/egl.h>
  18264. int
  18265. main ()
  18266. {
  18267. ;
  18268. return 0;
  18269. }
  18270. _ACEOF
  18271. if ac_fn_c_try_compile "$LINENO"; then :
  18272. video_opengl_egl=yes
  18273. fi
  18274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18276. $as_echo "$video_opengl_egl" >&6; }
  18277. if test x$video_opengl_egl = xyes; then
  18278. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18279. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18280. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18281. fi
  18282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18283. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18284. video_opengles_v2=no
  18285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18286. /* end confdefs.h. */
  18287. #include <GLES2/gl2.h>
  18288. #include <GLES2/gl2ext.h>
  18289. int
  18290. main ()
  18291. {
  18292. ;
  18293. return 0;
  18294. }
  18295. _ACEOF
  18296. if ac_fn_c_try_compile "$LINENO"; then :
  18297. video_opengles_v2=yes
  18298. fi
  18299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18301. $as_echo "$video_opengles_v2" >&6; }
  18302. if test x$video_opengles_v2 = xyes; then
  18303. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18304. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18305. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18306. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18307. fi
  18308. fi
  18309. }
  18310. CheckHaikuGL()
  18311. {
  18312. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18313. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18314. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18315. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18316. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18317. SUMMARY_video="${SUMMARY_video} opengl"
  18318. fi
  18319. }
  18320. CheckMacGL()
  18321. {
  18322. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18323. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18324. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18325. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18326. SUMMARY_video="${SUMMARY_video} opengl"
  18327. fi
  18328. }
  18329. CheckEmscriptenGLES()
  18330. {
  18331. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18333. $as_echo_n "checking for EGL support... " >&6; }
  18334. video_opengl_egl=no
  18335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18336. /* end confdefs.h. */
  18337. #include <EGL/egl.h>
  18338. int
  18339. main ()
  18340. {
  18341. ;
  18342. return 0;
  18343. }
  18344. _ACEOF
  18345. if ac_fn_c_try_compile "$LINENO"; then :
  18346. video_opengl_egl=yes
  18347. fi
  18348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18350. $as_echo "$video_opengl_egl" >&6; }
  18351. if test x$video_opengl_egl = xyes; then
  18352. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18353. fi
  18354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18355. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18356. video_opengles_v2=no
  18357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18358. /* end confdefs.h. */
  18359. #include <GLES2/gl2.h>
  18360. #include <GLES2/gl2ext.h>
  18361. int
  18362. main ()
  18363. {
  18364. ;
  18365. return 0;
  18366. }
  18367. _ACEOF
  18368. if ac_fn_c_try_compile "$LINENO"; then :
  18369. video_opengles_v2=yes
  18370. fi
  18371. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18373. $as_echo "$video_opengles_v2" >&6; }
  18374. if test x$video_opengles_v2 = xyes; then
  18375. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18376. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18377. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18378. fi
  18379. fi
  18380. }
  18381. CheckInputEvents()
  18382. {
  18383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18384. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18385. use_input_events=no
  18386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18387. /* end confdefs.h. */
  18388. #include <linux/input.h>
  18389. int
  18390. main ()
  18391. {
  18392. #ifndef EVIOCGNAME
  18393. #error EVIOCGNAME() ioctl not available
  18394. #endif
  18395. ;
  18396. return 0;
  18397. }
  18398. _ACEOF
  18399. if ac_fn_c_try_compile "$LINENO"; then :
  18400. use_input_events=yes
  18401. fi
  18402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18404. $as_echo "$use_input_events" >&6; }
  18405. if test x$use_input_events = xyes; then
  18406. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18407. SUMMARY_input="${SUMMARY_input} linuxev"
  18408. fi
  18409. }
  18410. CheckInputKD()
  18411. {
  18412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18413. $as_echo_n "checking for Linux kd.h... " >&6; }
  18414. use_input_kd=no
  18415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18416. /* end confdefs.h. */
  18417. #include <linux/kd.h>
  18418. #include <linux/keyboard.h>
  18419. int
  18420. main ()
  18421. {
  18422. struct kbentry kbe;
  18423. kbe.kb_table = KG_CTRL;
  18424. ioctl(0, KDGKBENT, &kbe);
  18425. ;
  18426. return 0;
  18427. }
  18428. _ACEOF
  18429. if ac_fn_c_try_compile "$LINENO"; then :
  18430. use_input_kd=yes
  18431. fi
  18432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18434. $as_echo "$use_input_kd" >&6; }
  18435. if test x$use_input_kd = xyes; then
  18436. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18437. SUMMARY_input="${SUMMARY_input} linuxkd"
  18438. fi
  18439. }
  18440. CheckLibUDev()
  18441. {
  18442. # Check whether --enable-libudev was given.
  18443. if test "${enable_libudev+set}" = set; then :
  18444. enableval=$enable_libudev;
  18445. else
  18446. enable_libudev=yes
  18447. fi
  18448. if test x$enable_libudev = xyes; then
  18449. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18450. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18451. have_libudev_h_hdr=yes
  18452. else
  18453. have_libudev_h_hdr=no
  18454. fi
  18455. if test x$have_libudev_h_hdr = xyes; then
  18456. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18457. fi
  18458. fi
  18459. }
  18460. CheckDBus()
  18461. {
  18462. # Check whether --enable-dbus was given.
  18463. if test "${enable_dbus+set}" = set; then :
  18464. enableval=$enable_dbus;
  18465. else
  18466. enable_dbus=yes
  18467. fi
  18468. if test x$enable_dbus = xyes; then
  18469. # Extract the first word of "pkg-config", so it can be a program name with args.
  18470. set dummy pkg-config; ac_word=$2
  18471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18472. $as_echo_n "checking for $ac_word... " >&6; }
  18473. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18474. $as_echo_n "(cached) " >&6
  18475. else
  18476. case $PKG_CONFIG in
  18477. [\\/]* | ?:[\\/]*)
  18478. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18479. ;;
  18480. *)
  18481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18482. for as_dir in $PATH
  18483. do
  18484. IFS=$as_save_IFS
  18485. test -z "$as_dir" && as_dir=.
  18486. for ac_exec_ext in '' $ac_executable_extensions; do
  18487. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18488. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18489. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18490. break 2
  18491. fi
  18492. done
  18493. done
  18494. IFS=$as_save_IFS
  18495. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18496. ;;
  18497. esac
  18498. fi
  18499. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18500. if test -n "$PKG_CONFIG"; then
  18501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18502. $as_echo "$PKG_CONFIG" >&6; }
  18503. else
  18504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18505. $as_echo "no" >&6; }
  18506. fi
  18507. if test x$PKG_CONFIG != xno; then
  18508. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18509. save_CFLAGS="$CFLAGS"
  18510. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18511. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18512. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18513. have_dbus_dbus_h_hdr=yes
  18514. else
  18515. have_dbus_dbus_h_hdr=no
  18516. fi
  18517. CFLAGS="$save_CFLAGS"
  18518. if test x$have_dbus_dbus_h_hdr = xyes; then
  18519. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18520. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18521. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  18522. fi
  18523. fi
  18524. fi
  18525. }
  18526. CheckIBus()
  18527. {
  18528. # Check whether --enable-ibus was given.
  18529. if test "${enable_ibus+set}" = set; then :
  18530. enableval=$enable_ibus;
  18531. else
  18532. enable_ibus=yes
  18533. fi
  18534. if test x$enable_ibus = xyes; then
  18535. # Extract the first word of "pkg-config", so it can be a program name with args.
  18536. set dummy pkg-config; ac_word=$2
  18537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18538. $as_echo_n "checking for $ac_word... " >&6; }
  18539. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18540. $as_echo_n "(cached) " >&6
  18541. else
  18542. case $PKG_CONFIG in
  18543. [\\/]* | ?:[\\/]*)
  18544. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18545. ;;
  18546. *)
  18547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18548. for as_dir in $PATH
  18549. do
  18550. IFS=$as_save_IFS
  18551. test -z "$as_dir" && as_dir=.
  18552. for ac_exec_ext in '' $ac_executable_extensions; do
  18553. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18554. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18556. break 2
  18557. fi
  18558. done
  18559. done
  18560. IFS=$as_save_IFS
  18561. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18562. ;;
  18563. esac
  18564. fi
  18565. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18566. if test -n "$PKG_CONFIG"; then
  18567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18568. $as_echo "$PKG_CONFIG" >&6; }
  18569. else
  18570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18571. $as_echo "no" >&6; }
  18572. fi
  18573. if test x$PKG_CONFIG != xno; then
  18574. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  18575. save_CFLAGS="$CFLAGS"
  18576. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  18577. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  18578. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  18579. have_ibus_ibus_h_hdr=yes
  18580. else
  18581. have_ibus_ibus_h_hdr=no
  18582. fi
  18583. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  18584. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  18585. have_inotify_inotify_h_hdr=yes
  18586. else
  18587. have_inotify_inotify_h_hdr=no
  18588. fi
  18589. CFLAGS="$save_CFLAGS"
  18590. if test x$have_ibus_ibus_h_hdr = xyes; then
  18591. if test x$enable_dbus != xyes; then
  18592. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  18593. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  18594. have_ibus_ibus_h_hdr=no
  18595. elif test x$have_inotify_inotify_h_hdr != xyes; then
  18596. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  18597. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  18598. have_ibus_ibus_h_hdr=no
  18599. else
  18600. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  18601. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  18602. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  18603. fi
  18604. fi
  18605. fi
  18606. fi
  18607. }
  18608. CheckTslib()
  18609. {
  18610. # Check whether --enable-input-tslib was given.
  18611. if test "${enable_input_tslib+set}" = set; then :
  18612. enableval=$enable_input_tslib;
  18613. else
  18614. enable_input_tslib=yes
  18615. fi
  18616. if test x$enable_input_tslib = xyes; then
  18617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  18618. $as_echo_n "checking for Touchscreen library support... " >&6; }
  18619. enable_input_tslib=no
  18620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18621. /* end confdefs.h. */
  18622. #include "tslib.h"
  18623. int
  18624. main ()
  18625. {
  18626. ;
  18627. return 0;
  18628. }
  18629. _ACEOF
  18630. if ac_fn_c_try_compile "$LINENO"; then :
  18631. enable_input_tslib=yes
  18632. fi
  18633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  18635. $as_echo "$enable_input_tslib" >&6; }
  18636. if test x$enable_input_tslib = xyes; then
  18637. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  18638. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  18639. SUMMARY_input="${SUMMARY_input} ts"
  18640. fi
  18641. fi
  18642. }
  18643. CheckPTHREAD()
  18644. {
  18645. # Check whether --enable-pthreads was given.
  18646. if test "${enable_pthreads+set}" = set; then :
  18647. enableval=$enable_pthreads;
  18648. else
  18649. enable_pthreads=yes
  18650. fi
  18651. # Check whether --enable-pthread-sem was given.
  18652. if test "${enable_pthread_sem+set}" = set; then :
  18653. enableval=$enable_pthread_sem;
  18654. else
  18655. enable_pthread_sem=yes
  18656. fi
  18657. case "$host" in
  18658. *-*-androideabi*)
  18659. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18660. pthread_lib=""
  18661. ;;
  18662. *-*-linux*|*-*-uclinux*)
  18663. pthread_cflags="-D_REENTRANT"
  18664. pthread_lib="-lpthread"
  18665. ;;
  18666. *-*-bsdi*)
  18667. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18668. pthread_lib=""
  18669. ;;
  18670. *-*-darwin*)
  18671. pthread_cflags="-D_THREAD_SAFE"
  18672. # causes Carbon.p complaints?
  18673. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18674. ;;
  18675. *-*-freebsd*|*-*-dragonfly*)
  18676. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18677. pthread_lib="-pthread"
  18678. ;;
  18679. *-*-netbsd*)
  18680. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18681. pthread_lib="-lpthread"
  18682. ;;
  18683. *-*-openbsd*)
  18684. pthread_cflags="-D_REENTRANT"
  18685. pthread_lib="-pthread"
  18686. ;;
  18687. *-*-solaris2.9)
  18688. # From Solaris 9+, posix4's preferred name is rt.
  18689. pthread_cflags="-D_REENTRANT"
  18690. pthread_lib="-lpthread -lrt"
  18691. ;;
  18692. *-*-solaris2.10)
  18693. # Solaris 10+ merged pthread into libc.
  18694. pthread_cflags="-D_REENTRANT"
  18695. pthread_lib="-lrt"
  18696. ;;
  18697. *-*-solaris*)
  18698. # Solaris 11+ merged rt into libc.
  18699. pthread_cflags="-D_REENTRANT"
  18700. pthread_lib=""
  18701. ;;
  18702. *-*-sysv5*)
  18703. pthread_cflags="-D_REENTRANT -Kthread"
  18704. pthread_lib=""
  18705. ;;
  18706. *-*-aix*)
  18707. pthread_cflags="-D_REENTRANT -mthreads"
  18708. pthread_lib="-lpthread"
  18709. ;;
  18710. *-*-hpux11*)
  18711. pthread_cflags="-D_REENTRANT"
  18712. pthread_lib="-L/usr/lib -lpthread"
  18713. ;;
  18714. *-*-haiku*)
  18715. pthread_cflags="-D_REENTRANT"
  18716. pthread_lib=""
  18717. ;;
  18718. *)
  18719. pthread_cflags="-D_REENTRANT"
  18720. pthread_lib="-lpthread"
  18721. ;;
  18722. esac
  18723. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  18724. # Save the original compiler flags and libraries
  18725. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18726. # Add the pthread compiler flags and libraries
  18727. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18728. # Check to see if we have pthread support on this system
  18729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  18730. $as_echo_n "checking for pthreads... " >&6; }
  18731. use_pthreads=no
  18732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18733. /* end confdefs.h. */
  18734. #include <pthread.h>
  18735. int
  18736. main ()
  18737. {
  18738. pthread_attr_t type;
  18739. pthread_attr_init(&type);
  18740. ;
  18741. return 0;
  18742. }
  18743. _ACEOF
  18744. if ac_fn_c_try_link "$LINENO"; then :
  18745. use_pthreads=yes
  18746. fi
  18747. rm -f core conftest.err conftest.$ac_objext \
  18748. conftest$ac_exeext conftest.$ac_ext
  18749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  18750. $as_echo "$use_pthreads" >&6; }
  18751. # Restore the compiler flags and libraries
  18752. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18753. # Do futher testing if we have pthread support...
  18754. if test x$use_pthreads = xyes; then
  18755. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  18756. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  18757. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  18758. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  18759. # Save the original compiler flags and libraries
  18760. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18761. # Add the pthread compiler flags and libraries
  18762. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18763. # Check to see if recursive mutexes are available
  18764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  18765. $as_echo_n "checking for recursive mutexes... " >&6; }
  18766. has_recursive_mutexes=no
  18767. if test x$has_recursive_mutexes = xno; then
  18768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18769. /* end confdefs.h. */
  18770. #define _GNU_SOURCE 1
  18771. #include <pthread.h>
  18772. int
  18773. main ()
  18774. {
  18775. pthread_mutexattr_t attr;
  18776. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  18777. ;
  18778. return 0;
  18779. }
  18780. _ACEOF
  18781. if ac_fn_c_try_link "$LINENO"; then :
  18782. has_recursive_mutexes=yes
  18783. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  18784. fi
  18785. rm -f core conftest.err conftest.$ac_objext \
  18786. conftest$ac_exeext conftest.$ac_ext
  18787. fi
  18788. if test x$has_recursive_mutexes = xno; then
  18789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18790. /* end confdefs.h. */
  18791. #define _GNU_SOURCE 1
  18792. #include <pthread.h>
  18793. int
  18794. main ()
  18795. {
  18796. pthread_mutexattr_t attr;
  18797. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  18798. ;
  18799. return 0;
  18800. }
  18801. _ACEOF
  18802. if ac_fn_c_try_link "$LINENO"; then :
  18803. has_recursive_mutexes=yes
  18804. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  18805. fi
  18806. rm -f core conftest.err conftest.$ac_objext \
  18807. conftest$ac_exeext conftest.$ac_ext
  18808. fi
  18809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  18810. $as_echo "$has_recursive_mutexes" >&6; }
  18811. # Check to see if pthread semaphore support is missing
  18812. if test x$enable_pthread_sem = xyes; then
  18813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  18814. $as_echo_n "checking for pthread semaphores... " >&6; }
  18815. have_pthread_sem=no
  18816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18817. /* end confdefs.h. */
  18818. #include <pthread.h>
  18819. #include <semaphore.h>
  18820. int
  18821. main ()
  18822. {
  18823. ;
  18824. return 0;
  18825. }
  18826. _ACEOF
  18827. if ac_fn_c_try_compile "$LINENO"; then :
  18828. have_pthread_sem=yes
  18829. fi
  18830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  18832. $as_echo "$have_pthread_sem" >&6; }
  18833. fi
  18834. if test x$have_pthread_sem = xyes; then
  18835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  18836. $as_echo_n "checking for sem_timedwait... " >&6; }
  18837. have_sem_timedwait=no
  18838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18839. /* end confdefs.h. */
  18840. #include <pthread.h>
  18841. #include <semaphore.h>
  18842. int
  18843. main ()
  18844. {
  18845. sem_timedwait(NULL, NULL);
  18846. ;
  18847. return 0;
  18848. }
  18849. _ACEOF
  18850. if ac_fn_c_try_link "$LINENO"; then :
  18851. have_sem_timedwait=yes
  18852. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  18853. fi
  18854. rm -f core conftest.err conftest.$ac_objext \
  18855. conftest$ac_exeext conftest.$ac_ext
  18856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  18857. $as_echo "$have_sem_timedwait" >&6; }
  18858. fi
  18859. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  18860. "
  18861. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  18862. have_pthread_np_h=yes
  18863. else
  18864. have_pthread_np_h=no
  18865. fi
  18866. if test x$have_pthread_np_h = xyes; then
  18867. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  18868. fi
  18869. # Check to see if pthread naming is available
  18870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  18871. $as_echo_n "checking for pthread_setname_np... " >&6; }
  18872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18873. /* end confdefs.h. */
  18874. /* Override any GCC internal prototype to avoid an error.
  18875. Use char because int might match the return type of a GCC
  18876. builtin and then its argument prototype would still apply. */
  18877. #ifdef __cplusplus
  18878. extern "C"
  18879. #endif
  18880. char pthread_setname_np ();
  18881. int
  18882. main ()
  18883. {
  18884. return pthread_setname_np ();
  18885. ;
  18886. return 0;
  18887. }
  18888. _ACEOF
  18889. if ac_fn_c_try_link "$LINENO"; then :
  18890. has_pthread_setname_np=yes
  18891. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  18892. else
  18893. has_pthread_setname_np=no
  18894. fi
  18895. rm -f core conftest.err conftest.$ac_objext \
  18896. conftest$ac_exeext conftest.$ac_ext
  18897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  18898. $as_echo "$has_pthread_setname_np" >&6; }
  18899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  18900. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  18901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18902. /* end confdefs.h. */
  18903. /* Override any GCC internal prototype to avoid an error.
  18904. Use char because int might match the return type of a GCC
  18905. builtin and then its argument prototype would still apply. */
  18906. #ifdef __cplusplus
  18907. extern "C"
  18908. #endif
  18909. char pthread_set_name_np ();
  18910. int
  18911. main ()
  18912. {
  18913. return pthread_set_name_np ();
  18914. ;
  18915. return 0;
  18916. }
  18917. _ACEOF
  18918. if ac_fn_c_try_link "$LINENO"; then :
  18919. has_pthread_set_name_np=yes
  18920. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  18921. else
  18922. has_pthread_set_name_np=no
  18923. fi
  18924. rm -f core conftest.err conftest.$ac_objext \
  18925. conftest$ac_exeext conftest.$ac_ext
  18926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  18927. $as_echo "$has_pthread_set_name_np" >&6; }
  18928. # Restore the compiler flags and libraries
  18929. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18930. # Basic thread creation functions
  18931. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  18932. # Semaphores
  18933. # We can fake these with mutexes and condition variables if necessary
  18934. if test x$have_pthread_sem = xyes; then
  18935. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  18936. else
  18937. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  18938. fi
  18939. # Mutexes
  18940. # We can fake these with semaphores if necessary
  18941. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  18942. # Condition variables
  18943. # We can fake these with semaphores and mutexes if necessary
  18944. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  18945. # Thread local storage
  18946. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  18947. have_threads=yes
  18948. fi
  18949. fi
  18950. }
  18951. CheckWINDOWS()
  18952. {
  18953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  18954. $as_echo_n "checking Windows compiler... " >&6; }
  18955. have_win32_gcc=no
  18956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18957. /* end confdefs.h. */
  18958. #include <windows.h>
  18959. int
  18960. main ()
  18961. {
  18962. ;
  18963. return 0;
  18964. }
  18965. _ACEOF
  18966. if ac_fn_c_try_compile "$LINENO"; then :
  18967. have_win32_gcc=yes
  18968. fi
  18969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  18971. $as_echo "$have_win32_gcc" >&6; }
  18972. if test x$have_win32_gcc != xyes; then
  18973. as_fn_error $? "
  18974. *** Your compiler ($CC) does not produce Windows executables!
  18975. " "$LINENO" 5
  18976. fi
  18977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  18978. $as_echo_n "checking Windows CE... " >&6; }
  18979. have_wince=no
  18980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18981. /* end confdefs.h. */
  18982. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  18983. #error This is not Windows CE
  18984. #endif
  18985. int
  18986. main ()
  18987. {
  18988. ;
  18989. return 0;
  18990. }
  18991. _ACEOF
  18992. if ac_fn_c_try_compile "$LINENO"; then :
  18993. have_wince=yes
  18994. as_fn_error $? "
  18995. *** Sorry, Windows CE is no longer supported.
  18996. " "$LINENO" 5
  18997. fi
  18998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19000. $as_echo "$have_wince" >&6; }
  19001. # This fixes Windows stack alignment with newer GCC
  19002. CheckStackBoundary
  19003. }
  19004. CheckDIRECTX()
  19005. {
  19006. # Check whether --enable-directx was given.
  19007. if test "${enable_directx+set}" = set; then :
  19008. enableval=$enable_directx;
  19009. else
  19010. enable_directx=yes
  19011. fi
  19012. if test x$enable_directx = xyes; then
  19013. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19014. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19015. have_d3d=yes
  19016. fi
  19017. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19018. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19019. have_d3d11=yes
  19020. fi
  19021. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19022. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19023. have_ddraw=yes
  19024. fi
  19025. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19026. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19027. have_dsound=yes
  19028. fi
  19029. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19030. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19031. have_dinput=yes
  19032. fi
  19033. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19034. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19035. have_dxgi=yes
  19036. fi
  19037. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  19038. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  19039. have_xaudio2=yes
  19040. fi
  19041. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19042. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19043. have_xinput=yes
  19044. fi
  19045. if test x$have_ddraw = xyes; then
  19046. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19047. fi
  19048. if test x$have_dinput = xyes; then
  19049. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19050. fi
  19051. if test x$have_dsound = xyes; then
  19052. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19053. fi
  19054. if test x$have_dxgi = xyes; then
  19055. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19056. fi
  19057. if test x$have_xinput = xyes; then
  19058. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19059. fi
  19060. SUMMARY_video="${SUMMARY_video} directx"
  19061. SUMMARY_audio="${SUMMARY_audio} directx"
  19062. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19063. # FIXME: ...so force it off for now.
  19064. case "$host" in
  19065. *-*-cygwin*)
  19066. have_dinput=false
  19067. ;;
  19068. esac
  19069. fi
  19070. }
  19071. CheckDLOPEN()
  19072. {
  19073. # Check whether --enable-sdl-dlopen was given.
  19074. if test "${enable_sdl_dlopen+set}" = set; then :
  19075. enableval=$enable_sdl_dlopen;
  19076. else
  19077. enable_sdl_dlopen=yes
  19078. fi
  19079. if test x$enable_sdl_dlopen = xyes; then
  19080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19081. $as_echo_n "checking for dlopen... " >&6; }
  19082. have_dlopen=no
  19083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19084. /* end confdefs.h. */
  19085. #include <dlfcn.h>
  19086. int
  19087. main ()
  19088. {
  19089. void *handle = dlopen("", RTLD_NOW);
  19090. const char *loaderror = (char *) dlerror();
  19091. ;
  19092. return 0;
  19093. }
  19094. _ACEOF
  19095. if ac_fn_c_try_compile "$LINENO"; then :
  19096. have_dlopen=yes
  19097. fi
  19098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19100. $as_echo "$have_dlopen" >&6; }
  19101. if test x$have_dlopen = xyes; then
  19102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19103. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19104. if ${ac_cv_lib_c_dlopen+:} false; then :
  19105. $as_echo_n "(cached) " >&6
  19106. else
  19107. ac_check_lib_save_LIBS=$LIBS
  19108. LIBS="-lc $LIBS"
  19109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19110. /* end confdefs.h. */
  19111. /* Override any GCC internal prototype to avoid an error.
  19112. Use char because int might match the return type of a GCC
  19113. builtin and then its argument prototype would still apply. */
  19114. #ifdef __cplusplus
  19115. extern "C"
  19116. #endif
  19117. char dlopen ();
  19118. int
  19119. main ()
  19120. {
  19121. return dlopen ();
  19122. ;
  19123. return 0;
  19124. }
  19125. _ACEOF
  19126. if ac_fn_c_try_link "$LINENO"; then :
  19127. ac_cv_lib_c_dlopen=yes
  19128. else
  19129. ac_cv_lib_c_dlopen=no
  19130. fi
  19131. rm -f core conftest.err conftest.$ac_objext \
  19132. conftest$ac_exeext conftest.$ac_ext
  19133. LIBS=$ac_check_lib_save_LIBS
  19134. fi
  19135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19136. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19137. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19138. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19139. else
  19140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19141. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19142. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19143. $as_echo_n "(cached) " >&6
  19144. else
  19145. ac_check_lib_save_LIBS=$LIBS
  19146. LIBS="-ldl $LIBS"
  19147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19148. /* end confdefs.h. */
  19149. /* Override any GCC internal prototype to avoid an error.
  19150. Use char because int might match the return type of a GCC
  19151. builtin and then its argument prototype would still apply. */
  19152. #ifdef __cplusplus
  19153. extern "C"
  19154. #endif
  19155. char dlopen ();
  19156. int
  19157. main ()
  19158. {
  19159. return dlopen ();
  19160. ;
  19161. return 0;
  19162. }
  19163. _ACEOF
  19164. if ac_fn_c_try_link "$LINENO"; then :
  19165. ac_cv_lib_dl_dlopen=yes
  19166. else
  19167. ac_cv_lib_dl_dlopen=no
  19168. fi
  19169. rm -f core conftest.err conftest.$ac_objext \
  19170. conftest$ac_exeext conftest.$ac_ext
  19171. LIBS=$ac_check_lib_save_LIBS
  19172. fi
  19173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19174. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19175. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19176. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19177. else
  19178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19179. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19180. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19181. $as_echo_n "(cached) " >&6
  19182. else
  19183. ac_check_lib_save_LIBS=$LIBS
  19184. LIBS="-lltdl $LIBS"
  19185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19186. /* end confdefs.h. */
  19187. /* Override any GCC internal prototype to avoid an error.
  19188. Use char because int might match the return type of a GCC
  19189. builtin and then its argument prototype would still apply. */
  19190. #ifdef __cplusplus
  19191. extern "C"
  19192. #endif
  19193. char dlopen ();
  19194. int
  19195. main ()
  19196. {
  19197. return dlopen ();
  19198. ;
  19199. return 0;
  19200. }
  19201. _ACEOF
  19202. if ac_fn_c_try_link "$LINENO"; then :
  19203. ac_cv_lib_ltdl_dlopen=yes
  19204. else
  19205. ac_cv_lib_ltdl_dlopen=no
  19206. fi
  19207. rm -f core conftest.err conftest.$ac_objext \
  19208. conftest$ac_exeext conftest.$ac_ext
  19209. LIBS=$ac_check_lib_save_LIBS
  19210. fi
  19211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19212. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19213. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19214. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19215. fi
  19216. fi
  19217. fi
  19218. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19219. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19220. have_loadso=yes
  19221. fi
  19222. fi
  19223. }
  19224. CheckUSBHID()
  19225. {
  19226. case "$host" in
  19227. *-*-*bsd*)
  19228. if test x$enable_joystick = xyes; then
  19229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19230. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19231. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19232. $as_echo_n "(cached) " >&6
  19233. else
  19234. ac_check_lib_save_LIBS=$LIBS
  19235. LIBS="-lusbhid $LIBS"
  19236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19237. /* end confdefs.h. */
  19238. /* Override any GCC internal prototype to avoid an error.
  19239. Use char because int might match the return type of a GCC
  19240. builtin and then its argument prototype would still apply. */
  19241. #ifdef __cplusplus
  19242. extern "C"
  19243. #endif
  19244. char hid_init ();
  19245. int
  19246. main ()
  19247. {
  19248. return hid_init ();
  19249. ;
  19250. return 0;
  19251. }
  19252. _ACEOF
  19253. if ac_fn_c_try_link "$LINENO"; then :
  19254. ac_cv_lib_usbhid_hid_init=yes
  19255. else
  19256. ac_cv_lib_usbhid_hid_init=no
  19257. fi
  19258. rm -f core conftest.err conftest.$ac_objext \
  19259. conftest$ac_exeext conftest.$ac_ext
  19260. LIBS=$ac_check_lib_save_LIBS
  19261. fi
  19262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19263. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19264. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  19265. have_libusbhid=yes
  19266. fi
  19267. if test x$have_libusbhid = xyes; then
  19268. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  19269. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  19270. USB_CFLAGS="-DHAVE_USBHID_H"
  19271. fi
  19272. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  19273. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  19274. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  19275. fi
  19276. USB_LIBS="$USB_LIBS -lusbhid"
  19277. else
  19278. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  19279. if test "x$ac_cv_header_usb_h" = xyes; then :
  19280. USB_CFLAGS="-DHAVE_USB_H"
  19281. fi
  19282. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  19283. if test "x$ac_cv_header_libusb_h" = xyes; then :
  19284. USB_CFLAGS="-DHAVE_LIBUSB_H"
  19285. fi
  19286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  19287. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  19288. if ${ac_cv_lib_usb_hid_init+:} false; then :
  19289. $as_echo_n "(cached) " >&6
  19290. else
  19291. ac_check_lib_save_LIBS=$LIBS
  19292. LIBS="-lusb $LIBS"
  19293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19294. /* end confdefs.h. */
  19295. /* Override any GCC internal prototype to avoid an error.
  19296. Use char because int might match the return type of a GCC
  19297. builtin and then its argument prototype would still apply. */
  19298. #ifdef __cplusplus
  19299. extern "C"
  19300. #endif
  19301. char hid_init ();
  19302. int
  19303. main ()
  19304. {
  19305. return hid_init ();
  19306. ;
  19307. return 0;
  19308. }
  19309. _ACEOF
  19310. if ac_fn_c_try_link "$LINENO"; then :
  19311. ac_cv_lib_usb_hid_init=yes
  19312. else
  19313. ac_cv_lib_usb_hid_init=no
  19314. fi
  19315. rm -f core conftest.err conftest.$ac_objext \
  19316. conftest$ac_exeext conftest.$ac_ext
  19317. LIBS=$ac_check_lib_save_LIBS
  19318. fi
  19319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  19320. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  19321. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  19322. USB_LIBS="$USB_LIBS -lusb"
  19323. fi
  19324. fi
  19325. save_CFLAGS="$CFLAGS"
  19326. CFLAGS="$CFLAGS $USB_CFLAGS"
  19327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  19328. $as_echo_n "checking for usbhid... " >&6; }
  19329. have_usbhid=no
  19330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19331. /* end confdefs.h. */
  19332. #include <sys/types.h>
  19333. #if defined(HAVE_USB_H)
  19334. #include <usb.h>
  19335. #endif
  19336. #ifdef __DragonFly__
  19337. # include <bus/usb/usb.h>
  19338. # include <bus/usb/usbhid.h>
  19339. #else
  19340. # include <dev/usb/usb.h>
  19341. # include <dev/usb/usbhid.h>
  19342. #endif
  19343. #if defined(HAVE_USBHID_H)
  19344. #include <usbhid.h>
  19345. #elif defined(HAVE_LIBUSB_H)
  19346. #include <libusb.h>
  19347. #elif defined(HAVE_LIBUSBHID_H)
  19348. #include <libusbhid.h>
  19349. #endif
  19350. int
  19351. main ()
  19352. {
  19353. struct report_desc *repdesc;
  19354. struct usb_ctl_report *repbuf;
  19355. hid_kind_t hidkind;
  19356. ;
  19357. return 0;
  19358. }
  19359. _ACEOF
  19360. if ac_fn_c_try_compile "$LINENO"; then :
  19361. have_usbhid=yes
  19362. fi
  19363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  19365. $as_echo "$have_usbhid" >&6; }
  19366. if test x$have_usbhid = xyes; then
  19367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  19368. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  19369. have_usbhid_ucr_data=no
  19370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19371. /* end confdefs.h. */
  19372. #include <sys/types.h>
  19373. #if defined(HAVE_USB_H)
  19374. #include <usb.h>
  19375. #endif
  19376. #ifdef __DragonFly__
  19377. # include <bus/usb/usb.h>
  19378. # include <bus/usb/usbhid.h>
  19379. #else
  19380. # include <dev/usb/usb.h>
  19381. # include <dev/usb/usbhid.h>
  19382. #endif
  19383. #if defined(HAVE_USBHID_H)
  19384. #include <usbhid.h>
  19385. #elif defined(HAVE_LIBUSB_H)
  19386. #include <libusb.h>
  19387. #elif defined(HAVE_LIBUSBHID_H)
  19388. #include <libusbhid.h>
  19389. #endif
  19390. int
  19391. main ()
  19392. {
  19393. struct usb_ctl_report buf;
  19394. if (buf.ucr_data) { }
  19395. ;
  19396. return 0;
  19397. }
  19398. _ACEOF
  19399. if ac_fn_c_try_compile "$LINENO"; then :
  19400. have_usbhid_ucr_data=yes
  19401. fi
  19402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19403. if test x$have_usbhid_ucr_data = xyes; then
  19404. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  19405. fi
  19406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  19407. $as_echo "$have_usbhid_ucr_data" >&6; }
  19408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  19409. $as_echo_n "checking for new usbhid API... " >&6; }
  19410. have_usbhid_new=no
  19411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19412. /* end confdefs.h. */
  19413. #include <sys/types.h>
  19414. #if defined(HAVE_USB_H)
  19415. #include <usb.h>
  19416. #endif
  19417. #ifdef __DragonFly__
  19418. #include <bus/usb/usb.h>
  19419. #include <bus/usb/usbhid.h>
  19420. #else
  19421. #include <dev/usb/usb.h>
  19422. #include <dev/usb/usbhid.h>
  19423. #endif
  19424. #if defined(HAVE_USBHID_H)
  19425. #include <usbhid.h>
  19426. #elif defined(HAVE_LIBUSB_H)
  19427. #include <libusb.h>
  19428. #elif defined(HAVE_LIBUSBHID_H)
  19429. #include <libusbhid.h>
  19430. #endif
  19431. int
  19432. main ()
  19433. {
  19434. report_desc_t d;
  19435. hid_start_parse(d, 1, 1);
  19436. ;
  19437. return 0;
  19438. }
  19439. _ACEOF
  19440. if ac_fn_c_try_compile "$LINENO"; then :
  19441. have_usbhid_new=yes
  19442. fi
  19443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19444. if test x$have_usbhid_new = xyes; then
  19445. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  19446. fi
  19447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  19448. $as_echo "$have_usbhid_new" >&6; }
  19449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  19450. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  19451. have_machine_joystick=no
  19452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19453. /* end confdefs.h. */
  19454. #include <machine/joystick.h>
  19455. int
  19456. main ()
  19457. {
  19458. struct joystick t;
  19459. ;
  19460. return 0;
  19461. }
  19462. _ACEOF
  19463. if ac_fn_c_try_compile "$LINENO"; then :
  19464. have_machine_joystick=yes
  19465. fi
  19466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19467. if test x$have_machine_joystick = xyes; then
  19468. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  19469. fi
  19470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  19471. $as_echo "$have_machine_joystick" >&6; }
  19472. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  19473. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  19474. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  19475. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  19476. have_joystick=yes
  19477. fi
  19478. CFLAGS="$save_CFLAGS"
  19479. fi
  19480. ;;
  19481. esac
  19482. }
  19483. CheckClockGettime()
  19484. {
  19485. # Check whether --enable-clock_gettime was given.
  19486. if test "${enable_clock_gettime+set}" = set; then :
  19487. enableval=$enable_clock_gettime;
  19488. else
  19489. enable_clock_gettime=yes
  19490. fi
  19491. if test x$enable_clock_gettime = xyes; then
  19492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  19493. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  19494. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  19495. $as_echo_n "(cached) " >&6
  19496. else
  19497. ac_check_lib_save_LIBS=$LIBS
  19498. LIBS="-lrt $LIBS"
  19499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19500. /* end confdefs.h. */
  19501. /* Override any GCC internal prototype to avoid an error.
  19502. Use char because int might match the return type of a GCC
  19503. builtin and then its argument prototype would still apply. */
  19504. #ifdef __cplusplus
  19505. extern "C"
  19506. #endif
  19507. char clock_gettime ();
  19508. int
  19509. main ()
  19510. {
  19511. return clock_gettime ();
  19512. ;
  19513. return 0;
  19514. }
  19515. _ACEOF
  19516. if ac_fn_c_try_link "$LINENO"; then :
  19517. ac_cv_lib_rt_clock_gettime=yes
  19518. else
  19519. ac_cv_lib_rt_clock_gettime=no
  19520. fi
  19521. rm -f core conftest.err conftest.$ac_objext \
  19522. conftest$ac_exeext conftest.$ac_ext
  19523. LIBS=$ac_check_lib_save_LIBS
  19524. fi
  19525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  19526. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  19527. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  19528. have_clock_gettime=yes
  19529. fi
  19530. if test x$have_clock_gettime = xyes; then
  19531. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19532. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  19533. else
  19534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  19535. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  19536. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  19537. $as_echo_n "(cached) " >&6
  19538. else
  19539. ac_check_lib_save_LIBS=$LIBS
  19540. LIBS="-lc $LIBS"
  19541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19542. /* end confdefs.h. */
  19543. /* Override any GCC internal prototype to avoid an error.
  19544. Use char because int might match the return type of a GCC
  19545. builtin and then its argument prototype would still apply. */
  19546. #ifdef __cplusplus
  19547. extern "C"
  19548. #endif
  19549. char clock_gettime ();
  19550. int
  19551. main ()
  19552. {
  19553. return clock_gettime ();
  19554. ;
  19555. return 0;
  19556. }
  19557. _ACEOF
  19558. if ac_fn_c_try_link "$LINENO"; then :
  19559. ac_cv_lib_c_clock_gettime=yes
  19560. else
  19561. ac_cv_lib_c_clock_gettime=no
  19562. fi
  19563. rm -f core conftest.err conftest.$ac_objext \
  19564. conftest$ac_exeext conftest.$ac_ext
  19565. LIBS=$ac_check_lib_save_LIBS
  19566. fi
  19567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  19568. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  19569. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  19570. have_clock_gettime=yes
  19571. fi
  19572. if test x$have_clock_gettime = xyes; then
  19573. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19574. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19575. fi
  19576. fi
  19577. fi
  19578. }
  19579. CheckLinuxVersion()
  19580. {
  19581. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  19582. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  19583. have_linux_version_h=yes
  19584. fi
  19585. if test x$have_linux_version_h = xyes; then
  19586. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  19587. fi
  19588. }
  19589. CheckRPATH()
  19590. {
  19591. # Check whether --enable-rpath was given.
  19592. if test "${enable_rpath+set}" = set; then :
  19593. enableval=$enable_rpath;
  19594. else
  19595. enable_rpath=yes
  19596. fi
  19597. }
  19598. CheckWarnAll
  19599. case "$host" in
  19600. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  19601. case "$host" in
  19602. *-raspberry-linux*)
  19603. # Raspberry Pi
  19604. ARCH=linux
  19605. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19606. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19607. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19608. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19609. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  19610. if test x$enable_video = xyes; then
  19611. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19612. # FIXME: confdefs? Not AC_DEFINE?
  19613. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19614. SUMMARY_video="${SUMMARY_video} rpi"
  19615. fi
  19616. ;;
  19617. *-*-androideabi*)
  19618. # Android
  19619. ARCH=android
  19620. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  19621. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  19622. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  19623. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  19624. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  19625. if test x$enable_video = xyes; then
  19626. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  19627. # FIXME: confdefs? Not AC_DEFINE?
  19628. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  19629. SUMMARY_video="${SUMMARY_video} android"
  19630. fi
  19631. ;;
  19632. *-*-linux*) ARCH=linux ;;
  19633. *-*-uclinux*) ARCH=linux ;;
  19634. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  19635. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  19636. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  19637. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  19638. *-*-bsdi*) ARCH=bsdi ;;
  19639. *-*-freebsd*) ARCH=freebsd ;;
  19640. *-*-dragonfly*) ARCH=freebsd ;;
  19641. *-raspberry-netbsd*)
  19642. # Raspberry Pi
  19643. ARCH=netbsd
  19644. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  19645. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19646. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19647. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19648. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host -ldl"
  19649. if test x$enable_video = xyes; then
  19650. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19651. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19652. SUMMARY_video="${SUMMARY_video} raspberry"
  19653. fi
  19654. ;;
  19655. *-*-netbsd*) ARCH=netbsd ;;
  19656. *-*-openbsd*) ARCH=openbsd ;;
  19657. *-*-sysv5*) ARCH=sysv5 ;;
  19658. *-*-solaris*) ARCH=solaris ;;
  19659. *-*-hpux*) ARCH=hpux ;;
  19660. *-*-aix*) ARCH=aix ;;
  19661. *-*-minix*) ARCH=minix ;;
  19662. esac
  19663. CheckVisibilityHidden
  19664. CheckDeclarationAfterStatement
  19665. CheckDummyVideo
  19666. CheckDiskAudio
  19667. CheckDummyAudio
  19668. CheckDLOPEN
  19669. CheckOSS
  19670. CheckALSA
  19671. CheckPulseAudio
  19672. CheckARTSC
  19673. CheckESD
  19674. CheckNAS
  19675. CheckSNDIO
  19676. CheckX11
  19677. CheckDirectFB
  19678. CheckFusionSound
  19679. CheckOpenGLX11
  19680. CheckOpenGLESX11
  19681. CheckMir
  19682. CheckWayland
  19683. CheckLibUDev
  19684. CheckDBus
  19685. CheckIBus
  19686. case $ARCH in
  19687. linux)
  19688. CheckInputEvents
  19689. CheckInputKD
  19690. ;;
  19691. esac
  19692. CheckTslib
  19693. CheckUSBHID
  19694. CheckPTHREAD
  19695. CheckClockGettime
  19696. CheckLinuxVersion
  19697. CheckRPATH
  19698. CheckVivanteVideo
  19699. # Set up files for the audio library
  19700. if test x$enable_audio = xyes; then
  19701. case $ARCH in
  19702. sysv5|solaris|hpux)
  19703. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  19704. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  19705. have_audio=yes
  19706. ;;
  19707. netbsd) # Don't use this on OpenBSD, it's busted.
  19708. $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
  19709. SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  19710. have_audio=yes
  19711. ;;
  19712. aix)
  19713. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  19714. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  19715. have_audio=yes
  19716. ;;
  19717. android)
  19718. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  19719. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  19720. SUMMARY_audio="${SUMMARY_audio} android"
  19721. have_audio=yes
  19722. ;;
  19723. esac
  19724. fi
  19725. # Set up files for the joystick library
  19726. if test x$enable_joystick = xyes; then
  19727. case $ARCH in
  19728. linux)
  19729. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  19730. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  19731. have_joystick=yes
  19732. ;;
  19733. android)
  19734. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  19735. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  19736. have_joystick=yes
  19737. ;;
  19738. esac
  19739. fi
  19740. # Set up files for the haptic library
  19741. if test x$enable_haptic = xyes; then
  19742. if test x$use_input_events = xyes; then
  19743. case $ARCH in
  19744. linux)
  19745. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  19746. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  19747. have_haptic=yes
  19748. ;;
  19749. esac
  19750. fi
  19751. fi
  19752. # Set up files for the power library
  19753. if test x$enable_power = xyes; then
  19754. case $ARCH in
  19755. linux)
  19756. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  19757. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  19758. have_power=yes
  19759. ;;
  19760. android)
  19761. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  19762. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  19763. have_power=yes
  19764. ;;
  19765. esac
  19766. fi
  19767. # Set up files for the filesystem library
  19768. if test x$enable_filesystem = xyes; then
  19769. case $ARCH in
  19770. android)
  19771. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  19772. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  19773. have_filesystem=yes
  19774. ;;
  19775. *)
  19776. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  19777. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  19778. have_filesystem=yes
  19779. ;;
  19780. esac
  19781. fi
  19782. # Set up files for the timer library
  19783. if test x$enable_timers = xyes; then
  19784. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19785. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19786. have_timers=yes
  19787. fi
  19788. # Set up files for udev hotplugging support
  19789. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  19790. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  19791. fi
  19792. # Set up files for evdev input
  19793. if test x$use_input_events = xyes; then
  19794. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  19795. fi
  19796. ;;
  19797. *-*-cygwin* | *-*-mingw32*)
  19798. ARCH=win32
  19799. if test "$build" != "$host"; then # cross-compiling
  19800. # Default cross-compile location
  19801. ac_default_prefix=/usr/local/cross-tools/$host
  19802. else
  19803. # Look for the location of the tools and install there
  19804. if test "$BUILD_PREFIX" != ""; then
  19805. ac_default_prefix=$BUILD_PREFIX
  19806. fi
  19807. fi
  19808. CheckDummyVideo
  19809. CheckDiskAudio
  19810. CheckDummyAudio
  19811. CheckWINDOWS
  19812. CheckWINDOWSGL
  19813. CheckWINDOWSGLES
  19814. CheckDIRECTX
  19815. # Set up the core platform files
  19816. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  19817. # Set up files for the video library
  19818. if test x$enable_video = xyes; then
  19819. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  19820. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  19821. have_video=yes
  19822. # Check whether --enable-render-d3d was given.
  19823. if test "${enable_render_d3d+set}" = set; then :
  19824. enableval=$enable_render_d3d;
  19825. else
  19826. enable_render_d3d=yes
  19827. fi
  19828. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  19829. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  19830. fi
  19831. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  19832. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  19833. fi
  19834. fi
  19835. # Set up files for the audio library
  19836. if test x$enable_audio = xyes; then
  19837. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  19838. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  19839. if test x$have_dsound = xyes; then
  19840. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  19841. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  19842. fi
  19843. if test x$have_xaudio2 = xyes; then
  19844. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  19845. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  19846. fi
  19847. have_audio=yes
  19848. fi
  19849. # Set up files for the joystick library
  19850. if test x$enable_joystick = xyes; then
  19851. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  19852. if test x$have_xinput = xyes; then
  19853. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  19854. fi
  19855. if test x$have_dinput = xyes; then
  19856. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  19857. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  19858. fi
  19859. else
  19860. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  19861. fi
  19862. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  19863. have_joystick=yes
  19864. fi
  19865. if test x$enable_haptic = xyes; then
  19866. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  19867. if test x$have_xinput = xyes; then
  19868. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  19869. fi
  19870. if test x$have_dinput = xyes; then
  19871. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  19872. fi
  19873. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  19874. have_haptic=yes
  19875. fi
  19876. fi
  19877. if test x$enable_power = xyes; then
  19878. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  19879. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  19880. have_power=yes
  19881. fi
  19882. if test x$enable_filesystem = xyes; then
  19883. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  19884. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  19885. have_filesystem=yes
  19886. fi
  19887. # Set up files for the thread library
  19888. if test x$enable_threads = xyes; then
  19889. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  19890. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  19891. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  19892. have_threads=yes
  19893. fi
  19894. # Set up files for the timer library
  19895. if test x$enable_timers = xyes; then
  19896. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  19897. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  19898. have_timers=yes
  19899. fi
  19900. # Set up files for the shared object loading library
  19901. if test x$enable_loadso = xyes; then
  19902. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  19903. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  19904. have_loadso=yes
  19905. fi
  19906. # Set up the system libraries we need
  19907. if test -f /lib/w32api/libuuid.a; then
  19908. LIBUUID=/lib/w32api/libuuid.a
  19909. else
  19910. LIBUUID=-luuid
  19911. fi
  19912. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
  19913. # The Windows platform requires special setup
  19914. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  19915. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  19916. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  19917. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  19918. # Check to see if this is a mingw or cygwin build
  19919. have_mingw32=
  19920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  19921. $as_echo_n "checking for main in -lmingw32... " >&6; }
  19922. if ${ac_cv_lib_mingw32_main+:} false; then :
  19923. $as_echo_n "(cached) " >&6
  19924. else
  19925. ac_check_lib_save_LIBS=$LIBS
  19926. LIBS="-lmingw32 $LIBS"
  19927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19928. /* end confdefs.h. */
  19929. int
  19930. main ()
  19931. {
  19932. return main ();
  19933. ;
  19934. return 0;
  19935. }
  19936. _ACEOF
  19937. if ac_fn_c_try_link "$LINENO"; then :
  19938. ac_cv_lib_mingw32_main=yes
  19939. else
  19940. ac_cv_lib_mingw32_main=no
  19941. fi
  19942. rm -f core conftest.err conftest.$ac_objext \
  19943. conftest$ac_exeext conftest.$ac_ext
  19944. LIBS=$ac_check_lib_save_LIBS
  19945. fi
  19946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  19947. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  19948. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  19949. have_mingw32=yes
  19950. fi
  19951. if test x$have_mingw32 = xyes; then
  19952. SDL_LIBS="-lmingw32 $SDL_LIBS"
  19953. else
  19954. SDL_LIBS="-lcygwin $SDL_LIBS"
  19955. fi
  19956. ;;
  19957. *-*-beos*)
  19958. as_fn_error $? "
  19959. *** BeOS support has been removed as of SDL 2.0.2.
  19960. " "$LINENO" 5
  19961. ;;
  19962. *-*-haiku*)
  19963. ARCH=haiku
  19964. ac_default_prefix=/boot/system
  19965. CheckDummyVideo
  19966. CheckDiskAudio
  19967. CheckDummyAudio
  19968. CheckHaikuVideo
  19969. CheckHaikuGL
  19970. CheckPTHREAD
  19971. # Set up files for the audio library
  19972. if test x$enable_audio = xyes; then
  19973. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  19974. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  19975. have_audio=yes
  19976. fi
  19977. # Set up files for the joystick library
  19978. if test x$enable_joystick = xyes; then
  19979. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  19980. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  19981. have_joystick=yes
  19982. fi
  19983. # Set up files for the timer library
  19984. if test x$enable_timers = xyes; then
  19985. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  19986. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  19987. have_timers=yes
  19988. fi
  19989. # Set up files for the shared object loading library
  19990. if test x$enable_loadso = xyes; then
  19991. $as_echo "#define SDL_LOADSO_HAIKU 1" >>confdefs.h
  19992. SOURCES="$SOURCES $srcdir/src/loadso/haiku/*.c"
  19993. have_loadso=yes
  19994. fi
  19995. # Set up files for the system power library
  19996. if test x$enable_power = xyes; then
  19997. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  19998. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  19999. have_power=yes
  20000. fi
  20001. # Set up files for the system filesystem library
  20002. if test x$enable_filesystem = xyes; then
  20003. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20004. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20005. have_filesystem=yes
  20006. fi
  20007. # The Haiku platform requires special setup.
  20008. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20009. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  20010. ;;
  20011. arm*-apple-darwin*)
  20012. # iOS - We are not writing anything to confdefs.h because you have to replace
  20013. # SDL_config.h for SDL_config_iphoneos.h anyway
  20014. ARCH=ios
  20015. CheckVisibilityHidden
  20016. CheckDeclarationAfterStatement
  20017. CheckDummyVideo
  20018. CheckDiskAudio
  20019. CheckDummyAudio
  20020. CheckDLOPEN
  20021. CheckCOCOA
  20022. CheckPTHREAD
  20023. # Set up files for the audio library
  20024. if test x$enable_audio = xyes; then
  20025. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  20026. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20027. have_audio=yes
  20028. fi
  20029. # Set up files for the joystick library
  20030. if test x$enable_joystick = xyes; then
  20031. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20032. have_joystick=yes
  20033. fi
  20034. # Set up files for the haptic library
  20035. #if test x$enable_haptic = xyes; then
  20036. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20037. # have_haptic=yes
  20038. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20039. #fi
  20040. # Set up files for the power library
  20041. if test x$enable_power = xyes; then
  20042. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20043. have_power=yes
  20044. fi
  20045. # Set up files for the filesystem library
  20046. if test x$enable_filesystem = xyes; then
  20047. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20048. have_filesystem=yes
  20049. fi
  20050. # Set up files for the timer library
  20051. if test x$enable_timers = xyes; then
  20052. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20053. have_timers=yes
  20054. fi
  20055. # Set up additional files for the file library
  20056. if test x$enable_file = xyes; then
  20057. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20058. fi
  20059. # The iOS platform requires special setup.
  20060. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20061. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20062. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20063. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20064. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20065. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20066. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20067. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20068. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20069. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20070. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20071. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20072. ;;
  20073. *-*-darwin* )
  20074. # This could be either full "Mac OS X", or plain "Darwin" which is
  20075. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20076. # Next line is broken, and a few files below require Mac OS X (full)
  20077. ARCH=macosx
  20078. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20079. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20080. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20081. CheckVisibilityHidden
  20082. CheckDeclarationAfterStatement
  20083. CheckDummyVideo
  20084. CheckDiskAudio
  20085. CheckDummyAudio
  20086. CheckDLOPEN
  20087. CheckCOCOA
  20088. CheckX11
  20089. CheckMacGL
  20090. CheckOpenGLX11
  20091. CheckPTHREAD
  20092. # Set up files for the audio library
  20093. if test x$enable_audio = xyes; then
  20094. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20095. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  20096. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20097. have_audio=yes
  20098. fi
  20099. # Set up files for the joystick library
  20100. if test x$enable_joystick = xyes; then
  20101. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20102. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20103. have_joystick=yes
  20104. fi
  20105. # Set up files for the haptic library
  20106. if test x$enable_haptic = xyes; then
  20107. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20108. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20109. have_haptic=yes
  20110. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20111. fi
  20112. # Set up files for the power library
  20113. if test x$enable_power = xyes; then
  20114. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20115. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20116. have_power=yes
  20117. fi
  20118. # Set up files for the filesystem library
  20119. if test x$enable_filesystem = xyes; then
  20120. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20121. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20122. have_filesystem=yes
  20123. fi
  20124. # Set up files for the timer library
  20125. if test x$enable_timers = xyes; then
  20126. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20127. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20128. have_timers=yes
  20129. fi
  20130. # Set up additional files for the file library
  20131. if test x$enable_file = xyes; then
  20132. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20133. fi
  20134. # The Mac OS X platform requires special setup.
  20135. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20136. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  20137. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  20138. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  20139. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  20140. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  20141. # If audio is used, add the AudioUnit framework
  20142. if test x$enable_audio = xyes; then
  20143. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
  20144. fi
  20145. ;;
  20146. *-nacl|*-pnacl)
  20147. ARCH=nacl
  20148. CheckNativeClient
  20149. CheckDummyAudio
  20150. CheckDummyVideo
  20151. CheckInputEvents
  20152. CheckPTHREAD
  20153. # Set up files for the timer library
  20154. if test x$enable_timers = xyes; then
  20155. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20156. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20157. have_timers=yes
  20158. fi
  20159. if test x$enable_filesystem = xyes; then
  20160. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  20161. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  20162. have_filesystem=yes
  20163. fi
  20164. ;;
  20165. *-*-emscripten* )
  20166. if test x$enable_video = xyes; then
  20167. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20168. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  20169. have_video=yes
  20170. SUMMARY_video="${SUMMARY_video} emscripten"
  20171. fi
  20172. if test x$enable_audio = xyes; then
  20173. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20174. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  20175. have_audio=yes
  20176. SUMMARY_audio="${SUMMARY_audio} emscripten"
  20177. fi
  20178. CheckVisibilityHidden
  20179. CheckDeclarationAfterStatement
  20180. CheckDummyVideo
  20181. CheckDiskAudio
  20182. CheckDummyAudio
  20183. CheckDLOPEN
  20184. CheckClockGettime
  20185. CheckEmscriptenGLES
  20186. # Set up files for the power library
  20187. if test x$enable_power = xyes; then
  20188. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  20189. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  20190. have_power=yes
  20191. fi
  20192. # Set up files for the power library
  20193. if test x$enable_joystick = xyes; then
  20194. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  20195. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  20196. have_joystick=yes
  20197. fi
  20198. # Set up files for the filesystem library
  20199. if test x$enable_filesystem = xyes; then
  20200. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  20201. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  20202. have_filesystem=yes
  20203. fi
  20204. # Set up files for the timer library
  20205. if test x$enable_timers = xyes; then
  20206. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20207. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20208. have_timers=yes
  20209. fi
  20210. ;;
  20211. *)
  20212. as_fn_error $? "
  20213. *** Unsupported host: Please add to configure.in
  20214. " "$LINENO" 5
  20215. ;;
  20216. esac
  20217. # Verify that we have all the platform specific files we need
  20218. if test x$have_joystick != xyes; then
  20219. if test x$enable_joystick = xyes; then
  20220. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  20221. fi
  20222. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  20223. fi
  20224. if test x$have_haptic != xyes; then
  20225. if test x$enable_haptic = xyes; then
  20226. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  20227. fi
  20228. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  20229. fi
  20230. if test x$have_threads != xyes; then
  20231. if test x$enable_threads = xyes; then
  20232. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  20233. fi
  20234. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  20235. fi
  20236. if test x$have_timers != xyes; then
  20237. if test x$enable_timers = xyes; then
  20238. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  20239. fi
  20240. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  20241. fi
  20242. if test x$have_filesystem != xyes; then
  20243. if test x$enable_filesystem = xyes; then
  20244. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  20245. fi
  20246. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  20247. fi
  20248. if test x$have_loadso != xyes; then
  20249. if test x$enable_loadso = xyes; then
  20250. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  20251. fi
  20252. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  20253. fi
  20254. if test x$SDLMAIN_SOURCES = x; then
  20255. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  20256. fi
  20257. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  20258. if test x$video_wayland = xyes; then
  20259. WAYLAND_CORE_PROTOCOL_SOURCE='$(gen)/wayland-protocol.c'
  20260. WAYLAND_CORE_PROTOCOL_HEADER='$(gen)/wayland-client-protocol.h'
  20261. WAYLAND_PROTOCOLS_UNSTABLE_SOURCES=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20262. sed 's,[^ ]\+,\\$(gen)/&-protocol.c,g'`
  20263. WAYLAND_PROTOCOLS_UNSTABLE_HEADERS=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20264. sed 's,[^ ]\+,\\$(gen)/&-client-protocol.h,g'`
  20265. GEN_SOURCES="$GEN_SOURCES $WAYLAND_CORE_PROTOCOL_SOURCE $WAYLAND_PROTOCOLS_UNSTABLE_SOURCES"
  20266. GEN_HEADERS="$GEN_HEADERS $WAYLAND_CORE_PROTOCOL_HEADER $WAYLAND_PROTOCOLS_UNSTABLE_HEADERS"
  20267. WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS="
  20268. $WAYLAND_CORE_PROTOCOL_SOURCE: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20269. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20270. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) code \$< \$@"
  20271. WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS="
  20272. $WAYLAND_CORE_PROTOCOL_HEADER: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20273. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20274. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) client-header \$< \$@"
  20275. WAYLAND_CORE_PROTOCOL_OBJECT="
  20276. \$(objects)/`echo $WAYLAND_CORE_PROTOCOL_SOURCE | sed 's/\$(gen)\/\(.*\).c$/\1.lo/'`: $WAYLAND_CORE_PROTOCOL_SOURCE
  20277. \$(RUN_CMD_CC)\$(LIBTOOL) --tag=CC --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \$< -o \$@"
  20278. WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20279. do echo ; echo \$p | sed\
  20280. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-client-protocol.h: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20281. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20282. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@," ; done`
  20283. WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20284. do echo ; echo \$p | sed\
  20285. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-protocol.c: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20286. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20287. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@," ; done`
  20288. WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20289. do echo ; echo \$p | sed\
  20290. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\\$(objects)/&-protocol.lo: \\$(gen)/&-protocol.c \\$(gen)/&-client-protocol.h\\\\
  20291. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@," ; done`
  20292. WAYLAND_PROTOCOLS_DEPENDS="
  20293. $WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS
  20294. $WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS
  20295. $WAYLAND_CORE_PROTOCOL_OBJECT
  20296. $WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS
  20297. $WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS
  20298. $WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE
  20299. "
  20300. fi
  20301. OBJECTS=`echo $SOURCES`
  20302. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  20303. for EXT in asm cc m c S; do
  20304. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  20305. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  20306. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  20307. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20308. done
  20309. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20310. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  20311. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  20312. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  20313. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  20314. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  20315. \\$(WINDRES) \\$< \\$@,g"`
  20316. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  20317. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  20318. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20319. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20320. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20321. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20322. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  20323. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  20324. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20325. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20326. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20327. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20328. # Set runtime shared library paths as needed
  20329. if test "x$enable_rpath" = "xyes"; then
  20330. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  20331. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  20332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  20333. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  20334. have_enable_new_dtags=no
  20335. save_LDFLAGS="$LDFLAGS"
  20336. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  20337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20338. /* end confdefs.h. */
  20339. int
  20340. main ()
  20341. {
  20342. ;
  20343. return 0;
  20344. }
  20345. _ACEOF
  20346. if ac_fn_c_try_link "$LINENO"; then :
  20347. have_enable_new_dtags=yes
  20348. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  20349. fi
  20350. rm -f core conftest.err conftest.$ac_objext \
  20351. conftest$ac_exeext conftest.$ac_ext
  20352. LDFLAGS="$save_LDFLAGS"
  20353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  20354. $as_echo "$have_enable_new_dtags" >&6; }
  20355. fi
  20356. if test $ARCH = solaris; then
  20357. SDL_RLD_FLAGS="-R\${libdir}"
  20358. fi
  20359. else
  20360. SDL_RLD_FLAGS=""
  20361. fi
  20362. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  20363. if test x$enable_shared = xyes; then
  20364. ENABLE_SHARED_TRUE=
  20365. ENABLE_SHARED_FALSE="#"
  20366. else
  20367. ENABLE_SHARED_TRUE="#"
  20368. ENABLE_SHARED_FALSE=
  20369. fi
  20370. if test x$enable_static = xyes; then
  20371. ENABLE_STATIC_TRUE=
  20372. ENABLE_STATIC_FALSE="#"
  20373. else
  20374. ENABLE_STATIC_TRUE="#"
  20375. ENABLE_STATIC_FALSE=
  20376. fi
  20377. cat >Makefile.rules <<__EOF__
  20378. # Build rules for objects
  20379. -include \$(OBJECTS:.lo=.d)
  20380. # Special dependency for SDL.c, since it depends on SDL_revision.h
  20381. $srcdir/src/SDL.c: update-revision
  20382. $DEPENDS
  20383. $VERSION_DEPENDS
  20384. $SDLMAIN_DEPENDS
  20385. $SDLTEST_DEPENDS
  20386. $WAYLAND_PROTOCOLS_DEPENDS
  20387. __EOF__
  20388. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  20389. ac_config_commands="$ac_config_commands sdl2_config"
  20390. SUMMARY="SDL2 Configure Summary:\n"
  20391. if test x$enable_shared = xyes; then
  20392. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  20393. fi
  20394. if test x$enable_static = xyes; then
  20395. SUMMARY="${SUMMARY}Building Static Libraries\n"
  20396. fi
  20397. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  20398. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  20399. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  20400. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  20401. if test x$have_x = xyes; then
  20402. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  20403. fi
  20404. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  20405. if test x$enable_libudev = xyes; then
  20406. SUMMARY="${SUMMARY}Using libudev : YES\n"
  20407. else
  20408. SUMMARY="${SUMMARY}Using libudev : NO\n"
  20409. fi
  20410. if test x$have_dbus_dbus_h_hdr = xyes; then
  20411. SUMMARY="${SUMMARY}Using dbus : YES\n"
  20412. else
  20413. SUMMARY="${SUMMARY}Using dbus : NO\n"
  20414. fi
  20415. if test x$have_ibus_ibus_h_hdr = xyes; then
  20416. SUMMARY="${SUMMARY}Using ibus : YES\n"
  20417. else
  20418. SUMMARY="${SUMMARY}Using ibus : NO\n"
  20419. fi
  20420. ac_config_commands="$ac_config_commands summary"
  20421. cat >confcache <<\_ACEOF
  20422. # This file is a shell script that caches the results of configure
  20423. # tests run on this system so they can be shared between configure
  20424. # scripts and configure runs, see configure's option --config-cache.
  20425. # It is not useful on other systems. If it contains results you don't
  20426. # want to keep, you may remove or edit it.
  20427. #
  20428. # config.status only pays attention to the cache file if you give it
  20429. # the --recheck option to rerun configure.
  20430. #
  20431. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20432. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20433. # following values.
  20434. _ACEOF
  20435. # The following way of writing the cache mishandles newlines in values,
  20436. # but we know of no workaround that is simple, portable, and efficient.
  20437. # So, we kill variables containing newlines.
  20438. # Ultrix sh set writes to stderr and can't be redirected directly,
  20439. # and sets the high bit in the cache file unless we assign to the vars.
  20440. (
  20441. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20442. eval ac_val=\$$ac_var
  20443. case $ac_val in #(
  20444. *${as_nl}*)
  20445. case $ac_var in #(
  20446. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  20447. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20448. esac
  20449. case $ac_var in #(
  20450. _ | IFS | as_nl) ;; #(
  20451. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20452. *) { eval $ac_var=; unset $ac_var;} ;;
  20453. esac ;;
  20454. esac
  20455. done
  20456. (set) 2>&1 |
  20457. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20458. *${as_nl}ac_space=\ *)
  20459. # `set' does not quote correctly, so add quotes: double-quote
  20460. # substitution turns \\\\ into \\, and sed turns \\ into \.
  20461. sed -n \
  20462. "s/'/'\\\\''/g;
  20463. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20464. ;; #(
  20465. *)
  20466. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20467. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20468. ;;
  20469. esac |
  20470. sort
  20471. ) |
  20472. sed '
  20473. /^ac_cv_env_/b end
  20474. t clear
  20475. :clear
  20476. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20477. t end
  20478. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20479. :end' >>confcache
  20480. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20481. if test -w "$cache_file"; then
  20482. if test "x$cache_file" != "x/dev/null"; then
  20483. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  20484. $as_echo "$as_me: updating cache $cache_file" >&6;}
  20485. if test ! -f "$cache_file" || test -h "$cache_file"; then
  20486. cat confcache >"$cache_file"
  20487. else
  20488. case $cache_file in #(
  20489. */* | ?:*)
  20490. mv -f confcache "$cache_file"$$ &&
  20491. mv -f "$cache_file"$$ "$cache_file" ;; #(
  20492. *)
  20493. mv -f confcache "$cache_file" ;;
  20494. esac
  20495. fi
  20496. fi
  20497. else
  20498. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  20499. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20500. fi
  20501. fi
  20502. rm -f confcache
  20503. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20504. # Let make expand exec_prefix.
  20505. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20506. DEFS=-DHAVE_CONFIG_H
  20507. ac_libobjs=
  20508. ac_ltlibobjs=
  20509. U=
  20510. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20511. # 1. Remove the extension, and $U if already installed.
  20512. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20513. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20514. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20515. # will be set to the directory where LIBOBJS objects are built.
  20516. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20517. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  20518. done
  20519. LIBOBJS=$ac_libobjs
  20520. LTLIBOBJS=$ac_ltlibobjs
  20521. : "${CONFIG_STATUS=./config.status}"
  20522. ac_write_fail=0
  20523. ac_clean_files_save=$ac_clean_files
  20524. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20525. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  20526. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20527. as_write_fail=0
  20528. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  20529. #! $SHELL
  20530. # Generated by $as_me.
  20531. # Run this file to recreate the current configuration.
  20532. # Compiler output produced by configure, useful for debugging
  20533. # configure, is in config.log if it exists.
  20534. debug=false
  20535. ac_cs_recheck=false
  20536. ac_cs_silent=false
  20537. SHELL=\${CONFIG_SHELL-$SHELL}
  20538. export SHELL
  20539. _ASEOF
  20540. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  20541. ## -------------------- ##
  20542. ## M4sh Initialization. ##
  20543. ## -------------------- ##
  20544. # Be more Bourne compatible
  20545. DUALCASE=1; export DUALCASE # for MKS sh
  20546. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20547. emulate sh
  20548. NULLCMD=:
  20549. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20550. # is contrary to our usage. Disable this feature.
  20551. alias -g '${1+"$@"}'='"$@"'
  20552. setopt NO_GLOB_SUBST
  20553. else
  20554. case `(set -o) 2>/dev/null` in #(
  20555. *posix*) :
  20556. set -o posix ;; #(
  20557. *) :
  20558. ;;
  20559. esac
  20560. fi
  20561. as_nl='
  20562. '
  20563. export as_nl
  20564. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  20565. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  20566. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  20567. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  20568. # Prefer a ksh shell builtin over an external printf program on Solaris,
  20569. # but without wasting forks for bash or zsh.
  20570. if test -z "$BASH_VERSION$ZSH_VERSION" \
  20571. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  20572. as_echo='print -r --'
  20573. as_echo_n='print -rn --'
  20574. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  20575. as_echo='printf %s\n'
  20576. as_echo_n='printf %s'
  20577. else
  20578. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  20579. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  20580. as_echo_n='/usr/ucb/echo -n'
  20581. else
  20582. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  20583. as_echo_n_body='eval
  20584. arg=$1;
  20585. case $arg in #(
  20586. *"$as_nl"*)
  20587. expr "X$arg" : "X\\(.*\\)$as_nl";
  20588. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  20589. esac;
  20590. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  20591. '
  20592. export as_echo_n_body
  20593. as_echo_n='sh -c $as_echo_n_body as_echo'
  20594. fi
  20595. export as_echo_body
  20596. as_echo='sh -c $as_echo_body as_echo'
  20597. fi
  20598. # The user is always right.
  20599. if test "${PATH_SEPARATOR+set}" != set; then
  20600. PATH_SEPARATOR=:
  20601. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20602. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20603. PATH_SEPARATOR=';'
  20604. }
  20605. fi
  20606. # IFS
  20607. # We need space, tab and new line, in precisely that order. Quoting is
  20608. # there to prevent editors from complaining about space-tab.
  20609. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20610. # splitting by setting IFS to empty value.)
  20611. IFS=" "" $as_nl"
  20612. # Find who we are. Look in the path if we contain no directory separator.
  20613. as_myself=
  20614. case $0 in #((
  20615. *[\\/]* ) as_myself=$0 ;;
  20616. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20617. for as_dir in $PATH
  20618. do
  20619. IFS=$as_save_IFS
  20620. test -z "$as_dir" && as_dir=.
  20621. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20622. done
  20623. IFS=$as_save_IFS
  20624. ;;
  20625. esac
  20626. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20627. # in which case we are not to be found in the path.
  20628. if test "x$as_myself" = x; then
  20629. as_myself=$0
  20630. fi
  20631. if test ! -f "$as_myself"; then
  20632. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20633. exit 1
  20634. fi
  20635. # Unset variables that we do not need and which cause bugs (e.g. in
  20636. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  20637. # suppresses any "Segmentation fault" message there. '((' could
  20638. # trigger a bug in pdksh 5.2.14.
  20639. for as_var in BASH_ENV ENV MAIL MAILPATH
  20640. do eval test x\${$as_var+set} = xset \
  20641. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  20642. done
  20643. PS1='$ '
  20644. PS2='> '
  20645. PS4='+ '
  20646. # NLS nuisances.
  20647. LC_ALL=C
  20648. export LC_ALL
  20649. LANGUAGE=C
  20650. export LANGUAGE
  20651. # CDPATH.
  20652. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20653. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  20654. # ----------------------------------------
  20655. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  20656. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  20657. # script with STATUS, using 1 if that was 0.
  20658. as_fn_error ()
  20659. {
  20660. as_status=$1; test $as_status -eq 0 && as_status=1
  20661. if test "$4"; then
  20662. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  20663. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  20664. fi
  20665. $as_echo "$as_me: error: $2" >&2
  20666. as_fn_exit $as_status
  20667. } # as_fn_error
  20668. # as_fn_set_status STATUS
  20669. # -----------------------
  20670. # Set $? to STATUS, without forking.
  20671. as_fn_set_status ()
  20672. {
  20673. return $1
  20674. } # as_fn_set_status
  20675. # as_fn_exit STATUS
  20676. # -----------------
  20677. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  20678. as_fn_exit ()
  20679. {
  20680. set +e
  20681. as_fn_set_status $1
  20682. exit $1
  20683. } # as_fn_exit
  20684. # as_fn_unset VAR
  20685. # ---------------
  20686. # Portably unset VAR.
  20687. as_fn_unset ()
  20688. {
  20689. { eval $1=; unset $1;}
  20690. }
  20691. as_unset=as_fn_unset
  20692. # as_fn_append VAR VALUE
  20693. # ----------------------
  20694. # Append the text in VALUE to the end of the definition contained in VAR. Take
  20695. # advantage of any shell optimizations that allow amortized linear growth over
  20696. # repeated appends, instead of the typical quadratic growth present in naive
  20697. # implementations.
  20698. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  20699. eval 'as_fn_append ()
  20700. {
  20701. eval $1+=\$2
  20702. }'
  20703. else
  20704. as_fn_append ()
  20705. {
  20706. eval $1=\$$1\$2
  20707. }
  20708. fi # as_fn_append
  20709. # as_fn_arith ARG...
  20710. # ------------------
  20711. # Perform arithmetic evaluation on the ARGs, and store the result in the
  20712. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  20713. # must be portable across $(()) and expr.
  20714. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  20715. eval 'as_fn_arith ()
  20716. {
  20717. as_val=$(( $* ))
  20718. }'
  20719. else
  20720. as_fn_arith ()
  20721. {
  20722. as_val=`expr "$@" || test $? -eq 1`
  20723. }
  20724. fi # as_fn_arith
  20725. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20726. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20727. as_expr=expr
  20728. else
  20729. as_expr=false
  20730. fi
  20731. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20732. as_basename=basename
  20733. else
  20734. as_basename=false
  20735. fi
  20736. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20737. as_dirname=dirname
  20738. else
  20739. as_dirname=false
  20740. fi
  20741. as_me=`$as_basename -- "$0" ||
  20742. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20743. X"$0" : 'X\(//\)$' \| \
  20744. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20745. $as_echo X/"$0" |
  20746. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20747. s//\1/
  20748. q
  20749. }
  20750. /^X\/\(\/\/\)$/{
  20751. s//\1/
  20752. q
  20753. }
  20754. /^X\/\(\/\).*/{
  20755. s//\1/
  20756. q
  20757. }
  20758. s/.*/./; q'`
  20759. # Avoid depending upon Character Ranges.
  20760. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20761. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20762. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20763. as_cr_digits='0123456789'
  20764. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20765. ECHO_C= ECHO_N= ECHO_T=
  20766. case `echo -n x` in #(((((
  20767. -n*)
  20768. case `echo 'xy\c'` in
  20769. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20770. xy) ECHO_C='\c';;
  20771. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  20772. ECHO_T=' ';;
  20773. esac;;
  20774. *)
  20775. ECHO_N='-n';;
  20776. esac
  20777. rm -f conf$$ conf$$.exe conf$$.file
  20778. if test -d conf$$.dir; then
  20779. rm -f conf$$.dir/conf$$.file
  20780. else
  20781. rm -f conf$$.dir
  20782. mkdir conf$$.dir 2>/dev/null
  20783. fi
  20784. if (echo >conf$$.file) 2>/dev/null; then
  20785. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20786. as_ln_s='ln -s'
  20787. # ... but there are two gotchas:
  20788. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20789. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20790. # In both cases, we have to default to `cp -pR'.
  20791. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20792. as_ln_s='cp -pR'
  20793. elif ln conf$$.file conf$$ 2>/dev/null; then
  20794. as_ln_s=ln
  20795. else
  20796. as_ln_s='cp -pR'
  20797. fi
  20798. else
  20799. as_ln_s='cp -pR'
  20800. fi
  20801. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20802. rmdir conf$$.dir 2>/dev/null
  20803. # as_fn_mkdir_p
  20804. # -------------
  20805. # Create "$as_dir" as a directory, including parents if necessary.
  20806. as_fn_mkdir_p ()
  20807. {
  20808. case $as_dir in #(
  20809. -*) as_dir=./$as_dir;;
  20810. esac
  20811. test -d "$as_dir" || eval $as_mkdir_p || {
  20812. as_dirs=
  20813. while :; do
  20814. case $as_dir in #(
  20815. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  20816. *) as_qdir=$as_dir;;
  20817. esac
  20818. as_dirs="'$as_qdir' $as_dirs"
  20819. as_dir=`$as_dirname -- "$as_dir" ||
  20820. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20821. X"$as_dir" : 'X\(//\)[^/]' \| \
  20822. X"$as_dir" : 'X\(//\)$' \| \
  20823. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20824. $as_echo X"$as_dir" |
  20825. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20826. s//\1/
  20827. q
  20828. }
  20829. /^X\(\/\/\)[^/].*/{
  20830. s//\1/
  20831. q
  20832. }
  20833. /^X\(\/\/\)$/{
  20834. s//\1/
  20835. q
  20836. }
  20837. /^X\(\/\).*/{
  20838. s//\1/
  20839. q
  20840. }
  20841. s/.*/./; q'`
  20842. test -d "$as_dir" && break
  20843. done
  20844. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20845. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  20846. } # as_fn_mkdir_p
  20847. if mkdir -p . 2>/dev/null; then
  20848. as_mkdir_p='mkdir -p "$as_dir"'
  20849. else
  20850. test -d ./-p && rmdir ./-p
  20851. as_mkdir_p=false
  20852. fi
  20853. # as_fn_executable_p FILE
  20854. # -----------------------
  20855. # Test if FILE is an executable regular file.
  20856. as_fn_executable_p ()
  20857. {
  20858. test -f "$1" && test -x "$1"
  20859. } # as_fn_executable_p
  20860. as_test_x='test -x'
  20861. as_executable_p=as_fn_executable_p
  20862. # Sed expression to map a string onto a valid CPP name.
  20863. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20864. # Sed expression to map a string onto a valid variable name.
  20865. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20866. exec 6>&1
  20867. ## ----------------------------------- ##
  20868. ## Main body of $CONFIG_STATUS script. ##
  20869. ## ----------------------------------- ##
  20870. _ASEOF
  20871. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  20872. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20873. # Save the log message, to keep $0 and so on meaningful, and to
  20874. # report actual input values of CONFIG_FILES etc. instead of their
  20875. # values after options handling.
  20876. ac_log="
  20877. This file was extended by $as_me, which was
  20878. generated by GNU Autoconf 2.69. Invocation command line was
  20879. CONFIG_FILES = $CONFIG_FILES
  20880. CONFIG_HEADERS = $CONFIG_HEADERS
  20881. CONFIG_LINKS = $CONFIG_LINKS
  20882. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20883. $ $0 $@
  20884. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20885. "
  20886. _ACEOF
  20887. case $ac_config_files in *"
  20888. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  20889. esac
  20890. case $ac_config_headers in *"
  20891. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  20892. esac
  20893. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20894. # Files that config.status was made for.
  20895. config_files="$ac_config_files"
  20896. config_headers="$ac_config_headers"
  20897. config_commands="$ac_config_commands"
  20898. _ACEOF
  20899. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20900. ac_cs_usage="\
  20901. \`$as_me' instantiates files and other configuration actions
  20902. from templates according to the current configuration. Unless the files
  20903. and actions are specified as TAGs, all are instantiated by default.
  20904. Usage: $0 [OPTION]... [TAG]...
  20905. -h, --help print this help, then exit
  20906. -V, --version print version number and configuration settings, then exit
  20907. --config print configuration, then exit
  20908. -q, --quiet, --silent
  20909. do not print progress messages
  20910. -d, --debug don't remove temporary files
  20911. --recheck update $as_me by reconfiguring in the same conditions
  20912. --file=FILE[:TEMPLATE]
  20913. instantiate the configuration file FILE
  20914. --header=FILE[:TEMPLATE]
  20915. instantiate the configuration header FILE
  20916. Configuration files:
  20917. $config_files
  20918. Configuration headers:
  20919. $config_headers
  20920. Configuration commands:
  20921. $config_commands
  20922. Report bugs to the package provider."
  20923. _ACEOF
  20924. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20925. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  20926. ac_cs_version="\\
  20927. config.status
  20928. configured by $0, generated by GNU Autoconf 2.69,
  20929. with options \\"\$ac_cs_config\\"
  20930. Copyright (C) 2012 Free Software Foundation, Inc.
  20931. This config.status script is free software; the Free Software Foundation
  20932. gives unlimited permission to copy, distribute and modify it."
  20933. ac_pwd='$ac_pwd'
  20934. srcdir='$srcdir'
  20935. INSTALL='$INSTALL'
  20936. AWK='$AWK'
  20937. test -n "\$AWK" || AWK=awk
  20938. _ACEOF
  20939. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20940. # The default lists apply if the user does not specify any file.
  20941. ac_need_defaults=:
  20942. while test $# != 0
  20943. do
  20944. case $1 in
  20945. --*=?*)
  20946. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20947. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20948. ac_shift=:
  20949. ;;
  20950. --*=)
  20951. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20952. ac_optarg=
  20953. ac_shift=:
  20954. ;;
  20955. *)
  20956. ac_option=$1
  20957. ac_optarg=$2
  20958. ac_shift=shift
  20959. ;;
  20960. esac
  20961. case $ac_option in
  20962. # Handling of the options.
  20963. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20964. ac_cs_recheck=: ;;
  20965. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20966. $as_echo "$ac_cs_version"; exit ;;
  20967. --config | --confi | --conf | --con | --co | --c )
  20968. $as_echo "$ac_cs_config"; exit ;;
  20969. --debug | --debu | --deb | --de | --d | -d )
  20970. debug=: ;;
  20971. --file | --fil | --fi | --f )
  20972. $ac_shift
  20973. case $ac_optarg in
  20974. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20975. '') as_fn_error $? "missing file argument" ;;
  20976. esac
  20977. as_fn_append CONFIG_FILES " '$ac_optarg'"
  20978. ac_need_defaults=false;;
  20979. --header | --heade | --head | --hea )
  20980. $ac_shift
  20981. case $ac_optarg in
  20982. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20983. esac
  20984. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  20985. ac_need_defaults=false;;
  20986. --he | --h)
  20987. # Conflict between --help and --header
  20988. as_fn_error $? "ambiguous option: \`$1'
  20989. Try \`$0 --help' for more information.";;
  20990. --help | --hel | -h )
  20991. $as_echo "$ac_cs_usage"; exit ;;
  20992. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20993. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20994. ac_cs_silent=: ;;
  20995. # This is an error.
  20996. -*) as_fn_error $? "unrecognized option: \`$1'
  20997. Try \`$0 --help' for more information." ;;
  20998. *) as_fn_append ac_config_targets " $1"
  20999. ac_need_defaults=false ;;
  21000. esac
  21001. shift
  21002. done
  21003. ac_configure_extra_args=
  21004. if $ac_cs_silent; then
  21005. exec 6>/dev/null
  21006. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21007. fi
  21008. _ACEOF
  21009. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21010. if \$ac_cs_recheck; then
  21011. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21012. shift
  21013. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21014. CONFIG_SHELL='$SHELL'
  21015. export CONFIG_SHELL
  21016. exec "\$@"
  21017. fi
  21018. _ACEOF
  21019. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21020. exec 5>>config.log
  21021. {
  21022. echo
  21023. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21024. ## Running $as_me. ##
  21025. _ASBOX
  21026. $as_echo "$ac_log"
  21027. } >&5
  21028. _ACEOF
  21029. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21030. #
  21031. # INIT-COMMANDS
  21032. #
  21033. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21034. # if CDPATH is set.
  21035. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21036. sed_quote_subst='$sed_quote_subst'
  21037. double_quote_subst='$double_quote_subst'
  21038. delay_variable_subst='$delay_variable_subst'
  21039. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21040. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21041. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21042. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21043. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21044. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21045. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21046. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21047. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21048. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21049. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21050. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21051. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21052. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21053. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21054. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21055. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21056. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21057. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21058. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21059. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21060. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21061. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21062. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21063. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21064. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21065. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21066. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21067. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21068. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21069. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21070. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21071. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21072. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21073. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21074. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21075. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21076. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21077. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21078. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21079. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21080. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21081. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21082. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21083. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21084. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21085. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21086. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21087. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21088. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  21089. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  21090. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  21091. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  21092. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  21093. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21094. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21095. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21096. 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"`'
  21097. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21098. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21099. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21100. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21101. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21102. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21103. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21104. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21105. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21106. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21107. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21108. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21109. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21110. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21111. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21112. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21113. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21114. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21115. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21116. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21117. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21118. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21119. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21120. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21121. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21122. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21123. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21124. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21125. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21126. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21127. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21128. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21129. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21130. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  21131. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  21132. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  21133. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  21134. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  21135. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21136. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  21137. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  21138. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  21139. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  21140. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  21141. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  21142. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  21143. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  21144. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  21145. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  21146. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  21147. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21148. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  21149. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  21150. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  21151. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21152. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  21153. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  21154. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  21155. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  21156. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  21157. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21158. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21159. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  21160. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  21161. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  21162. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  21163. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  21164. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  21165. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  21166. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  21167. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  21168. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  21169. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  21170. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  21171. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  21172. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  21173. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  21174. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  21175. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  21176. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  21177. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21178. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21179. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21180. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  21181. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  21182. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21183. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  21184. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  21185. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  21186. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  21187. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  21188. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  21189. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21190. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21191. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  21192. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21193. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21194. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21195. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21196. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21197. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21198. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  21199. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21200. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21201. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21202. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  21203. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  21204. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  21205. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  21206. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  21207. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  21208. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  21209. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  21210. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  21211. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21212. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21213. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21214. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21215. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21216. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21217. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  21218. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  21219. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21220. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21221. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  21222. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  21223. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  21224. LTCC='$LTCC'
  21225. LTCFLAGS='$LTCFLAGS'
  21226. compiler='$compiler_DEFAULT'
  21227. # A function that is used when there is no print builtin or printf.
  21228. func_fallback_echo ()
  21229. {
  21230. eval 'cat <<_LTECHO_EOF
  21231. \$1
  21232. _LTECHO_EOF'
  21233. }
  21234. # Quote evaled strings.
  21235. for var in AS \
  21236. DLLTOOL \
  21237. OBJDUMP \
  21238. SHELL \
  21239. ECHO \
  21240. PATH_SEPARATOR \
  21241. SED \
  21242. GREP \
  21243. EGREP \
  21244. FGREP \
  21245. LD \
  21246. NM \
  21247. LN_S \
  21248. lt_SP2NL \
  21249. lt_NL2SP \
  21250. reload_flag \
  21251. deplibs_check_method \
  21252. file_magic_cmd \
  21253. file_magic_glob \
  21254. want_nocaseglob \
  21255. sharedlib_from_linklib_cmd \
  21256. AR \
  21257. AR_FLAGS \
  21258. archiver_list_spec \
  21259. STRIP \
  21260. RANLIB \
  21261. CC \
  21262. CFLAGS \
  21263. compiler \
  21264. lt_cv_sys_global_symbol_pipe \
  21265. lt_cv_sys_global_symbol_to_cdecl \
  21266. lt_cv_sys_global_symbol_to_c_name_address \
  21267. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21268. nm_file_list_spec \
  21269. lt_prog_compiler_no_builtin_flag \
  21270. lt_prog_compiler_pic \
  21271. lt_prog_compiler_wl \
  21272. lt_prog_compiler_static \
  21273. lt_cv_prog_compiler_c_o \
  21274. need_locks \
  21275. MANIFEST_TOOL \
  21276. DSYMUTIL \
  21277. NMEDIT \
  21278. LIPO \
  21279. OTOOL \
  21280. OTOOL64 \
  21281. shrext_cmds \
  21282. export_dynamic_flag_spec \
  21283. whole_archive_flag_spec \
  21284. compiler_needs_object \
  21285. with_gnu_ld \
  21286. allow_undefined_flag \
  21287. no_undefined_flag \
  21288. hardcode_libdir_flag_spec \
  21289. hardcode_libdir_separator \
  21290. exclude_expsyms \
  21291. include_expsyms \
  21292. file_list_spec \
  21293. variables_saved_for_relink \
  21294. libname_spec \
  21295. library_names_spec \
  21296. soname_spec \
  21297. install_override_mode \
  21298. finish_eval \
  21299. old_striplib \
  21300. striplib \
  21301. compiler_lib_search_dirs \
  21302. predep_objects \
  21303. postdep_objects \
  21304. predeps \
  21305. postdeps \
  21306. compiler_lib_search_path \
  21307. LD_CXX \
  21308. reload_flag_CXX \
  21309. compiler_CXX \
  21310. lt_prog_compiler_no_builtin_flag_CXX \
  21311. lt_prog_compiler_pic_CXX \
  21312. lt_prog_compiler_wl_CXX \
  21313. lt_prog_compiler_static_CXX \
  21314. lt_cv_prog_compiler_c_o_CXX \
  21315. export_dynamic_flag_spec_CXX \
  21316. whole_archive_flag_spec_CXX \
  21317. compiler_needs_object_CXX \
  21318. with_gnu_ld_CXX \
  21319. allow_undefined_flag_CXX \
  21320. no_undefined_flag_CXX \
  21321. hardcode_libdir_flag_spec_CXX \
  21322. hardcode_libdir_separator_CXX \
  21323. exclude_expsyms_CXX \
  21324. include_expsyms_CXX \
  21325. file_list_spec_CXX \
  21326. compiler_lib_search_dirs_CXX \
  21327. predep_objects_CXX \
  21328. postdep_objects_CXX \
  21329. predeps_CXX \
  21330. postdeps_CXX \
  21331. compiler_lib_search_path_CXX; do
  21332. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21333. *[\\\\\\\`\\"\\\$]*)
  21334. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  21335. ;;
  21336. *)
  21337. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21338. ;;
  21339. esac
  21340. done
  21341. # Double-quote double-evaled strings.
  21342. for var in reload_cmds \
  21343. old_postinstall_cmds \
  21344. old_postuninstall_cmds \
  21345. old_archive_cmds \
  21346. extract_expsyms_cmds \
  21347. old_archive_from_new_cmds \
  21348. old_archive_from_expsyms_cmds \
  21349. archive_cmds \
  21350. archive_expsym_cmds \
  21351. module_cmds \
  21352. module_expsym_cmds \
  21353. export_symbols_cmds \
  21354. prelink_cmds \
  21355. postlink_cmds \
  21356. postinstall_cmds \
  21357. postuninstall_cmds \
  21358. finish_cmds \
  21359. sys_lib_search_path_spec \
  21360. sys_lib_dlsearch_path_spec \
  21361. reload_cmds_CXX \
  21362. old_archive_cmds_CXX \
  21363. old_archive_from_new_cmds_CXX \
  21364. old_archive_from_expsyms_cmds_CXX \
  21365. archive_cmds_CXX \
  21366. archive_expsym_cmds_CXX \
  21367. module_cmds_CXX \
  21368. module_expsym_cmds_CXX \
  21369. export_symbols_cmds_CXX \
  21370. prelink_cmds_CXX \
  21371. postlink_cmds_CXX; do
  21372. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21373. *[\\\\\\\`\\"\\\$]*)
  21374. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  21375. ;;
  21376. *)
  21377. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21378. ;;
  21379. esac
  21380. done
  21381. ac_aux_dir='$ac_aux_dir'
  21382. xsi_shell='$xsi_shell'
  21383. lt_shell_append='$lt_shell_append'
  21384. # See if we are running on zsh, and set the options which allow our
  21385. # commands through without removal of \ escapes INIT.
  21386. if test -n "\${ZSH_VERSION+set}" ; then
  21387. setopt NO_GLOB_SUBST
  21388. fi
  21389. PACKAGE='$PACKAGE'
  21390. VERSION='$VERSION'
  21391. TIMESTAMP='$TIMESTAMP'
  21392. RM='$RM'
  21393. ofile='$ofile'
  21394. SUMMARY="$SUMMARY"
  21395. _ACEOF
  21396. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21397. # Handling of arguments.
  21398. for ac_config_target in $ac_config_targets
  21399. do
  21400. case $ac_config_target in
  21401. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  21402. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  21403. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  21404. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  21405. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  21406. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  21407. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  21408. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  21409. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  21410. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  21411. esac
  21412. done
  21413. # If the user did not use the arguments to specify the items to instantiate,
  21414. # then the envvar interface is used. Set only those that are not.
  21415. # We use the long form for the default assignment because of an extremely
  21416. # bizarre bug on SunOS 4.1.3.
  21417. if $ac_need_defaults; then
  21418. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21419. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21420. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21421. fi
  21422. # Have a temporary directory for convenience. Make it in the build tree
  21423. # simply because there is no reason against having it here, and in addition,
  21424. # creating and moving files from /tmp can sometimes cause problems.
  21425. # Hook for its removal unless debugging.
  21426. # Note that there is a small window in which the directory will not be cleaned:
  21427. # after its creation but before its name has been assigned to `$tmp'.
  21428. $debug ||
  21429. {
  21430. tmp= ac_tmp=
  21431. trap 'exit_status=$?
  21432. : "${ac_tmp:=$tmp}"
  21433. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  21434. ' 0
  21435. trap 'as_fn_exit 1' 1 2 13 15
  21436. }
  21437. # Create a (secure) tmp directory for tmp files.
  21438. {
  21439. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21440. test -d "$tmp"
  21441. } ||
  21442. {
  21443. tmp=./conf$$-$RANDOM
  21444. (umask 077 && mkdir "$tmp")
  21445. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  21446. ac_tmp=$tmp
  21447. # Set up the scripts for CONFIG_FILES section.
  21448. # No need to generate them if there are no CONFIG_FILES.
  21449. # This happens for instance with `./config.status config.h'.
  21450. if test -n "$CONFIG_FILES"; then
  21451. ac_cr=`echo X | tr X '\015'`
  21452. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  21453. # But we know of no other shell where ac_cr would be empty at this
  21454. # point, so we can use a bashism as a fallback.
  21455. if test "x$ac_cr" = x; then
  21456. eval ac_cr=\$\'\\r\'
  21457. fi
  21458. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21459. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21460. ac_cs_awk_cr='\\r'
  21461. else
  21462. ac_cs_awk_cr=$ac_cr
  21463. fi
  21464. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  21465. _ACEOF
  21466. {
  21467. echo "cat >conf$$subs.awk <<_ACEOF" &&
  21468. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21469. echo "_ACEOF"
  21470. } >conf$$subs.sh ||
  21471. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21472. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  21473. ac_delim='%!_!# '
  21474. for ac_last_try in false false false false false :; do
  21475. . ./conf$$subs.sh ||
  21476. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21477. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21478. if test $ac_delim_n = $ac_delim_num; then
  21479. break
  21480. elif $ac_last_try; then
  21481. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21482. else
  21483. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21484. fi
  21485. done
  21486. rm -f conf$$subs.sh
  21487. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21488. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  21489. _ACEOF
  21490. sed -n '
  21491. h
  21492. s/^/S["/; s/!.*/"]=/
  21493. p
  21494. g
  21495. s/^[^!]*!//
  21496. :repl
  21497. t repl
  21498. s/'"$ac_delim"'$//
  21499. t delim
  21500. :nl
  21501. h
  21502. s/\(.\{148\}\)..*/\1/
  21503. t more1
  21504. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21505. p
  21506. n
  21507. b repl
  21508. :more1
  21509. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21510. p
  21511. g
  21512. s/.\{148\}//
  21513. t nl
  21514. :delim
  21515. h
  21516. s/\(.\{148\}\)..*/\1/
  21517. t more2
  21518. s/["\\]/\\&/g; s/^/"/; s/$/"/
  21519. p
  21520. b
  21521. :more2
  21522. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21523. p
  21524. g
  21525. s/.\{148\}//
  21526. t delim
  21527. ' <conf$$subs.awk | sed '
  21528. /^[^""]/{
  21529. N
  21530. s/\n//
  21531. }
  21532. ' >>$CONFIG_STATUS || ac_write_fail=1
  21533. rm -f conf$$subs.awk
  21534. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21535. _ACAWK
  21536. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  21537. for (key in S) S_is_set[key] = 1
  21538. FS = ""
  21539. }
  21540. {
  21541. line = $ 0
  21542. nfields = split(line, field, "@")
  21543. substed = 0
  21544. len = length(field[1])
  21545. for (i = 2; i < nfields; i++) {
  21546. key = field[i]
  21547. keylen = length(key)
  21548. if (S_is_set[key]) {
  21549. value = S[key]
  21550. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21551. len += length(value) + length(field[++i])
  21552. substed = 1
  21553. } else
  21554. len += 1 + keylen
  21555. }
  21556. print line
  21557. }
  21558. _ACAWK
  21559. _ACEOF
  21560. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21561. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21562. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21563. else
  21564. cat
  21565. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  21566. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  21567. _ACEOF
  21568. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  21569. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  21570. # trailing colons and then remove the whole line if VPATH becomes empty
  21571. # (actually we leave an empty line to preserve line numbers).
  21572. if test "x$srcdir" = x.; then
  21573. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  21574. h
  21575. s///
  21576. s/^/:/
  21577. s/[ ]*$/:/
  21578. s/:\$(srcdir):/:/g
  21579. s/:\${srcdir}:/:/g
  21580. s/:@srcdir@:/:/g
  21581. s/^:*//
  21582. s/:*$//
  21583. x
  21584. s/\(=[ ]*\).*/\1/
  21585. G
  21586. s/\n//
  21587. s/^[^=]*=[ ]*$//
  21588. }'
  21589. fi
  21590. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21591. fi # test -n "$CONFIG_FILES"
  21592. # Set up the scripts for CONFIG_HEADERS section.
  21593. # No need to generate them if there are no CONFIG_HEADERS.
  21594. # This happens for instance with `./config.status Makefile'.
  21595. if test -n "$CONFIG_HEADERS"; then
  21596. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  21597. BEGIN {
  21598. _ACEOF
  21599. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21600. # here-document in config.status, that substitutes the proper values into
  21601. # config.h.in to produce config.h.
  21602. # Create a delimiter string that does not exist in confdefs.h, to ease
  21603. # handling of long lines.
  21604. ac_delim='%!_!# '
  21605. for ac_last_try in false false :; do
  21606. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  21607. if test -z "$ac_tt"; then
  21608. break
  21609. elif $ac_last_try; then
  21610. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  21611. else
  21612. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21613. fi
  21614. done
  21615. # For the awk script, D is an array of macro values keyed by name,
  21616. # likewise P contains macro parameters if any. Preserve backslash
  21617. # newline sequences.
  21618. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21619. sed -n '
  21620. s/.\{148\}/&'"$ac_delim"'/g
  21621. t rset
  21622. :rset
  21623. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21624. t def
  21625. d
  21626. :def
  21627. s/\\$//
  21628. t bsnl
  21629. s/["\\]/\\&/g
  21630. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21631. D["\1"]=" \3"/p
  21632. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21633. d
  21634. :bsnl
  21635. s/["\\]/\\&/g
  21636. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21637. D["\1"]=" \3\\\\\\n"\\/p
  21638. t cont
  21639. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21640. t cont
  21641. d
  21642. :cont
  21643. n
  21644. s/.\{148\}/&'"$ac_delim"'/g
  21645. t clear
  21646. :clear
  21647. s/\\$//
  21648. t bsnlc
  21649. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21650. d
  21651. :bsnlc
  21652. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21653. b cont
  21654. ' <confdefs.h | sed '
  21655. s/'"$ac_delim"'/"\\\
  21656. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21657. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21658. for (key in D) D_is_set[key] = 1
  21659. FS = ""
  21660. }
  21661. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21662. line = \$ 0
  21663. split(line, arg, " ")
  21664. if (arg[1] == "#") {
  21665. defundef = arg[2]
  21666. mac1 = arg[3]
  21667. } else {
  21668. defundef = substr(arg[1], 2)
  21669. mac1 = arg[2]
  21670. }
  21671. split(mac1, mac2, "(") #)
  21672. macro = mac2[1]
  21673. prefix = substr(line, 1, index(line, defundef) - 1)
  21674. if (D_is_set[macro]) {
  21675. # Preserve the white space surrounding the "#".
  21676. print prefix "define", macro P[macro] D[macro]
  21677. next
  21678. } else {
  21679. # Replace #undef with comments. This is necessary, for example,
  21680. # in the case of _POSIX_SOURCE, which is predefined and required
  21681. # on some systems where configure will not decide to define it.
  21682. if (defundef == "undef") {
  21683. print "/*", prefix defundef, macro, "*/"
  21684. next
  21685. }
  21686. }
  21687. }
  21688. { print }
  21689. _ACAWK
  21690. _ACEOF
  21691. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21692. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  21693. fi # test -n "$CONFIG_HEADERS"
  21694. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21695. shift
  21696. for ac_tag
  21697. do
  21698. case $ac_tag in
  21699. :[FHLC]) ac_mode=$ac_tag; continue;;
  21700. esac
  21701. case $ac_mode$ac_tag in
  21702. :[FHL]*:*);;
  21703. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  21704. :[FH]-) ac_tag=-:-;;
  21705. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21706. esac
  21707. ac_save_IFS=$IFS
  21708. IFS=:
  21709. set x $ac_tag
  21710. IFS=$ac_save_IFS
  21711. shift
  21712. ac_file=$1
  21713. shift
  21714. case $ac_mode in
  21715. :L) ac_source=$1;;
  21716. :[FH])
  21717. ac_file_inputs=
  21718. for ac_f
  21719. do
  21720. case $ac_f in
  21721. -) ac_f="$ac_tmp/stdin";;
  21722. *) # Look for the file first in the build tree, then in the source tree
  21723. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21724. # because $ac_f cannot contain `:'.
  21725. test -f "$ac_f" ||
  21726. case $ac_f in
  21727. [\\/$]*) false;;
  21728. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21729. esac ||
  21730. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  21731. esac
  21732. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21733. as_fn_append ac_file_inputs " '$ac_f'"
  21734. done
  21735. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21736. # use $as_me), people would be surprised to read:
  21737. # /* config.h. Generated by config.status. */
  21738. configure_input='Generated from '`
  21739. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21740. `' by configure.'
  21741. if test x"$ac_file" != x-; then
  21742. configure_input="$ac_file. $configure_input"
  21743. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  21744. $as_echo "$as_me: creating $ac_file" >&6;}
  21745. fi
  21746. # Neutralize special characters interpreted by sed in replacement strings.
  21747. case $configure_input in #(
  21748. *\&* | *\|* | *\\* )
  21749. ac_sed_conf_input=`$as_echo "$configure_input" |
  21750. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21751. *) ac_sed_conf_input=$configure_input;;
  21752. esac
  21753. case $ac_tag in
  21754. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  21755. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  21756. esac
  21757. ;;
  21758. esac
  21759. ac_dir=`$as_dirname -- "$ac_file" ||
  21760. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21761. X"$ac_file" : 'X\(//\)[^/]' \| \
  21762. X"$ac_file" : 'X\(//\)$' \| \
  21763. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21764. $as_echo X"$ac_file" |
  21765. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21766. s//\1/
  21767. q
  21768. }
  21769. /^X\(\/\/\)[^/].*/{
  21770. s//\1/
  21771. q
  21772. }
  21773. /^X\(\/\/\)$/{
  21774. s//\1/
  21775. q
  21776. }
  21777. /^X\(\/\).*/{
  21778. s//\1/
  21779. q
  21780. }
  21781. s/.*/./; q'`
  21782. as_dir="$ac_dir"; as_fn_mkdir_p
  21783. ac_builddir=.
  21784. case "$ac_dir" in
  21785. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21786. *)
  21787. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21788. # A ".." for each directory in $ac_dir_suffix.
  21789. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21790. case $ac_top_builddir_sub in
  21791. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21792. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21793. esac ;;
  21794. esac
  21795. ac_abs_top_builddir=$ac_pwd
  21796. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21797. # for backward compatibility:
  21798. ac_top_builddir=$ac_top_build_prefix
  21799. case $srcdir in
  21800. .) # We are building in place.
  21801. ac_srcdir=.
  21802. ac_top_srcdir=$ac_top_builddir_sub
  21803. ac_abs_top_srcdir=$ac_pwd ;;
  21804. [\\/]* | ?:[\\/]* ) # Absolute name.
  21805. ac_srcdir=$srcdir$ac_dir_suffix;
  21806. ac_top_srcdir=$srcdir
  21807. ac_abs_top_srcdir=$srcdir ;;
  21808. *) # Relative name.
  21809. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21810. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21811. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21812. esac
  21813. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21814. case $ac_mode in
  21815. :F)
  21816. #
  21817. # CONFIG_FILE
  21818. #
  21819. case $INSTALL in
  21820. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21821. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21822. esac
  21823. _ACEOF
  21824. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21825. # If the template does not know about datarootdir, expand it.
  21826. # FIXME: This hack should be removed a few years after 2.60.
  21827. ac_datarootdir_hack=; ac_datarootdir_seen=
  21828. ac_sed_dataroot='
  21829. /datarootdir/ {
  21830. p
  21831. q
  21832. }
  21833. /@datadir@/p
  21834. /@docdir@/p
  21835. /@infodir@/p
  21836. /@localedir@/p
  21837. /@mandir@/p'
  21838. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21839. *datarootdir*) ac_datarootdir_seen=yes;;
  21840. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21842. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21843. _ACEOF
  21844. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21845. ac_datarootdir_hack='
  21846. s&@datadir@&$datadir&g
  21847. s&@docdir@&$docdir&g
  21848. s&@infodir@&$infodir&g
  21849. s&@localedir@&$localedir&g
  21850. s&@mandir@&$mandir&g
  21851. s&\\\${datarootdir}&$datarootdir&g' ;;
  21852. esac
  21853. _ACEOF
  21854. # Neutralize VPATH when `$srcdir' = `.'.
  21855. # Shell code in configure.ac might set extrasub.
  21856. # FIXME: do we really want to maintain this feature?
  21857. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21858. ac_sed_extra="$ac_vpsub
  21859. $extrasub
  21860. _ACEOF
  21861. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21862. :t
  21863. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21864. s|@configure_input@|$ac_sed_conf_input|;t t
  21865. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21866. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  21867. s&@srcdir@&$ac_srcdir&;t t
  21868. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21869. s&@top_srcdir@&$ac_top_srcdir&;t t
  21870. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21871. s&@builddir@&$ac_builddir&;t t
  21872. s&@abs_builddir@&$ac_abs_builddir&;t t
  21873. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21874. s&@INSTALL@&$ac_INSTALL&;t t
  21875. $ac_datarootdir_hack
  21876. "
  21877. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  21878. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21879. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21880. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  21881. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  21882. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  21883. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21884. which seems to be undefined. Please make sure it is defined" >&5
  21885. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21886. which seems to be undefined. Please make sure it is defined" >&2;}
  21887. rm -f "$ac_tmp/stdin"
  21888. case $ac_file in
  21889. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  21890. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  21891. esac \
  21892. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21893. ;;
  21894. :H)
  21895. #
  21896. # CONFIG_HEADER
  21897. #
  21898. if test x"$ac_file" != x-; then
  21899. {
  21900. $as_echo "/* $configure_input */" \
  21901. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  21902. } >"$ac_tmp/config.h" \
  21903. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21904. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  21905. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  21906. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  21907. else
  21908. rm -f "$ac_file"
  21909. mv "$ac_tmp/config.h" "$ac_file" \
  21910. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21911. fi
  21912. else
  21913. $as_echo "/* $configure_input */" \
  21914. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  21915. || as_fn_error $? "could not create -" "$LINENO" 5
  21916. fi
  21917. ;;
  21918. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  21919. $as_echo "$as_me: executing $ac_file commands" >&6;}
  21920. ;;
  21921. esac
  21922. case $ac_file$ac_mode in
  21923. "libtool":C)
  21924. # See if we are running on zsh, and set the options which allow our
  21925. # commands through without removal of \ escapes.
  21926. if test -n "${ZSH_VERSION+set}" ; then
  21927. setopt NO_GLOB_SUBST
  21928. fi
  21929. cfgfile="${ofile}T"
  21930. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  21931. $RM "$cfgfile"
  21932. cat <<_LT_EOF >> "$cfgfile"
  21933. #! $SHELL
  21934. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  21935. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  21936. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  21937. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  21938. #
  21939. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  21940. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  21941. # Foundation, Inc.
  21942. # Written by Gordon Matzigkeit, 1996
  21943. #
  21944. # This file is part of GNU Libtool.
  21945. #
  21946. # GNU Libtool is free software; you can redistribute it and/or
  21947. # modify it under the terms of the GNU General Public License as
  21948. # published by the Free Software Foundation; either version 2 of
  21949. # the License, or (at your option) any later version.
  21950. #
  21951. # As a special exception to the GNU General Public License,
  21952. # if you distribute this file as part of a program or library that
  21953. # is built using GNU Libtool, you may include this file under the
  21954. # same distribution terms that you use for the rest of that program.
  21955. #
  21956. # GNU Libtool is distributed in the hope that it will be useful,
  21957. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21958. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21959. # GNU General Public License for more details.
  21960. #
  21961. # You should have received a copy of the GNU General Public License
  21962. # along with GNU Libtool; see the file COPYING. If not, a copy
  21963. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  21964. # obtained by writing to the Free Software Foundation, Inc.,
  21965. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21966. # The names of the tagged configurations supported by this script.
  21967. available_tags="CXX "
  21968. # ### BEGIN LIBTOOL CONFIG
  21969. # Which release of libtool.m4 was used?
  21970. macro_version=$macro_version
  21971. macro_revision=$macro_revision
  21972. # Assembler program.
  21973. AS=$lt_AS
  21974. # DLL creation program.
  21975. DLLTOOL=$lt_DLLTOOL
  21976. # Object dumper program.
  21977. OBJDUMP=$lt_OBJDUMP
  21978. # Whether or not to build shared libraries.
  21979. build_libtool_libs=$enable_shared
  21980. # Whether or not to build static libraries.
  21981. build_old_libs=$enable_static
  21982. # What type of objects to build.
  21983. pic_mode=$pic_mode
  21984. # Whether or not to optimize for fast installation.
  21985. fast_install=$enable_fast_install
  21986. # Shell to use when invoking shell scripts.
  21987. SHELL=$lt_SHELL
  21988. # An echo program that protects backslashes.
  21989. ECHO=$lt_ECHO
  21990. # The PATH separator for the build system.
  21991. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  21992. # The host system.
  21993. host_alias=$host_alias
  21994. host=$host
  21995. host_os=$host_os
  21996. # The build system.
  21997. build_alias=$build_alias
  21998. build=$build
  21999. build_os=$build_os
  22000. # A sed program that does not truncate output.
  22001. SED=$lt_SED
  22002. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22003. Xsed="\$SED -e 1s/^X//"
  22004. # A grep program that handles long lines.
  22005. GREP=$lt_GREP
  22006. # An ERE matcher.
  22007. EGREP=$lt_EGREP
  22008. # A literal string matcher.
  22009. FGREP=$lt_FGREP
  22010. # A BSD- or MS-compatible name lister.
  22011. NM=$lt_NM
  22012. # Whether we need soft or hard links.
  22013. LN_S=$lt_LN_S
  22014. # What is the maximum length of a command?
  22015. max_cmd_len=$max_cmd_len
  22016. # Object file suffix (normally "o").
  22017. objext=$ac_objext
  22018. # Executable file suffix (normally "").
  22019. exeext=$exeext
  22020. # whether the shell understands "unset".
  22021. lt_unset=$lt_unset
  22022. # turn spaces into newlines.
  22023. SP2NL=$lt_lt_SP2NL
  22024. # turn newlines into spaces.
  22025. NL2SP=$lt_lt_NL2SP
  22026. # convert \$build file names to \$host format.
  22027. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22028. # convert \$build files to toolchain format.
  22029. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22030. # Method to check whether dependent libraries are shared objects.
  22031. deplibs_check_method=$lt_deplibs_check_method
  22032. # Command to use when deplibs_check_method = "file_magic".
  22033. file_magic_cmd=$lt_file_magic_cmd
  22034. # How to find potential files when deplibs_check_method = "file_magic".
  22035. file_magic_glob=$lt_file_magic_glob
  22036. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22037. want_nocaseglob=$lt_want_nocaseglob
  22038. # Command to associate shared and link libraries.
  22039. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22040. # The archiver.
  22041. AR=$lt_AR
  22042. # Flags to create an archive.
  22043. AR_FLAGS=$lt_AR_FLAGS
  22044. # How to feed a file listing to the archiver.
  22045. archiver_list_spec=$lt_archiver_list_spec
  22046. # A symbol stripping program.
  22047. STRIP=$lt_STRIP
  22048. # Commands used to install an old-style archive.
  22049. RANLIB=$lt_RANLIB
  22050. old_postinstall_cmds=$lt_old_postinstall_cmds
  22051. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22052. # Whether to use a lock for old archive extraction.
  22053. lock_old_archive_extraction=$lock_old_archive_extraction
  22054. # A C compiler.
  22055. LTCC=$lt_CC
  22056. # LTCC compiler flags.
  22057. LTCFLAGS=$lt_CFLAGS
  22058. # Take the output of nm and produce a listing of raw symbols and C names.
  22059. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22060. # Transform the output of nm in a proper C declaration.
  22061. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22062. # Transform the output of nm in a C name address pair.
  22063. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22064. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22065. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22066. # Specify filename containing input files for \$NM.
  22067. nm_file_list_spec=$lt_nm_file_list_spec
  22068. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22069. lt_sysroot=$lt_sysroot
  22070. # The name of the directory that contains temporary libtool files.
  22071. objdir=$objdir
  22072. # Used to examine libraries when file_magic_cmd begins with "file".
  22073. MAGIC_CMD=$MAGIC_CMD
  22074. # Must we lock files when doing compilation?
  22075. need_locks=$lt_need_locks
  22076. # Manifest tool.
  22077. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22078. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22079. DSYMUTIL=$lt_DSYMUTIL
  22080. # Tool to change global to local symbols on Mac OS X.
  22081. NMEDIT=$lt_NMEDIT
  22082. # Tool to manipulate fat objects and archives on Mac OS X.
  22083. LIPO=$lt_LIPO
  22084. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22085. OTOOL=$lt_OTOOL
  22086. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22087. OTOOL64=$lt_OTOOL64
  22088. # Old archive suffix (normally "a").
  22089. libext=$libext
  22090. # Shared library suffix (normally ".so").
  22091. shrext_cmds=$lt_shrext_cmds
  22092. # The commands to extract the exported symbol list from a shared archive.
  22093. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22094. # Variables whose values should be saved in libtool wrapper scripts and
  22095. # restored at link time.
  22096. variables_saved_for_relink=$lt_variables_saved_for_relink
  22097. # Do we need the "lib" prefix for modules?
  22098. need_lib_prefix=$need_lib_prefix
  22099. # Do we need a version for libraries?
  22100. need_version=$need_version
  22101. # Library versioning type.
  22102. version_type=$version_type
  22103. # Shared library runtime path variable.
  22104. runpath_var=$runpath_var
  22105. # Shared library path variable.
  22106. shlibpath_var=$shlibpath_var
  22107. # Is shlibpath searched before the hard-coded library search path?
  22108. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22109. # Format of library name prefix.
  22110. libname_spec=$lt_libname_spec
  22111. # List of archive names. First name is the real one, the rest are links.
  22112. # The last name is the one that the linker finds with -lNAME
  22113. library_names_spec=$lt_library_names_spec
  22114. # The coded name of the library, if different from the real name.
  22115. soname_spec=$lt_soname_spec
  22116. # Permission mode override for installation of shared libraries.
  22117. install_override_mode=$lt_install_override_mode
  22118. # Command to use after installation of a shared archive.
  22119. postinstall_cmds=$lt_postinstall_cmds
  22120. # Command to use after uninstallation of a shared archive.
  22121. postuninstall_cmds=$lt_postuninstall_cmds
  22122. # Commands used to finish a libtool library installation in a directory.
  22123. finish_cmds=$lt_finish_cmds
  22124. # As "finish_cmds", except a single script fragment to be evaled but
  22125. # not shown.
  22126. finish_eval=$lt_finish_eval
  22127. # Whether we should hardcode library paths into libraries.
  22128. hardcode_into_libs=$hardcode_into_libs
  22129. # Compile-time system search path for libraries.
  22130. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22131. # Run-time system search path for libraries.
  22132. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22133. # Whether dlopen is supported.
  22134. dlopen_support=$enable_dlopen
  22135. # Whether dlopen of programs is supported.
  22136. dlopen_self=$enable_dlopen_self
  22137. # Whether dlopen of statically linked programs is supported.
  22138. dlopen_self_static=$enable_dlopen_self_static
  22139. # Commands to strip libraries.
  22140. old_striplib=$lt_old_striplib
  22141. striplib=$lt_striplib
  22142. # The linker used to build libraries.
  22143. LD=$lt_LD
  22144. # How to create reloadable object files.
  22145. reload_flag=$lt_reload_flag
  22146. reload_cmds=$lt_reload_cmds
  22147. # Commands used to build an old-style archive.
  22148. old_archive_cmds=$lt_old_archive_cmds
  22149. # A language specific compiler.
  22150. CC=$lt_compiler
  22151. # Is the compiler the GNU compiler?
  22152. with_gcc=$GCC
  22153. # Compiler flag to turn off builtin functions.
  22154. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22155. # Additional compiler flags for building library objects.
  22156. pic_flag=$lt_lt_prog_compiler_pic
  22157. # How to pass a linker flag through the compiler.
  22158. wl=$lt_lt_prog_compiler_wl
  22159. # Compiler flag to prevent dynamic linking.
  22160. link_static_flag=$lt_lt_prog_compiler_static
  22161. # Does compiler simultaneously support -c and -o options?
  22162. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22163. # Whether or not to add -lc for building shared libraries.
  22164. build_libtool_need_lc=$archive_cmds_need_lc
  22165. # Whether or not to disallow shared libs when runtime libs are static.
  22166. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22167. # Compiler flag to allow reflexive dlopens.
  22168. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22169. # Compiler flag to generate shared objects directly from archives.
  22170. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22171. # Whether the compiler copes with passing no objects directly.
  22172. compiler_needs_object=$lt_compiler_needs_object
  22173. # Create an old-style archive from a shared archive.
  22174. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22175. # Create a temporary old-style archive to link instead of a shared archive.
  22176. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22177. # Commands used to build a shared archive.
  22178. archive_cmds=$lt_archive_cmds
  22179. archive_expsym_cmds=$lt_archive_expsym_cmds
  22180. # Commands used to build a loadable module if different from building
  22181. # a shared archive.
  22182. module_cmds=$lt_module_cmds
  22183. module_expsym_cmds=$lt_module_expsym_cmds
  22184. # Whether we are building with GNU ld or not.
  22185. with_gnu_ld=$lt_with_gnu_ld
  22186. # Flag that allows shared libraries with undefined symbols to be built.
  22187. allow_undefined_flag=$lt_allow_undefined_flag
  22188. # Flag that enforces no undefined symbols.
  22189. no_undefined_flag=$lt_no_undefined_flag
  22190. # Flag to hardcode \$libdir into a binary during linking.
  22191. # This must work even if \$libdir does not exist
  22192. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22193. # Whether we need a single "-rpath" flag with a separated argument.
  22194. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22195. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22196. # DIR into the resulting binary.
  22197. hardcode_direct=$hardcode_direct
  22198. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22199. # DIR into the resulting binary and the resulting library dependency is
  22200. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22201. # library is relocated.
  22202. hardcode_direct_absolute=$hardcode_direct_absolute
  22203. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22204. # into the resulting binary.
  22205. hardcode_minus_L=$hardcode_minus_L
  22206. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22207. # into the resulting binary.
  22208. hardcode_shlibpath_var=$hardcode_shlibpath_var
  22209. # Set to "yes" if building a shared library automatically hardcodes DIR
  22210. # into the library and all subsequent libraries and executables linked
  22211. # against it.
  22212. hardcode_automatic=$hardcode_automatic
  22213. # Set to yes if linker adds runtime paths of dependent libraries
  22214. # to runtime path list.
  22215. inherit_rpath=$inherit_rpath
  22216. # Whether libtool must link a program against all its dependency libraries.
  22217. link_all_deplibs=$link_all_deplibs
  22218. # Set to "yes" if exported symbols are required.
  22219. always_export_symbols=$always_export_symbols
  22220. # The commands to list exported symbols.
  22221. export_symbols_cmds=$lt_export_symbols_cmds
  22222. # Symbols that should not be listed in the preloaded symbols.
  22223. exclude_expsyms=$lt_exclude_expsyms
  22224. # Symbols that must always be exported.
  22225. include_expsyms=$lt_include_expsyms
  22226. # Commands necessary for linking programs (against libraries) with templates.
  22227. prelink_cmds=$lt_prelink_cmds
  22228. # Commands necessary for finishing linking programs.
  22229. postlink_cmds=$lt_postlink_cmds
  22230. # Specify filename containing input files.
  22231. file_list_spec=$lt_file_list_spec
  22232. # How to hardcode a shared library path into an executable.
  22233. hardcode_action=$hardcode_action
  22234. # The directories searched by this compiler when creating a shared library.
  22235. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22236. # Dependencies to place before and after the objects being linked to
  22237. # create a shared library.
  22238. predep_objects=$lt_predep_objects
  22239. postdep_objects=$lt_postdep_objects
  22240. predeps=$lt_predeps
  22241. postdeps=$lt_postdeps
  22242. # The library search path used internally by the compiler when linking
  22243. # a shared library.
  22244. compiler_lib_search_path=$lt_compiler_lib_search_path
  22245. # ### END LIBTOOL CONFIG
  22246. _LT_EOF
  22247. case $host_os in
  22248. aix3*)
  22249. cat <<\_LT_EOF >> "$cfgfile"
  22250. # AIX sometimes has problems with the GCC collect2 program. For some
  22251. # reason, if we set the COLLECT_NAMES environment variable, the problems
  22252. # vanish in a puff of smoke.
  22253. if test "X${COLLECT_NAMES+set}" != Xset; then
  22254. COLLECT_NAMES=
  22255. export COLLECT_NAMES
  22256. fi
  22257. _LT_EOF
  22258. ;;
  22259. esac
  22260. ltmain="$ac_aux_dir/ltmain.sh"
  22261. # We use sed instead of cat because bash on DJGPP gets confused if
  22262. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  22263. # text mode, it properly converts lines to CR/LF. This bash problem
  22264. # is reportedly fixed, but why not run on old versions too?
  22265. sed '$q' "$ltmain" >> "$cfgfile" \
  22266. || (rm -f "$cfgfile"; exit 1)
  22267. if test x"$xsi_shell" = xyes; then
  22268. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  22269. func_dirname ()\
  22270. {\
  22271. \ case ${1} in\
  22272. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22273. \ * ) func_dirname_result="${3}" ;;\
  22274. \ esac\
  22275. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  22276. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22277. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22278. test 0 -eq $? || _lt_function_replace_fail=:
  22279. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  22280. func_basename ()\
  22281. {\
  22282. \ func_basename_result="${1##*/}"\
  22283. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22284. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22285. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22286. test 0 -eq $? || _lt_function_replace_fail=:
  22287. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  22288. func_dirname_and_basename ()\
  22289. {\
  22290. \ case ${1} in\
  22291. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22292. \ * ) func_dirname_result="${3}" ;;\
  22293. \ esac\
  22294. \ func_basename_result="${1##*/}"\
  22295. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22296. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22297. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22298. test 0 -eq $? || _lt_function_replace_fail=:
  22299. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  22300. func_stripname ()\
  22301. {\
  22302. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  22303. \ # positional parameters, so assign one to ordinary parameter first.\
  22304. \ func_stripname_result=${3}\
  22305. \ func_stripname_result=${func_stripname_result#"${1}"}\
  22306. \ func_stripname_result=${func_stripname_result%"${2}"}\
  22307. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  22308. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22309. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22310. test 0 -eq $? || _lt_function_replace_fail=:
  22311. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  22312. func_split_long_opt ()\
  22313. {\
  22314. \ func_split_long_opt_name=${1%%=*}\
  22315. \ func_split_long_opt_arg=${1#*=}\
  22316. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22317. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22318. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22319. test 0 -eq $? || _lt_function_replace_fail=:
  22320. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  22321. func_split_short_opt ()\
  22322. {\
  22323. \ func_split_short_opt_arg=${1#??}\
  22324. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  22325. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22326. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22327. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22328. test 0 -eq $? || _lt_function_replace_fail=:
  22329. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  22330. func_lo2o ()\
  22331. {\
  22332. \ case ${1} in\
  22333. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  22334. \ *) func_lo2o_result=${1} ;;\
  22335. \ esac\
  22336. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  22337. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22338. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22339. test 0 -eq $? || _lt_function_replace_fail=:
  22340. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  22341. func_xform ()\
  22342. {\
  22343. func_xform_result=${1%.*}.lo\
  22344. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  22345. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22346. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22347. test 0 -eq $? || _lt_function_replace_fail=:
  22348. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  22349. func_arith ()\
  22350. {\
  22351. func_arith_result=$(( $* ))\
  22352. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  22353. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22354. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22355. test 0 -eq $? || _lt_function_replace_fail=:
  22356. sed -e '/^func_len ()$/,/^} # func_len /c\
  22357. func_len ()\
  22358. {\
  22359. func_len_result=${#1}\
  22360. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  22361. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22362. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22363. test 0 -eq $? || _lt_function_replace_fail=:
  22364. fi
  22365. if test x"$lt_shell_append" = xyes; then
  22366. sed -e '/^func_append ()$/,/^} # func_append /c\
  22367. func_append ()\
  22368. {\
  22369. eval "${1}+=\\${2}"\
  22370. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  22371. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22372. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22373. test 0 -eq $? || _lt_function_replace_fail=:
  22374. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  22375. func_append_quoted ()\
  22376. {\
  22377. \ func_quote_for_eval "${2}"\
  22378. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  22379. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  22380. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22381. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22382. test 0 -eq $? || _lt_function_replace_fail=:
  22383. # Save a `func_append' function call where possible by direct use of '+='
  22384. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  22385. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22386. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22387. test 0 -eq $? || _lt_function_replace_fail=:
  22388. else
  22389. # Save a `func_append' function call even when '+=' is not available
  22390. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  22391. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22392. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22393. test 0 -eq $? || _lt_function_replace_fail=:
  22394. fi
  22395. if test x"$_lt_function_replace_fail" = x":"; then
  22396. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  22397. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  22398. fi
  22399. mv -f "$cfgfile" "$ofile" ||
  22400. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  22401. chmod +x "$ofile"
  22402. cat <<_LT_EOF >> "$ofile"
  22403. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  22404. # The linker used to build libraries.
  22405. LD=$lt_LD_CXX
  22406. # How to create reloadable object files.
  22407. reload_flag=$lt_reload_flag_CXX
  22408. reload_cmds=$lt_reload_cmds_CXX
  22409. # Commands used to build an old-style archive.
  22410. old_archive_cmds=$lt_old_archive_cmds_CXX
  22411. # A language specific compiler.
  22412. CC=$lt_compiler_CXX
  22413. # Is the compiler the GNU compiler?
  22414. with_gcc=$GCC_CXX
  22415. # Compiler flag to turn off builtin functions.
  22416. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  22417. # Additional compiler flags for building library objects.
  22418. pic_flag=$lt_lt_prog_compiler_pic_CXX
  22419. # How to pass a linker flag through the compiler.
  22420. wl=$lt_lt_prog_compiler_wl_CXX
  22421. # Compiler flag to prevent dynamic linking.
  22422. link_static_flag=$lt_lt_prog_compiler_static_CXX
  22423. # Does compiler simultaneously support -c and -o options?
  22424. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  22425. # Whether or not to add -lc for building shared libraries.
  22426. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  22427. # Whether or not to disallow shared libs when runtime libs are static.
  22428. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  22429. # Compiler flag to allow reflexive dlopens.
  22430. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  22431. # Compiler flag to generate shared objects directly from archives.
  22432. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  22433. # Whether the compiler copes with passing no objects directly.
  22434. compiler_needs_object=$lt_compiler_needs_object_CXX
  22435. # Create an old-style archive from a shared archive.
  22436. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  22437. # Create a temporary old-style archive to link instead of a shared archive.
  22438. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  22439. # Commands used to build a shared archive.
  22440. archive_cmds=$lt_archive_cmds_CXX
  22441. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  22442. # Commands used to build a loadable module if different from building
  22443. # a shared archive.
  22444. module_cmds=$lt_module_cmds_CXX
  22445. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  22446. # Whether we are building with GNU ld or not.
  22447. with_gnu_ld=$lt_with_gnu_ld_CXX
  22448. # Flag that allows shared libraries with undefined symbols to be built.
  22449. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  22450. # Flag that enforces no undefined symbols.
  22451. no_undefined_flag=$lt_no_undefined_flag_CXX
  22452. # Flag to hardcode \$libdir into a binary during linking.
  22453. # This must work even if \$libdir does not exist
  22454. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  22455. # Whether we need a single "-rpath" flag with a separated argument.
  22456. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  22457. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22458. # DIR into the resulting binary.
  22459. hardcode_direct=$hardcode_direct_CXX
  22460. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22461. # DIR into the resulting binary and the resulting library dependency is
  22462. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22463. # library is relocated.
  22464. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  22465. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22466. # into the resulting binary.
  22467. hardcode_minus_L=$hardcode_minus_L_CXX
  22468. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22469. # into the resulting binary.
  22470. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  22471. # Set to "yes" if building a shared library automatically hardcodes DIR
  22472. # into the library and all subsequent libraries and executables linked
  22473. # against it.
  22474. hardcode_automatic=$hardcode_automatic_CXX
  22475. # Set to yes if linker adds runtime paths of dependent libraries
  22476. # to runtime path list.
  22477. inherit_rpath=$inherit_rpath_CXX
  22478. # Whether libtool must link a program against all its dependency libraries.
  22479. link_all_deplibs=$link_all_deplibs_CXX
  22480. # Set to "yes" if exported symbols are required.
  22481. always_export_symbols=$always_export_symbols_CXX
  22482. # The commands to list exported symbols.
  22483. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  22484. # Symbols that should not be listed in the preloaded symbols.
  22485. exclude_expsyms=$lt_exclude_expsyms_CXX
  22486. # Symbols that must always be exported.
  22487. include_expsyms=$lt_include_expsyms_CXX
  22488. # Commands necessary for linking programs (against libraries) with templates.
  22489. prelink_cmds=$lt_prelink_cmds_CXX
  22490. # Commands necessary for finishing linking programs.
  22491. postlink_cmds=$lt_postlink_cmds_CXX
  22492. # Specify filename containing input files.
  22493. file_list_spec=$lt_file_list_spec_CXX
  22494. # How to hardcode a shared library path into an executable.
  22495. hardcode_action=$hardcode_action_CXX
  22496. # The directories searched by this compiler when creating a shared library.
  22497. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  22498. # Dependencies to place before and after the objects being linked to
  22499. # create a shared library.
  22500. predep_objects=$lt_predep_objects_CXX
  22501. postdep_objects=$lt_postdep_objects_CXX
  22502. predeps=$lt_predeps_CXX
  22503. postdeps=$lt_postdeps_CXX
  22504. # The library search path used internally by the compiler when linking
  22505. # a shared library.
  22506. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  22507. # ### END LIBTOOL TAG CONFIG: CXX
  22508. _LT_EOF
  22509. ;;
  22510. "sdl2_config":C) chmod a+x sdl2-config ;;
  22511. "summary":C) echo -en "$SUMMARY" ;;
  22512. esac
  22513. done # for ac_tag
  22514. as_fn_exit 0
  22515. _ACEOF
  22516. ac_clean_files=$ac_clean_files_save
  22517. test $ac_write_fail = 0 ||
  22518. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  22519. # configure is writing to config.log, and then calls config.status.
  22520. # config.status does its own redirection, appending to config.log.
  22521. # Unfortunately, on DOS this fails, as config.log is still kept open
  22522. # by configure, so config.status won't be able to write to it; its
  22523. # output is simply discarded. So we exec the FD to /dev/null,
  22524. # effectively closing config.log, so it can be properly (re)opened and
  22525. # appended to by config.status. When coming back to configure, we
  22526. # need to make the FD available again.
  22527. if test "$no_create" != yes; then
  22528. ac_cs_success=:
  22529. ac_config_status_args=
  22530. test "$silent" = yes &&
  22531. ac_config_status_args="$ac_config_status_args --quiet"
  22532. exec 5>/dev/null
  22533. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22534. exec 5>>config.log
  22535. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22536. # would make configure fail if this is the last instruction.
  22537. $ac_cs_success || as_fn_exit 1
  22538. fi
  22539. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22540. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22541. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22542. fi