configure 780 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622
  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_fusionsound
  770. enable_fusionsound_shared
  771. enable_diskaudio
  772. enable_dummyaudio
  773. enable_libsamplerate
  774. enable_libsamplerate_shared
  775. enable_video_wayland
  776. enable_video_wayland_qt_touch
  777. enable_wayland_shared
  778. enable_video_mir
  779. enable_mir_shared
  780. enable_video_x11
  781. with_x
  782. enable_x11_shared
  783. enable_video_x11_xcursor
  784. enable_video_x11_xdbe
  785. enable_video_x11_xinerama
  786. enable_video_x11_xinput
  787. enable_video_x11_xrandr
  788. enable_video_x11_scrnsaver
  789. enable_video_x11_xshape
  790. enable_video_x11_vm
  791. enable_video_vivante
  792. enable_video_cocoa
  793. enable_video_directfb
  794. enable_directfb_shared
  795. enable_video_dummy
  796. enable_video_opengl
  797. enable_video_opengles
  798. enable_video_opengles1
  799. enable_video_opengles2
  800. enable_libudev
  801. enable_dbus
  802. enable_ime
  803. enable_ibus
  804. enable_fcitx
  805. enable_input_tslib
  806. enable_pthreads
  807. enable_pthread_sem
  808. enable_directx
  809. enable_sdl_dlopen
  810. enable_clock_gettime
  811. enable_rpath
  812. enable_render_d3d
  813. '
  814. ac_precious_vars='build_alias
  815. host_alias
  816. target_alias
  817. CC
  818. CFLAGS
  819. LDFLAGS
  820. LIBS
  821. CPPFLAGS
  822. CPP
  823. CXX
  824. CXXFLAGS
  825. CCC
  826. CXXCPP
  827. XMKMF'
  828. # Initialize some variables set by options.
  829. ac_init_help=
  830. ac_init_version=false
  831. ac_unrecognized_opts=
  832. ac_unrecognized_sep=
  833. # The variables have the same names as the options, with
  834. # dashes changed to underlines.
  835. cache_file=/dev/null
  836. exec_prefix=NONE
  837. no_create=
  838. no_recursion=
  839. prefix=NONE
  840. program_prefix=NONE
  841. program_suffix=NONE
  842. program_transform_name=s,x,x,
  843. silent=
  844. site=
  845. srcdir=
  846. verbose=
  847. x_includes=NONE
  848. x_libraries=NONE
  849. # Installation directory options.
  850. # These are left unexpanded so users can "make install exec_prefix=/foo"
  851. # and all the variables that are supposed to be based on exec_prefix
  852. # by default will actually change.
  853. # Use braces instead of parens because sh, perl, etc. also accept them.
  854. # (The list follows the same order as the GNU Coding Standards.)
  855. bindir='${exec_prefix}/bin'
  856. sbindir='${exec_prefix}/sbin'
  857. libexecdir='${exec_prefix}/libexec'
  858. datarootdir='${prefix}/share'
  859. datadir='${datarootdir}'
  860. sysconfdir='${prefix}/etc'
  861. sharedstatedir='${prefix}/com'
  862. localstatedir='${prefix}/var'
  863. includedir='${prefix}/include'
  864. oldincludedir='/usr/include'
  865. docdir='${datarootdir}/doc/${PACKAGE}'
  866. infodir='${datarootdir}/info'
  867. htmldir='${docdir}'
  868. dvidir='${docdir}'
  869. pdfdir='${docdir}'
  870. psdir='${docdir}'
  871. libdir='${exec_prefix}/lib'
  872. localedir='${datarootdir}/locale'
  873. mandir='${datarootdir}/man'
  874. ac_prev=
  875. ac_dashdash=
  876. for ac_option
  877. do
  878. # If the previous option needs an argument, assign it.
  879. if test -n "$ac_prev"; then
  880. eval $ac_prev=\$ac_option
  881. ac_prev=
  882. continue
  883. fi
  884. case $ac_option in
  885. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  886. *=) ac_optarg= ;;
  887. *) ac_optarg=yes ;;
  888. esac
  889. # Accept the important Cygnus configure options, so we can diagnose typos.
  890. case $ac_dashdash$ac_option in
  891. --)
  892. ac_dashdash=yes ;;
  893. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  894. ac_prev=bindir ;;
  895. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  896. bindir=$ac_optarg ;;
  897. -build | --build | --buil | --bui | --bu)
  898. ac_prev=build_alias ;;
  899. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  900. build_alias=$ac_optarg ;;
  901. -cache-file | --cache-file | --cache-fil | --cache-fi \
  902. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  903. ac_prev=cache_file ;;
  904. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  905. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  906. cache_file=$ac_optarg ;;
  907. --config-cache | -C)
  908. cache_file=config.cache ;;
  909. -datadir | --datadir | --datadi | --datad)
  910. ac_prev=datadir ;;
  911. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  912. datadir=$ac_optarg ;;
  913. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  914. | --dataroo | --dataro | --datar)
  915. ac_prev=datarootdir ;;
  916. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  917. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  918. datarootdir=$ac_optarg ;;
  919. -disable-* | --disable-*)
  920. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  921. # Reject names that are not valid shell variable names.
  922. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  923. as_fn_error $? "invalid feature name: $ac_useropt"
  924. ac_useropt_orig=$ac_useropt
  925. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  926. case $ac_user_opts in
  927. *"
  928. "enable_$ac_useropt"
  929. "*) ;;
  930. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  931. ac_unrecognized_sep=', ';;
  932. esac
  933. eval enable_$ac_useropt=no ;;
  934. -docdir | --docdir | --docdi | --doc | --do)
  935. ac_prev=docdir ;;
  936. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  937. docdir=$ac_optarg ;;
  938. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  939. ac_prev=dvidir ;;
  940. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  941. dvidir=$ac_optarg ;;
  942. -enable-* | --enable-*)
  943. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  944. # Reject names that are not valid shell variable names.
  945. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  946. as_fn_error $? "invalid feature name: $ac_useropt"
  947. ac_useropt_orig=$ac_useropt
  948. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  949. case $ac_user_opts in
  950. *"
  951. "enable_$ac_useropt"
  952. "*) ;;
  953. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  954. ac_unrecognized_sep=', ';;
  955. esac
  956. eval enable_$ac_useropt=\$ac_optarg ;;
  957. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  958. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  959. | --exec | --exe | --ex)
  960. ac_prev=exec_prefix ;;
  961. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  962. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  963. | --exec=* | --exe=* | --ex=*)
  964. exec_prefix=$ac_optarg ;;
  965. -gas | --gas | --ga | --g)
  966. # Obsolete; use --with-gas.
  967. with_gas=yes ;;
  968. -help | --help | --hel | --he | -h)
  969. ac_init_help=long ;;
  970. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  971. ac_init_help=recursive ;;
  972. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  973. ac_init_help=short ;;
  974. -host | --host | --hos | --ho)
  975. ac_prev=host_alias ;;
  976. -host=* | --host=* | --hos=* | --ho=*)
  977. host_alias=$ac_optarg ;;
  978. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  979. ac_prev=htmldir ;;
  980. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  981. | --ht=*)
  982. htmldir=$ac_optarg ;;
  983. -includedir | --includedir | --includedi | --included | --include \
  984. | --includ | --inclu | --incl | --inc)
  985. ac_prev=includedir ;;
  986. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  987. | --includ=* | --inclu=* | --incl=* | --inc=*)
  988. includedir=$ac_optarg ;;
  989. -infodir | --infodir | --infodi | --infod | --info | --inf)
  990. ac_prev=infodir ;;
  991. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  992. infodir=$ac_optarg ;;
  993. -libdir | --libdir | --libdi | --libd)
  994. ac_prev=libdir ;;
  995. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  996. libdir=$ac_optarg ;;
  997. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  998. | --libexe | --libex | --libe)
  999. ac_prev=libexecdir ;;
  1000. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1001. | --libexe=* | --libex=* | --libe=*)
  1002. libexecdir=$ac_optarg ;;
  1003. -localedir | --localedir | --localedi | --localed | --locale)
  1004. ac_prev=localedir ;;
  1005. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1006. localedir=$ac_optarg ;;
  1007. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1008. | --localstate | --localstat | --localsta | --localst | --locals)
  1009. ac_prev=localstatedir ;;
  1010. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1011. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1012. localstatedir=$ac_optarg ;;
  1013. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1014. ac_prev=mandir ;;
  1015. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1016. mandir=$ac_optarg ;;
  1017. -nfp | --nfp | --nf)
  1018. # Obsolete; use --without-fp.
  1019. with_fp=no ;;
  1020. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1021. | --no-cr | --no-c | -n)
  1022. no_create=yes ;;
  1023. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1024. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1025. no_recursion=yes ;;
  1026. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1027. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1028. | --oldin | --oldi | --old | --ol | --o)
  1029. ac_prev=oldincludedir ;;
  1030. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1031. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1032. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1033. oldincludedir=$ac_optarg ;;
  1034. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1035. ac_prev=prefix ;;
  1036. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1037. prefix=$ac_optarg ;;
  1038. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1039. | --program-pre | --program-pr | --program-p)
  1040. ac_prev=program_prefix ;;
  1041. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1042. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1043. program_prefix=$ac_optarg ;;
  1044. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1045. | --program-suf | --program-su | --program-s)
  1046. ac_prev=program_suffix ;;
  1047. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1048. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1049. program_suffix=$ac_optarg ;;
  1050. -program-transform-name | --program-transform-name \
  1051. | --program-transform-nam | --program-transform-na \
  1052. | --program-transform-n | --program-transform- \
  1053. | --program-transform | --program-transfor \
  1054. | --program-transfo | --program-transf \
  1055. | --program-trans | --program-tran \
  1056. | --progr-tra | --program-tr | --program-t)
  1057. ac_prev=program_transform_name ;;
  1058. -program-transform-name=* | --program-transform-name=* \
  1059. | --program-transform-nam=* | --program-transform-na=* \
  1060. | --program-transform-n=* | --program-transform-=* \
  1061. | --program-transform=* | --program-transfor=* \
  1062. | --program-transfo=* | --program-transf=* \
  1063. | --program-trans=* | --program-tran=* \
  1064. | --progr-tra=* | --program-tr=* | --program-t=*)
  1065. program_transform_name=$ac_optarg ;;
  1066. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1067. ac_prev=pdfdir ;;
  1068. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1069. pdfdir=$ac_optarg ;;
  1070. -psdir | --psdir | --psdi | --psd | --ps)
  1071. ac_prev=psdir ;;
  1072. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1073. psdir=$ac_optarg ;;
  1074. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1075. | -silent | --silent | --silen | --sile | --sil)
  1076. silent=yes ;;
  1077. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1078. ac_prev=sbindir ;;
  1079. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1080. | --sbi=* | --sb=*)
  1081. sbindir=$ac_optarg ;;
  1082. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1083. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1084. | --sharedst | --shareds | --shared | --share | --shar \
  1085. | --sha | --sh)
  1086. ac_prev=sharedstatedir ;;
  1087. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1088. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1089. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1090. | --sha=* | --sh=*)
  1091. sharedstatedir=$ac_optarg ;;
  1092. -site | --site | --sit)
  1093. ac_prev=site ;;
  1094. -site=* | --site=* | --sit=*)
  1095. site=$ac_optarg ;;
  1096. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1097. ac_prev=srcdir ;;
  1098. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1099. srcdir=$ac_optarg ;;
  1100. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1101. | --syscon | --sysco | --sysc | --sys | --sy)
  1102. ac_prev=sysconfdir ;;
  1103. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1104. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1105. sysconfdir=$ac_optarg ;;
  1106. -target | --target | --targe | --targ | --tar | --ta | --t)
  1107. ac_prev=target_alias ;;
  1108. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1109. target_alias=$ac_optarg ;;
  1110. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1111. verbose=yes ;;
  1112. -version | --version | --versio | --versi | --vers | -V)
  1113. ac_init_version=: ;;
  1114. -with-* | --with-*)
  1115. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1116. # Reject names that are not valid shell variable names.
  1117. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1118. as_fn_error $? "invalid package name: $ac_useropt"
  1119. ac_useropt_orig=$ac_useropt
  1120. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1121. case $ac_user_opts in
  1122. *"
  1123. "with_$ac_useropt"
  1124. "*) ;;
  1125. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1126. ac_unrecognized_sep=', ';;
  1127. esac
  1128. eval with_$ac_useropt=\$ac_optarg ;;
  1129. -without-* | --without-*)
  1130. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1131. # Reject names that are not valid shell variable names.
  1132. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1133. as_fn_error $? "invalid package name: $ac_useropt"
  1134. ac_useropt_orig=$ac_useropt
  1135. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1136. case $ac_user_opts in
  1137. *"
  1138. "with_$ac_useropt"
  1139. "*) ;;
  1140. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1141. ac_unrecognized_sep=', ';;
  1142. esac
  1143. eval with_$ac_useropt=no ;;
  1144. --x)
  1145. # Obsolete; use --with-x.
  1146. with_x=yes ;;
  1147. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1148. | --x-incl | --x-inc | --x-in | --x-i)
  1149. ac_prev=x_includes ;;
  1150. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1151. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1152. x_includes=$ac_optarg ;;
  1153. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1154. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1155. ac_prev=x_libraries ;;
  1156. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1157. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1158. x_libraries=$ac_optarg ;;
  1159. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1160. Try \`$0 --help' for more information"
  1161. ;;
  1162. *=*)
  1163. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1164. # Reject names that are not valid shell variable names.
  1165. case $ac_envvar in #(
  1166. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1167. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1168. esac
  1169. eval $ac_envvar=\$ac_optarg
  1170. export $ac_envvar ;;
  1171. *)
  1172. # FIXME: should be removed in autoconf 3.0.
  1173. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1174. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1175. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1176. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1177. ;;
  1178. esac
  1179. done
  1180. if test -n "$ac_prev"; then
  1181. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1182. as_fn_error $? "missing argument to $ac_option"
  1183. fi
  1184. if test -n "$ac_unrecognized_opts"; then
  1185. case $enable_option_checking in
  1186. no) ;;
  1187. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1188. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1189. esac
  1190. fi
  1191. # Check all directory arguments for consistency.
  1192. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1193. datadir sysconfdir sharedstatedir localstatedir includedir \
  1194. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1195. libdir localedir mandir
  1196. do
  1197. eval ac_val=\$$ac_var
  1198. # Remove trailing slashes.
  1199. case $ac_val in
  1200. */ )
  1201. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1202. eval $ac_var=\$ac_val;;
  1203. esac
  1204. # Be sure to have absolute directory names.
  1205. case $ac_val in
  1206. [\\/$]* | ?:[\\/]* ) continue;;
  1207. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1208. esac
  1209. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1210. done
  1211. # There might be people who depend on the old broken behavior: `$host'
  1212. # used to hold the argument of --host etc.
  1213. # FIXME: To remove some day.
  1214. build=$build_alias
  1215. host=$host_alias
  1216. target=$target_alias
  1217. # FIXME: To remove some day.
  1218. if test "x$host_alias" != x; then
  1219. if test "x$build_alias" = x; then
  1220. cross_compiling=maybe
  1221. elif test "x$build_alias" != "x$host_alias"; then
  1222. cross_compiling=yes
  1223. fi
  1224. fi
  1225. ac_tool_prefix=
  1226. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1227. test "$silent" = yes && exec 6>/dev/null
  1228. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1229. ac_ls_di=`ls -di .` &&
  1230. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1231. as_fn_error $? "working directory cannot be determined"
  1232. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1233. as_fn_error $? "pwd does not report name of working directory"
  1234. # Find the source files, if location was not specified.
  1235. if test -z "$srcdir"; then
  1236. ac_srcdir_defaulted=yes
  1237. # Try the directory containing this script, then the parent directory.
  1238. ac_confdir=`$as_dirname -- "$as_myself" ||
  1239. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1240. X"$as_myself" : 'X\(//\)[^/]' \| \
  1241. X"$as_myself" : 'X\(//\)$' \| \
  1242. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1243. $as_echo X"$as_myself" |
  1244. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1245. s//\1/
  1246. q
  1247. }
  1248. /^X\(\/\/\)[^/].*/{
  1249. s//\1/
  1250. q
  1251. }
  1252. /^X\(\/\/\)$/{
  1253. s//\1/
  1254. q
  1255. }
  1256. /^X\(\/\).*/{
  1257. s//\1/
  1258. q
  1259. }
  1260. s/.*/./; q'`
  1261. srcdir=$ac_confdir
  1262. if test ! -r "$srcdir/$ac_unique_file"; then
  1263. srcdir=..
  1264. fi
  1265. else
  1266. ac_srcdir_defaulted=no
  1267. fi
  1268. if test ! -r "$srcdir/$ac_unique_file"; then
  1269. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1270. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1271. fi
  1272. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1273. ac_abs_confdir=`(
  1274. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1275. pwd)`
  1276. # When building in place, set srcdir=.
  1277. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1278. srcdir=.
  1279. fi
  1280. # Remove unnecessary trailing slashes from srcdir.
  1281. # Double slashes in file names in object file debugging info
  1282. # mess up M-x gdb in Emacs.
  1283. case $srcdir in
  1284. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1285. esac
  1286. for ac_var in $ac_precious_vars; do
  1287. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1288. eval ac_env_${ac_var}_value=\$${ac_var}
  1289. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1290. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1291. done
  1292. #
  1293. # Report the --help message.
  1294. #
  1295. if test "$ac_init_help" = "long"; then
  1296. # Omit some internal or obsolete options to make the list less imposing.
  1297. # This message is too long to be a string in the A/UX 3.1 sh.
  1298. cat <<_ACEOF
  1299. \`configure' configures this package to adapt to many kinds of systems.
  1300. Usage: $0 [OPTION]... [VAR=VALUE]...
  1301. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1302. VAR=VALUE. See below for descriptions of some of the useful variables.
  1303. Defaults for the options are specified in brackets.
  1304. Configuration:
  1305. -h, --help display this help and exit
  1306. --help=short display options specific to this package
  1307. --help=recursive display the short help of all the included packages
  1308. -V, --version display version information and exit
  1309. -q, --quiet, --silent do not print \`checking ...' messages
  1310. --cache-file=FILE cache test results in FILE [disabled]
  1311. -C, --config-cache alias for \`--cache-file=config.cache'
  1312. -n, --no-create do not create output files
  1313. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1314. Installation directories:
  1315. --prefix=PREFIX install architecture-independent files in PREFIX
  1316. [$ac_default_prefix]
  1317. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1318. [PREFIX]
  1319. By default, \`make install' will install all the files in
  1320. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1321. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1322. for instance \`--prefix=\$HOME'.
  1323. For better control, use the options below.
  1324. Fine tuning of the installation directories:
  1325. --bindir=DIR user executables [EPREFIX/bin]
  1326. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1327. --libexecdir=DIR program executables [EPREFIX/libexec]
  1328. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1329. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1330. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1331. --libdir=DIR object code libraries [EPREFIX/lib]
  1332. --includedir=DIR C header files [PREFIX/include]
  1333. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1334. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1335. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1336. --infodir=DIR info documentation [DATAROOTDIR/info]
  1337. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1338. --mandir=DIR man documentation [DATAROOTDIR/man]
  1339. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1340. --htmldir=DIR html documentation [DOCDIR]
  1341. --dvidir=DIR dvi documentation [DOCDIR]
  1342. --pdfdir=DIR pdf documentation [DOCDIR]
  1343. --psdir=DIR ps documentation [DOCDIR]
  1344. _ACEOF
  1345. cat <<\_ACEOF
  1346. X features:
  1347. --x-includes=DIR X include files are in DIR
  1348. --x-libraries=DIR X library files are in DIR
  1349. System types:
  1350. --build=BUILD configure for building on BUILD [guessed]
  1351. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1352. _ACEOF
  1353. fi
  1354. if test -n "$ac_init_help"; then
  1355. cat <<\_ACEOF
  1356. Optional Features:
  1357. --disable-option-checking ignore unrecognized --enable/--with options
  1358. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1359. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1360. --enable-shared[=PKGS] build shared libraries [default=yes]
  1361. --enable-static[=PKGS] build static libraries [default=yes]
  1362. --enable-fast-install[=PKGS]
  1363. optimize for fast installation [default=yes]
  1364. --disable-libtool-lock avoid locking (might break parallel builds)
  1365. --enable-assertions Enable internal sanity checks
  1366. (auto/disabled/release/enabled/paranoid)
  1367. [[default=auto]]
  1368. --enable-dependency-tracking
  1369. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1370. --enable-libc Use the system C library [[default=yes]]
  1371. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1372. --enable-atomic Enable the atomic operations subsystem
  1373. [[default=yes]]
  1374. --enable-audio Enable the audio subsystem [[default=yes]]
  1375. --enable-video Enable the video subsystem [[default=yes]]
  1376. --enable-render Enable the render subsystem [[default=yes]]
  1377. --enable-events Enable the events subsystem [[default=yes]]
  1378. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1379. --enable-haptic Enable the haptic (force feedback) subsystem
  1380. [[default=yes]]
  1381. --enable-power Enable the power subsystem [[default=yes]]
  1382. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1383. --enable-threads Enable the threading subsystem [[default=yes]]
  1384. --enable-timers Enable the timer subsystem [[default=yes]]
  1385. --enable-file Enable the file subsystem [[default=yes]]
  1386. --enable-loadso Enable the shared object loading subsystem
  1387. [[default=yes]]
  1388. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1389. --enable-assembly Enable assembly routines [[default=yes]]
  1390. --enable-ssemath Allow GCC to use SSE floating point math
  1391. [[default=no]]
  1392. --enable-mmx use MMX assembly routines [[default=yes]]
  1393. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1394. --enable-sse use SSE assembly routines [[default=yes]]
  1395. --enable-sse2 use SSE2 assembly routines [[default=no]]
  1396. --enable-altivec use Altivec assembly routines [[default=yes]]
  1397. --enable-oss support the OSS audio API [[default=maybe]]
  1398. --enable-alsa support the ALSA audio API [[default=yes]]
  1399. --disable-alsatest Do not try to compile and run a test Alsa program
  1400. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1401. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1402. --disable-esdtest Do not try to compile and run a test ESD program
  1403. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1404. --enable-pulseaudio use PulseAudio [[default=yes]]
  1405. --enable-pulseaudio-shared
  1406. dynamically load PulseAudio support [[default=yes]]
  1407. --enable-arts support the Analog Real Time Synthesizer
  1408. [[default=yes]]
  1409. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1410. --enable-nas support the NAS audio API [[default=yes]]
  1411. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1412. --enable-sndio support the sndio audio API [[default=yes]]
  1413. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1414. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1415. --enable-fusionsound-shared
  1416. dynamically load fusionsound audio support
  1417. [[default=yes]]
  1418. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1419. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1420. --enable-libsamplerate use libsamplerate for audio rate conversion
  1421. [[default=yes]]
  1422. --enable-libsamplerate-shared
  1423. dynamically load libsamplerate [[default=yes]]
  1424. --enable-video-wayland use Wayland video driver [[default=yes]]
  1425. --enable-video-wayland-qt-touch
  1426. QtWayland server support for Wayland video driver
  1427. [[default=yes]]
  1428. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1429. --enable-video-mir use Mir video driver [[default=yes]]
  1430. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1431. --enable-video-x11 use X11 video driver [[default=yes]]
  1432. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1433. --enable-video-x11-xcursor
  1434. enable X11 Xcursor support [[default=yes]]
  1435. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1436. --enable-video-x11-xinerama
  1437. enable X11 Xinerama support [[default=yes]]
  1438. --enable-video-x11-xinput
  1439. enable X11 XInput extension for manymouse, tablets,
  1440. etc [[default=yes]]
  1441. --enable-video-x11-xrandr
  1442. enable X11 Xrandr extension for fullscreen
  1443. [[default=yes]]
  1444. --enable-video-x11-scrnsaver
  1445. enable X11 screensaver extension [[default=yes]]
  1446. --enable-video-x11-xshape
  1447. enable X11 XShape support [[default=yes]]
  1448. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1449. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1450. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1451. --enable-video-directfb use DirectFB video driver [[default=no]]
  1452. --enable-directfb-shared
  1453. dynamically load directfb support [[default=yes]]
  1454. --enable-video-dummy use dummy video driver [[default=yes]]
  1455. --enable-video-opengl include OpenGL support [[default=yes]]
  1456. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1457. --enable-video-opengles1
  1458. include OpenGL ES 1.1 support [[default=yes]]
  1459. --enable-video-opengles2
  1460. include OpenGL ES 2.0 support [[default=yes]]
  1461. --enable-libudev enable libudev support [[default=yes]]
  1462. --enable-dbus enable D-Bus support [[default=yes]]
  1463. --enable-ime enable IME support [[default=yes]]
  1464. --enable-ibus enable IBus support [[default=yes]]
  1465. --enable-fcitx enable fcitx support [[default=yes]]
  1466. --enable-input-tslib use the Touchscreen library for input
  1467. [[default=yes]]
  1468. --enable-pthreads use POSIX threads for multi-threading
  1469. [[default=yes]]
  1470. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1471. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1472. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1473. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1474. UNIX [[default=yes]]
  1475. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1476. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1477. Optional Packages:
  1478. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1479. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1480. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1481. both]
  1482. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1483. --with-sysroot=DIR Search for dependent libraries within DIR
  1484. (or the compiler's sysroot if not specified).
  1485. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1486. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1487. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1488. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1489. --with-x use the X Window System
  1490. Some influential environment variables:
  1491. CC C compiler command
  1492. CFLAGS C compiler flags
  1493. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1494. nonstandard directory <lib dir>
  1495. LIBS libraries to pass to the linker, e.g. -l<library>
  1496. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1497. you have headers in a nonstandard directory <include dir>
  1498. CPP C preprocessor
  1499. CXX C++ compiler command
  1500. CXXFLAGS C++ compiler flags
  1501. CXXCPP C++ preprocessor
  1502. XMKMF Path to xmkmf, Makefile generator for X Window System
  1503. Use these variables to override the choices made by `configure' or to help
  1504. it to find libraries and programs with nonstandard names/locations.
  1505. Report bugs to the package provider.
  1506. _ACEOF
  1507. ac_status=$?
  1508. fi
  1509. if test "$ac_init_help" = "recursive"; then
  1510. # If there are subdirs, report their specific --help.
  1511. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1512. test -d "$ac_dir" ||
  1513. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1514. continue
  1515. ac_builddir=.
  1516. case "$ac_dir" in
  1517. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1518. *)
  1519. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1520. # A ".." for each directory in $ac_dir_suffix.
  1521. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1522. case $ac_top_builddir_sub in
  1523. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1524. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1525. esac ;;
  1526. esac
  1527. ac_abs_top_builddir=$ac_pwd
  1528. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1529. # for backward compatibility:
  1530. ac_top_builddir=$ac_top_build_prefix
  1531. case $srcdir in
  1532. .) # We are building in place.
  1533. ac_srcdir=.
  1534. ac_top_srcdir=$ac_top_builddir_sub
  1535. ac_abs_top_srcdir=$ac_pwd ;;
  1536. [\\/]* | ?:[\\/]* ) # Absolute name.
  1537. ac_srcdir=$srcdir$ac_dir_suffix;
  1538. ac_top_srcdir=$srcdir
  1539. ac_abs_top_srcdir=$srcdir ;;
  1540. *) # Relative name.
  1541. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1542. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1543. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1544. esac
  1545. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1546. cd "$ac_dir" || { ac_status=$?; continue; }
  1547. # Check for guested configure.
  1548. if test -f "$ac_srcdir/configure.gnu"; then
  1549. echo &&
  1550. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1551. elif test -f "$ac_srcdir/configure"; then
  1552. echo &&
  1553. $SHELL "$ac_srcdir/configure" --help=recursive
  1554. else
  1555. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1556. fi || ac_status=$?
  1557. cd "$ac_pwd" || { ac_status=$?; break; }
  1558. done
  1559. fi
  1560. test -n "$ac_init_help" && exit $ac_status
  1561. if $ac_init_version; then
  1562. cat <<\_ACEOF
  1563. configure
  1564. generated by GNU Autoconf 2.69
  1565. Copyright (C) 2012 Free Software Foundation, Inc.
  1566. This configure script is free software; the Free Software Foundation
  1567. gives unlimited permission to copy, distribute and modify it.
  1568. _ACEOF
  1569. exit
  1570. fi
  1571. ## ------------------------ ##
  1572. ## Autoconf initialization. ##
  1573. ## ------------------------ ##
  1574. # ac_fn_c_try_compile LINENO
  1575. # --------------------------
  1576. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1577. ac_fn_c_try_compile ()
  1578. {
  1579. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1580. rm -f conftest.$ac_objext
  1581. if { { ac_try="$ac_compile"
  1582. case "(($ac_try" in
  1583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1584. *) ac_try_echo=$ac_try;;
  1585. esac
  1586. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1587. $as_echo "$ac_try_echo"; } >&5
  1588. (eval "$ac_compile") 2>conftest.err
  1589. ac_status=$?
  1590. if test -s conftest.err; then
  1591. grep -v '^ *+' conftest.err >conftest.er1
  1592. cat conftest.er1 >&5
  1593. mv -f conftest.er1 conftest.err
  1594. fi
  1595. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1596. test $ac_status = 0; } && {
  1597. test -z "$ac_c_werror_flag" ||
  1598. test ! -s conftest.err
  1599. } && test -s conftest.$ac_objext; then :
  1600. ac_retval=0
  1601. else
  1602. $as_echo "$as_me: failed program was:" >&5
  1603. sed 's/^/| /' conftest.$ac_ext >&5
  1604. ac_retval=1
  1605. fi
  1606. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1607. as_fn_set_status $ac_retval
  1608. } # ac_fn_c_try_compile
  1609. # ac_fn_c_try_link LINENO
  1610. # -----------------------
  1611. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1612. ac_fn_c_try_link ()
  1613. {
  1614. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1615. rm -f conftest.$ac_objext conftest$ac_exeext
  1616. if { { ac_try="$ac_link"
  1617. case "(($ac_try" in
  1618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1619. *) ac_try_echo=$ac_try;;
  1620. esac
  1621. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1622. $as_echo "$ac_try_echo"; } >&5
  1623. (eval "$ac_link") 2>conftest.err
  1624. ac_status=$?
  1625. if test -s conftest.err; then
  1626. grep -v '^ *+' conftest.err >conftest.er1
  1627. cat conftest.er1 >&5
  1628. mv -f conftest.er1 conftest.err
  1629. fi
  1630. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1631. test $ac_status = 0; } && {
  1632. test -z "$ac_c_werror_flag" ||
  1633. test ! -s conftest.err
  1634. } && test -s conftest$ac_exeext && {
  1635. test "$cross_compiling" = yes ||
  1636. test -x conftest$ac_exeext
  1637. }; then :
  1638. ac_retval=0
  1639. else
  1640. $as_echo "$as_me: failed program was:" >&5
  1641. sed 's/^/| /' conftest.$ac_ext >&5
  1642. ac_retval=1
  1643. fi
  1644. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1645. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1646. # interfere with the next link command; also delete a directory that is
  1647. # left behind by Apple's compiler. We do this before executing the actions.
  1648. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1649. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1650. as_fn_set_status $ac_retval
  1651. } # ac_fn_c_try_link
  1652. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1653. # -------------------------------------------------------
  1654. # Tests whether HEADER exists and can be compiled using the include files in
  1655. # INCLUDES, setting the cache variable VAR accordingly.
  1656. ac_fn_c_check_header_compile ()
  1657. {
  1658. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1660. $as_echo_n "checking for $2... " >&6; }
  1661. if eval \${$3+:} false; then :
  1662. $as_echo_n "(cached) " >&6
  1663. else
  1664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1665. /* end confdefs.h. */
  1666. $4
  1667. #include <$2>
  1668. _ACEOF
  1669. if ac_fn_c_try_compile "$LINENO"; then :
  1670. eval "$3=yes"
  1671. else
  1672. eval "$3=no"
  1673. fi
  1674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1675. fi
  1676. eval ac_res=\$$3
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1678. $as_echo "$ac_res" >&6; }
  1679. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1680. } # ac_fn_c_check_header_compile
  1681. # ac_fn_c_try_cpp LINENO
  1682. # ----------------------
  1683. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1684. ac_fn_c_try_cpp ()
  1685. {
  1686. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1687. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1688. case "(($ac_try" in
  1689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1690. *) ac_try_echo=$ac_try;;
  1691. esac
  1692. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1693. $as_echo "$ac_try_echo"; } >&5
  1694. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1695. ac_status=$?
  1696. if test -s conftest.err; then
  1697. grep -v '^ *+' conftest.err >conftest.er1
  1698. cat conftest.er1 >&5
  1699. mv -f conftest.er1 conftest.err
  1700. fi
  1701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1702. test $ac_status = 0; } > conftest.i && {
  1703. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1704. test ! -s conftest.err
  1705. }; then :
  1706. ac_retval=0
  1707. else
  1708. $as_echo "$as_me: failed program was:" >&5
  1709. sed 's/^/| /' conftest.$ac_ext >&5
  1710. ac_retval=1
  1711. fi
  1712. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1713. as_fn_set_status $ac_retval
  1714. } # ac_fn_c_try_cpp
  1715. # ac_fn_c_try_run LINENO
  1716. # ----------------------
  1717. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1718. # that executables *can* be run.
  1719. ac_fn_c_try_run ()
  1720. {
  1721. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1722. if { { ac_try="$ac_link"
  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_link") 2>&5
  1730. ac_status=$?
  1731. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1732. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1733. { { case "(($ac_try" in
  1734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1735. *) ac_try_echo=$ac_try;;
  1736. esac
  1737. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1738. $as_echo "$ac_try_echo"; } >&5
  1739. (eval "$ac_try") 2>&5
  1740. ac_status=$?
  1741. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1742. test $ac_status = 0; }; }; then :
  1743. ac_retval=0
  1744. else
  1745. $as_echo "$as_me: program exited with status $ac_status" >&5
  1746. $as_echo "$as_me: failed program was:" >&5
  1747. sed 's/^/| /' conftest.$ac_ext >&5
  1748. ac_retval=$ac_status
  1749. fi
  1750. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1751. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1752. as_fn_set_status $ac_retval
  1753. } # ac_fn_c_try_run
  1754. # ac_fn_c_check_func LINENO FUNC VAR
  1755. # ----------------------------------
  1756. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1757. ac_fn_c_check_func ()
  1758. {
  1759. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1761. $as_echo_n "checking for $2... " >&6; }
  1762. if eval \${$3+:} false; then :
  1763. $as_echo_n "(cached) " >&6
  1764. else
  1765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1766. /* end confdefs.h. */
  1767. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1768. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1769. #define $2 innocuous_$2
  1770. /* System header to define __stub macros and hopefully few prototypes,
  1771. which can conflict with char $2 (); below.
  1772. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1773. <limits.h> exists even on freestanding compilers. */
  1774. #ifdef __STDC__
  1775. # include <limits.h>
  1776. #else
  1777. # include <assert.h>
  1778. #endif
  1779. #undef $2
  1780. /* Override any GCC internal prototype to avoid an error.
  1781. Use char because int might match the return type of a GCC
  1782. builtin and then its argument prototype would still apply. */
  1783. #ifdef __cplusplus
  1784. extern "C"
  1785. #endif
  1786. char $2 ();
  1787. /* The GNU C library defines this for functions which it implements
  1788. to always fail with ENOSYS. Some functions are actually named
  1789. something starting with __ and the normal name is an alias. */
  1790. #if defined __stub_$2 || defined __stub___$2
  1791. choke me
  1792. #endif
  1793. int
  1794. main ()
  1795. {
  1796. return $2 ();
  1797. ;
  1798. return 0;
  1799. }
  1800. _ACEOF
  1801. if ac_fn_c_try_link "$LINENO"; then :
  1802. eval "$3=yes"
  1803. else
  1804. eval "$3=no"
  1805. fi
  1806. rm -f core conftest.err conftest.$ac_objext \
  1807. conftest$ac_exeext conftest.$ac_ext
  1808. fi
  1809. eval ac_res=\$$3
  1810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1811. $as_echo "$ac_res" >&6; }
  1812. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1813. } # ac_fn_c_check_func
  1814. # ac_fn_cxx_try_compile LINENO
  1815. # ----------------------------
  1816. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1817. ac_fn_cxx_try_compile ()
  1818. {
  1819. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1820. rm -f conftest.$ac_objext
  1821. if { { ac_try="$ac_compile"
  1822. case "(($ac_try" in
  1823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1824. *) ac_try_echo=$ac_try;;
  1825. esac
  1826. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1827. $as_echo "$ac_try_echo"; } >&5
  1828. (eval "$ac_compile") 2>conftest.err
  1829. ac_status=$?
  1830. if test -s conftest.err; then
  1831. grep -v '^ *+' conftest.err >conftest.er1
  1832. cat conftest.er1 >&5
  1833. mv -f conftest.er1 conftest.err
  1834. fi
  1835. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1836. test $ac_status = 0; } && {
  1837. test -z "$ac_cxx_werror_flag" ||
  1838. test ! -s conftest.err
  1839. } && test -s conftest.$ac_objext; then :
  1840. ac_retval=0
  1841. else
  1842. $as_echo "$as_me: failed program was:" >&5
  1843. sed 's/^/| /' conftest.$ac_ext >&5
  1844. ac_retval=1
  1845. fi
  1846. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1847. as_fn_set_status $ac_retval
  1848. } # ac_fn_cxx_try_compile
  1849. # ac_fn_cxx_try_cpp LINENO
  1850. # ------------------------
  1851. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1852. ac_fn_cxx_try_cpp ()
  1853. {
  1854. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1855. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1856. case "(($ac_try" in
  1857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1858. *) ac_try_echo=$ac_try;;
  1859. esac
  1860. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1861. $as_echo "$ac_try_echo"; } >&5
  1862. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1863. ac_status=$?
  1864. if test -s conftest.err; then
  1865. grep -v '^ *+' conftest.err >conftest.er1
  1866. cat conftest.er1 >&5
  1867. mv -f conftest.er1 conftest.err
  1868. fi
  1869. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1870. test $ac_status = 0; } > conftest.i && {
  1871. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1872. test ! -s conftest.err
  1873. }; then :
  1874. ac_retval=0
  1875. else
  1876. $as_echo "$as_me: failed program was:" >&5
  1877. sed 's/^/| /' conftest.$ac_ext >&5
  1878. ac_retval=1
  1879. fi
  1880. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1881. as_fn_set_status $ac_retval
  1882. } # ac_fn_cxx_try_cpp
  1883. # ac_fn_cxx_try_link LINENO
  1884. # -------------------------
  1885. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1886. ac_fn_cxx_try_link ()
  1887. {
  1888. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1889. rm -f conftest.$ac_objext conftest$ac_exeext
  1890. if { { ac_try="$ac_link"
  1891. case "(($ac_try" in
  1892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1893. *) ac_try_echo=$ac_try;;
  1894. esac
  1895. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1896. $as_echo "$ac_try_echo"; } >&5
  1897. (eval "$ac_link") 2>conftest.err
  1898. ac_status=$?
  1899. if test -s conftest.err; then
  1900. grep -v '^ *+' conftest.err >conftest.er1
  1901. cat conftest.er1 >&5
  1902. mv -f conftest.er1 conftest.err
  1903. fi
  1904. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1905. test $ac_status = 0; } && {
  1906. test -z "$ac_cxx_werror_flag" ||
  1907. test ! -s conftest.err
  1908. } && test -s conftest$ac_exeext && {
  1909. test "$cross_compiling" = yes ||
  1910. test -x conftest$ac_exeext
  1911. }; then :
  1912. ac_retval=0
  1913. else
  1914. $as_echo "$as_me: failed program was:" >&5
  1915. sed 's/^/| /' conftest.$ac_ext >&5
  1916. ac_retval=1
  1917. fi
  1918. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1919. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1920. # interfere with the next link command; also delete a directory that is
  1921. # left behind by Apple's compiler. We do this before executing the actions.
  1922. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1923. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1924. as_fn_set_status $ac_retval
  1925. } # ac_fn_cxx_try_link
  1926. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1927. # -------------------------------------------------------
  1928. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1929. # the include files in INCLUDES and setting the cache variable VAR
  1930. # accordingly.
  1931. ac_fn_c_check_header_mongrel ()
  1932. {
  1933. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1934. if eval \${$3+:} false; then :
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1936. $as_echo_n "checking for $2... " >&6; }
  1937. if eval \${$3+:} false; then :
  1938. $as_echo_n "(cached) " >&6
  1939. fi
  1940. eval ac_res=\$$3
  1941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1942. $as_echo "$ac_res" >&6; }
  1943. else
  1944. # Is the header compilable?
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1946. $as_echo_n "checking $2 usability... " >&6; }
  1947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1948. /* end confdefs.h. */
  1949. $4
  1950. #include <$2>
  1951. _ACEOF
  1952. if ac_fn_c_try_compile "$LINENO"; then :
  1953. ac_header_compiler=yes
  1954. else
  1955. ac_header_compiler=no
  1956. fi
  1957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1959. $as_echo "$ac_header_compiler" >&6; }
  1960. # Is the header present?
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1962. $as_echo_n "checking $2 presence... " >&6; }
  1963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1964. /* end confdefs.h. */
  1965. #include <$2>
  1966. _ACEOF
  1967. if ac_fn_c_try_cpp "$LINENO"; then :
  1968. ac_header_preproc=yes
  1969. else
  1970. ac_header_preproc=no
  1971. fi
  1972. rm -f conftest.err conftest.i conftest.$ac_ext
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1974. $as_echo "$ac_header_preproc" >&6; }
  1975. # So? What about this header?
  1976. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1977. yes:no: )
  1978. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1979. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1980. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1981. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1982. ;;
  1983. no:yes:* )
  1984. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1985. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1987. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1989. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1991. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1993. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1994. ;;
  1995. esac
  1996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1997. $as_echo_n "checking for $2... " >&6; }
  1998. if eval \${$3+:} false; then :
  1999. $as_echo_n "(cached) " >&6
  2000. else
  2001. eval "$3=\$ac_header_compiler"
  2002. fi
  2003. eval ac_res=\$$3
  2004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2005. $as_echo "$ac_res" >&6; }
  2006. fi
  2007. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2008. } # ac_fn_c_check_header_mongrel
  2009. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2010. # -------------------------------------------
  2011. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2012. # variable VAR accordingly.
  2013. ac_fn_c_check_type ()
  2014. {
  2015. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2017. $as_echo_n "checking for $2... " >&6; }
  2018. if eval \${$3+:} false; then :
  2019. $as_echo_n "(cached) " >&6
  2020. else
  2021. eval "$3=no"
  2022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2023. /* end confdefs.h. */
  2024. $4
  2025. int
  2026. main ()
  2027. {
  2028. if (sizeof ($2))
  2029. return 0;
  2030. ;
  2031. return 0;
  2032. }
  2033. _ACEOF
  2034. if ac_fn_c_try_compile "$LINENO"; then :
  2035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2036. /* end confdefs.h. */
  2037. $4
  2038. int
  2039. main ()
  2040. {
  2041. if (sizeof (($2)))
  2042. return 0;
  2043. ;
  2044. return 0;
  2045. }
  2046. _ACEOF
  2047. if ac_fn_c_try_compile "$LINENO"; then :
  2048. else
  2049. eval "$3=yes"
  2050. fi
  2051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2052. fi
  2053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2054. fi
  2055. eval ac_res=\$$3
  2056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2057. $as_echo "$ac_res" >&6; }
  2058. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2059. } # ac_fn_c_check_type
  2060. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2061. # ----------------------------------------------------
  2062. # Tries to find if the field MEMBER exists in type AGGR, after including
  2063. # INCLUDES, setting cache variable VAR accordingly.
  2064. ac_fn_c_check_member ()
  2065. {
  2066. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2068. $as_echo_n "checking for $2.$3... " >&6; }
  2069. if eval \${$4+:} false; then :
  2070. $as_echo_n "(cached) " >&6
  2071. else
  2072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2073. /* end confdefs.h. */
  2074. $5
  2075. int
  2076. main ()
  2077. {
  2078. static $2 ac_aggr;
  2079. if (ac_aggr.$3)
  2080. return 0;
  2081. ;
  2082. return 0;
  2083. }
  2084. _ACEOF
  2085. if ac_fn_c_try_compile "$LINENO"; then :
  2086. eval "$4=yes"
  2087. else
  2088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2089. /* end confdefs.h. */
  2090. $5
  2091. int
  2092. main ()
  2093. {
  2094. static $2 ac_aggr;
  2095. if (sizeof ac_aggr.$3)
  2096. return 0;
  2097. ;
  2098. return 0;
  2099. }
  2100. _ACEOF
  2101. if ac_fn_c_try_compile "$LINENO"; then :
  2102. eval "$4=yes"
  2103. else
  2104. eval "$4=no"
  2105. fi
  2106. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2107. fi
  2108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2109. fi
  2110. eval ac_res=\$$4
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2112. $as_echo "$ac_res" >&6; }
  2113. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2114. } # ac_fn_c_check_member
  2115. cat >config.log <<_ACEOF
  2116. This file contains any messages produced by compilers while
  2117. running configure, to aid debugging if configure makes a mistake.
  2118. It was created by $as_me, which was
  2119. generated by GNU Autoconf 2.69. Invocation command line was
  2120. $ $0 $@
  2121. _ACEOF
  2122. exec 5>>config.log
  2123. {
  2124. cat <<_ASUNAME
  2125. ## --------- ##
  2126. ## Platform. ##
  2127. ## --------- ##
  2128. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2129. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2130. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2131. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2132. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2133. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2134. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2135. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2136. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2137. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2138. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2139. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2140. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2141. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2142. _ASUNAME
  2143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2144. for as_dir in $PATH
  2145. do
  2146. IFS=$as_save_IFS
  2147. test -z "$as_dir" && as_dir=.
  2148. $as_echo "PATH: $as_dir"
  2149. done
  2150. IFS=$as_save_IFS
  2151. } >&5
  2152. cat >&5 <<_ACEOF
  2153. ## ----------- ##
  2154. ## Core tests. ##
  2155. ## ----------- ##
  2156. _ACEOF
  2157. # Keep a trace of the command line.
  2158. # Strip out --no-create and --no-recursion so they do not pile up.
  2159. # Strip out --silent because we don't want to record it for future runs.
  2160. # Also quote any args containing shell meta-characters.
  2161. # Make two passes to allow for proper duplicate-argument suppression.
  2162. ac_configure_args=
  2163. ac_configure_args0=
  2164. ac_configure_args1=
  2165. ac_must_keep_next=false
  2166. for ac_pass in 1 2
  2167. do
  2168. for ac_arg
  2169. do
  2170. case $ac_arg in
  2171. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2172. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2173. | -silent | --silent | --silen | --sile | --sil)
  2174. continue ;;
  2175. *\'*)
  2176. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2177. esac
  2178. case $ac_pass in
  2179. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2180. 2)
  2181. as_fn_append ac_configure_args1 " '$ac_arg'"
  2182. if test $ac_must_keep_next = true; then
  2183. ac_must_keep_next=false # Got value, back to normal.
  2184. else
  2185. case $ac_arg in
  2186. *=* | --config-cache | -C | -disable-* | --disable-* \
  2187. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2188. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2189. | -with-* | --with-* | -without-* | --without-* | --x)
  2190. case "$ac_configure_args0 " in
  2191. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2192. esac
  2193. ;;
  2194. -* ) ac_must_keep_next=true ;;
  2195. esac
  2196. fi
  2197. as_fn_append ac_configure_args " '$ac_arg'"
  2198. ;;
  2199. esac
  2200. done
  2201. done
  2202. { ac_configure_args0=; unset ac_configure_args0;}
  2203. { ac_configure_args1=; unset ac_configure_args1;}
  2204. # When interrupted or exit'd, cleanup temporary files, and complete
  2205. # config.log. We remove comments because anyway the quotes in there
  2206. # would cause problems or look ugly.
  2207. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2208. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2209. trap 'exit_status=$?
  2210. # Save into config.log some information that might help in debugging.
  2211. {
  2212. echo
  2213. $as_echo "## ---------------- ##
  2214. ## Cache variables. ##
  2215. ## ---------------- ##"
  2216. echo
  2217. # The following way of writing the cache mishandles newlines in values,
  2218. (
  2219. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2220. eval ac_val=\$$ac_var
  2221. case $ac_val in #(
  2222. *${as_nl}*)
  2223. case $ac_var in #(
  2224. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2225. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2226. esac
  2227. case $ac_var in #(
  2228. _ | IFS | as_nl) ;; #(
  2229. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2230. *) { eval $ac_var=; unset $ac_var;} ;;
  2231. esac ;;
  2232. esac
  2233. done
  2234. (set) 2>&1 |
  2235. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2236. *${as_nl}ac_space=\ *)
  2237. sed -n \
  2238. "s/'\''/'\''\\\\'\'''\''/g;
  2239. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2240. ;; #(
  2241. *)
  2242. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2243. ;;
  2244. esac |
  2245. sort
  2246. )
  2247. echo
  2248. $as_echo "## ----------------- ##
  2249. ## Output variables. ##
  2250. ## ----------------- ##"
  2251. echo
  2252. for ac_var in $ac_subst_vars
  2253. do
  2254. eval ac_val=\$$ac_var
  2255. case $ac_val in
  2256. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2257. esac
  2258. $as_echo "$ac_var='\''$ac_val'\''"
  2259. done | sort
  2260. echo
  2261. if test -n "$ac_subst_files"; then
  2262. $as_echo "## ------------------- ##
  2263. ## File substitutions. ##
  2264. ## ------------------- ##"
  2265. echo
  2266. for ac_var in $ac_subst_files
  2267. do
  2268. eval ac_val=\$$ac_var
  2269. case $ac_val in
  2270. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2271. esac
  2272. $as_echo "$ac_var='\''$ac_val'\''"
  2273. done | sort
  2274. echo
  2275. fi
  2276. if test -s confdefs.h; then
  2277. $as_echo "## ----------- ##
  2278. ## confdefs.h. ##
  2279. ## ----------- ##"
  2280. echo
  2281. cat confdefs.h
  2282. echo
  2283. fi
  2284. test "$ac_signal" != 0 &&
  2285. $as_echo "$as_me: caught signal $ac_signal"
  2286. $as_echo "$as_me: exit $exit_status"
  2287. } >&5
  2288. rm -f core *.core core.conftest.* &&
  2289. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2290. exit $exit_status
  2291. ' 0
  2292. for ac_signal in 1 2 13 15; do
  2293. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2294. done
  2295. ac_signal=0
  2296. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2297. rm -f -r conftest* confdefs.h
  2298. $as_echo "/* confdefs.h */" > confdefs.h
  2299. # Predefined preprocessor variables.
  2300. cat >>confdefs.h <<_ACEOF
  2301. #define PACKAGE_NAME "$PACKAGE_NAME"
  2302. _ACEOF
  2303. cat >>confdefs.h <<_ACEOF
  2304. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2305. _ACEOF
  2306. cat >>confdefs.h <<_ACEOF
  2307. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2308. _ACEOF
  2309. cat >>confdefs.h <<_ACEOF
  2310. #define PACKAGE_STRING "$PACKAGE_STRING"
  2311. _ACEOF
  2312. cat >>confdefs.h <<_ACEOF
  2313. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2314. _ACEOF
  2315. cat >>confdefs.h <<_ACEOF
  2316. #define PACKAGE_URL "$PACKAGE_URL"
  2317. _ACEOF
  2318. # Let the site file select an alternate cache file if it wants to.
  2319. # Prefer an explicitly selected file to automatically selected ones.
  2320. ac_site_file1=NONE
  2321. ac_site_file2=NONE
  2322. if test -n "$CONFIG_SITE"; then
  2323. # We do not want a PATH search for config.site.
  2324. case $CONFIG_SITE in #((
  2325. -*) ac_site_file1=./$CONFIG_SITE;;
  2326. */*) ac_site_file1=$CONFIG_SITE;;
  2327. *) ac_site_file1=./$CONFIG_SITE;;
  2328. esac
  2329. elif test "x$prefix" != xNONE; then
  2330. ac_site_file1=$prefix/share/config.site
  2331. ac_site_file2=$prefix/etc/config.site
  2332. else
  2333. ac_site_file1=$ac_default_prefix/share/config.site
  2334. ac_site_file2=$ac_default_prefix/etc/config.site
  2335. fi
  2336. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2337. do
  2338. test "x$ac_site_file" = xNONE && continue
  2339. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2340. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2341. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2342. sed 's/^/| /' "$ac_site_file" >&5
  2343. . "$ac_site_file" \
  2344. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2345. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2346. as_fn_error $? "failed to load site script $ac_site_file
  2347. See \`config.log' for more details" "$LINENO" 5; }
  2348. fi
  2349. done
  2350. if test -r "$cache_file"; then
  2351. # Some versions of bash will fail to source /dev/null (special files
  2352. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2353. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2355. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2356. case $cache_file in
  2357. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2358. *) . "./$cache_file";;
  2359. esac
  2360. fi
  2361. else
  2362. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2363. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2364. >$cache_file
  2365. fi
  2366. # Check that the precious variables saved in the cache have kept the same
  2367. # value.
  2368. ac_cache_corrupted=false
  2369. for ac_var in $ac_precious_vars; do
  2370. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2371. eval ac_new_set=\$ac_env_${ac_var}_set
  2372. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2373. eval ac_new_val=\$ac_env_${ac_var}_value
  2374. case $ac_old_set,$ac_new_set in
  2375. set,)
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2377. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2378. ac_cache_corrupted=: ;;
  2379. ,set)
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2381. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2382. ac_cache_corrupted=: ;;
  2383. ,);;
  2384. *)
  2385. if test "x$ac_old_val" != "x$ac_new_val"; then
  2386. # differences in whitespace do not lead to failure.
  2387. ac_old_val_w=`echo x $ac_old_val`
  2388. ac_new_val_w=`echo x $ac_new_val`
  2389. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2391. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2392. ac_cache_corrupted=:
  2393. else
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2395. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2396. eval $ac_var=\$ac_old_val
  2397. fi
  2398. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2399. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2401. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2402. fi;;
  2403. esac
  2404. # Pass precious variables to config.status.
  2405. if test "$ac_new_set" = set; then
  2406. case $ac_new_val in
  2407. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2408. *) ac_arg=$ac_var=$ac_new_val ;;
  2409. esac
  2410. case " $ac_configure_args " in
  2411. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2412. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2413. esac
  2414. fi
  2415. done
  2416. if $ac_cache_corrupted; then
  2417. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2418. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2420. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2421. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2422. fi
  2423. ## -------------------- ##
  2424. ## Main body of script. ##
  2425. ## -------------------- ##
  2426. ac_ext=c
  2427. ac_cpp='$CPP $CPPFLAGS'
  2428. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2429. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2430. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2431. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2432. ac_aux_dir=
  2433. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2434. if test -f "$ac_dir/install-sh"; then
  2435. ac_aux_dir=$ac_dir
  2436. ac_install_sh="$ac_aux_dir/install-sh -c"
  2437. break
  2438. elif test -f "$ac_dir/install.sh"; then
  2439. ac_aux_dir=$ac_dir
  2440. ac_install_sh="$ac_aux_dir/install.sh -c"
  2441. break
  2442. elif test -f "$ac_dir/shtool"; then
  2443. ac_aux_dir=$ac_dir
  2444. ac_install_sh="$ac_aux_dir/shtool install -c"
  2445. break
  2446. fi
  2447. done
  2448. if test -z "$ac_aux_dir"; then
  2449. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2450. fi
  2451. # These three variables are undocumented and unsupported,
  2452. # and are intended to be withdrawn in a future Autoconf release.
  2453. # They can cause serious problems if a builder's source tree is in a directory
  2454. # whose full name contains unusual characters.
  2455. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2456. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2457. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2458. orig_CFLAGS="$CFLAGS"
  2459. #
  2460. # Making releases:
  2461. # Edit include/SDL_version.h and change the version, then:
  2462. # SDL_MICRO_VERSION += 1;
  2463. # SDL_INTERFACE_AGE += 1;
  2464. # SDL_BINARY_AGE += 1;
  2465. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2466. # if backwards compatibility has been broken,
  2467. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2468. #
  2469. SDL_MAJOR_VERSION=2
  2470. SDL_MINOR_VERSION=0
  2471. SDL_MICRO_VERSION=5
  2472. SDL_INTERFACE_AGE=0
  2473. SDL_BINARY_AGE=5
  2474. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2475. # libtool versioning
  2476. case `pwd` in
  2477. *\ * | *\ *)
  2478. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2479. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2480. esac
  2481. macro_version='2.4.2'
  2482. macro_revision='1.3337'
  2483. ltmain="$ac_aux_dir/ltmain.sh"
  2484. # Make sure we can run config.sub.
  2485. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2486. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2488. $as_echo_n "checking build system type... " >&6; }
  2489. if ${ac_cv_build+:} false; then :
  2490. $as_echo_n "(cached) " >&6
  2491. else
  2492. ac_build_alias=$build_alias
  2493. test "x$ac_build_alias" = x &&
  2494. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2495. test "x$ac_build_alias" = x &&
  2496. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2497. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2498. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2499. fi
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2501. $as_echo "$ac_cv_build" >&6; }
  2502. case $ac_cv_build in
  2503. *-*-*) ;;
  2504. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2505. esac
  2506. build=$ac_cv_build
  2507. ac_save_IFS=$IFS; IFS='-'
  2508. set x $ac_cv_build
  2509. shift
  2510. build_cpu=$1
  2511. build_vendor=$2
  2512. shift; shift
  2513. # Remember, the first character of IFS is used to create $*,
  2514. # except with old shells:
  2515. build_os=$*
  2516. IFS=$ac_save_IFS
  2517. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2519. $as_echo_n "checking host system type... " >&6; }
  2520. if ${ac_cv_host+:} false; then :
  2521. $as_echo_n "(cached) " >&6
  2522. else
  2523. if test "x$host_alias" = x; then
  2524. ac_cv_host=$ac_cv_build
  2525. else
  2526. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2527. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2528. fi
  2529. fi
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2531. $as_echo "$ac_cv_host" >&6; }
  2532. case $ac_cv_host in
  2533. *-*-*) ;;
  2534. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2535. esac
  2536. host=$ac_cv_host
  2537. ac_save_IFS=$IFS; IFS='-'
  2538. set x $ac_cv_host
  2539. shift
  2540. host_cpu=$1
  2541. host_vendor=$2
  2542. shift; shift
  2543. # Remember, the first character of IFS is used to create $*,
  2544. # except with old shells:
  2545. host_os=$*
  2546. IFS=$ac_save_IFS
  2547. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2548. # Backslashify metacharacters that are still active within
  2549. # double-quoted strings.
  2550. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2551. # Same as above, but do not quote variable references.
  2552. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2553. # Sed substitution to delay expansion of an escaped shell variable in a
  2554. # double_quote_subst'ed string.
  2555. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2556. # Sed substitution to delay expansion of an escaped single quote.
  2557. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2558. # Sed substitution to avoid accidental globbing in evaled expressions
  2559. no_glob_subst='s/\*/\\\*/g'
  2560. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2561. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2562. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2564. $as_echo_n "checking how to print strings... " >&6; }
  2565. # Test print first, because it will be a builtin if present.
  2566. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2567. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2568. ECHO='print -r --'
  2569. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2570. ECHO='printf %s\n'
  2571. else
  2572. # Use this function as a fallback that always works.
  2573. func_fallback_echo ()
  2574. {
  2575. eval 'cat <<_LTECHO_EOF
  2576. $1
  2577. _LTECHO_EOF'
  2578. }
  2579. ECHO='func_fallback_echo'
  2580. fi
  2581. # func_echo_all arg...
  2582. # Invoke $ECHO with all args, space-separated.
  2583. func_echo_all ()
  2584. {
  2585. $ECHO ""
  2586. }
  2587. case "$ECHO" in
  2588. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2589. $as_echo "printf" >&6; } ;;
  2590. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2591. $as_echo "print -r" >&6; } ;;
  2592. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2593. $as_echo "cat" >&6; } ;;
  2594. esac
  2595. ac_ext=c
  2596. ac_cpp='$CPP $CPPFLAGS'
  2597. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2598. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2599. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2600. if test -n "$ac_tool_prefix"; then
  2601. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2602. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2604. $as_echo_n "checking for $ac_word... " >&6; }
  2605. if ${ac_cv_prog_CC+:} false; then :
  2606. $as_echo_n "(cached) " >&6
  2607. else
  2608. if test -n "$CC"; then
  2609. ac_cv_prog_CC="$CC" # Let the user override the test.
  2610. else
  2611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2612. for as_dir in $PATH
  2613. do
  2614. IFS=$as_save_IFS
  2615. test -z "$as_dir" && as_dir=.
  2616. for ac_exec_ext in '' $ac_executable_extensions; do
  2617. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2618. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2620. break 2
  2621. fi
  2622. done
  2623. done
  2624. IFS=$as_save_IFS
  2625. fi
  2626. fi
  2627. CC=$ac_cv_prog_CC
  2628. if test -n "$CC"; then
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2630. $as_echo "$CC" >&6; }
  2631. else
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2633. $as_echo "no" >&6; }
  2634. fi
  2635. fi
  2636. if test -z "$ac_cv_prog_CC"; then
  2637. ac_ct_CC=$CC
  2638. # Extract the first word of "gcc", so it can be a program name with args.
  2639. set dummy gcc; ac_word=$2
  2640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2641. $as_echo_n "checking for $ac_word... " >&6; }
  2642. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2643. $as_echo_n "(cached) " >&6
  2644. else
  2645. if test -n "$ac_ct_CC"; then
  2646. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2647. else
  2648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2649. for as_dir in $PATH
  2650. do
  2651. IFS=$as_save_IFS
  2652. test -z "$as_dir" && as_dir=.
  2653. for ac_exec_ext in '' $ac_executable_extensions; do
  2654. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2655. ac_cv_prog_ac_ct_CC="gcc"
  2656. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2657. break 2
  2658. fi
  2659. done
  2660. done
  2661. IFS=$as_save_IFS
  2662. fi
  2663. fi
  2664. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2665. if test -n "$ac_ct_CC"; then
  2666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2667. $as_echo "$ac_ct_CC" >&6; }
  2668. else
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2670. $as_echo "no" >&6; }
  2671. fi
  2672. if test "x$ac_ct_CC" = x; then
  2673. CC=""
  2674. else
  2675. case $cross_compiling:$ac_tool_warned in
  2676. yes:)
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2678. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2679. ac_tool_warned=yes ;;
  2680. esac
  2681. CC=$ac_ct_CC
  2682. fi
  2683. else
  2684. CC="$ac_cv_prog_CC"
  2685. fi
  2686. if test -z "$CC"; then
  2687. if test -n "$ac_tool_prefix"; then
  2688. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2689. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2691. $as_echo_n "checking for $ac_word... " >&6; }
  2692. if ${ac_cv_prog_CC+:} false; then :
  2693. $as_echo_n "(cached) " >&6
  2694. else
  2695. if test -n "$CC"; then
  2696. ac_cv_prog_CC="$CC" # Let the user override the test.
  2697. else
  2698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2699. for as_dir in $PATH
  2700. do
  2701. IFS=$as_save_IFS
  2702. test -z "$as_dir" && as_dir=.
  2703. for ac_exec_ext in '' $ac_executable_extensions; do
  2704. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2705. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2706. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2707. break 2
  2708. fi
  2709. done
  2710. done
  2711. IFS=$as_save_IFS
  2712. fi
  2713. fi
  2714. CC=$ac_cv_prog_CC
  2715. if test -n "$CC"; then
  2716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2717. $as_echo "$CC" >&6; }
  2718. else
  2719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2720. $as_echo "no" >&6; }
  2721. fi
  2722. fi
  2723. fi
  2724. if test -z "$CC"; then
  2725. # Extract the first word of "cc", so it can be a program name with args.
  2726. set dummy cc; ac_word=$2
  2727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2728. $as_echo_n "checking for $ac_word... " >&6; }
  2729. if ${ac_cv_prog_CC+:} false; then :
  2730. $as_echo_n "(cached) " >&6
  2731. else
  2732. if test -n "$CC"; then
  2733. ac_cv_prog_CC="$CC" # Let the user override the test.
  2734. else
  2735. ac_prog_rejected=no
  2736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2737. for as_dir in $PATH
  2738. do
  2739. IFS=$as_save_IFS
  2740. test -z "$as_dir" && as_dir=.
  2741. for ac_exec_ext in '' $ac_executable_extensions; do
  2742. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2743. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2744. ac_prog_rejected=yes
  2745. continue
  2746. fi
  2747. ac_cv_prog_CC="cc"
  2748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2749. break 2
  2750. fi
  2751. done
  2752. done
  2753. IFS=$as_save_IFS
  2754. if test $ac_prog_rejected = yes; then
  2755. # We found a bogon in the path, so make sure we never use it.
  2756. set dummy $ac_cv_prog_CC
  2757. shift
  2758. if test $# != 0; then
  2759. # We chose a different compiler from the bogus one.
  2760. # However, it has the same basename, so the bogon will be chosen
  2761. # first if we set CC to just the basename; use the full file name.
  2762. shift
  2763. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2764. fi
  2765. fi
  2766. fi
  2767. fi
  2768. CC=$ac_cv_prog_CC
  2769. if test -n "$CC"; then
  2770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2771. $as_echo "$CC" >&6; }
  2772. else
  2773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2774. $as_echo "no" >&6; }
  2775. fi
  2776. fi
  2777. if test -z "$CC"; then
  2778. if test -n "$ac_tool_prefix"; then
  2779. for ac_prog in cl.exe
  2780. do
  2781. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2782. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2784. $as_echo_n "checking for $ac_word... " >&6; }
  2785. if ${ac_cv_prog_CC+:} false; then :
  2786. $as_echo_n "(cached) " >&6
  2787. else
  2788. if test -n "$CC"; then
  2789. ac_cv_prog_CC="$CC" # Let the user override the test.
  2790. else
  2791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2792. for as_dir in $PATH
  2793. do
  2794. IFS=$as_save_IFS
  2795. test -z "$as_dir" && as_dir=.
  2796. for ac_exec_ext in '' $ac_executable_extensions; do
  2797. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2798. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2799. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2800. break 2
  2801. fi
  2802. done
  2803. done
  2804. IFS=$as_save_IFS
  2805. fi
  2806. fi
  2807. CC=$ac_cv_prog_CC
  2808. if test -n "$CC"; then
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2810. $as_echo "$CC" >&6; }
  2811. else
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2813. $as_echo "no" >&6; }
  2814. fi
  2815. test -n "$CC" && break
  2816. done
  2817. fi
  2818. if test -z "$CC"; then
  2819. ac_ct_CC=$CC
  2820. for ac_prog in cl.exe
  2821. do
  2822. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2823. set dummy $ac_prog; ac_word=$2
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2825. $as_echo_n "checking for $ac_word... " >&6; }
  2826. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2827. $as_echo_n "(cached) " >&6
  2828. else
  2829. if test -n "$ac_ct_CC"; then
  2830. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2831. else
  2832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2833. for as_dir in $PATH
  2834. do
  2835. IFS=$as_save_IFS
  2836. test -z "$as_dir" && as_dir=.
  2837. for ac_exec_ext in '' $ac_executable_extensions; do
  2838. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2839. ac_cv_prog_ac_ct_CC="$ac_prog"
  2840. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2841. break 2
  2842. fi
  2843. done
  2844. done
  2845. IFS=$as_save_IFS
  2846. fi
  2847. fi
  2848. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2849. if test -n "$ac_ct_CC"; then
  2850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2851. $as_echo "$ac_ct_CC" >&6; }
  2852. else
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2854. $as_echo "no" >&6; }
  2855. fi
  2856. test -n "$ac_ct_CC" && break
  2857. done
  2858. if test "x$ac_ct_CC" = x; then
  2859. CC=""
  2860. else
  2861. case $cross_compiling:$ac_tool_warned in
  2862. yes:)
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2864. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2865. ac_tool_warned=yes ;;
  2866. esac
  2867. CC=$ac_ct_CC
  2868. fi
  2869. fi
  2870. fi
  2871. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2872. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2873. as_fn_error $? "no acceptable C compiler found in \$PATH
  2874. See \`config.log' for more details" "$LINENO" 5; }
  2875. # Provide some information about the compiler.
  2876. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2877. set X $ac_compile
  2878. ac_compiler=$2
  2879. for ac_option in --version -v -V -qversion; do
  2880. { { ac_try="$ac_compiler $ac_option >&5"
  2881. case "(($ac_try" in
  2882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2883. *) ac_try_echo=$ac_try;;
  2884. esac
  2885. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2886. $as_echo "$ac_try_echo"; } >&5
  2887. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2888. ac_status=$?
  2889. if test -s conftest.err; then
  2890. sed '10a\
  2891. ... rest of stderr output deleted ...
  2892. 10q' conftest.err >conftest.er1
  2893. cat conftest.er1 >&5
  2894. fi
  2895. rm -f conftest.er1 conftest.err
  2896. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2897. test $ac_status = 0; }
  2898. done
  2899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2900. /* end confdefs.h. */
  2901. int
  2902. main ()
  2903. {
  2904. ;
  2905. return 0;
  2906. }
  2907. _ACEOF
  2908. ac_clean_files_save=$ac_clean_files
  2909. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2910. # Try to create an executable without -o first, disregard a.out.
  2911. # It will help us diagnose broken compilers, and finding out an intuition
  2912. # of exeext.
  2913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2914. $as_echo_n "checking whether the C compiler works... " >&6; }
  2915. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2916. # The possible output files:
  2917. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2918. ac_rmfiles=
  2919. for ac_file in $ac_files
  2920. do
  2921. case $ac_file in
  2922. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2923. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2924. esac
  2925. done
  2926. rm -f $ac_rmfiles
  2927. if { { ac_try="$ac_link_default"
  2928. case "(($ac_try" in
  2929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2930. *) ac_try_echo=$ac_try;;
  2931. esac
  2932. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2933. $as_echo "$ac_try_echo"; } >&5
  2934. (eval "$ac_link_default") 2>&5
  2935. ac_status=$?
  2936. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2937. test $ac_status = 0; }; then :
  2938. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2939. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2940. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2941. # so that the user can short-circuit this test for compilers unknown to
  2942. # Autoconf.
  2943. for ac_file in $ac_files ''
  2944. do
  2945. test -f "$ac_file" || continue
  2946. case $ac_file in
  2947. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2948. ;;
  2949. [ab].out )
  2950. # We found the default executable, but exeext='' is most
  2951. # certainly right.
  2952. break;;
  2953. *.* )
  2954. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2955. then :; else
  2956. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2957. fi
  2958. # We set ac_cv_exeext here because the later test for it is not
  2959. # safe: cross compilers may not add the suffix if given an `-o'
  2960. # argument, so we may need to know it at that point already.
  2961. # Even if this section looks crufty: it has the advantage of
  2962. # actually working.
  2963. break;;
  2964. * )
  2965. break;;
  2966. esac
  2967. done
  2968. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2969. else
  2970. ac_file=''
  2971. fi
  2972. if test -z "$ac_file"; then :
  2973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2974. $as_echo "no" >&6; }
  2975. $as_echo "$as_me: failed program was:" >&5
  2976. sed 's/^/| /' conftest.$ac_ext >&5
  2977. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2978. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2979. as_fn_error 77 "C compiler cannot create executables
  2980. See \`config.log' for more details" "$LINENO" 5; }
  2981. else
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2983. $as_echo "yes" >&6; }
  2984. fi
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2986. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2988. $as_echo "$ac_file" >&6; }
  2989. ac_exeext=$ac_cv_exeext
  2990. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2991. ac_clean_files=$ac_clean_files_save
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2993. $as_echo_n "checking for suffix of executables... " >&6; }
  2994. if { { ac_try="$ac_link"
  2995. case "(($ac_try" in
  2996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2997. *) ac_try_echo=$ac_try;;
  2998. esac
  2999. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3000. $as_echo "$ac_try_echo"; } >&5
  3001. (eval "$ac_link") 2>&5
  3002. ac_status=$?
  3003. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3004. test $ac_status = 0; }; then :
  3005. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3006. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3007. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3008. # `rm'.
  3009. for ac_file in conftest.exe conftest conftest.*; do
  3010. test -f "$ac_file" || continue
  3011. case $ac_file in
  3012. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3013. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3014. break;;
  3015. * ) break;;
  3016. esac
  3017. done
  3018. else
  3019. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3020. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3021. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3022. See \`config.log' for more details" "$LINENO" 5; }
  3023. fi
  3024. rm -f conftest conftest$ac_cv_exeext
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3026. $as_echo "$ac_cv_exeext" >&6; }
  3027. rm -f conftest.$ac_ext
  3028. EXEEXT=$ac_cv_exeext
  3029. ac_exeext=$EXEEXT
  3030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3031. /* end confdefs.h. */
  3032. #include <stdio.h>
  3033. int
  3034. main ()
  3035. {
  3036. FILE *f = fopen ("conftest.out", "w");
  3037. return ferror (f) || fclose (f) != 0;
  3038. ;
  3039. return 0;
  3040. }
  3041. _ACEOF
  3042. ac_clean_files="$ac_clean_files conftest.out"
  3043. # Check that the compiler produces executables we can run. If not, either
  3044. # the compiler is broken, or we cross compile.
  3045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3046. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3047. if test "$cross_compiling" != yes; then
  3048. { { ac_try="$ac_link"
  3049. case "(($ac_try" in
  3050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3051. *) ac_try_echo=$ac_try;;
  3052. esac
  3053. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3054. $as_echo "$ac_try_echo"; } >&5
  3055. (eval "$ac_link") 2>&5
  3056. ac_status=$?
  3057. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3058. test $ac_status = 0; }
  3059. if { ac_try='./conftest$ac_cv_exeext'
  3060. { { case "(($ac_try" in
  3061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3062. *) ac_try_echo=$ac_try;;
  3063. esac
  3064. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3065. $as_echo "$ac_try_echo"; } >&5
  3066. (eval "$ac_try") 2>&5
  3067. ac_status=$?
  3068. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3069. test $ac_status = 0; }; }; then
  3070. cross_compiling=no
  3071. else
  3072. if test "$cross_compiling" = maybe; then
  3073. cross_compiling=yes
  3074. else
  3075. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3076. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3077. as_fn_error $? "cannot run C compiled programs.
  3078. If you meant to cross compile, use \`--host'.
  3079. See \`config.log' for more details" "$LINENO" 5; }
  3080. fi
  3081. fi
  3082. fi
  3083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3084. $as_echo "$cross_compiling" >&6; }
  3085. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3086. ac_clean_files=$ac_clean_files_save
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3088. $as_echo_n "checking for suffix of object files... " >&6; }
  3089. if ${ac_cv_objext+:} false; then :
  3090. $as_echo_n "(cached) " >&6
  3091. else
  3092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3093. /* end confdefs.h. */
  3094. int
  3095. main ()
  3096. {
  3097. ;
  3098. return 0;
  3099. }
  3100. _ACEOF
  3101. rm -f conftest.o conftest.obj
  3102. if { { ac_try="$ac_compile"
  3103. case "(($ac_try" in
  3104. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3105. *) ac_try_echo=$ac_try;;
  3106. esac
  3107. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3108. $as_echo "$ac_try_echo"; } >&5
  3109. (eval "$ac_compile") 2>&5
  3110. ac_status=$?
  3111. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3112. test $ac_status = 0; }; then :
  3113. for ac_file in conftest.o conftest.obj conftest.*; do
  3114. test -f "$ac_file" || continue;
  3115. case $ac_file in
  3116. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3117. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3118. break;;
  3119. esac
  3120. done
  3121. else
  3122. $as_echo "$as_me: failed program was:" >&5
  3123. sed 's/^/| /' conftest.$ac_ext >&5
  3124. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3125. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3126. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3127. See \`config.log' for more details" "$LINENO" 5; }
  3128. fi
  3129. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3130. fi
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3132. $as_echo "$ac_cv_objext" >&6; }
  3133. OBJEXT=$ac_cv_objext
  3134. ac_objext=$OBJEXT
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3136. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3137. if ${ac_cv_c_compiler_gnu+:} false; then :
  3138. $as_echo_n "(cached) " >&6
  3139. else
  3140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3141. /* end confdefs.h. */
  3142. int
  3143. main ()
  3144. {
  3145. #ifndef __GNUC__
  3146. choke me
  3147. #endif
  3148. ;
  3149. return 0;
  3150. }
  3151. _ACEOF
  3152. if ac_fn_c_try_compile "$LINENO"; then :
  3153. ac_compiler_gnu=yes
  3154. else
  3155. ac_compiler_gnu=no
  3156. fi
  3157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3158. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3159. fi
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3161. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3162. if test $ac_compiler_gnu = yes; then
  3163. GCC=yes
  3164. else
  3165. GCC=
  3166. fi
  3167. ac_test_CFLAGS=${CFLAGS+set}
  3168. ac_save_CFLAGS=$CFLAGS
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3170. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3171. if ${ac_cv_prog_cc_g+:} false; then :
  3172. $as_echo_n "(cached) " >&6
  3173. else
  3174. ac_save_c_werror_flag=$ac_c_werror_flag
  3175. ac_c_werror_flag=yes
  3176. ac_cv_prog_cc_g=no
  3177. CFLAGS="-g"
  3178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3179. /* end confdefs.h. */
  3180. int
  3181. main ()
  3182. {
  3183. ;
  3184. return 0;
  3185. }
  3186. _ACEOF
  3187. if ac_fn_c_try_compile "$LINENO"; then :
  3188. ac_cv_prog_cc_g=yes
  3189. else
  3190. CFLAGS=""
  3191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3192. /* end confdefs.h. */
  3193. int
  3194. main ()
  3195. {
  3196. ;
  3197. return 0;
  3198. }
  3199. _ACEOF
  3200. if ac_fn_c_try_compile "$LINENO"; then :
  3201. else
  3202. ac_c_werror_flag=$ac_save_c_werror_flag
  3203. CFLAGS="-g"
  3204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3205. /* end confdefs.h. */
  3206. int
  3207. main ()
  3208. {
  3209. ;
  3210. return 0;
  3211. }
  3212. _ACEOF
  3213. if ac_fn_c_try_compile "$LINENO"; then :
  3214. ac_cv_prog_cc_g=yes
  3215. fi
  3216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3217. fi
  3218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3219. fi
  3220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3221. ac_c_werror_flag=$ac_save_c_werror_flag
  3222. fi
  3223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3224. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3225. if test "$ac_test_CFLAGS" = set; then
  3226. CFLAGS=$ac_save_CFLAGS
  3227. elif test $ac_cv_prog_cc_g = yes; then
  3228. if test "$GCC" = yes; then
  3229. CFLAGS="-g -O2"
  3230. else
  3231. CFLAGS="-g"
  3232. fi
  3233. else
  3234. if test "$GCC" = yes; then
  3235. CFLAGS="-O2"
  3236. else
  3237. CFLAGS=
  3238. fi
  3239. fi
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3241. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3242. if ${ac_cv_prog_cc_c89+:} false; then :
  3243. $as_echo_n "(cached) " >&6
  3244. else
  3245. ac_cv_prog_cc_c89=no
  3246. ac_save_CC=$CC
  3247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3248. /* end confdefs.h. */
  3249. #include <stdarg.h>
  3250. #include <stdio.h>
  3251. struct stat;
  3252. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3253. struct buf { int x; };
  3254. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3255. static char *e (p, i)
  3256. char **p;
  3257. int i;
  3258. {
  3259. return p[i];
  3260. }
  3261. static char *f (char * (*g) (char **, int), char **p, ...)
  3262. {
  3263. char *s;
  3264. va_list v;
  3265. va_start (v,p);
  3266. s = g (p, va_arg (v,int));
  3267. va_end (v);
  3268. return s;
  3269. }
  3270. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3271. function prototypes and stuff, but not '\xHH' hex character constants.
  3272. These don't provoke an error unfortunately, instead are silently treated
  3273. as 'x'. The following induces an error, until -std is added to get
  3274. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3275. array size at least. It's necessary to write '\x00'==0 to get something
  3276. that's true only with -std. */
  3277. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3278. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3279. inside strings and character constants. */
  3280. #define FOO(x) 'x'
  3281. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3282. int test (int i, double x);
  3283. struct s1 {int (*f) (int a);};
  3284. struct s2 {int (*f) (double a);};
  3285. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3286. int argc;
  3287. char **argv;
  3288. int
  3289. main ()
  3290. {
  3291. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3292. ;
  3293. return 0;
  3294. }
  3295. _ACEOF
  3296. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3297. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3298. do
  3299. CC="$ac_save_CC $ac_arg"
  3300. if ac_fn_c_try_compile "$LINENO"; then :
  3301. ac_cv_prog_cc_c89=$ac_arg
  3302. fi
  3303. rm -f core conftest.err conftest.$ac_objext
  3304. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3305. done
  3306. rm -f conftest.$ac_ext
  3307. CC=$ac_save_CC
  3308. fi
  3309. # AC_CACHE_VAL
  3310. case "x$ac_cv_prog_cc_c89" in
  3311. x)
  3312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3313. $as_echo "none needed" >&6; } ;;
  3314. xno)
  3315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3316. $as_echo "unsupported" >&6; } ;;
  3317. *)
  3318. CC="$CC $ac_cv_prog_cc_c89"
  3319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3320. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3321. esac
  3322. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3323. fi
  3324. ac_ext=c
  3325. ac_cpp='$CPP $CPPFLAGS'
  3326. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3327. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3328. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3330. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3331. if ${ac_cv_path_SED+:} false; then :
  3332. $as_echo_n "(cached) " >&6
  3333. else
  3334. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3335. for ac_i in 1 2 3 4 5 6 7; do
  3336. ac_script="$ac_script$as_nl$ac_script"
  3337. done
  3338. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3339. { ac_script=; unset ac_script;}
  3340. if test -z "$SED"; then
  3341. ac_path_SED_found=false
  3342. # Loop through the user's path and test for each of PROGNAME-LIST
  3343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3344. for as_dir in $PATH
  3345. do
  3346. IFS=$as_save_IFS
  3347. test -z "$as_dir" && as_dir=.
  3348. for ac_prog in sed gsed; do
  3349. for ac_exec_ext in '' $ac_executable_extensions; do
  3350. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3351. as_fn_executable_p "$ac_path_SED" || continue
  3352. # Check for GNU ac_path_SED and select it if it is found.
  3353. # Check for GNU $ac_path_SED
  3354. case `"$ac_path_SED" --version 2>&1` in
  3355. *GNU*)
  3356. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3357. *)
  3358. ac_count=0
  3359. $as_echo_n 0123456789 >"conftest.in"
  3360. while :
  3361. do
  3362. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3363. mv "conftest.tmp" "conftest.in"
  3364. cp "conftest.in" "conftest.nl"
  3365. $as_echo '' >> "conftest.nl"
  3366. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3367. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3368. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3369. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3370. # Best one so far, save it but keep looking for a better one
  3371. ac_cv_path_SED="$ac_path_SED"
  3372. ac_path_SED_max=$ac_count
  3373. fi
  3374. # 10*(2^10) chars as input seems more than enough
  3375. test $ac_count -gt 10 && break
  3376. done
  3377. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3378. esac
  3379. $ac_path_SED_found && break 3
  3380. done
  3381. done
  3382. done
  3383. IFS=$as_save_IFS
  3384. if test -z "$ac_cv_path_SED"; then
  3385. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3386. fi
  3387. else
  3388. ac_cv_path_SED=$SED
  3389. fi
  3390. fi
  3391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3392. $as_echo "$ac_cv_path_SED" >&6; }
  3393. SED="$ac_cv_path_SED"
  3394. rm -f conftest.sed
  3395. test -z "$SED" && SED=sed
  3396. Xsed="$SED -e 1s/^X//"
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3398. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3399. if ${ac_cv_path_GREP+:} false; then :
  3400. $as_echo_n "(cached) " >&6
  3401. else
  3402. if test -z "$GREP"; then
  3403. ac_path_GREP_found=false
  3404. # Loop through the user's path and test for each of PROGNAME-LIST
  3405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3406. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3407. do
  3408. IFS=$as_save_IFS
  3409. test -z "$as_dir" && as_dir=.
  3410. for ac_prog in grep ggrep; do
  3411. for ac_exec_ext in '' $ac_executable_extensions; do
  3412. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3413. as_fn_executable_p "$ac_path_GREP" || continue
  3414. # Check for GNU ac_path_GREP and select it if it is found.
  3415. # Check for GNU $ac_path_GREP
  3416. case `"$ac_path_GREP" --version 2>&1` in
  3417. *GNU*)
  3418. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3419. *)
  3420. ac_count=0
  3421. $as_echo_n 0123456789 >"conftest.in"
  3422. while :
  3423. do
  3424. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3425. mv "conftest.tmp" "conftest.in"
  3426. cp "conftest.in" "conftest.nl"
  3427. $as_echo 'GREP' >> "conftest.nl"
  3428. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3429. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3430. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3431. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3432. # Best one so far, save it but keep looking for a better one
  3433. ac_cv_path_GREP="$ac_path_GREP"
  3434. ac_path_GREP_max=$ac_count
  3435. fi
  3436. # 10*(2^10) chars as input seems more than enough
  3437. test $ac_count -gt 10 && break
  3438. done
  3439. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3440. esac
  3441. $ac_path_GREP_found && break 3
  3442. done
  3443. done
  3444. done
  3445. IFS=$as_save_IFS
  3446. if test -z "$ac_cv_path_GREP"; then
  3447. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3448. fi
  3449. else
  3450. ac_cv_path_GREP=$GREP
  3451. fi
  3452. fi
  3453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3454. $as_echo "$ac_cv_path_GREP" >&6; }
  3455. GREP="$ac_cv_path_GREP"
  3456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3457. $as_echo_n "checking for egrep... " >&6; }
  3458. if ${ac_cv_path_EGREP+:} false; then :
  3459. $as_echo_n "(cached) " >&6
  3460. else
  3461. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3462. then ac_cv_path_EGREP="$GREP -E"
  3463. else
  3464. if test -z "$EGREP"; then
  3465. ac_path_EGREP_found=false
  3466. # Loop through the user's path and test for each of PROGNAME-LIST
  3467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3468. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3469. do
  3470. IFS=$as_save_IFS
  3471. test -z "$as_dir" && as_dir=.
  3472. for ac_prog in egrep; do
  3473. for ac_exec_ext in '' $ac_executable_extensions; do
  3474. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3475. as_fn_executable_p "$ac_path_EGREP" || continue
  3476. # Check for GNU ac_path_EGREP and select it if it is found.
  3477. # Check for GNU $ac_path_EGREP
  3478. case `"$ac_path_EGREP" --version 2>&1` in
  3479. *GNU*)
  3480. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3481. *)
  3482. ac_count=0
  3483. $as_echo_n 0123456789 >"conftest.in"
  3484. while :
  3485. do
  3486. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3487. mv "conftest.tmp" "conftest.in"
  3488. cp "conftest.in" "conftest.nl"
  3489. $as_echo 'EGREP' >> "conftest.nl"
  3490. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3491. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3492. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3493. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3494. # Best one so far, save it but keep looking for a better one
  3495. ac_cv_path_EGREP="$ac_path_EGREP"
  3496. ac_path_EGREP_max=$ac_count
  3497. fi
  3498. # 10*(2^10) chars as input seems more than enough
  3499. test $ac_count -gt 10 && break
  3500. done
  3501. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3502. esac
  3503. $ac_path_EGREP_found && break 3
  3504. done
  3505. done
  3506. done
  3507. IFS=$as_save_IFS
  3508. if test -z "$ac_cv_path_EGREP"; then
  3509. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3510. fi
  3511. else
  3512. ac_cv_path_EGREP=$EGREP
  3513. fi
  3514. fi
  3515. fi
  3516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3517. $as_echo "$ac_cv_path_EGREP" >&6; }
  3518. EGREP="$ac_cv_path_EGREP"
  3519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3520. $as_echo_n "checking for fgrep... " >&6; }
  3521. if ${ac_cv_path_FGREP+:} false; then :
  3522. $as_echo_n "(cached) " >&6
  3523. else
  3524. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3525. then ac_cv_path_FGREP="$GREP -F"
  3526. else
  3527. if test -z "$FGREP"; then
  3528. ac_path_FGREP_found=false
  3529. # Loop through the user's path and test for each of PROGNAME-LIST
  3530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3531. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3532. do
  3533. IFS=$as_save_IFS
  3534. test -z "$as_dir" && as_dir=.
  3535. for ac_prog in fgrep; do
  3536. for ac_exec_ext in '' $ac_executable_extensions; do
  3537. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3538. as_fn_executable_p "$ac_path_FGREP" || continue
  3539. # Check for GNU ac_path_FGREP and select it if it is found.
  3540. # Check for GNU $ac_path_FGREP
  3541. case `"$ac_path_FGREP" --version 2>&1` in
  3542. *GNU*)
  3543. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3544. *)
  3545. ac_count=0
  3546. $as_echo_n 0123456789 >"conftest.in"
  3547. while :
  3548. do
  3549. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3550. mv "conftest.tmp" "conftest.in"
  3551. cp "conftest.in" "conftest.nl"
  3552. $as_echo 'FGREP' >> "conftest.nl"
  3553. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3554. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3555. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3556. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3557. # Best one so far, save it but keep looking for a better one
  3558. ac_cv_path_FGREP="$ac_path_FGREP"
  3559. ac_path_FGREP_max=$ac_count
  3560. fi
  3561. # 10*(2^10) chars as input seems more than enough
  3562. test $ac_count -gt 10 && break
  3563. done
  3564. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3565. esac
  3566. $ac_path_FGREP_found && break 3
  3567. done
  3568. done
  3569. done
  3570. IFS=$as_save_IFS
  3571. if test -z "$ac_cv_path_FGREP"; then
  3572. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3573. fi
  3574. else
  3575. ac_cv_path_FGREP=$FGREP
  3576. fi
  3577. fi
  3578. fi
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3580. $as_echo "$ac_cv_path_FGREP" >&6; }
  3581. FGREP="$ac_cv_path_FGREP"
  3582. test -z "$GREP" && GREP=grep
  3583. # Check whether --with-gnu-ld was given.
  3584. if test "${with_gnu_ld+set}" = set; then :
  3585. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3586. else
  3587. with_gnu_ld=no
  3588. fi
  3589. ac_prog=ld
  3590. if test "$GCC" = yes; then
  3591. # Check if gcc -print-prog-name=ld gives a path.
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3593. $as_echo_n "checking for ld used by $CC... " >&6; }
  3594. case $host in
  3595. *-*-mingw*)
  3596. # gcc leaves a trailing carriage return which upsets mingw
  3597. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3598. *)
  3599. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3600. esac
  3601. case $ac_prog in
  3602. # Accept absolute paths.
  3603. [\\/]* | ?:[\\/]*)
  3604. re_direlt='/[^/][^/]*/\.\./'
  3605. # Canonicalize the pathname of ld
  3606. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3607. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3608. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3609. done
  3610. test -z "$LD" && LD="$ac_prog"
  3611. ;;
  3612. "")
  3613. # If it fails, then pretend we aren't using GCC.
  3614. ac_prog=ld
  3615. ;;
  3616. *)
  3617. # If it is relative, then search for the first ld in PATH.
  3618. with_gnu_ld=unknown
  3619. ;;
  3620. esac
  3621. elif test "$with_gnu_ld" = yes; then
  3622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3623. $as_echo_n "checking for GNU ld... " >&6; }
  3624. else
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3626. $as_echo_n "checking for non-GNU ld... " >&6; }
  3627. fi
  3628. if ${lt_cv_path_LD+:} false; then :
  3629. $as_echo_n "(cached) " >&6
  3630. else
  3631. if test -z "$LD"; then
  3632. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3633. for ac_dir in $PATH; do
  3634. IFS="$lt_save_ifs"
  3635. test -z "$ac_dir" && ac_dir=.
  3636. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3637. lt_cv_path_LD="$ac_dir/$ac_prog"
  3638. # Check to see if the program is GNU ld. I'd rather use --version,
  3639. # but apparently some variants of GNU ld only accept -v.
  3640. # Break only if it was the GNU/non-GNU ld that we prefer.
  3641. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3642. *GNU* | *'with BFD'*)
  3643. test "$with_gnu_ld" != no && break
  3644. ;;
  3645. *)
  3646. test "$with_gnu_ld" != yes && break
  3647. ;;
  3648. esac
  3649. fi
  3650. done
  3651. IFS="$lt_save_ifs"
  3652. else
  3653. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3654. fi
  3655. fi
  3656. LD="$lt_cv_path_LD"
  3657. if test -n "$LD"; then
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3659. $as_echo "$LD" >&6; }
  3660. else
  3661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3662. $as_echo "no" >&6; }
  3663. fi
  3664. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3666. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3667. if ${lt_cv_prog_gnu_ld+:} false; then :
  3668. $as_echo_n "(cached) " >&6
  3669. else
  3670. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3671. case `$LD -v 2>&1 </dev/null` in
  3672. *GNU* | *'with BFD'*)
  3673. lt_cv_prog_gnu_ld=yes
  3674. ;;
  3675. *)
  3676. lt_cv_prog_gnu_ld=no
  3677. ;;
  3678. esac
  3679. fi
  3680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3681. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3682. with_gnu_ld=$lt_cv_prog_gnu_ld
  3683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3684. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3685. if ${lt_cv_path_NM+:} false; then :
  3686. $as_echo_n "(cached) " >&6
  3687. else
  3688. if test -n "$NM"; then
  3689. # Let the user override the test.
  3690. lt_cv_path_NM="$NM"
  3691. else
  3692. lt_nm_to_check="${ac_tool_prefix}nm"
  3693. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3694. lt_nm_to_check="$lt_nm_to_check nm"
  3695. fi
  3696. for lt_tmp_nm in $lt_nm_to_check; do
  3697. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3698. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3699. IFS="$lt_save_ifs"
  3700. test -z "$ac_dir" && ac_dir=.
  3701. tmp_nm="$ac_dir/$lt_tmp_nm"
  3702. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3703. # Check to see if the nm accepts a BSD-compat flag.
  3704. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3705. # nm: unknown option "B" ignored
  3706. # Tru64's nm complains that /dev/null is an invalid object file
  3707. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3708. */dev/null* | *'Invalid file or object type'*)
  3709. lt_cv_path_NM="$tmp_nm -B"
  3710. break
  3711. ;;
  3712. *)
  3713. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3714. */dev/null*)
  3715. lt_cv_path_NM="$tmp_nm -p"
  3716. break
  3717. ;;
  3718. *)
  3719. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3720. continue # so that we can try to find one that supports BSD flags
  3721. ;;
  3722. esac
  3723. ;;
  3724. esac
  3725. fi
  3726. done
  3727. IFS="$lt_save_ifs"
  3728. done
  3729. : ${lt_cv_path_NM=no}
  3730. fi
  3731. fi
  3732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3733. $as_echo "$lt_cv_path_NM" >&6; }
  3734. if test "$lt_cv_path_NM" != "no"; then
  3735. NM="$lt_cv_path_NM"
  3736. else
  3737. # Didn't find any BSD compatible name lister, look for dumpbin.
  3738. if test -n "$DUMPBIN"; then :
  3739. # Let the user override the test.
  3740. else
  3741. if test -n "$ac_tool_prefix"; then
  3742. for ac_prog in dumpbin "link -dump"
  3743. do
  3744. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3745. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3747. $as_echo_n "checking for $ac_word... " >&6; }
  3748. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3749. $as_echo_n "(cached) " >&6
  3750. else
  3751. if test -n "$DUMPBIN"; then
  3752. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3753. else
  3754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3755. for as_dir in $PATH
  3756. do
  3757. IFS=$as_save_IFS
  3758. test -z "$as_dir" && as_dir=.
  3759. for ac_exec_ext in '' $ac_executable_extensions; do
  3760. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3761. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3762. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3763. break 2
  3764. fi
  3765. done
  3766. done
  3767. IFS=$as_save_IFS
  3768. fi
  3769. fi
  3770. DUMPBIN=$ac_cv_prog_DUMPBIN
  3771. if test -n "$DUMPBIN"; then
  3772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3773. $as_echo "$DUMPBIN" >&6; }
  3774. else
  3775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3776. $as_echo "no" >&6; }
  3777. fi
  3778. test -n "$DUMPBIN" && break
  3779. done
  3780. fi
  3781. if test -z "$DUMPBIN"; then
  3782. ac_ct_DUMPBIN=$DUMPBIN
  3783. for ac_prog in dumpbin "link -dump"
  3784. do
  3785. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3786. set dummy $ac_prog; ac_word=$2
  3787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3788. $as_echo_n "checking for $ac_word... " >&6; }
  3789. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3790. $as_echo_n "(cached) " >&6
  3791. else
  3792. if test -n "$ac_ct_DUMPBIN"; then
  3793. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3794. else
  3795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3796. for as_dir in $PATH
  3797. do
  3798. IFS=$as_save_IFS
  3799. test -z "$as_dir" && as_dir=.
  3800. for ac_exec_ext in '' $ac_executable_extensions; do
  3801. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3802. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3804. break 2
  3805. fi
  3806. done
  3807. done
  3808. IFS=$as_save_IFS
  3809. fi
  3810. fi
  3811. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3812. if test -n "$ac_ct_DUMPBIN"; then
  3813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3814. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3815. else
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3817. $as_echo "no" >&6; }
  3818. fi
  3819. test -n "$ac_ct_DUMPBIN" && break
  3820. done
  3821. if test "x$ac_ct_DUMPBIN" = x; then
  3822. DUMPBIN=":"
  3823. else
  3824. case $cross_compiling:$ac_tool_warned in
  3825. yes:)
  3826. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3827. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3828. ac_tool_warned=yes ;;
  3829. esac
  3830. DUMPBIN=$ac_ct_DUMPBIN
  3831. fi
  3832. fi
  3833. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3834. *COFF*)
  3835. DUMPBIN="$DUMPBIN -symbols"
  3836. ;;
  3837. *)
  3838. DUMPBIN=:
  3839. ;;
  3840. esac
  3841. fi
  3842. if test "$DUMPBIN" != ":"; then
  3843. NM="$DUMPBIN"
  3844. fi
  3845. fi
  3846. test -z "$NM" && NM=nm
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3848. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3849. if ${lt_cv_nm_interface+:} false; then :
  3850. $as_echo_n "(cached) " >&6
  3851. else
  3852. lt_cv_nm_interface="BSD nm"
  3853. echo "int some_variable = 0;" > conftest.$ac_ext
  3854. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3855. (eval "$ac_compile" 2>conftest.err)
  3856. cat conftest.err >&5
  3857. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3858. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3859. cat conftest.err >&5
  3860. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3861. cat conftest.out >&5
  3862. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3863. lt_cv_nm_interface="MS dumpbin"
  3864. fi
  3865. rm -f conftest*
  3866. fi
  3867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3868. $as_echo "$lt_cv_nm_interface" >&6; }
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3870. $as_echo_n "checking whether ln -s works... " >&6; }
  3871. LN_S=$as_ln_s
  3872. if test "$LN_S" = "ln -s"; then
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3874. $as_echo "yes" >&6; }
  3875. else
  3876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3877. $as_echo "no, using $LN_S" >&6; }
  3878. fi
  3879. # find the maximum length of command line arguments
  3880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3881. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3882. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3883. $as_echo_n "(cached) " >&6
  3884. else
  3885. i=0
  3886. teststring="ABCD"
  3887. case $build_os in
  3888. msdosdjgpp*)
  3889. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3890. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3891. # during glob expansion). Even if it were fixed, the result of this
  3892. # check would be larger than it should be.
  3893. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3894. ;;
  3895. gnu*)
  3896. # Under GNU Hurd, this test is not required because there is
  3897. # no limit to the length of command line arguments.
  3898. # Libtool will interpret -1 as no limit whatsoever
  3899. lt_cv_sys_max_cmd_len=-1;
  3900. ;;
  3901. cygwin* | mingw* | cegcc*)
  3902. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3903. # about 5 minutes as the teststring grows exponentially.
  3904. # Worse, since 9x/ME are not pre-emptively multitasking,
  3905. # you end up with a "frozen" computer, even though with patience
  3906. # the test eventually succeeds (with a max line length of 256k).
  3907. # Instead, let's just punt: use the minimum linelength reported by
  3908. # all of the supported platforms: 8192 (on NT/2K/XP).
  3909. lt_cv_sys_max_cmd_len=8192;
  3910. ;;
  3911. mint*)
  3912. # On MiNT this can take a long time and run out of memory.
  3913. lt_cv_sys_max_cmd_len=8192;
  3914. ;;
  3915. amigaos*)
  3916. # On AmigaOS with pdksh, this test takes hours, literally.
  3917. # So we just punt and use a minimum line length of 8192.
  3918. lt_cv_sys_max_cmd_len=8192;
  3919. ;;
  3920. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3921. # This has been around since 386BSD, at least. Likely further.
  3922. if test -x /sbin/sysctl; then
  3923. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3924. elif test -x /usr/sbin/sysctl; then
  3925. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3926. else
  3927. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3928. fi
  3929. # And add a safety zone
  3930. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3931. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3932. ;;
  3933. interix*)
  3934. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3935. lt_cv_sys_max_cmd_len=196608
  3936. ;;
  3937. os2*)
  3938. # The test takes a long time on OS/2.
  3939. lt_cv_sys_max_cmd_len=8192
  3940. ;;
  3941. osf*)
  3942. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3943. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3944. # nice to cause kernel panics so lets avoid the loop below.
  3945. # First set a reasonable default.
  3946. lt_cv_sys_max_cmd_len=16384
  3947. #
  3948. if test -x /sbin/sysconfig; then
  3949. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3950. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3951. esac
  3952. fi
  3953. ;;
  3954. sco3.2v5*)
  3955. lt_cv_sys_max_cmd_len=102400
  3956. ;;
  3957. sysv5* | sco5v6* | sysv4.2uw2*)
  3958. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3959. if test -n "$kargmax"; then
  3960. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3961. else
  3962. lt_cv_sys_max_cmd_len=32768
  3963. fi
  3964. ;;
  3965. *)
  3966. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3967. if test -n "$lt_cv_sys_max_cmd_len"; then
  3968. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3969. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3970. else
  3971. # Make teststring a little bigger before we do anything with it.
  3972. # a 1K string should be a reasonable start.
  3973. for i in 1 2 3 4 5 6 7 8 ; do
  3974. teststring=$teststring$teststring
  3975. done
  3976. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3977. # If test is not a shell built-in, we'll probably end up computing a
  3978. # maximum length that is only half of the actual maximum length, but
  3979. # we can't tell.
  3980. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3981. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3982. test $i != 17 # 1/2 MB should be enough
  3983. do
  3984. i=`expr $i + 1`
  3985. teststring=$teststring$teststring
  3986. done
  3987. # Only check the string length outside the loop.
  3988. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3989. teststring=
  3990. # Add a significant safety factor because C++ compilers can tack on
  3991. # massive amounts of additional arguments before passing them to the
  3992. # linker. It appears as though 1/2 is a usable value.
  3993. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3994. fi
  3995. ;;
  3996. esac
  3997. fi
  3998. if test -n $lt_cv_sys_max_cmd_len ; then
  3999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4000. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4001. else
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4003. $as_echo "none" >&6; }
  4004. fi
  4005. max_cmd_len=$lt_cv_sys_max_cmd_len
  4006. : ${CP="cp -f"}
  4007. : ${MV="mv -f"}
  4008. : ${RM="rm -f"}
  4009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4010. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4011. # Try some XSI features
  4012. xsi_shell=no
  4013. ( _lt_dummy="a/b/c"
  4014. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4015. = c,a/b,b/c, \
  4016. && eval 'test $(( 1 + 1 )) -eq 2 \
  4017. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4018. && xsi_shell=yes
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4020. $as_echo "$xsi_shell" >&6; }
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4022. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4023. lt_shell_append=no
  4024. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4025. >/dev/null 2>&1 \
  4026. && lt_shell_append=yes
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4028. $as_echo "$lt_shell_append" >&6; }
  4029. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4030. lt_unset=unset
  4031. else
  4032. lt_unset=false
  4033. fi
  4034. # test EBCDIC or ASCII
  4035. case `echo X|tr X '\101'` in
  4036. A) # ASCII based system
  4037. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4038. lt_SP2NL='tr \040 \012'
  4039. lt_NL2SP='tr \015\012 \040\040'
  4040. ;;
  4041. *) # EBCDIC based system
  4042. lt_SP2NL='tr \100 \n'
  4043. lt_NL2SP='tr \r\n \100\100'
  4044. ;;
  4045. esac
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4047. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4048. if ${lt_cv_to_host_file_cmd+:} false; then :
  4049. $as_echo_n "(cached) " >&6
  4050. else
  4051. case $host in
  4052. *-*-mingw* )
  4053. case $build in
  4054. *-*-mingw* ) # actually msys
  4055. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4056. ;;
  4057. *-*-cygwin* )
  4058. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4059. ;;
  4060. * ) # otherwise, assume *nix
  4061. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4062. ;;
  4063. esac
  4064. ;;
  4065. *-*-cygwin* )
  4066. case $build in
  4067. *-*-mingw* ) # actually msys
  4068. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4069. ;;
  4070. *-*-cygwin* )
  4071. lt_cv_to_host_file_cmd=func_convert_file_noop
  4072. ;;
  4073. * ) # otherwise, assume *nix
  4074. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4075. ;;
  4076. esac
  4077. ;;
  4078. * ) # unhandled hosts (and "normal" native builds)
  4079. lt_cv_to_host_file_cmd=func_convert_file_noop
  4080. ;;
  4081. esac
  4082. fi
  4083. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4085. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4087. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4088. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4089. $as_echo_n "(cached) " >&6
  4090. else
  4091. #assume ordinary cross tools, or native build.
  4092. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4093. case $host in
  4094. *-*-mingw* )
  4095. case $build in
  4096. *-*-mingw* ) # actually msys
  4097. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4098. ;;
  4099. esac
  4100. ;;
  4101. esac
  4102. fi
  4103. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4105. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4107. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4108. if ${lt_cv_ld_reload_flag+:} false; then :
  4109. $as_echo_n "(cached) " >&6
  4110. else
  4111. lt_cv_ld_reload_flag='-r'
  4112. fi
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4114. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4115. reload_flag=$lt_cv_ld_reload_flag
  4116. case $reload_flag in
  4117. "" | " "*) ;;
  4118. *) reload_flag=" $reload_flag" ;;
  4119. esac
  4120. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4121. case $host_os in
  4122. cygwin* | mingw* | pw32* | cegcc*)
  4123. if test "$GCC" != yes; then
  4124. reload_cmds=false
  4125. fi
  4126. ;;
  4127. darwin*)
  4128. if test "$GCC" = yes; then
  4129. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4130. else
  4131. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4132. fi
  4133. ;;
  4134. esac
  4135. if test -n "$ac_tool_prefix"; then
  4136. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4137. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4139. $as_echo_n "checking for $ac_word... " >&6; }
  4140. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4141. $as_echo_n "(cached) " >&6
  4142. else
  4143. if test -n "$OBJDUMP"; then
  4144. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4145. else
  4146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4147. for as_dir in $PATH
  4148. do
  4149. IFS=$as_save_IFS
  4150. test -z "$as_dir" && as_dir=.
  4151. for ac_exec_ext in '' $ac_executable_extensions; do
  4152. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4153. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4154. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4155. break 2
  4156. fi
  4157. done
  4158. done
  4159. IFS=$as_save_IFS
  4160. fi
  4161. fi
  4162. OBJDUMP=$ac_cv_prog_OBJDUMP
  4163. if test -n "$OBJDUMP"; then
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4165. $as_echo "$OBJDUMP" >&6; }
  4166. else
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4168. $as_echo "no" >&6; }
  4169. fi
  4170. fi
  4171. if test -z "$ac_cv_prog_OBJDUMP"; then
  4172. ac_ct_OBJDUMP=$OBJDUMP
  4173. # Extract the first word of "objdump", so it can be a program name with args.
  4174. set dummy objdump; ac_word=$2
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4176. $as_echo_n "checking for $ac_word... " >&6; }
  4177. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4178. $as_echo_n "(cached) " >&6
  4179. else
  4180. if test -n "$ac_ct_OBJDUMP"; then
  4181. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4182. else
  4183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4184. for as_dir in $PATH
  4185. do
  4186. IFS=$as_save_IFS
  4187. test -z "$as_dir" && as_dir=.
  4188. for ac_exec_ext in '' $ac_executable_extensions; do
  4189. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4190. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4191. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4192. break 2
  4193. fi
  4194. done
  4195. done
  4196. IFS=$as_save_IFS
  4197. fi
  4198. fi
  4199. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4200. if test -n "$ac_ct_OBJDUMP"; then
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4202. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4203. else
  4204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4205. $as_echo "no" >&6; }
  4206. fi
  4207. if test "x$ac_ct_OBJDUMP" = x; then
  4208. OBJDUMP="false"
  4209. else
  4210. case $cross_compiling:$ac_tool_warned in
  4211. yes:)
  4212. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4213. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4214. ac_tool_warned=yes ;;
  4215. esac
  4216. OBJDUMP=$ac_ct_OBJDUMP
  4217. fi
  4218. else
  4219. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4220. fi
  4221. test -z "$OBJDUMP" && OBJDUMP=objdump
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4223. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4224. if ${lt_cv_deplibs_check_method+:} false; then :
  4225. $as_echo_n "(cached) " >&6
  4226. else
  4227. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4228. lt_cv_file_magic_test_file=
  4229. lt_cv_deplibs_check_method='unknown'
  4230. # Need to set the preceding variable on all platforms that support
  4231. # interlibrary dependencies.
  4232. # 'none' -- dependencies not supported.
  4233. # `unknown' -- same as none, but documents that we really don't know.
  4234. # 'pass_all' -- all dependencies passed with no checks.
  4235. # 'test_compile' -- check by making test program.
  4236. # 'file_magic [[regex]]' -- check by looking for files in library path
  4237. # which responds to the $file_magic_cmd with a given extended regex.
  4238. # If you have `file' or equivalent on your system and you're not sure
  4239. # whether `pass_all' will *always* work, you probably want this one.
  4240. case $host_os in
  4241. aix[4-9]*)
  4242. lt_cv_deplibs_check_method=pass_all
  4243. ;;
  4244. beos*)
  4245. lt_cv_deplibs_check_method=pass_all
  4246. ;;
  4247. bsdi[45]*)
  4248. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4249. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4250. lt_cv_file_magic_test_file=/shlib/libc.so
  4251. ;;
  4252. cygwin*)
  4253. # func_win32_libid is a shell function defined in ltmain.sh
  4254. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4255. lt_cv_file_magic_cmd='func_win32_libid'
  4256. lt_cv_deplibs_check_method=pass_all
  4257. ;;
  4258. mingw* | pw32*)
  4259. # Base MSYS/MinGW do not provide the 'file' command needed by
  4260. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4261. # unless we find 'file', for example because we are cross-compiling.
  4262. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4263. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4264. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4265. lt_cv_file_magic_cmd='func_win32_libid'
  4266. else
  4267. # Keep this pattern in sync with the one in func_win32_libid.
  4268. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4269. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4270. fi
  4271. lt_cv_deplibs_check_method=pass_all
  4272. ;;
  4273. cegcc*)
  4274. # use the weaker test based on 'objdump'. See mingw*.
  4275. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4276. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4277. ;;
  4278. darwin* | rhapsody*)
  4279. lt_cv_deplibs_check_method=pass_all
  4280. ;;
  4281. freebsd* | dragonfly*)
  4282. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4283. case $host_cpu in
  4284. i*86 )
  4285. # Not sure whether the presence of OpenBSD here was a mistake.
  4286. # Let's accept both of them until this is cleared up.
  4287. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4288. lt_cv_file_magic_cmd=/usr/bin/file
  4289. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4290. ;;
  4291. esac
  4292. else
  4293. lt_cv_deplibs_check_method=pass_all
  4294. fi
  4295. ;;
  4296. gnu*)
  4297. lt_cv_deplibs_check_method=pass_all
  4298. ;;
  4299. haiku*)
  4300. lt_cv_deplibs_check_method=pass_all
  4301. ;;
  4302. hpux10.20* | hpux11*)
  4303. lt_cv_file_magic_cmd=/usr/bin/file
  4304. case $host_cpu in
  4305. ia64*)
  4306. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4307. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4308. ;;
  4309. hppa*64*)
  4310. 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]'
  4311. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4312. ;;
  4313. *)
  4314. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4315. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4316. ;;
  4317. esac
  4318. ;;
  4319. interix[3-9]*)
  4320. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4321. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4322. ;;
  4323. irix5* | irix6* | nonstopux*)
  4324. case $LD in
  4325. *-32|*"-32 ") libmagic=32-bit;;
  4326. *-n32|*"-n32 ") libmagic=N32;;
  4327. *-64|*"-64 ") libmagic=64-bit;;
  4328. *) libmagic=never-match;;
  4329. esac
  4330. lt_cv_deplibs_check_method=pass_all
  4331. ;;
  4332. # This must be glibc/ELF.
  4333. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4334. lt_cv_deplibs_check_method=pass_all
  4335. ;;
  4336. netbsd*)
  4337. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4338. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4339. else
  4340. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4341. fi
  4342. ;;
  4343. newos6*)
  4344. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4345. lt_cv_file_magic_cmd=/usr/bin/file
  4346. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4347. ;;
  4348. *nto* | *qnx*)
  4349. lt_cv_deplibs_check_method=pass_all
  4350. ;;
  4351. openbsd*)
  4352. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4353. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4354. else
  4355. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4356. fi
  4357. ;;
  4358. osf3* | osf4* | osf5*)
  4359. lt_cv_deplibs_check_method=pass_all
  4360. ;;
  4361. rdos*)
  4362. lt_cv_deplibs_check_method=pass_all
  4363. ;;
  4364. solaris*)
  4365. lt_cv_deplibs_check_method=pass_all
  4366. ;;
  4367. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4368. lt_cv_deplibs_check_method=pass_all
  4369. ;;
  4370. sysv4 | sysv4.3*)
  4371. case $host_vendor in
  4372. motorola)
  4373. 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]'
  4374. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4375. ;;
  4376. ncr)
  4377. lt_cv_deplibs_check_method=pass_all
  4378. ;;
  4379. sequent)
  4380. lt_cv_file_magic_cmd='/bin/file'
  4381. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4382. ;;
  4383. sni)
  4384. lt_cv_file_magic_cmd='/bin/file'
  4385. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4386. lt_cv_file_magic_test_file=/lib/libc.so
  4387. ;;
  4388. siemens)
  4389. lt_cv_deplibs_check_method=pass_all
  4390. ;;
  4391. pc)
  4392. lt_cv_deplibs_check_method=pass_all
  4393. ;;
  4394. esac
  4395. ;;
  4396. tpf*)
  4397. lt_cv_deplibs_check_method=pass_all
  4398. ;;
  4399. esac
  4400. fi
  4401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4402. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4403. file_magic_glob=
  4404. want_nocaseglob=no
  4405. if test "$build" = "$host"; then
  4406. case $host_os in
  4407. mingw* | pw32*)
  4408. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4409. want_nocaseglob=yes
  4410. else
  4411. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4412. fi
  4413. ;;
  4414. esac
  4415. fi
  4416. file_magic_cmd=$lt_cv_file_magic_cmd
  4417. deplibs_check_method=$lt_cv_deplibs_check_method
  4418. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4419. if test -n "$ac_tool_prefix"; then
  4420. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4421. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4423. $as_echo_n "checking for $ac_word... " >&6; }
  4424. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4425. $as_echo_n "(cached) " >&6
  4426. else
  4427. if test -n "$DLLTOOL"; then
  4428. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4429. else
  4430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4431. for as_dir in $PATH
  4432. do
  4433. IFS=$as_save_IFS
  4434. test -z "$as_dir" && as_dir=.
  4435. for ac_exec_ext in '' $ac_executable_extensions; do
  4436. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4437. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4438. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4439. break 2
  4440. fi
  4441. done
  4442. done
  4443. IFS=$as_save_IFS
  4444. fi
  4445. fi
  4446. DLLTOOL=$ac_cv_prog_DLLTOOL
  4447. if test -n "$DLLTOOL"; then
  4448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4449. $as_echo "$DLLTOOL" >&6; }
  4450. else
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4452. $as_echo "no" >&6; }
  4453. fi
  4454. fi
  4455. if test -z "$ac_cv_prog_DLLTOOL"; then
  4456. ac_ct_DLLTOOL=$DLLTOOL
  4457. # Extract the first word of "dlltool", so it can be a program name with args.
  4458. set dummy dlltool; ac_word=$2
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4460. $as_echo_n "checking for $ac_word... " >&6; }
  4461. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4462. $as_echo_n "(cached) " >&6
  4463. else
  4464. if test -n "$ac_ct_DLLTOOL"; then
  4465. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4466. else
  4467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4468. for as_dir in $PATH
  4469. do
  4470. IFS=$as_save_IFS
  4471. test -z "$as_dir" && as_dir=.
  4472. for ac_exec_ext in '' $ac_executable_extensions; do
  4473. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4474. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4475. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4476. break 2
  4477. fi
  4478. done
  4479. done
  4480. IFS=$as_save_IFS
  4481. fi
  4482. fi
  4483. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4484. if test -n "$ac_ct_DLLTOOL"; then
  4485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4486. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4487. else
  4488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4489. $as_echo "no" >&6; }
  4490. fi
  4491. if test "x$ac_ct_DLLTOOL" = x; then
  4492. DLLTOOL="false"
  4493. else
  4494. case $cross_compiling:$ac_tool_warned in
  4495. yes:)
  4496. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4497. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4498. ac_tool_warned=yes ;;
  4499. esac
  4500. DLLTOOL=$ac_ct_DLLTOOL
  4501. fi
  4502. else
  4503. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4504. fi
  4505. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4507. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4508. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4509. $as_echo_n "(cached) " >&6
  4510. else
  4511. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4512. case $host_os in
  4513. cygwin* | mingw* | pw32* | cegcc*)
  4514. # two different shell functions defined in ltmain.sh
  4515. # decide which to use based on capabilities of $DLLTOOL
  4516. case `$DLLTOOL --help 2>&1` in
  4517. *--identify-strict*)
  4518. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4519. ;;
  4520. *)
  4521. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4522. ;;
  4523. esac
  4524. ;;
  4525. *)
  4526. # fallback: assume linklib IS sharedlib
  4527. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4528. ;;
  4529. esac
  4530. fi
  4531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4532. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4533. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4534. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4535. if test -n "$ac_tool_prefix"; then
  4536. for ac_prog in ar
  4537. do
  4538. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4539. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4541. $as_echo_n "checking for $ac_word... " >&6; }
  4542. if ${ac_cv_prog_AR+:} false; then :
  4543. $as_echo_n "(cached) " >&6
  4544. else
  4545. if test -n "$AR"; then
  4546. ac_cv_prog_AR="$AR" # Let the user override the test.
  4547. else
  4548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4549. for as_dir in $PATH
  4550. do
  4551. IFS=$as_save_IFS
  4552. test -z "$as_dir" && as_dir=.
  4553. for ac_exec_ext in '' $ac_executable_extensions; do
  4554. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4555. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4556. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4557. break 2
  4558. fi
  4559. done
  4560. done
  4561. IFS=$as_save_IFS
  4562. fi
  4563. fi
  4564. AR=$ac_cv_prog_AR
  4565. if test -n "$AR"; then
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4567. $as_echo "$AR" >&6; }
  4568. else
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4570. $as_echo "no" >&6; }
  4571. fi
  4572. test -n "$AR" && break
  4573. done
  4574. fi
  4575. if test -z "$AR"; then
  4576. ac_ct_AR=$AR
  4577. for ac_prog in ar
  4578. do
  4579. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4580. set dummy $ac_prog; ac_word=$2
  4581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4582. $as_echo_n "checking for $ac_word... " >&6; }
  4583. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4584. $as_echo_n "(cached) " >&6
  4585. else
  4586. if test -n "$ac_ct_AR"; then
  4587. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4588. else
  4589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4590. for as_dir in $PATH
  4591. do
  4592. IFS=$as_save_IFS
  4593. test -z "$as_dir" && as_dir=.
  4594. for ac_exec_ext in '' $ac_executable_extensions; do
  4595. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4596. ac_cv_prog_ac_ct_AR="$ac_prog"
  4597. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4598. break 2
  4599. fi
  4600. done
  4601. done
  4602. IFS=$as_save_IFS
  4603. fi
  4604. fi
  4605. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4606. if test -n "$ac_ct_AR"; then
  4607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4608. $as_echo "$ac_ct_AR" >&6; }
  4609. else
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4611. $as_echo "no" >&6; }
  4612. fi
  4613. test -n "$ac_ct_AR" && break
  4614. done
  4615. if test "x$ac_ct_AR" = x; then
  4616. AR="false"
  4617. else
  4618. case $cross_compiling:$ac_tool_warned in
  4619. yes:)
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4621. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4622. ac_tool_warned=yes ;;
  4623. esac
  4624. AR=$ac_ct_AR
  4625. fi
  4626. fi
  4627. : ${AR=ar}
  4628. : ${AR_FLAGS=cru}
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4630. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4631. if ${lt_cv_ar_at_file+:} false; then :
  4632. $as_echo_n "(cached) " >&6
  4633. else
  4634. lt_cv_ar_at_file=no
  4635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4636. /* end confdefs.h. */
  4637. int
  4638. main ()
  4639. {
  4640. ;
  4641. return 0;
  4642. }
  4643. _ACEOF
  4644. if ac_fn_c_try_compile "$LINENO"; then :
  4645. echo conftest.$ac_objext > conftest.lst
  4646. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4647. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4648. (eval $lt_ar_try) 2>&5
  4649. ac_status=$?
  4650. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4651. test $ac_status = 0; }
  4652. if test "$ac_status" -eq 0; then
  4653. # Ensure the archiver fails upon bogus file names.
  4654. rm -f conftest.$ac_objext libconftest.a
  4655. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4656. (eval $lt_ar_try) 2>&5
  4657. ac_status=$?
  4658. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4659. test $ac_status = 0; }
  4660. if test "$ac_status" -ne 0; then
  4661. lt_cv_ar_at_file=@
  4662. fi
  4663. fi
  4664. rm -f conftest.* libconftest.a
  4665. fi
  4666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4667. fi
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4669. $as_echo "$lt_cv_ar_at_file" >&6; }
  4670. if test "x$lt_cv_ar_at_file" = xno; then
  4671. archiver_list_spec=
  4672. else
  4673. archiver_list_spec=$lt_cv_ar_at_file
  4674. fi
  4675. if test -n "$ac_tool_prefix"; then
  4676. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4677. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4679. $as_echo_n "checking for $ac_word... " >&6; }
  4680. if ${ac_cv_prog_STRIP+:} false; then :
  4681. $as_echo_n "(cached) " >&6
  4682. else
  4683. if test -n "$STRIP"; then
  4684. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4685. else
  4686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4687. for as_dir in $PATH
  4688. do
  4689. IFS=$as_save_IFS
  4690. test -z "$as_dir" && as_dir=.
  4691. for ac_exec_ext in '' $ac_executable_extensions; do
  4692. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4693. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4694. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4695. break 2
  4696. fi
  4697. done
  4698. done
  4699. IFS=$as_save_IFS
  4700. fi
  4701. fi
  4702. STRIP=$ac_cv_prog_STRIP
  4703. if test -n "$STRIP"; then
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4705. $as_echo "$STRIP" >&6; }
  4706. else
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4708. $as_echo "no" >&6; }
  4709. fi
  4710. fi
  4711. if test -z "$ac_cv_prog_STRIP"; then
  4712. ac_ct_STRIP=$STRIP
  4713. # Extract the first word of "strip", so it can be a program name with args.
  4714. set dummy strip; ac_word=$2
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4716. $as_echo_n "checking for $ac_word... " >&6; }
  4717. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4718. $as_echo_n "(cached) " >&6
  4719. else
  4720. if test -n "$ac_ct_STRIP"; then
  4721. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4722. else
  4723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4724. for as_dir in $PATH
  4725. do
  4726. IFS=$as_save_IFS
  4727. test -z "$as_dir" && as_dir=.
  4728. for ac_exec_ext in '' $ac_executable_extensions; do
  4729. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4730. ac_cv_prog_ac_ct_STRIP="strip"
  4731. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4732. break 2
  4733. fi
  4734. done
  4735. done
  4736. IFS=$as_save_IFS
  4737. fi
  4738. fi
  4739. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4740. if test -n "$ac_ct_STRIP"; then
  4741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4742. $as_echo "$ac_ct_STRIP" >&6; }
  4743. else
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4745. $as_echo "no" >&6; }
  4746. fi
  4747. if test "x$ac_ct_STRIP" = x; then
  4748. STRIP=":"
  4749. else
  4750. case $cross_compiling:$ac_tool_warned in
  4751. yes:)
  4752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4753. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4754. ac_tool_warned=yes ;;
  4755. esac
  4756. STRIP=$ac_ct_STRIP
  4757. fi
  4758. else
  4759. STRIP="$ac_cv_prog_STRIP"
  4760. fi
  4761. test -z "$STRIP" && STRIP=:
  4762. if test -n "$ac_tool_prefix"; then
  4763. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4764. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4766. $as_echo_n "checking for $ac_word... " >&6; }
  4767. if ${ac_cv_prog_RANLIB+:} false; then :
  4768. $as_echo_n "(cached) " >&6
  4769. else
  4770. if test -n "$RANLIB"; then
  4771. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4772. else
  4773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4774. for as_dir in $PATH
  4775. do
  4776. IFS=$as_save_IFS
  4777. test -z "$as_dir" && as_dir=.
  4778. for ac_exec_ext in '' $ac_executable_extensions; do
  4779. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4780. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4781. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4782. break 2
  4783. fi
  4784. done
  4785. done
  4786. IFS=$as_save_IFS
  4787. fi
  4788. fi
  4789. RANLIB=$ac_cv_prog_RANLIB
  4790. if test -n "$RANLIB"; then
  4791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4792. $as_echo "$RANLIB" >&6; }
  4793. else
  4794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4795. $as_echo "no" >&6; }
  4796. fi
  4797. fi
  4798. if test -z "$ac_cv_prog_RANLIB"; then
  4799. ac_ct_RANLIB=$RANLIB
  4800. # Extract the first word of "ranlib", so it can be a program name with args.
  4801. set dummy ranlib; ac_word=$2
  4802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4803. $as_echo_n "checking for $ac_word... " >&6; }
  4804. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4805. $as_echo_n "(cached) " >&6
  4806. else
  4807. if test -n "$ac_ct_RANLIB"; then
  4808. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4809. else
  4810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4811. for as_dir in $PATH
  4812. do
  4813. IFS=$as_save_IFS
  4814. test -z "$as_dir" && as_dir=.
  4815. for ac_exec_ext in '' $ac_executable_extensions; do
  4816. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4817. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4818. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4819. break 2
  4820. fi
  4821. done
  4822. done
  4823. IFS=$as_save_IFS
  4824. fi
  4825. fi
  4826. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4827. if test -n "$ac_ct_RANLIB"; then
  4828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4829. $as_echo "$ac_ct_RANLIB" >&6; }
  4830. else
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4832. $as_echo "no" >&6; }
  4833. fi
  4834. if test "x$ac_ct_RANLIB" = x; then
  4835. RANLIB=":"
  4836. else
  4837. case $cross_compiling:$ac_tool_warned in
  4838. yes:)
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4840. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4841. ac_tool_warned=yes ;;
  4842. esac
  4843. RANLIB=$ac_ct_RANLIB
  4844. fi
  4845. else
  4846. RANLIB="$ac_cv_prog_RANLIB"
  4847. fi
  4848. test -z "$RANLIB" && RANLIB=:
  4849. # Determine commands to create old-style static archives.
  4850. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4851. old_postinstall_cmds='chmod 644 $oldlib'
  4852. old_postuninstall_cmds=
  4853. if test -n "$RANLIB"; then
  4854. case $host_os in
  4855. openbsd*)
  4856. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4857. ;;
  4858. *)
  4859. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4860. ;;
  4861. esac
  4862. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4863. fi
  4864. case $host_os in
  4865. darwin*)
  4866. lock_old_archive_extraction=yes ;;
  4867. *)
  4868. lock_old_archive_extraction=no ;;
  4869. esac
  4870. for ac_prog in gawk mawk nawk awk
  4871. do
  4872. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4873. set dummy $ac_prog; ac_word=$2
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4875. $as_echo_n "checking for $ac_word... " >&6; }
  4876. if ${ac_cv_prog_AWK+:} false; then :
  4877. $as_echo_n "(cached) " >&6
  4878. else
  4879. if test -n "$AWK"; then
  4880. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4881. else
  4882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4883. for as_dir in $PATH
  4884. do
  4885. IFS=$as_save_IFS
  4886. test -z "$as_dir" && as_dir=.
  4887. for ac_exec_ext in '' $ac_executable_extensions; do
  4888. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4889. ac_cv_prog_AWK="$ac_prog"
  4890. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4891. break 2
  4892. fi
  4893. done
  4894. done
  4895. IFS=$as_save_IFS
  4896. fi
  4897. fi
  4898. AWK=$ac_cv_prog_AWK
  4899. if test -n "$AWK"; then
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4901. $as_echo "$AWK" >&6; }
  4902. else
  4903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4904. $as_echo "no" >&6; }
  4905. fi
  4906. test -n "$AWK" && break
  4907. done
  4908. # If no C compiler was specified, use CC.
  4909. LTCC=${LTCC-"$CC"}
  4910. # If no C compiler flags were specified, use CFLAGS.
  4911. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4912. # Allow CC to be a program name with arguments.
  4913. compiler=$CC
  4914. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4916. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4917. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4918. $as_echo_n "(cached) " >&6
  4919. else
  4920. # These are sane defaults that work on at least a few old systems.
  4921. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4922. # Character class describing NM global symbol codes.
  4923. symcode='[BCDEGRST]'
  4924. # Regexp to match symbols that can be accessed directly from C.
  4925. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4926. # Define system-specific variables.
  4927. case $host_os in
  4928. aix*)
  4929. symcode='[BCDT]'
  4930. ;;
  4931. cygwin* | mingw* | pw32* | cegcc*)
  4932. symcode='[ABCDGISTW]'
  4933. ;;
  4934. hpux*)
  4935. if test "$host_cpu" = ia64; then
  4936. symcode='[ABCDEGRST]'
  4937. fi
  4938. ;;
  4939. irix* | nonstopux*)
  4940. symcode='[BCDEGRST]'
  4941. ;;
  4942. osf*)
  4943. symcode='[BCDEGQRST]'
  4944. ;;
  4945. solaris*)
  4946. symcode='[BDRT]'
  4947. ;;
  4948. sco3.2v5*)
  4949. symcode='[DT]'
  4950. ;;
  4951. sysv4.2uw2*)
  4952. symcode='[DT]'
  4953. ;;
  4954. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4955. symcode='[ABDT]'
  4956. ;;
  4957. sysv4)
  4958. symcode='[DFNSTU]'
  4959. ;;
  4960. esac
  4961. # If we're using GNU nm, then use its standard symbol codes.
  4962. case `$NM -V 2>&1` in
  4963. *GNU* | *'with BFD'*)
  4964. symcode='[ABCDGIRSTW]' ;;
  4965. esac
  4966. # Transform an extracted symbol line into a proper C declaration.
  4967. # Some systems (esp. on ia64) link data and code symbols differently,
  4968. # so use this general approach.
  4969. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4970. # Transform an extracted symbol line into symbol name and symbol address
  4971. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4972. 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'"
  4973. # Handle CRLF in mingw tool chain
  4974. opt_cr=
  4975. case $build_os in
  4976. mingw*)
  4977. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4978. ;;
  4979. esac
  4980. # Try without a prefix underscore, then with it.
  4981. for ac_symprfx in "" "_"; do
  4982. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4983. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4984. # Write the raw and C identifiers.
  4985. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4986. # Fake it for dumpbin and say T for any non-static function
  4987. # and D for any global variable.
  4988. # Also find C++ and __fastcall symbols from MSVC++,
  4989. # which start with @ or ?.
  4990. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4991. " {last_section=section; section=\$ 3};"\
  4992. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4993. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4994. " \$ 0!~/External *\|/{next};"\
  4995. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4996. " {if(hide[section]) next};"\
  4997. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4998. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4999. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5000. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5001. " ' prfx=^$ac_symprfx"
  5002. else
  5003. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5004. fi
  5005. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5006. # Check to see that the pipe works correctly.
  5007. pipe_works=no
  5008. rm -f conftest*
  5009. cat > conftest.$ac_ext <<_LT_EOF
  5010. #ifdef __cplusplus
  5011. extern "C" {
  5012. #endif
  5013. char nm_test_var;
  5014. void nm_test_func(void);
  5015. void nm_test_func(void){}
  5016. #ifdef __cplusplus
  5017. }
  5018. #endif
  5019. int main(){nm_test_var='a';nm_test_func();return(0);}
  5020. _LT_EOF
  5021. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5022. (eval $ac_compile) 2>&5
  5023. ac_status=$?
  5024. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5025. test $ac_status = 0; }; then
  5026. # Now try to grab the symbols.
  5027. nlist=conftest.nm
  5028. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5029. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5030. ac_status=$?
  5031. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5032. test $ac_status = 0; } && test -s "$nlist"; then
  5033. # Try sorting and uniquifying the output.
  5034. if sort "$nlist" | uniq > "$nlist"T; then
  5035. mv -f "$nlist"T "$nlist"
  5036. else
  5037. rm -f "$nlist"T
  5038. fi
  5039. # Make sure that we snagged all the symbols we need.
  5040. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5041. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5042. cat <<_LT_EOF > conftest.$ac_ext
  5043. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5044. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5045. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5046. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5047. # define LT_DLSYM_CONST
  5048. #elif defined(__osf__)
  5049. /* This system does not cope well with relocations in const data. */
  5050. # define LT_DLSYM_CONST
  5051. #else
  5052. # define LT_DLSYM_CONST const
  5053. #endif
  5054. #ifdef __cplusplus
  5055. extern "C" {
  5056. #endif
  5057. _LT_EOF
  5058. # Now generate the symbol file.
  5059. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5060. cat <<_LT_EOF >> conftest.$ac_ext
  5061. /* The mapping between symbol names and symbols. */
  5062. LT_DLSYM_CONST struct {
  5063. const char *name;
  5064. void *address;
  5065. }
  5066. lt__PROGRAM__LTX_preloaded_symbols[] =
  5067. {
  5068. { "@PROGRAM@", (void *) 0 },
  5069. _LT_EOF
  5070. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5071. cat <<\_LT_EOF >> conftest.$ac_ext
  5072. {0, (void *) 0}
  5073. };
  5074. /* This works around a problem in FreeBSD linker */
  5075. #ifdef FREEBSD_WORKAROUND
  5076. static const void *lt_preloaded_setup() {
  5077. return lt__PROGRAM__LTX_preloaded_symbols;
  5078. }
  5079. #endif
  5080. #ifdef __cplusplus
  5081. }
  5082. #endif
  5083. _LT_EOF
  5084. # Now try linking the two files.
  5085. mv conftest.$ac_objext conftstm.$ac_objext
  5086. lt_globsym_save_LIBS=$LIBS
  5087. lt_globsym_save_CFLAGS=$CFLAGS
  5088. LIBS="conftstm.$ac_objext"
  5089. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5090. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5091. (eval $ac_link) 2>&5
  5092. ac_status=$?
  5093. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5094. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5095. pipe_works=yes
  5096. fi
  5097. LIBS=$lt_globsym_save_LIBS
  5098. CFLAGS=$lt_globsym_save_CFLAGS
  5099. else
  5100. echo "cannot find nm_test_func in $nlist" >&5
  5101. fi
  5102. else
  5103. echo "cannot find nm_test_var in $nlist" >&5
  5104. fi
  5105. else
  5106. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5107. fi
  5108. else
  5109. echo "$progname: failed program was:" >&5
  5110. cat conftest.$ac_ext >&5
  5111. fi
  5112. rm -rf conftest* conftst*
  5113. # Do not use the global_symbol_pipe unless it works.
  5114. if test "$pipe_works" = yes; then
  5115. break
  5116. else
  5117. lt_cv_sys_global_symbol_pipe=
  5118. fi
  5119. done
  5120. fi
  5121. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5122. lt_cv_sys_global_symbol_to_cdecl=
  5123. fi
  5124. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5126. $as_echo "failed" >&6; }
  5127. else
  5128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5129. $as_echo "ok" >&6; }
  5130. fi
  5131. # Response file support.
  5132. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5133. nm_file_list_spec='@'
  5134. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5135. nm_file_list_spec='@'
  5136. fi
  5137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5138. $as_echo_n "checking for sysroot... " >&6; }
  5139. # Check whether --with-sysroot was given.
  5140. if test "${with_sysroot+set}" = set; then :
  5141. withval=$with_sysroot;
  5142. else
  5143. with_sysroot=no
  5144. fi
  5145. lt_sysroot=
  5146. case ${with_sysroot} in #(
  5147. yes)
  5148. if test "$GCC" = yes; then
  5149. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5150. fi
  5151. ;; #(
  5152. /*)
  5153. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5154. ;; #(
  5155. no|'')
  5156. ;; #(
  5157. *)
  5158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5159. $as_echo "${with_sysroot}" >&6; }
  5160. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5161. ;;
  5162. esac
  5163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5164. $as_echo "${lt_sysroot:-no}" >&6; }
  5165. # Check whether --enable-libtool-lock was given.
  5166. if test "${enable_libtool_lock+set}" = set; then :
  5167. enableval=$enable_libtool_lock;
  5168. fi
  5169. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5170. # Some flags need to be propagated to the compiler or linker for good
  5171. # libtool support.
  5172. case $host in
  5173. ia64-*-hpux*)
  5174. # Find out which ABI we are using.
  5175. echo 'int i;' > conftest.$ac_ext
  5176. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5177. (eval $ac_compile) 2>&5
  5178. ac_status=$?
  5179. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5180. test $ac_status = 0; }; then
  5181. case `/usr/bin/file conftest.$ac_objext` in
  5182. *ELF-32*)
  5183. HPUX_IA64_MODE="32"
  5184. ;;
  5185. *ELF-64*)
  5186. HPUX_IA64_MODE="64"
  5187. ;;
  5188. esac
  5189. fi
  5190. rm -rf conftest*
  5191. ;;
  5192. *-*-irix6*)
  5193. # Find out which ABI we are using.
  5194. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5195. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5196. (eval $ac_compile) 2>&5
  5197. ac_status=$?
  5198. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5199. test $ac_status = 0; }; then
  5200. if test "$lt_cv_prog_gnu_ld" = yes; then
  5201. case `/usr/bin/file conftest.$ac_objext` in
  5202. *32-bit*)
  5203. LD="${LD-ld} -melf32bsmip"
  5204. ;;
  5205. *N32*)
  5206. LD="${LD-ld} -melf32bmipn32"
  5207. ;;
  5208. *64-bit*)
  5209. LD="${LD-ld} -melf64bmip"
  5210. ;;
  5211. esac
  5212. else
  5213. case `/usr/bin/file conftest.$ac_objext` in
  5214. *32-bit*)
  5215. LD="${LD-ld} -32"
  5216. ;;
  5217. *N32*)
  5218. LD="${LD-ld} -n32"
  5219. ;;
  5220. *64-bit*)
  5221. LD="${LD-ld} -64"
  5222. ;;
  5223. esac
  5224. fi
  5225. fi
  5226. rm -rf conftest*
  5227. ;;
  5228. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5229. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5230. # Find out which ABI we are using.
  5231. echo 'int i;' > conftest.$ac_ext
  5232. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5233. (eval $ac_compile) 2>&5
  5234. ac_status=$?
  5235. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5236. test $ac_status = 0; }; then
  5237. case `/usr/bin/file conftest.o` in
  5238. *32-bit*)
  5239. case $host in
  5240. x86_64-*kfreebsd*-gnu)
  5241. LD="${LD-ld} -m elf_i386_fbsd"
  5242. ;;
  5243. x86_64-*linux*)
  5244. LD="${LD-ld} -m elf_i386"
  5245. ;;
  5246. ppc64-*linux*|powerpc64-*linux*)
  5247. LD="${LD-ld} -m elf32ppclinux"
  5248. ;;
  5249. s390x-*linux*)
  5250. LD="${LD-ld} -m elf_s390"
  5251. ;;
  5252. sparc64-*linux*)
  5253. LD="${LD-ld} -m elf32_sparc"
  5254. ;;
  5255. esac
  5256. ;;
  5257. *64-bit*)
  5258. case $host in
  5259. x86_64-*kfreebsd*-gnu)
  5260. LD="${LD-ld} -m elf_x86_64_fbsd"
  5261. ;;
  5262. x86_64-*linux*)
  5263. LD="${LD-ld} -m elf_x86_64"
  5264. ;;
  5265. powerpc64le-*linux*)
  5266. LD="${LD-ld} -m elf64lppc"
  5267. ;;
  5268. powerpc64-*linux*)
  5269. LD="${LD-ld} -m elf64ppc"
  5270. ;;
  5271. s390*-*linux*|s390*-*tpf*)
  5272. LD="${LD-ld} -m elf64_s390"
  5273. ;;
  5274. sparc*-*linux*)
  5275. LD="${LD-ld} -m elf64_sparc"
  5276. ;;
  5277. esac
  5278. ;;
  5279. esac
  5280. fi
  5281. rm -rf conftest*
  5282. ;;
  5283. *-*-sco3.2v5*)
  5284. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5285. SAVE_CFLAGS="$CFLAGS"
  5286. CFLAGS="$CFLAGS -belf"
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5288. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5289. if ${lt_cv_cc_needs_belf+:} false; then :
  5290. $as_echo_n "(cached) " >&6
  5291. else
  5292. ac_ext=c
  5293. ac_cpp='$CPP $CPPFLAGS'
  5294. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5295. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5296. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5298. /* end confdefs.h. */
  5299. int
  5300. main ()
  5301. {
  5302. ;
  5303. return 0;
  5304. }
  5305. _ACEOF
  5306. if ac_fn_c_try_link "$LINENO"; then :
  5307. lt_cv_cc_needs_belf=yes
  5308. else
  5309. lt_cv_cc_needs_belf=no
  5310. fi
  5311. rm -f core conftest.err conftest.$ac_objext \
  5312. conftest$ac_exeext conftest.$ac_ext
  5313. ac_ext=c
  5314. ac_cpp='$CPP $CPPFLAGS'
  5315. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5316. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5317. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5318. fi
  5319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5320. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5321. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5322. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5323. CFLAGS="$SAVE_CFLAGS"
  5324. fi
  5325. ;;
  5326. *-*solaris*)
  5327. # Find out which ABI we are using.
  5328. echo 'int i;' > conftest.$ac_ext
  5329. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5330. (eval $ac_compile) 2>&5
  5331. ac_status=$?
  5332. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5333. test $ac_status = 0; }; then
  5334. case `/usr/bin/file conftest.o` in
  5335. *64-bit*)
  5336. case $lt_cv_prog_gnu_ld in
  5337. yes*)
  5338. case $host in
  5339. i?86-*-solaris*)
  5340. LD="${LD-ld} -m elf_x86_64"
  5341. ;;
  5342. sparc*-*-solaris*)
  5343. LD="${LD-ld} -m elf64_sparc"
  5344. ;;
  5345. esac
  5346. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5347. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5348. LD="${LD-ld}_sol2"
  5349. fi
  5350. ;;
  5351. *)
  5352. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5353. LD="${LD-ld} -64"
  5354. fi
  5355. ;;
  5356. esac
  5357. ;;
  5358. esac
  5359. fi
  5360. rm -rf conftest*
  5361. ;;
  5362. esac
  5363. need_locks="$enable_libtool_lock"
  5364. if test -n "$ac_tool_prefix"; then
  5365. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5366. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5368. $as_echo_n "checking for $ac_word... " >&6; }
  5369. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5370. $as_echo_n "(cached) " >&6
  5371. else
  5372. if test -n "$MANIFEST_TOOL"; then
  5373. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5374. else
  5375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5376. for as_dir in $PATH
  5377. do
  5378. IFS=$as_save_IFS
  5379. test -z "$as_dir" && as_dir=.
  5380. for ac_exec_ext in '' $ac_executable_extensions; do
  5381. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5382. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5383. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5384. break 2
  5385. fi
  5386. done
  5387. done
  5388. IFS=$as_save_IFS
  5389. fi
  5390. fi
  5391. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5392. if test -n "$MANIFEST_TOOL"; then
  5393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5394. $as_echo "$MANIFEST_TOOL" >&6; }
  5395. else
  5396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5397. $as_echo "no" >&6; }
  5398. fi
  5399. fi
  5400. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5401. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5402. # Extract the first word of "mt", so it can be a program name with args.
  5403. set dummy mt; ac_word=$2
  5404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5405. $as_echo_n "checking for $ac_word... " >&6; }
  5406. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5407. $as_echo_n "(cached) " >&6
  5408. else
  5409. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5410. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5411. else
  5412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5413. for as_dir in $PATH
  5414. do
  5415. IFS=$as_save_IFS
  5416. test -z "$as_dir" && as_dir=.
  5417. for ac_exec_ext in '' $ac_executable_extensions; do
  5418. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5419. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5420. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5421. break 2
  5422. fi
  5423. done
  5424. done
  5425. IFS=$as_save_IFS
  5426. fi
  5427. fi
  5428. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5429. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5431. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5432. else
  5433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5434. $as_echo "no" >&6; }
  5435. fi
  5436. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5437. MANIFEST_TOOL=":"
  5438. else
  5439. case $cross_compiling:$ac_tool_warned in
  5440. yes:)
  5441. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5442. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5443. ac_tool_warned=yes ;;
  5444. esac
  5445. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5446. fi
  5447. else
  5448. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5449. fi
  5450. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5452. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5453. if ${lt_cv_path_mainfest_tool+:} false; then :
  5454. $as_echo_n "(cached) " >&6
  5455. else
  5456. lt_cv_path_mainfest_tool=no
  5457. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5458. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5459. cat conftest.err >&5
  5460. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5461. lt_cv_path_mainfest_tool=yes
  5462. fi
  5463. rm -f conftest*
  5464. fi
  5465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5466. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5467. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5468. MANIFEST_TOOL=:
  5469. fi
  5470. case $host_os in
  5471. rhapsody* | darwin*)
  5472. if test -n "$ac_tool_prefix"; then
  5473. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5474. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5476. $as_echo_n "checking for $ac_word... " >&6; }
  5477. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5478. $as_echo_n "(cached) " >&6
  5479. else
  5480. if test -n "$DSYMUTIL"; then
  5481. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5482. else
  5483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5484. for as_dir in $PATH
  5485. do
  5486. IFS=$as_save_IFS
  5487. test -z "$as_dir" && as_dir=.
  5488. for ac_exec_ext in '' $ac_executable_extensions; do
  5489. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5490. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5491. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5492. break 2
  5493. fi
  5494. done
  5495. done
  5496. IFS=$as_save_IFS
  5497. fi
  5498. fi
  5499. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5500. if test -n "$DSYMUTIL"; then
  5501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5502. $as_echo "$DSYMUTIL" >&6; }
  5503. else
  5504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5505. $as_echo "no" >&6; }
  5506. fi
  5507. fi
  5508. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5509. ac_ct_DSYMUTIL=$DSYMUTIL
  5510. # Extract the first word of "dsymutil", so it can be a program name with args.
  5511. set dummy dsymutil; ac_word=$2
  5512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5513. $as_echo_n "checking for $ac_word... " >&6; }
  5514. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5515. $as_echo_n "(cached) " >&6
  5516. else
  5517. if test -n "$ac_ct_DSYMUTIL"; then
  5518. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5519. else
  5520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5521. for as_dir in $PATH
  5522. do
  5523. IFS=$as_save_IFS
  5524. test -z "$as_dir" && as_dir=.
  5525. for ac_exec_ext in '' $ac_executable_extensions; do
  5526. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5527. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5529. break 2
  5530. fi
  5531. done
  5532. done
  5533. IFS=$as_save_IFS
  5534. fi
  5535. fi
  5536. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5537. if test -n "$ac_ct_DSYMUTIL"; then
  5538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5539. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5540. else
  5541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5542. $as_echo "no" >&6; }
  5543. fi
  5544. if test "x$ac_ct_DSYMUTIL" = x; then
  5545. DSYMUTIL=":"
  5546. else
  5547. case $cross_compiling:$ac_tool_warned in
  5548. yes:)
  5549. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5550. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5551. ac_tool_warned=yes ;;
  5552. esac
  5553. DSYMUTIL=$ac_ct_DSYMUTIL
  5554. fi
  5555. else
  5556. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5557. fi
  5558. if test -n "$ac_tool_prefix"; then
  5559. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5560. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5562. $as_echo_n "checking for $ac_word... " >&6; }
  5563. if ${ac_cv_prog_NMEDIT+:} false; then :
  5564. $as_echo_n "(cached) " >&6
  5565. else
  5566. if test -n "$NMEDIT"; then
  5567. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5568. else
  5569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5570. for as_dir in $PATH
  5571. do
  5572. IFS=$as_save_IFS
  5573. test -z "$as_dir" && as_dir=.
  5574. for ac_exec_ext in '' $ac_executable_extensions; do
  5575. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5576. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5577. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5578. break 2
  5579. fi
  5580. done
  5581. done
  5582. IFS=$as_save_IFS
  5583. fi
  5584. fi
  5585. NMEDIT=$ac_cv_prog_NMEDIT
  5586. if test -n "$NMEDIT"; then
  5587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5588. $as_echo "$NMEDIT" >&6; }
  5589. else
  5590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5591. $as_echo "no" >&6; }
  5592. fi
  5593. fi
  5594. if test -z "$ac_cv_prog_NMEDIT"; then
  5595. ac_ct_NMEDIT=$NMEDIT
  5596. # Extract the first word of "nmedit", so it can be a program name with args.
  5597. set dummy nmedit; ac_word=$2
  5598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5599. $as_echo_n "checking for $ac_word... " >&6; }
  5600. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5601. $as_echo_n "(cached) " >&6
  5602. else
  5603. if test -n "$ac_ct_NMEDIT"; then
  5604. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5605. else
  5606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5607. for as_dir in $PATH
  5608. do
  5609. IFS=$as_save_IFS
  5610. test -z "$as_dir" && as_dir=.
  5611. for ac_exec_ext in '' $ac_executable_extensions; do
  5612. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5613. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5614. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5615. break 2
  5616. fi
  5617. done
  5618. done
  5619. IFS=$as_save_IFS
  5620. fi
  5621. fi
  5622. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5623. if test -n "$ac_ct_NMEDIT"; then
  5624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5625. $as_echo "$ac_ct_NMEDIT" >&6; }
  5626. else
  5627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5628. $as_echo "no" >&6; }
  5629. fi
  5630. if test "x$ac_ct_NMEDIT" = x; then
  5631. NMEDIT=":"
  5632. else
  5633. case $cross_compiling:$ac_tool_warned in
  5634. yes:)
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5636. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5637. ac_tool_warned=yes ;;
  5638. esac
  5639. NMEDIT=$ac_ct_NMEDIT
  5640. fi
  5641. else
  5642. NMEDIT="$ac_cv_prog_NMEDIT"
  5643. fi
  5644. if test -n "$ac_tool_prefix"; then
  5645. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5646. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5648. $as_echo_n "checking for $ac_word... " >&6; }
  5649. if ${ac_cv_prog_LIPO+:} false; then :
  5650. $as_echo_n "(cached) " >&6
  5651. else
  5652. if test -n "$LIPO"; then
  5653. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5654. else
  5655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5656. for as_dir in $PATH
  5657. do
  5658. IFS=$as_save_IFS
  5659. test -z "$as_dir" && as_dir=.
  5660. for ac_exec_ext in '' $ac_executable_extensions; do
  5661. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5662. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5664. break 2
  5665. fi
  5666. done
  5667. done
  5668. IFS=$as_save_IFS
  5669. fi
  5670. fi
  5671. LIPO=$ac_cv_prog_LIPO
  5672. if test -n "$LIPO"; then
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5674. $as_echo "$LIPO" >&6; }
  5675. else
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5677. $as_echo "no" >&6; }
  5678. fi
  5679. fi
  5680. if test -z "$ac_cv_prog_LIPO"; then
  5681. ac_ct_LIPO=$LIPO
  5682. # Extract the first word of "lipo", so it can be a program name with args.
  5683. set dummy lipo; ac_word=$2
  5684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5685. $as_echo_n "checking for $ac_word... " >&6; }
  5686. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5687. $as_echo_n "(cached) " >&6
  5688. else
  5689. if test -n "$ac_ct_LIPO"; then
  5690. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5691. else
  5692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5693. for as_dir in $PATH
  5694. do
  5695. IFS=$as_save_IFS
  5696. test -z "$as_dir" && as_dir=.
  5697. for ac_exec_ext in '' $ac_executable_extensions; do
  5698. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5699. ac_cv_prog_ac_ct_LIPO="lipo"
  5700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5701. break 2
  5702. fi
  5703. done
  5704. done
  5705. IFS=$as_save_IFS
  5706. fi
  5707. fi
  5708. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5709. if test -n "$ac_ct_LIPO"; then
  5710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5711. $as_echo "$ac_ct_LIPO" >&6; }
  5712. else
  5713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5714. $as_echo "no" >&6; }
  5715. fi
  5716. if test "x$ac_ct_LIPO" = x; then
  5717. LIPO=":"
  5718. else
  5719. case $cross_compiling:$ac_tool_warned in
  5720. yes:)
  5721. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5722. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5723. ac_tool_warned=yes ;;
  5724. esac
  5725. LIPO=$ac_ct_LIPO
  5726. fi
  5727. else
  5728. LIPO="$ac_cv_prog_LIPO"
  5729. fi
  5730. if test -n "$ac_tool_prefix"; then
  5731. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5732. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5734. $as_echo_n "checking for $ac_word... " >&6; }
  5735. if ${ac_cv_prog_OTOOL+:} false; then :
  5736. $as_echo_n "(cached) " >&6
  5737. else
  5738. if test -n "$OTOOL"; then
  5739. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5740. else
  5741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5742. for as_dir in $PATH
  5743. do
  5744. IFS=$as_save_IFS
  5745. test -z "$as_dir" && as_dir=.
  5746. for ac_exec_ext in '' $ac_executable_extensions; do
  5747. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5748. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5749. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5750. break 2
  5751. fi
  5752. done
  5753. done
  5754. IFS=$as_save_IFS
  5755. fi
  5756. fi
  5757. OTOOL=$ac_cv_prog_OTOOL
  5758. if test -n "$OTOOL"; then
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5760. $as_echo "$OTOOL" >&6; }
  5761. else
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5763. $as_echo "no" >&6; }
  5764. fi
  5765. fi
  5766. if test -z "$ac_cv_prog_OTOOL"; then
  5767. ac_ct_OTOOL=$OTOOL
  5768. # Extract the first word of "otool", so it can be a program name with args.
  5769. set dummy otool; ac_word=$2
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5771. $as_echo_n "checking for $ac_word... " >&6; }
  5772. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5773. $as_echo_n "(cached) " >&6
  5774. else
  5775. if test -n "$ac_ct_OTOOL"; then
  5776. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5777. else
  5778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5779. for as_dir in $PATH
  5780. do
  5781. IFS=$as_save_IFS
  5782. test -z "$as_dir" && as_dir=.
  5783. for ac_exec_ext in '' $ac_executable_extensions; do
  5784. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5785. ac_cv_prog_ac_ct_OTOOL="otool"
  5786. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5787. break 2
  5788. fi
  5789. done
  5790. done
  5791. IFS=$as_save_IFS
  5792. fi
  5793. fi
  5794. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5795. if test -n "$ac_ct_OTOOL"; then
  5796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5797. $as_echo "$ac_ct_OTOOL" >&6; }
  5798. else
  5799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5800. $as_echo "no" >&6; }
  5801. fi
  5802. if test "x$ac_ct_OTOOL" = x; then
  5803. OTOOL=":"
  5804. else
  5805. case $cross_compiling:$ac_tool_warned in
  5806. yes:)
  5807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5808. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5809. ac_tool_warned=yes ;;
  5810. esac
  5811. OTOOL=$ac_ct_OTOOL
  5812. fi
  5813. else
  5814. OTOOL="$ac_cv_prog_OTOOL"
  5815. fi
  5816. if test -n "$ac_tool_prefix"; then
  5817. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5818. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5820. $as_echo_n "checking for $ac_word... " >&6; }
  5821. if ${ac_cv_prog_OTOOL64+:} false; then :
  5822. $as_echo_n "(cached) " >&6
  5823. else
  5824. if test -n "$OTOOL64"; then
  5825. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5826. else
  5827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5828. for as_dir in $PATH
  5829. do
  5830. IFS=$as_save_IFS
  5831. test -z "$as_dir" && as_dir=.
  5832. for ac_exec_ext in '' $ac_executable_extensions; do
  5833. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5834. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5835. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5836. break 2
  5837. fi
  5838. done
  5839. done
  5840. IFS=$as_save_IFS
  5841. fi
  5842. fi
  5843. OTOOL64=$ac_cv_prog_OTOOL64
  5844. if test -n "$OTOOL64"; then
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5846. $as_echo "$OTOOL64" >&6; }
  5847. else
  5848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5849. $as_echo "no" >&6; }
  5850. fi
  5851. fi
  5852. if test -z "$ac_cv_prog_OTOOL64"; then
  5853. ac_ct_OTOOL64=$OTOOL64
  5854. # Extract the first word of "otool64", so it can be a program name with args.
  5855. set dummy otool64; ac_word=$2
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5857. $as_echo_n "checking for $ac_word... " >&6; }
  5858. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5859. $as_echo_n "(cached) " >&6
  5860. else
  5861. if test -n "$ac_ct_OTOOL64"; then
  5862. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5863. else
  5864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5865. for as_dir in $PATH
  5866. do
  5867. IFS=$as_save_IFS
  5868. test -z "$as_dir" && as_dir=.
  5869. for ac_exec_ext in '' $ac_executable_extensions; do
  5870. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5871. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5873. break 2
  5874. fi
  5875. done
  5876. done
  5877. IFS=$as_save_IFS
  5878. fi
  5879. fi
  5880. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5881. if test -n "$ac_ct_OTOOL64"; then
  5882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5883. $as_echo "$ac_ct_OTOOL64" >&6; }
  5884. else
  5885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5886. $as_echo "no" >&6; }
  5887. fi
  5888. if test "x$ac_ct_OTOOL64" = x; then
  5889. OTOOL64=":"
  5890. else
  5891. case $cross_compiling:$ac_tool_warned in
  5892. yes:)
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5894. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5895. ac_tool_warned=yes ;;
  5896. esac
  5897. OTOOL64=$ac_ct_OTOOL64
  5898. fi
  5899. else
  5900. OTOOL64="$ac_cv_prog_OTOOL64"
  5901. fi
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5903. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5904. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5905. $as_echo_n "(cached) " >&6
  5906. else
  5907. lt_cv_apple_cc_single_mod=no
  5908. if test -z "${LT_MULTI_MODULE}"; then
  5909. # By default we will add the -single_module flag. You can override
  5910. # by either setting the environment variable LT_MULTI_MODULE
  5911. # non-empty at configure time, or by adding -multi_module to the
  5912. # link flags.
  5913. rm -rf libconftest.dylib*
  5914. echo "int foo(void){return 1;}" > conftest.c
  5915. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5916. -dynamiclib -Wl,-single_module conftest.c" >&5
  5917. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5918. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5919. _lt_result=$?
  5920. # If there is a non-empty error log, and "single_module"
  5921. # appears in it, assume the flag caused a linker warning
  5922. if test -s conftest.err && $GREP single_module conftest.err; then
  5923. cat conftest.err >&5
  5924. # Otherwise, if the output was created with a 0 exit code from
  5925. # the compiler, it worked.
  5926. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5927. lt_cv_apple_cc_single_mod=yes
  5928. else
  5929. cat conftest.err >&5
  5930. fi
  5931. rm -rf libconftest.dylib*
  5932. rm -f conftest.*
  5933. fi
  5934. fi
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5936. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5938. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5939. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5940. $as_echo_n "(cached) " >&6
  5941. else
  5942. lt_cv_ld_exported_symbols_list=no
  5943. save_LDFLAGS=$LDFLAGS
  5944. echo "_main" > conftest.sym
  5945. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5947. /* end confdefs.h. */
  5948. int
  5949. main ()
  5950. {
  5951. ;
  5952. return 0;
  5953. }
  5954. _ACEOF
  5955. if ac_fn_c_try_link "$LINENO"; then :
  5956. lt_cv_ld_exported_symbols_list=yes
  5957. else
  5958. lt_cv_ld_exported_symbols_list=no
  5959. fi
  5960. rm -f core conftest.err conftest.$ac_objext \
  5961. conftest$ac_exeext conftest.$ac_ext
  5962. LDFLAGS="$save_LDFLAGS"
  5963. fi
  5964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5965. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5967. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5968. if ${lt_cv_ld_force_load+:} false; then :
  5969. $as_echo_n "(cached) " >&6
  5970. else
  5971. lt_cv_ld_force_load=no
  5972. cat > conftest.c << _LT_EOF
  5973. int forced_loaded() { return 2;}
  5974. _LT_EOF
  5975. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5976. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5977. echo "$AR cru libconftest.a conftest.o" >&5
  5978. $AR cru libconftest.a conftest.o 2>&5
  5979. echo "$RANLIB libconftest.a" >&5
  5980. $RANLIB libconftest.a 2>&5
  5981. cat > conftest.c << _LT_EOF
  5982. int main() { return 0;}
  5983. _LT_EOF
  5984. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5985. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5986. _lt_result=$?
  5987. if test -s conftest.err && $GREP force_load conftest.err; then
  5988. cat conftest.err >&5
  5989. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  5990. lt_cv_ld_force_load=yes
  5991. else
  5992. cat conftest.err >&5
  5993. fi
  5994. rm -f conftest.err libconftest.a conftest conftest.c
  5995. rm -rf conftest.dSYM
  5996. fi
  5997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5998. $as_echo "$lt_cv_ld_force_load" >&6; }
  5999. case $host_os in
  6000. rhapsody* | darwin1.[012])
  6001. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6002. darwin1.*)
  6003. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6004. darwin*) # darwin 5.x on
  6005. # if running on 10.5 or later, the deployment target defaults
  6006. # to the OS version, if on x86, and 10.4, the deployment
  6007. # target defaults to 10.4. Don't you love it?
  6008. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6009. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6010. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6011. 10.[012]*)
  6012. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6013. 10.*)
  6014. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6015. esac
  6016. ;;
  6017. esac
  6018. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6019. _lt_dar_single_mod='$single_module'
  6020. fi
  6021. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6022. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6023. else
  6024. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6025. fi
  6026. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6027. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6028. else
  6029. _lt_dsymutil=
  6030. fi
  6031. ;;
  6032. esac
  6033. ac_ext=c
  6034. ac_cpp='$CPP $CPPFLAGS'
  6035. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6036. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6037. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6039. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6040. # On Suns, sometimes $CPP names a directory.
  6041. if test -n "$CPP" && test -d "$CPP"; then
  6042. CPP=
  6043. fi
  6044. if test -z "$CPP"; then
  6045. if ${ac_cv_prog_CPP+:} false; then :
  6046. $as_echo_n "(cached) " >&6
  6047. else
  6048. # Double quotes because CPP needs to be expanded
  6049. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6050. do
  6051. ac_preproc_ok=false
  6052. for ac_c_preproc_warn_flag in '' yes
  6053. do
  6054. # Use a header file that comes with gcc, so configuring glibc
  6055. # with a fresh cross-compiler works.
  6056. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6057. # <limits.h> exists even on freestanding compilers.
  6058. # On the NeXT, cc -E runs the code through the compiler's parser,
  6059. # not just through cpp. "Syntax error" is here to catch this case.
  6060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6061. /* end confdefs.h. */
  6062. #ifdef __STDC__
  6063. # include <limits.h>
  6064. #else
  6065. # include <assert.h>
  6066. #endif
  6067. Syntax error
  6068. _ACEOF
  6069. if ac_fn_c_try_cpp "$LINENO"; then :
  6070. else
  6071. # Broken: fails on valid input.
  6072. continue
  6073. fi
  6074. rm -f conftest.err conftest.i conftest.$ac_ext
  6075. # OK, works on sane cases. Now check whether nonexistent headers
  6076. # can be detected and how.
  6077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6078. /* end confdefs.h. */
  6079. #include <ac_nonexistent.h>
  6080. _ACEOF
  6081. if ac_fn_c_try_cpp "$LINENO"; then :
  6082. # Broken: success on invalid input.
  6083. continue
  6084. else
  6085. # Passes both tests.
  6086. ac_preproc_ok=:
  6087. break
  6088. fi
  6089. rm -f conftest.err conftest.i conftest.$ac_ext
  6090. done
  6091. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6092. rm -f conftest.i conftest.err conftest.$ac_ext
  6093. if $ac_preproc_ok; then :
  6094. break
  6095. fi
  6096. done
  6097. ac_cv_prog_CPP=$CPP
  6098. fi
  6099. CPP=$ac_cv_prog_CPP
  6100. else
  6101. ac_cv_prog_CPP=$CPP
  6102. fi
  6103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6104. $as_echo "$CPP" >&6; }
  6105. ac_preproc_ok=false
  6106. for ac_c_preproc_warn_flag in '' yes
  6107. do
  6108. # Use a header file that comes with gcc, so configuring glibc
  6109. # with a fresh cross-compiler works.
  6110. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6111. # <limits.h> exists even on freestanding compilers.
  6112. # On the NeXT, cc -E runs the code through the compiler's parser,
  6113. # not just through cpp. "Syntax error" is here to catch this case.
  6114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6115. /* end confdefs.h. */
  6116. #ifdef __STDC__
  6117. # include <limits.h>
  6118. #else
  6119. # include <assert.h>
  6120. #endif
  6121. Syntax error
  6122. _ACEOF
  6123. if ac_fn_c_try_cpp "$LINENO"; then :
  6124. else
  6125. # Broken: fails on valid input.
  6126. continue
  6127. fi
  6128. rm -f conftest.err conftest.i conftest.$ac_ext
  6129. # OK, works on sane cases. Now check whether nonexistent headers
  6130. # can be detected and how.
  6131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6132. /* end confdefs.h. */
  6133. #include <ac_nonexistent.h>
  6134. _ACEOF
  6135. if ac_fn_c_try_cpp "$LINENO"; then :
  6136. # Broken: success on invalid input.
  6137. continue
  6138. else
  6139. # Passes both tests.
  6140. ac_preproc_ok=:
  6141. break
  6142. fi
  6143. rm -f conftest.err conftest.i conftest.$ac_ext
  6144. done
  6145. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6146. rm -f conftest.i conftest.err conftest.$ac_ext
  6147. if $ac_preproc_ok; then :
  6148. else
  6149. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6150. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6151. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6152. See \`config.log' for more details" "$LINENO" 5; }
  6153. fi
  6154. ac_ext=c
  6155. ac_cpp='$CPP $CPPFLAGS'
  6156. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6157. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6158. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6160. $as_echo_n "checking for ANSI C header files... " >&6; }
  6161. if ${ac_cv_header_stdc+:} false; then :
  6162. $as_echo_n "(cached) " >&6
  6163. else
  6164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6165. /* end confdefs.h. */
  6166. #include <stdlib.h>
  6167. #include <stdarg.h>
  6168. #include <string.h>
  6169. #include <float.h>
  6170. int
  6171. main ()
  6172. {
  6173. ;
  6174. return 0;
  6175. }
  6176. _ACEOF
  6177. if ac_fn_c_try_compile "$LINENO"; then :
  6178. ac_cv_header_stdc=yes
  6179. else
  6180. ac_cv_header_stdc=no
  6181. fi
  6182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6183. if test $ac_cv_header_stdc = yes; then
  6184. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6186. /* end confdefs.h. */
  6187. #include <string.h>
  6188. _ACEOF
  6189. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6190. $EGREP "memchr" >/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. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6199. /* end confdefs.h. */
  6200. #include <stdlib.h>
  6201. _ACEOF
  6202. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6203. $EGREP "free" >/dev/null 2>&1; then :
  6204. else
  6205. ac_cv_header_stdc=no
  6206. fi
  6207. rm -f conftest*
  6208. fi
  6209. if test $ac_cv_header_stdc = yes; then
  6210. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6211. if test "$cross_compiling" = yes; then :
  6212. :
  6213. else
  6214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6215. /* end confdefs.h. */
  6216. #include <ctype.h>
  6217. #include <stdlib.h>
  6218. #if ((' ' & 0x0FF) == 0x020)
  6219. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6220. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6221. #else
  6222. # define ISLOWER(c) \
  6223. (('a' <= (c) && (c) <= 'i') \
  6224. || ('j' <= (c) && (c) <= 'r') \
  6225. || ('s' <= (c) && (c) <= 'z'))
  6226. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6227. #endif
  6228. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6229. int
  6230. main ()
  6231. {
  6232. int i;
  6233. for (i = 0; i < 256; i++)
  6234. if (XOR (islower (i), ISLOWER (i))
  6235. || toupper (i) != TOUPPER (i))
  6236. return 2;
  6237. return 0;
  6238. }
  6239. _ACEOF
  6240. if ac_fn_c_try_run "$LINENO"; then :
  6241. else
  6242. ac_cv_header_stdc=no
  6243. fi
  6244. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6245. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6246. fi
  6247. fi
  6248. fi
  6249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6250. $as_echo "$ac_cv_header_stdc" >&6; }
  6251. if test $ac_cv_header_stdc = yes; then
  6252. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6253. fi
  6254. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6255. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6256. inttypes.h stdint.h unistd.h
  6257. do :
  6258. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6259. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6260. "
  6261. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6262. cat >>confdefs.h <<_ACEOF
  6263. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6264. _ACEOF
  6265. fi
  6266. done
  6267. for ac_header in dlfcn.h
  6268. do :
  6269. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6270. "
  6271. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6272. cat >>confdefs.h <<_ACEOF
  6273. #define HAVE_DLFCN_H 1
  6274. _ACEOF
  6275. fi
  6276. done
  6277. # Set options
  6278. enable_win32_dll=yes
  6279. case $host in
  6280. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6281. if test -n "$ac_tool_prefix"; then
  6282. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6283. set dummy ${ac_tool_prefix}as; ac_word=$2
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6285. $as_echo_n "checking for $ac_word... " >&6; }
  6286. if ${ac_cv_prog_AS+:} false; then :
  6287. $as_echo_n "(cached) " >&6
  6288. else
  6289. if test -n "$AS"; then
  6290. ac_cv_prog_AS="$AS" # Let the user override the test.
  6291. else
  6292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6293. for as_dir in $PATH
  6294. do
  6295. IFS=$as_save_IFS
  6296. test -z "$as_dir" && as_dir=.
  6297. for ac_exec_ext in '' $ac_executable_extensions; do
  6298. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6299. ac_cv_prog_AS="${ac_tool_prefix}as"
  6300. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6301. break 2
  6302. fi
  6303. done
  6304. done
  6305. IFS=$as_save_IFS
  6306. fi
  6307. fi
  6308. AS=$ac_cv_prog_AS
  6309. if test -n "$AS"; then
  6310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6311. $as_echo "$AS" >&6; }
  6312. else
  6313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6314. $as_echo "no" >&6; }
  6315. fi
  6316. fi
  6317. if test -z "$ac_cv_prog_AS"; then
  6318. ac_ct_AS=$AS
  6319. # Extract the first word of "as", so it can be a program name with args.
  6320. set dummy as; ac_word=$2
  6321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6322. $as_echo_n "checking for $ac_word... " >&6; }
  6323. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6324. $as_echo_n "(cached) " >&6
  6325. else
  6326. if test -n "$ac_ct_AS"; then
  6327. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6328. else
  6329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6330. for as_dir in $PATH
  6331. do
  6332. IFS=$as_save_IFS
  6333. test -z "$as_dir" && as_dir=.
  6334. for ac_exec_ext in '' $ac_executable_extensions; do
  6335. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6336. ac_cv_prog_ac_ct_AS="as"
  6337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6338. break 2
  6339. fi
  6340. done
  6341. done
  6342. IFS=$as_save_IFS
  6343. fi
  6344. fi
  6345. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6346. if test -n "$ac_ct_AS"; then
  6347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6348. $as_echo "$ac_ct_AS" >&6; }
  6349. else
  6350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6351. $as_echo "no" >&6; }
  6352. fi
  6353. if test "x$ac_ct_AS" = x; then
  6354. AS="false"
  6355. else
  6356. case $cross_compiling:$ac_tool_warned in
  6357. yes:)
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6359. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6360. ac_tool_warned=yes ;;
  6361. esac
  6362. AS=$ac_ct_AS
  6363. fi
  6364. else
  6365. AS="$ac_cv_prog_AS"
  6366. fi
  6367. if test -n "$ac_tool_prefix"; then
  6368. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6369. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6371. $as_echo_n "checking for $ac_word... " >&6; }
  6372. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6373. $as_echo_n "(cached) " >&6
  6374. else
  6375. if test -n "$DLLTOOL"; then
  6376. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6377. else
  6378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6379. for as_dir in $PATH
  6380. do
  6381. IFS=$as_save_IFS
  6382. test -z "$as_dir" && as_dir=.
  6383. for ac_exec_ext in '' $ac_executable_extensions; do
  6384. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6385. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6386. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6387. break 2
  6388. fi
  6389. done
  6390. done
  6391. IFS=$as_save_IFS
  6392. fi
  6393. fi
  6394. DLLTOOL=$ac_cv_prog_DLLTOOL
  6395. if test -n "$DLLTOOL"; then
  6396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6397. $as_echo "$DLLTOOL" >&6; }
  6398. else
  6399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6400. $as_echo "no" >&6; }
  6401. fi
  6402. fi
  6403. if test -z "$ac_cv_prog_DLLTOOL"; then
  6404. ac_ct_DLLTOOL=$DLLTOOL
  6405. # Extract the first word of "dlltool", so it can be a program name with args.
  6406. set dummy dlltool; ac_word=$2
  6407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6408. $as_echo_n "checking for $ac_word... " >&6; }
  6409. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6410. $as_echo_n "(cached) " >&6
  6411. else
  6412. if test -n "$ac_ct_DLLTOOL"; then
  6413. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6414. else
  6415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6416. for as_dir in $PATH
  6417. do
  6418. IFS=$as_save_IFS
  6419. test -z "$as_dir" && as_dir=.
  6420. for ac_exec_ext in '' $ac_executable_extensions; do
  6421. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6422. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6423. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6424. break 2
  6425. fi
  6426. done
  6427. done
  6428. IFS=$as_save_IFS
  6429. fi
  6430. fi
  6431. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6432. if test -n "$ac_ct_DLLTOOL"; then
  6433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6434. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6435. else
  6436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6437. $as_echo "no" >&6; }
  6438. fi
  6439. if test "x$ac_ct_DLLTOOL" = x; then
  6440. DLLTOOL="false"
  6441. else
  6442. case $cross_compiling:$ac_tool_warned in
  6443. yes:)
  6444. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6445. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6446. ac_tool_warned=yes ;;
  6447. esac
  6448. DLLTOOL=$ac_ct_DLLTOOL
  6449. fi
  6450. else
  6451. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6452. fi
  6453. if test -n "$ac_tool_prefix"; then
  6454. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6455. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6457. $as_echo_n "checking for $ac_word... " >&6; }
  6458. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6459. $as_echo_n "(cached) " >&6
  6460. else
  6461. if test -n "$OBJDUMP"; then
  6462. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6463. else
  6464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6465. for as_dir in $PATH
  6466. do
  6467. IFS=$as_save_IFS
  6468. test -z "$as_dir" && as_dir=.
  6469. for ac_exec_ext in '' $ac_executable_extensions; do
  6470. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6471. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6472. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6473. break 2
  6474. fi
  6475. done
  6476. done
  6477. IFS=$as_save_IFS
  6478. fi
  6479. fi
  6480. OBJDUMP=$ac_cv_prog_OBJDUMP
  6481. if test -n "$OBJDUMP"; then
  6482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6483. $as_echo "$OBJDUMP" >&6; }
  6484. else
  6485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6486. $as_echo "no" >&6; }
  6487. fi
  6488. fi
  6489. if test -z "$ac_cv_prog_OBJDUMP"; then
  6490. ac_ct_OBJDUMP=$OBJDUMP
  6491. # Extract the first word of "objdump", so it can be a program name with args.
  6492. set dummy objdump; ac_word=$2
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6494. $as_echo_n "checking for $ac_word... " >&6; }
  6495. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6496. $as_echo_n "(cached) " >&6
  6497. else
  6498. if test -n "$ac_ct_OBJDUMP"; then
  6499. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6500. else
  6501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6502. for as_dir in $PATH
  6503. do
  6504. IFS=$as_save_IFS
  6505. test -z "$as_dir" && as_dir=.
  6506. for ac_exec_ext in '' $ac_executable_extensions; do
  6507. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6508. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6509. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6510. break 2
  6511. fi
  6512. done
  6513. done
  6514. IFS=$as_save_IFS
  6515. fi
  6516. fi
  6517. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6518. if test -n "$ac_ct_OBJDUMP"; then
  6519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6520. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6521. else
  6522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6523. $as_echo "no" >&6; }
  6524. fi
  6525. if test "x$ac_ct_OBJDUMP" = x; then
  6526. OBJDUMP="false"
  6527. else
  6528. case $cross_compiling:$ac_tool_warned in
  6529. yes:)
  6530. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6531. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6532. ac_tool_warned=yes ;;
  6533. esac
  6534. OBJDUMP=$ac_ct_OBJDUMP
  6535. fi
  6536. else
  6537. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6538. fi
  6539. ;;
  6540. esac
  6541. test -z "$AS" && AS=as
  6542. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6543. test -z "$OBJDUMP" && OBJDUMP=objdump
  6544. enable_dlopen=no
  6545. # Check whether --enable-shared was given.
  6546. if test "${enable_shared+set}" = set; then :
  6547. enableval=$enable_shared; p=${PACKAGE-default}
  6548. case $enableval in
  6549. yes) enable_shared=yes ;;
  6550. no) enable_shared=no ;;
  6551. *)
  6552. enable_shared=no
  6553. # Look at the argument we got. We use all the common list separators.
  6554. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6555. for pkg in $enableval; do
  6556. IFS="$lt_save_ifs"
  6557. if test "X$pkg" = "X$p"; then
  6558. enable_shared=yes
  6559. fi
  6560. done
  6561. IFS="$lt_save_ifs"
  6562. ;;
  6563. esac
  6564. else
  6565. enable_shared=yes
  6566. fi
  6567. # Check whether --enable-static was given.
  6568. if test "${enable_static+set}" = set; then :
  6569. enableval=$enable_static; p=${PACKAGE-default}
  6570. case $enableval in
  6571. yes) enable_static=yes ;;
  6572. no) enable_static=no ;;
  6573. *)
  6574. enable_static=no
  6575. # Look at the argument we got. We use all the common list separators.
  6576. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6577. for pkg in $enableval; do
  6578. IFS="$lt_save_ifs"
  6579. if test "X$pkg" = "X$p"; then
  6580. enable_static=yes
  6581. fi
  6582. done
  6583. IFS="$lt_save_ifs"
  6584. ;;
  6585. esac
  6586. else
  6587. enable_static=yes
  6588. fi
  6589. # Check whether --with-pic was given.
  6590. if test "${with_pic+set}" = set; then :
  6591. withval=$with_pic; lt_p=${PACKAGE-default}
  6592. case $withval in
  6593. yes|no) pic_mode=$withval ;;
  6594. *)
  6595. pic_mode=default
  6596. # Look at the argument we got. We use all the common list separators.
  6597. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6598. for lt_pkg in $withval; do
  6599. IFS="$lt_save_ifs"
  6600. if test "X$lt_pkg" = "X$lt_p"; then
  6601. pic_mode=yes
  6602. fi
  6603. done
  6604. IFS="$lt_save_ifs"
  6605. ;;
  6606. esac
  6607. else
  6608. pic_mode=default
  6609. fi
  6610. test -z "$pic_mode" && pic_mode=default
  6611. # Check whether --enable-fast-install was given.
  6612. if test "${enable_fast_install+set}" = set; then :
  6613. enableval=$enable_fast_install; p=${PACKAGE-default}
  6614. case $enableval in
  6615. yes) enable_fast_install=yes ;;
  6616. no) enable_fast_install=no ;;
  6617. *)
  6618. enable_fast_install=no
  6619. # Look at the argument we got. We use all the common list separators.
  6620. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6621. for pkg in $enableval; do
  6622. IFS="$lt_save_ifs"
  6623. if test "X$pkg" = "X$p"; then
  6624. enable_fast_install=yes
  6625. fi
  6626. done
  6627. IFS="$lt_save_ifs"
  6628. ;;
  6629. esac
  6630. else
  6631. enable_fast_install=yes
  6632. fi
  6633. # This can be used to rebuild libtool when needed
  6634. LIBTOOL_DEPS="$ltmain"
  6635. # Always use our own libtool.
  6636. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6637. test -z "$LN_S" && LN_S="ln -s"
  6638. if test -n "${ZSH_VERSION+set}" ; then
  6639. setopt NO_GLOB_SUBST
  6640. fi
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6642. $as_echo_n "checking for objdir... " >&6; }
  6643. if ${lt_cv_objdir+:} false; then :
  6644. $as_echo_n "(cached) " >&6
  6645. else
  6646. rm -f .libs 2>/dev/null
  6647. mkdir .libs 2>/dev/null
  6648. if test -d .libs; then
  6649. lt_cv_objdir=.libs
  6650. else
  6651. # MS-DOS does not allow filenames that begin with a dot.
  6652. lt_cv_objdir=_libs
  6653. fi
  6654. rmdir .libs 2>/dev/null
  6655. fi
  6656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6657. $as_echo "$lt_cv_objdir" >&6; }
  6658. objdir=$lt_cv_objdir
  6659. cat >>confdefs.h <<_ACEOF
  6660. #define LT_OBJDIR "$lt_cv_objdir/"
  6661. _ACEOF
  6662. case $host_os in
  6663. aix3*)
  6664. # AIX sometimes has problems with the GCC collect2 program. For some
  6665. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6666. # vanish in a puff of smoke.
  6667. if test "X${COLLECT_NAMES+set}" != Xset; then
  6668. COLLECT_NAMES=
  6669. export COLLECT_NAMES
  6670. fi
  6671. ;;
  6672. esac
  6673. # Global variables:
  6674. ofile=libtool
  6675. can_build_shared=yes
  6676. # All known linkers require a `.a' archive for static linking (except MSVC,
  6677. # which needs '.lib').
  6678. libext=a
  6679. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6680. old_CC="$CC"
  6681. old_CFLAGS="$CFLAGS"
  6682. # Set sane defaults for various variables
  6683. test -z "$CC" && CC=cc
  6684. test -z "$LTCC" && LTCC=$CC
  6685. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6686. test -z "$LD" && LD=ld
  6687. test -z "$ac_objext" && ac_objext=o
  6688. for cc_temp in $compiler""; do
  6689. case $cc_temp in
  6690. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6691. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6692. \-*) ;;
  6693. *) break;;
  6694. esac
  6695. done
  6696. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6697. # Only perform the check for file, if the check method requires it
  6698. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6699. case $deplibs_check_method in
  6700. file_magic*)
  6701. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6703. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6704. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6705. $as_echo_n "(cached) " >&6
  6706. else
  6707. case $MAGIC_CMD in
  6708. [\\/*] | ?:[\\/]*)
  6709. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6710. ;;
  6711. *)
  6712. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6713. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6714. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6715. for ac_dir in $ac_dummy; do
  6716. IFS="$lt_save_ifs"
  6717. test -z "$ac_dir" && ac_dir=.
  6718. if test -f $ac_dir/${ac_tool_prefix}file; then
  6719. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6720. if test -n "$file_magic_test_file"; then
  6721. case $deplibs_check_method in
  6722. "file_magic "*)
  6723. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6724. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6725. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6726. $EGREP "$file_magic_regex" > /dev/null; then
  6727. :
  6728. else
  6729. cat <<_LT_EOF 1>&2
  6730. *** Warning: the command libtool uses to detect shared libraries,
  6731. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6732. *** The result is that libtool may fail to recognize shared libraries
  6733. *** as such. This will affect the creation of libtool libraries that
  6734. *** depend on shared libraries, but programs linked with such libtool
  6735. *** libraries will work regardless of this problem. Nevertheless, you
  6736. *** may want to report the problem to your system manager and/or to
  6737. *** bug-libtool@gnu.org
  6738. _LT_EOF
  6739. fi ;;
  6740. esac
  6741. fi
  6742. break
  6743. fi
  6744. done
  6745. IFS="$lt_save_ifs"
  6746. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6747. ;;
  6748. esac
  6749. fi
  6750. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6751. if test -n "$MAGIC_CMD"; then
  6752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6753. $as_echo "$MAGIC_CMD" >&6; }
  6754. else
  6755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6756. $as_echo "no" >&6; }
  6757. fi
  6758. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6759. if test -n "$ac_tool_prefix"; then
  6760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6761. $as_echo_n "checking for file... " >&6; }
  6762. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6763. $as_echo_n "(cached) " >&6
  6764. else
  6765. case $MAGIC_CMD in
  6766. [\\/*] | ?:[\\/]*)
  6767. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6768. ;;
  6769. *)
  6770. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6771. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6772. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6773. for ac_dir in $ac_dummy; do
  6774. IFS="$lt_save_ifs"
  6775. test -z "$ac_dir" && ac_dir=.
  6776. if test -f $ac_dir/file; then
  6777. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6778. if test -n "$file_magic_test_file"; then
  6779. case $deplibs_check_method in
  6780. "file_magic "*)
  6781. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6782. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6783. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6784. $EGREP "$file_magic_regex" > /dev/null; then
  6785. :
  6786. else
  6787. cat <<_LT_EOF 1>&2
  6788. *** Warning: the command libtool uses to detect shared libraries,
  6789. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6790. *** The result is that libtool may fail to recognize shared libraries
  6791. *** as such. This will affect the creation of libtool libraries that
  6792. *** depend on shared libraries, but programs linked with such libtool
  6793. *** libraries will work regardless of this problem. Nevertheless, you
  6794. *** may want to report the problem to your system manager and/or to
  6795. *** bug-libtool@gnu.org
  6796. _LT_EOF
  6797. fi ;;
  6798. esac
  6799. fi
  6800. break
  6801. fi
  6802. done
  6803. IFS="$lt_save_ifs"
  6804. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6805. ;;
  6806. esac
  6807. fi
  6808. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6809. if test -n "$MAGIC_CMD"; then
  6810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6811. $as_echo "$MAGIC_CMD" >&6; }
  6812. else
  6813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6814. $as_echo "no" >&6; }
  6815. fi
  6816. else
  6817. MAGIC_CMD=:
  6818. fi
  6819. fi
  6820. fi
  6821. ;;
  6822. esac
  6823. # Use C for the default configuration in the libtool script
  6824. lt_save_CC="$CC"
  6825. ac_ext=c
  6826. ac_cpp='$CPP $CPPFLAGS'
  6827. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6828. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6829. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6830. # Source file extension for C test sources.
  6831. ac_ext=c
  6832. # Object file extension for compiled C test sources.
  6833. objext=o
  6834. objext=$objext
  6835. # Code to be used in simple compile tests
  6836. lt_simple_compile_test_code="int some_variable = 0;"
  6837. # Code to be used in simple link tests
  6838. lt_simple_link_test_code='int main(){return(0);}'
  6839. # If no C compiler was specified, use CC.
  6840. LTCC=${LTCC-"$CC"}
  6841. # If no C compiler flags were specified, use CFLAGS.
  6842. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6843. # Allow CC to be a program name with arguments.
  6844. compiler=$CC
  6845. # Save the default compiler, since it gets overwritten when the other
  6846. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6847. compiler_DEFAULT=$CC
  6848. # save warnings/boilerplate of simple test code
  6849. ac_outfile=conftest.$ac_objext
  6850. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6851. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6852. _lt_compiler_boilerplate=`cat conftest.err`
  6853. $RM conftest*
  6854. ac_outfile=conftest.$ac_objext
  6855. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6856. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6857. _lt_linker_boilerplate=`cat conftest.err`
  6858. $RM -r conftest*
  6859. ## CAVEAT EMPTOR:
  6860. ## There is no encapsulation within the following macros, do not change
  6861. ## the running order or otherwise move them around unless you know exactly
  6862. ## what you are doing...
  6863. if test -n "$compiler"; then
  6864. lt_prog_compiler_no_builtin_flag=
  6865. if test "$GCC" = yes; then
  6866. case $cc_basename in
  6867. nvcc*)
  6868. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6869. *)
  6870. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6871. esac
  6872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6873. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6874. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6875. $as_echo_n "(cached) " >&6
  6876. else
  6877. lt_cv_prog_compiler_rtti_exceptions=no
  6878. ac_outfile=conftest.$ac_objext
  6879. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6880. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6881. # Insert the option either (1) after the last *FLAGS variable, or
  6882. # (2) before a word containing "conftest.", or (3) at the end.
  6883. # Note that $ac_compile itself does not contain backslashes and begins
  6884. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6885. # The option is referenced via a variable to avoid confusing sed.
  6886. lt_compile=`echo "$ac_compile" | $SED \
  6887. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6888. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6889. -e 's:$: $lt_compiler_flag:'`
  6890. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6891. (eval "$lt_compile" 2>conftest.err)
  6892. ac_status=$?
  6893. cat conftest.err >&5
  6894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6895. if (exit $ac_status) && test -s "$ac_outfile"; then
  6896. # The compiler can only warn and ignore the option if not recognized
  6897. # So say no if there are warnings other than the usual output.
  6898. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6899. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6900. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6901. lt_cv_prog_compiler_rtti_exceptions=yes
  6902. fi
  6903. fi
  6904. $RM conftest*
  6905. fi
  6906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6907. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6908. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6909. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6910. else
  6911. :
  6912. fi
  6913. fi
  6914. lt_prog_compiler_wl=
  6915. lt_prog_compiler_pic=
  6916. lt_prog_compiler_static=
  6917. if test "$GCC" = yes; then
  6918. lt_prog_compiler_wl='-Wl,'
  6919. lt_prog_compiler_static='-static'
  6920. case $host_os in
  6921. aix*)
  6922. # All AIX code is PIC.
  6923. if test "$host_cpu" = ia64; then
  6924. # AIX 5 now supports IA64 processor
  6925. lt_prog_compiler_static='-Bstatic'
  6926. fi
  6927. ;;
  6928. amigaos*)
  6929. case $host_cpu in
  6930. powerpc)
  6931. # see comment about AmigaOS4 .so support
  6932. lt_prog_compiler_pic='-fPIC'
  6933. ;;
  6934. m68k)
  6935. # FIXME: we need at least 68020 code to build shared libraries, but
  6936. # adding the `-m68020' flag to GCC prevents building anything better,
  6937. # like `-m68040'.
  6938. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6939. ;;
  6940. esac
  6941. ;;
  6942. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6943. # PIC is the default for these OSes.
  6944. ;;
  6945. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6946. # This hack is so that the source file can tell whether it is being
  6947. # built for inclusion in a dll (and should export symbols for example).
  6948. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6949. # (--disable-auto-import) libraries
  6950. lt_prog_compiler_pic='-DDLL_EXPORT'
  6951. ;;
  6952. darwin* | rhapsody*)
  6953. # PIC is the default on this platform
  6954. # Common symbols not allowed in MH_DYLIB files
  6955. lt_prog_compiler_pic='-fno-common'
  6956. ;;
  6957. haiku*)
  6958. # PIC is the default for Haiku.
  6959. # The "-static" flag exists, but is broken.
  6960. lt_prog_compiler_static=
  6961. ;;
  6962. hpux*)
  6963. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6964. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6965. # sets the default TLS model and affects inlining.
  6966. case $host_cpu in
  6967. hppa*64*)
  6968. # +Z the default
  6969. ;;
  6970. *)
  6971. lt_prog_compiler_pic='-fPIC'
  6972. ;;
  6973. esac
  6974. ;;
  6975. interix[3-9]*)
  6976. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6977. # Instead, we relocate shared libraries at runtime.
  6978. ;;
  6979. msdosdjgpp*)
  6980. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6981. # on systems that don't support them.
  6982. lt_prog_compiler_can_build_shared=no
  6983. enable_shared=no
  6984. ;;
  6985. *nto* | *qnx*)
  6986. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6987. # it will coredump.
  6988. lt_prog_compiler_pic='-fPIC -shared'
  6989. ;;
  6990. sysv4*MP*)
  6991. if test -d /usr/nec; then
  6992. lt_prog_compiler_pic=-Kconform_pic
  6993. fi
  6994. ;;
  6995. *)
  6996. lt_prog_compiler_pic='-fPIC'
  6997. ;;
  6998. esac
  6999. case $cc_basename in
  7000. nvcc*) # Cuda Compiler Driver 2.2
  7001. lt_prog_compiler_wl='-Xlinker '
  7002. if test -n "$lt_prog_compiler_pic"; then
  7003. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7004. fi
  7005. ;;
  7006. esac
  7007. else
  7008. # PORTME Check for flag to pass linker flags through the system compiler.
  7009. case $host_os in
  7010. aix*)
  7011. lt_prog_compiler_wl='-Wl,'
  7012. if test "$host_cpu" = ia64; then
  7013. # AIX 5 now supports IA64 processor
  7014. lt_prog_compiler_static='-Bstatic'
  7015. else
  7016. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7017. fi
  7018. ;;
  7019. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7020. # This hack is so that the source file can tell whether it is being
  7021. # built for inclusion in a dll (and should export symbols for example).
  7022. lt_prog_compiler_pic='-DDLL_EXPORT'
  7023. ;;
  7024. hpux9* | hpux10* | hpux11*)
  7025. lt_prog_compiler_wl='-Wl,'
  7026. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7027. # not for PA HP-UX.
  7028. case $host_cpu in
  7029. hppa*64*|ia64*)
  7030. # +Z the default
  7031. ;;
  7032. *)
  7033. lt_prog_compiler_pic='+Z'
  7034. ;;
  7035. esac
  7036. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7037. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7038. ;;
  7039. irix5* | irix6* | nonstopux*)
  7040. lt_prog_compiler_wl='-Wl,'
  7041. # PIC (with -KPIC) is the default.
  7042. lt_prog_compiler_static='-non_shared'
  7043. ;;
  7044. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7045. case $cc_basename in
  7046. # old Intel for x86_64 which still supported -KPIC.
  7047. ecc*)
  7048. lt_prog_compiler_wl='-Wl,'
  7049. lt_prog_compiler_pic='-KPIC'
  7050. lt_prog_compiler_static='-static'
  7051. ;;
  7052. # icc used to be incompatible with GCC.
  7053. # ICC 10 doesn't accept -KPIC any more.
  7054. icc* | ifort*)
  7055. lt_prog_compiler_wl='-Wl,'
  7056. lt_prog_compiler_pic='-fPIC'
  7057. lt_prog_compiler_static='-static'
  7058. ;;
  7059. # Lahey Fortran 8.1.
  7060. lf95*)
  7061. lt_prog_compiler_wl='-Wl,'
  7062. lt_prog_compiler_pic='--shared'
  7063. lt_prog_compiler_static='--static'
  7064. ;;
  7065. nagfor*)
  7066. # NAG Fortran compiler
  7067. lt_prog_compiler_wl='-Wl,-Wl,,'
  7068. lt_prog_compiler_pic='-PIC'
  7069. lt_prog_compiler_static='-Bstatic'
  7070. ;;
  7071. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7072. # Portland Group compilers (*not* the Pentium gcc compiler,
  7073. # which looks to be a dead project)
  7074. lt_prog_compiler_wl='-Wl,'
  7075. lt_prog_compiler_pic='-fpic'
  7076. lt_prog_compiler_static='-Bstatic'
  7077. ;;
  7078. ccc*)
  7079. lt_prog_compiler_wl='-Wl,'
  7080. # All Alpha code is PIC.
  7081. lt_prog_compiler_static='-non_shared'
  7082. ;;
  7083. xl* | bgxl* | bgf* | mpixl*)
  7084. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7085. lt_prog_compiler_wl='-Wl,'
  7086. lt_prog_compiler_pic='-qpic'
  7087. lt_prog_compiler_static='-qstaticlink'
  7088. ;;
  7089. *)
  7090. case `$CC -V 2>&1 | sed 5q` in
  7091. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7092. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7093. lt_prog_compiler_pic='-KPIC'
  7094. lt_prog_compiler_static='-Bstatic'
  7095. lt_prog_compiler_wl=''
  7096. ;;
  7097. *Sun\ F* | *Sun*Fortran*)
  7098. lt_prog_compiler_pic='-KPIC'
  7099. lt_prog_compiler_static='-Bstatic'
  7100. lt_prog_compiler_wl='-Qoption ld '
  7101. ;;
  7102. *Sun\ C*)
  7103. # Sun C 5.9
  7104. lt_prog_compiler_pic='-KPIC'
  7105. lt_prog_compiler_static='-Bstatic'
  7106. lt_prog_compiler_wl='-Wl,'
  7107. ;;
  7108. *Intel*\ [CF]*Compiler*)
  7109. lt_prog_compiler_wl='-Wl,'
  7110. lt_prog_compiler_pic='-fPIC'
  7111. lt_prog_compiler_static='-static'
  7112. ;;
  7113. *Portland\ Group*)
  7114. lt_prog_compiler_wl='-Wl,'
  7115. lt_prog_compiler_pic='-fpic'
  7116. lt_prog_compiler_static='-Bstatic'
  7117. ;;
  7118. esac
  7119. ;;
  7120. esac
  7121. ;;
  7122. newsos6)
  7123. lt_prog_compiler_pic='-KPIC'
  7124. lt_prog_compiler_static='-Bstatic'
  7125. ;;
  7126. *nto* | *qnx*)
  7127. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7128. # it will coredump.
  7129. lt_prog_compiler_pic='-fPIC -shared'
  7130. ;;
  7131. osf3* | osf4* | osf5*)
  7132. lt_prog_compiler_wl='-Wl,'
  7133. # All OSF/1 code is PIC.
  7134. lt_prog_compiler_static='-non_shared'
  7135. ;;
  7136. rdos*)
  7137. lt_prog_compiler_static='-non_shared'
  7138. ;;
  7139. solaris*)
  7140. lt_prog_compiler_pic='-KPIC'
  7141. lt_prog_compiler_static='-Bstatic'
  7142. case $cc_basename in
  7143. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7144. lt_prog_compiler_wl='-Qoption ld ';;
  7145. *)
  7146. lt_prog_compiler_wl='-Wl,';;
  7147. esac
  7148. ;;
  7149. sunos4*)
  7150. lt_prog_compiler_wl='-Qoption ld '
  7151. lt_prog_compiler_pic='-PIC'
  7152. lt_prog_compiler_static='-Bstatic'
  7153. ;;
  7154. sysv4 | sysv4.2uw2* | sysv4.3*)
  7155. lt_prog_compiler_wl='-Wl,'
  7156. lt_prog_compiler_pic='-KPIC'
  7157. lt_prog_compiler_static='-Bstatic'
  7158. ;;
  7159. sysv4*MP*)
  7160. if test -d /usr/nec ;then
  7161. lt_prog_compiler_pic='-Kconform_pic'
  7162. lt_prog_compiler_static='-Bstatic'
  7163. fi
  7164. ;;
  7165. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7166. lt_prog_compiler_wl='-Wl,'
  7167. lt_prog_compiler_pic='-KPIC'
  7168. lt_prog_compiler_static='-Bstatic'
  7169. ;;
  7170. unicos*)
  7171. lt_prog_compiler_wl='-Wl,'
  7172. lt_prog_compiler_can_build_shared=no
  7173. ;;
  7174. uts4*)
  7175. lt_prog_compiler_pic='-pic'
  7176. lt_prog_compiler_static='-Bstatic'
  7177. ;;
  7178. *)
  7179. lt_prog_compiler_can_build_shared=no
  7180. ;;
  7181. esac
  7182. fi
  7183. case $host_os in
  7184. # For platforms which do not support PIC, -DPIC is meaningless:
  7185. *djgpp*)
  7186. lt_prog_compiler_pic=
  7187. ;;
  7188. *)
  7189. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7190. ;;
  7191. esac
  7192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7193. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7194. if ${lt_cv_prog_compiler_pic+:} false; then :
  7195. $as_echo_n "(cached) " >&6
  7196. else
  7197. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7198. fi
  7199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7200. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7201. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7202. #
  7203. # Check to make sure the PIC flag actually works.
  7204. #
  7205. if test -n "$lt_prog_compiler_pic"; then
  7206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7207. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7208. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7209. $as_echo_n "(cached) " >&6
  7210. else
  7211. lt_cv_prog_compiler_pic_works=no
  7212. ac_outfile=conftest.$ac_objext
  7213. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7214. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7215. # Insert the option either (1) after the last *FLAGS variable, or
  7216. # (2) before a word containing "conftest.", or (3) at the end.
  7217. # Note that $ac_compile itself does not contain backslashes and begins
  7218. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7219. # The option is referenced via a variable to avoid confusing sed.
  7220. lt_compile=`echo "$ac_compile" | $SED \
  7221. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7222. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7223. -e 's:$: $lt_compiler_flag:'`
  7224. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7225. (eval "$lt_compile" 2>conftest.err)
  7226. ac_status=$?
  7227. cat conftest.err >&5
  7228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7229. if (exit $ac_status) && test -s "$ac_outfile"; then
  7230. # The compiler can only warn and ignore the option if not recognized
  7231. # So say no if there are warnings other than the usual output.
  7232. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7233. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7234. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7235. lt_cv_prog_compiler_pic_works=yes
  7236. fi
  7237. fi
  7238. $RM conftest*
  7239. fi
  7240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7241. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7242. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7243. case $lt_prog_compiler_pic in
  7244. "" | " "*) ;;
  7245. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7246. esac
  7247. else
  7248. lt_prog_compiler_pic=
  7249. lt_prog_compiler_can_build_shared=no
  7250. fi
  7251. fi
  7252. #
  7253. # Check to make sure the static flag actually works.
  7254. #
  7255. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7257. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7258. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7259. $as_echo_n "(cached) " >&6
  7260. else
  7261. lt_cv_prog_compiler_static_works=no
  7262. save_LDFLAGS="$LDFLAGS"
  7263. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7264. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7265. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7266. # The linker can only warn and ignore the option if not recognized
  7267. # So say no if there are warnings
  7268. if test -s conftest.err; then
  7269. # Append any errors to the config.log.
  7270. cat conftest.err 1>&5
  7271. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7272. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7273. if diff conftest.exp conftest.er2 >/dev/null; then
  7274. lt_cv_prog_compiler_static_works=yes
  7275. fi
  7276. else
  7277. lt_cv_prog_compiler_static_works=yes
  7278. fi
  7279. fi
  7280. $RM -r conftest*
  7281. LDFLAGS="$save_LDFLAGS"
  7282. fi
  7283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7284. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7285. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7286. :
  7287. else
  7288. lt_prog_compiler_static=
  7289. fi
  7290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7291. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7292. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7293. $as_echo_n "(cached) " >&6
  7294. else
  7295. lt_cv_prog_compiler_c_o=no
  7296. $RM -r conftest 2>/dev/null
  7297. mkdir conftest
  7298. cd conftest
  7299. mkdir out
  7300. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7301. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7302. # Insert the option either (1) after the last *FLAGS variable, or
  7303. # (2) before a word containing "conftest.", or (3) at the end.
  7304. # Note that $ac_compile itself does not contain backslashes and begins
  7305. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7306. lt_compile=`echo "$ac_compile" | $SED \
  7307. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7308. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7309. -e 's:$: $lt_compiler_flag:'`
  7310. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7311. (eval "$lt_compile" 2>out/conftest.err)
  7312. ac_status=$?
  7313. cat out/conftest.err >&5
  7314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7315. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7316. then
  7317. # The compiler can only warn and ignore the option if not recognized
  7318. # So say no if there are warnings
  7319. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7320. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7321. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7322. lt_cv_prog_compiler_c_o=yes
  7323. fi
  7324. fi
  7325. chmod u+w . 2>&5
  7326. $RM conftest*
  7327. # SGI C++ compiler will create directory out/ii_files/ for
  7328. # template instantiation
  7329. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7330. $RM out/* && rmdir out
  7331. cd ..
  7332. $RM -r conftest
  7333. $RM conftest*
  7334. fi
  7335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7336. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7338. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7339. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7340. $as_echo_n "(cached) " >&6
  7341. else
  7342. lt_cv_prog_compiler_c_o=no
  7343. $RM -r conftest 2>/dev/null
  7344. mkdir conftest
  7345. cd conftest
  7346. mkdir out
  7347. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7348. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7349. # Insert the option either (1) after the last *FLAGS variable, or
  7350. # (2) before a word containing "conftest.", or (3) at the end.
  7351. # Note that $ac_compile itself does not contain backslashes and begins
  7352. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7353. lt_compile=`echo "$ac_compile" | $SED \
  7354. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7355. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7356. -e 's:$: $lt_compiler_flag:'`
  7357. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7358. (eval "$lt_compile" 2>out/conftest.err)
  7359. ac_status=$?
  7360. cat out/conftest.err >&5
  7361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7362. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7363. then
  7364. # The compiler can only warn and ignore the option if not recognized
  7365. # So say no if there are warnings
  7366. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7367. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7368. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7369. lt_cv_prog_compiler_c_o=yes
  7370. fi
  7371. fi
  7372. chmod u+w . 2>&5
  7373. $RM conftest*
  7374. # SGI C++ compiler will create directory out/ii_files/ for
  7375. # template instantiation
  7376. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7377. $RM out/* && rmdir out
  7378. cd ..
  7379. $RM -r conftest
  7380. $RM conftest*
  7381. fi
  7382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7383. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7384. hard_links="nottested"
  7385. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7386. # do not overwrite the value of need_locks provided by the user
  7387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7388. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7389. hard_links=yes
  7390. $RM conftest*
  7391. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7392. touch conftest.a
  7393. ln conftest.a conftest.b 2>&5 || hard_links=no
  7394. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7396. $as_echo "$hard_links" >&6; }
  7397. if test "$hard_links" = no; then
  7398. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7399. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7400. need_locks=warn
  7401. fi
  7402. else
  7403. need_locks=no
  7404. fi
  7405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7406. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7407. runpath_var=
  7408. allow_undefined_flag=
  7409. always_export_symbols=no
  7410. archive_cmds=
  7411. archive_expsym_cmds=
  7412. compiler_needs_object=no
  7413. enable_shared_with_static_runtimes=no
  7414. export_dynamic_flag_spec=
  7415. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7416. hardcode_automatic=no
  7417. hardcode_direct=no
  7418. hardcode_direct_absolute=no
  7419. hardcode_libdir_flag_spec=
  7420. hardcode_libdir_separator=
  7421. hardcode_minus_L=no
  7422. hardcode_shlibpath_var=unsupported
  7423. inherit_rpath=no
  7424. link_all_deplibs=unknown
  7425. module_cmds=
  7426. module_expsym_cmds=
  7427. old_archive_from_new_cmds=
  7428. old_archive_from_expsyms_cmds=
  7429. thread_safe_flag_spec=
  7430. whole_archive_flag_spec=
  7431. # include_expsyms should be a list of space-separated symbols to be *always*
  7432. # included in the symbol list
  7433. include_expsyms=
  7434. # exclude_expsyms can be an extended regexp of symbols to exclude
  7435. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7436. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7437. # as well as any symbol that contains `d'.
  7438. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7439. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7440. # platforms (ab)use it in PIC code, but their linkers get confused if
  7441. # the symbol is explicitly referenced. Since portable code cannot
  7442. # rely on this symbol name, it's probably fine to never include it in
  7443. # preloaded symbol tables.
  7444. # Exclude shared library initialization/finalization symbols.
  7445. extract_expsyms_cmds=
  7446. case $host_os in
  7447. cygwin* | mingw* | pw32* | cegcc*)
  7448. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7449. # When not using gcc, we currently assume that we are using
  7450. # Microsoft Visual C++.
  7451. if test "$GCC" != yes; then
  7452. with_gnu_ld=no
  7453. fi
  7454. ;;
  7455. interix*)
  7456. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7457. with_gnu_ld=yes
  7458. ;;
  7459. openbsd*)
  7460. with_gnu_ld=no
  7461. ;;
  7462. esac
  7463. ld_shlibs=yes
  7464. # On some targets, GNU ld is compatible enough with the native linker
  7465. # that we're better off using the native interface for both.
  7466. lt_use_gnu_ld_interface=no
  7467. if test "$with_gnu_ld" = yes; then
  7468. case $host_os in
  7469. aix*)
  7470. # The AIX port of GNU ld has always aspired to compatibility
  7471. # with the native linker. However, as the warning in the GNU ld
  7472. # block says, versions before 2.19.5* couldn't really create working
  7473. # shared libraries, regardless of the interface used.
  7474. case `$LD -v 2>&1` in
  7475. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7476. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7477. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7478. *)
  7479. lt_use_gnu_ld_interface=yes
  7480. ;;
  7481. esac
  7482. ;;
  7483. *)
  7484. lt_use_gnu_ld_interface=yes
  7485. ;;
  7486. esac
  7487. fi
  7488. if test "$lt_use_gnu_ld_interface" = yes; then
  7489. # If archive_cmds runs LD, not CC, wlarc should be empty
  7490. wlarc='${wl}'
  7491. # Set some defaults for GNU ld with shared library support. These
  7492. # are reset later if shared libraries are not supported. Putting them
  7493. # here allows them to be overridden if necessary.
  7494. runpath_var=LD_RUN_PATH
  7495. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7496. export_dynamic_flag_spec='${wl}--export-dynamic'
  7497. # ancient GNU ld didn't support --whole-archive et. al.
  7498. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7499. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7500. else
  7501. whole_archive_flag_spec=
  7502. fi
  7503. supports_anon_versioning=no
  7504. case `$LD -v 2>&1` in
  7505. *GNU\ gold*) supports_anon_versioning=yes ;;
  7506. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7507. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7508. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7509. *\ 2.11.*) ;; # other 2.11 versions
  7510. *) supports_anon_versioning=yes ;;
  7511. esac
  7512. # See if GNU ld supports shared libraries.
  7513. case $host_os in
  7514. aix[3-9]*)
  7515. # On AIX/PPC, the GNU linker is very broken
  7516. if test "$host_cpu" != ia64; then
  7517. ld_shlibs=no
  7518. cat <<_LT_EOF 1>&2
  7519. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7520. *** to be unable to reliably create shared libraries on AIX.
  7521. *** Therefore, libtool is disabling shared libraries support. If you
  7522. *** really care for shared libraries, you may want to install binutils
  7523. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7524. *** You will then need to restart the configuration process.
  7525. _LT_EOF
  7526. fi
  7527. ;;
  7528. amigaos*)
  7529. case $host_cpu in
  7530. powerpc)
  7531. # see comment about AmigaOS4 .so support
  7532. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7533. archive_expsym_cmds=''
  7534. ;;
  7535. m68k)
  7536. 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)'
  7537. hardcode_libdir_flag_spec='-L$libdir'
  7538. hardcode_minus_L=yes
  7539. ;;
  7540. esac
  7541. ;;
  7542. beos*)
  7543. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7544. allow_undefined_flag=unsupported
  7545. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7546. # support --undefined. This deserves some investigation. FIXME
  7547. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7548. else
  7549. ld_shlibs=no
  7550. fi
  7551. ;;
  7552. cygwin* | mingw* | pw32* | cegcc*)
  7553. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7554. # as there is no search path for DLLs.
  7555. hardcode_libdir_flag_spec='-L$libdir'
  7556. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7557. allow_undefined_flag=unsupported
  7558. always_export_symbols=no
  7559. enable_shared_with_static_runtimes=yes
  7560. 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'
  7561. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7562. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7563. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7564. # If the export-symbols file already is a .def file (1st line
  7565. # is EXPORTS), use it as is; otherwise, prepend...
  7566. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7567. cp $export_symbols $output_objdir/$soname.def;
  7568. else
  7569. echo EXPORTS > $output_objdir/$soname.def;
  7570. cat $export_symbols >> $output_objdir/$soname.def;
  7571. fi~
  7572. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7573. else
  7574. ld_shlibs=no
  7575. fi
  7576. ;;
  7577. haiku*)
  7578. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7579. link_all_deplibs=yes
  7580. ;;
  7581. interix[3-9]*)
  7582. hardcode_direct=no
  7583. hardcode_shlibpath_var=no
  7584. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7585. export_dynamic_flag_spec='${wl}-E'
  7586. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7587. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7588. # default) and relocated if they conflict, which is a slow very memory
  7589. # consuming and fragmenting process. To avoid this, we pick a random,
  7590. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7591. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7592. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7593. 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'
  7594. ;;
  7595. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7596. tmp_diet=no
  7597. if test "$host_os" = linux-dietlibc; then
  7598. case $cc_basename in
  7599. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7600. esac
  7601. fi
  7602. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7603. && test "$tmp_diet" = no
  7604. then
  7605. tmp_addflag=' $pic_flag'
  7606. tmp_sharedflag='-shared'
  7607. case $cc_basename,$host_cpu in
  7608. pgcc*) # Portland Group C compiler
  7609. 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'
  7610. tmp_addflag=' $pic_flag'
  7611. ;;
  7612. pgf77* | pgf90* | pgf95* | pgfortran*)
  7613. # Portland Group f77 and f90 compilers
  7614. 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'
  7615. tmp_addflag=' $pic_flag -Mnomain' ;;
  7616. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7617. tmp_addflag=' -i_dynamic' ;;
  7618. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7619. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7620. ifc* | ifort*) # Intel Fortran compiler
  7621. tmp_addflag=' -nofor_main' ;;
  7622. lf95*) # Lahey Fortran 8.1
  7623. whole_archive_flag_spec=
  7624. tmp_sharedflag='--shared' ;;
  7625. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7626. tmp_sharedflag='-qmkshrobj'
  7627. tmp_addflag= ;;
  7628. nvcc*) # Cuda Compiler Driver 2.2
  7629. 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'
  7630. compiler_needs_object=yes
  7631. ;;
  7632. esac
  7633. case `$CC -V 2>&1 | sed 5q` in
  7634. *Sun\ C*) # Sun C 5.9
  7635. 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'
  7636. compiler_needs_object=yes
  7637. tmp_sharedflag='-G' ;;
  7638. *Sun\ F*) # Sun Fortran 8.3
  7639. tmp_sharedflag='-G' ;;
  7640. esac
  7641. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7642. if test "x$supports_anon_versioning" = xyes; then
  7643. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7644. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7645. echo "local: *; };" >> $output_objdir/$libname.ver~
  7646. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7647. fi
  7648. case $cc_basename in
  7649. xlf* | bgf* | bgxlf* | mpixlf*)
  7650. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7651. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7652. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7653. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7654. if test "x$supports_anon_versioning" = xyes; then
  7655. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7656. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7657. echo "local: *; };" >> $output_objdir/$libname.ver~
  7658. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7659. fi
  7660. ;;
  7661. esac
  7662. else
  7663. ld_shlibs=no
  7664. fi
  7665. ;;
  7666. netbsd*)
  7667. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7668. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7669. wlarc=
  7670. else
  7671. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7672. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7673. fi
  7674. ;;
  7675. solaris*)
  7676. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7677. ld_shlibs=no
  7678. cat <<_LT_EOF 1>&2
  7679. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7680. *** create shared libraries on Solaris systems. Therefore, libtool
  7681. *** is disabling shared libraries support. We urge you to upgrade GNU
  7682. *** binutils to release 2.9.1 or newer. Another option is to modify
  7683. *** your PATH or compiler configuration so that the native linker is
  7684. *** used, and then restart.
  7685. _LT_EOF
  7686. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7687. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7688. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7689. else
  7690. ld_shlibs=no
  7691. fi
  7692. ;;
  7693. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7694. case `$LD -v 2>&1` in
  7695. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7696. ld_shlibs=no
  7697. cat <<_LT_EOF 1>&2
  7698. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7699. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7700. *** is disabling shared libraries support. We urge you to upgrade GNU
  7701. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7702. *** your PATH or compiler configuration so that the native linker is
  7703. *** used, and then restart.
  7704. _LT_EOF
  7705. ;;
  7706. *)
  7707. # For security reasons, it is highly recommended that you always
  7708. # use absolute paths for naming shared libraries, and exclude the
  7709. # DT_RUNPATH tag from executables and libraries. But doing so
  7710. # requires that you compile everything twice, which is a pain.
  7711. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7712. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7713. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7714. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7715. else
  7716. ld_shlibs=no
  7717. fi
  7718. ;;
  7719. esac
  7720. ;;
  7721. sunos4*)
  7722. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7723. wlarc=
  7724. hardcode_direct=yes
  7725. hardcode_shlibpath_var=no
  7726. ;;
  7727. *)
  7728. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7729. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7730. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7731. else
  7732. ld_shlibs=no
  7733. fi
  7734. ;;
  7735. esac
  7736. if test "$ld_shlibs" = no; then
  7737. runpath_var=
  7738. hardcode_libdir_flag_spec=
  7739. export_dynamic_flag_spec=
  7740. whole_archive_flag_spec=
  7741. fi
  7742. else
  7743. # PORTME fill in a description of your system's linker (not GNU ld)
  7744. case $host_os in
  7745. aix3*)
  7746. allow_undefined_flag=unsupported
  7747. always_export_symbols=yes
  7748. 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'
  7749. # Note: this linker hardcodes the directories in LIBPATH if there
  7750. # are no directories specified by -L.
  7751. hardcode_minus_L=yes
  7752. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7753. # Neither direct hardcoding nor static linking is supported with a
  7754. # broken collect2.
  7755. hardcode_direct=unsupported
  7756. fi
  7757. ;;
  7758. aix[4-9]*)
  7759. if test "$host_cpu" = ia64; then
  7760. # On IA64, the linker does run time linking by default, so we don't
  7761. # have to do anything special.
  7762. aix_use_runtimelinking=no
  7763. exp_sym_flag='-Bexport'
  7764. no_entry_flag=""
  7765. else
  7766. # If we're using GNU nm, then we don't want the "-C" option.
  7767. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7768. # Also, AIX nm treats weak defined symbols like other global
  7769. # defined symbols, whereas GNU nm marks them as "W".
  7770. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7771. 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'
  7772. else
  7773. 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'
  7774. fi
  7775. aix_use_runtimelinking=no
  7776. # Test if we are trying to use run time linking or normal
  7777. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7778. # need to do runtime linking.
  7779. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7780. for ld_flag in $LDFLAGS; do
  7781. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7782. aix_use_runtimelinking=yes
  7783. break
  7784. fi
  7785. done
  7786. ;;
  7787. esac
  7788. exp_sym_flag='-bexport'
  7789. no_entry_flag='-bnoentry'
  7790. fi
  7791. # When large executables or shared objects are built, AIX ld can
  7792. # have problems creating the table of contents. If linking a library
  7793. # or program results in "error TOC overflow" add -mminimal-toc to
  7794. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7795. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7796. archive_cmds=''
  7797. hardcode_direct=yes
  7798. hardcode_direct_absolute=yes
  7799. hardcode_libdir_separator=':'
  7800. link_all_deplibs=yes
  7801. file_list_spec='${wl}-f,'
  7802. if test "$GCC" = yes; then
  7803. case $host_os in aix4.[012]|aix4.[012].*)
  7804. # We only want to do this on AIX 4.2 and lower, the check
  7805. # below for broken collect2 doesn't work under 4.3+
  7806. collect2name=`${CC} -print-prog-name=collect2`
  7807. if test -f "$collect2name" &&
  7808. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7809. then
  7810. # We have reworked collect2
  7811. :
  7812. else
  7813. # We have old collect2
  7814. hardcode_direct=unsupported
  7815. # It fails to find uninstalled libraries when the uninstalled
  7816. # path is not listed in the libpath. Setting hardcode_minus_L
  7817. # to unsupported forces relinking
  7818. hardcode_minus_L=yes
  7819. hardcode_libdir_flag_spec='-L$libdir'
  7820. hardcode_libdir_separator=
  7821. fi
  7822. ;;
  7823. esac
  7824. shared_flag='-shared'
  7825. if test "$aix_use_runtimelinking" = yes; then
  7826. shared_flag="$shared_flag "'${wl}-G'
  7827. fi
  7828. else
  7829. # not using gcc
  7830. if test "$host_cpu" = ia64; then
  7831. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7832. # chokes on -Wl,-G. The following line is correct:
  7833. shared_flag='-G'
  7834. else
  7835. if test "$aix_use_runtimelinking" = yes; then
  7836. shared_flag='${wl}-G'
  7837. else
  7838. shared_flag='${wl}-bM:SRE'
  7839. fi
  7840. fi
  7841. fi
  7842. export_dynamic_flag_spec='${wl}-bexpall'
  7843. # It seems that -bexpall does not export symbols beginning with
  7844. # underscore (_), so it is better to generate a list of symbols to export.
  7845. always_export_symbols=yes
  7846. if test "$aix_use_runtimelinking" = yes; then
  7847. # Warning - without using the other runtime loading flags (-brtl),
  7848. # -berok will link without error, but may produce a broken library.
  7849. allow_undefined_flag='-berok'
  7850. # Determine the default libpath from the value encoded in an
  7851. # empty executable.
  7852. if test "${lt_cv_aix_libpath+set}" = set; then
  7853. aix_libpath=$lt_cv_aix_libpath
  7854. else
  7855. if ${lt_cv_aix_libpath_+:} false; then :
  7856. $as_echo_n "(cached) " >&6
  7857. else
  7858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7859. /* end confdefs.h. */
  7860. int
  7861. main ()
  7862. {
  7863. ;
  7864. return 0;
  7865. }
  7866. _ACEOF
  7867. if ac_fn_c_try_link "$LINENO"; then :
  7868. lt_aix_libpath_sed='
  7869. /Import File Strings/,/^$/ {
  7870. /^0/ {
  7871. s/^0 *\([^ ]*\) *$/\1/
  7872. p
  7873. }
  7874. }'
  7875. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7876. # Check for a 64-bit object if we didn't find anything.
  7877. if test -z "$lt_cv_aix_libpath_"; then
  7878. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7879. fi
  7880. fi
  7881. rm -f core conftest.err conftest.$ac_objext \
  7882. conftest$ac_exeext conftest.$ac_ext
  7883. if test -z "$lt_cv_aix_libpath_"; then
  7884. lt_cv_aix_libpath_="/usr/lib:/lib"
  7885. fi
  7886. fi
  7887. aix_libpath=$lt_cv_aix_libpath_
  7888. fi
  7889. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7890. 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"
  7891. else
  7892. if test "$host_cpu" = ia64; then
  7893. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7894. allow_undefined_flag="-z nodefs"
  7895. 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"
  7896. else
  7897. # Determine the default libpath from the value encoded in an
  7898. # empty executable.
  7899. if test "${lt_cv_aix_libpath+set}" = set; then
  7900. aix_libpath=$lt_cv_aix_libpath
  7901. else
  7902. if ${lt_cv_aix_libpath_+:} false; then :
  7903. $as_echo_n "(cached) " >&6
  7904. else
  7905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7906. /* end confdefs.h. */
  7907. int
  7908. main ()
  7909. {
  7910. ;
  7911. return 0;
  7912. }
  7913. _ACEOF
  7914. if ac_fn_c_try_link "$LINENO"; then :
  7915. lt_aix_libpath_sed='
  7916. /Import File Strings/,/^$/ {
  7917. /^0/ {
  7918. s/^0 *\([^ ]*\) *$/\1/
  7919. p
  7920. }
  7921. }'
  7922. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7923. # Check for a 64-bit object if we didn't find anything.
  7924. if test -z "$lt_cv_aix_libpath_"; then
  7925. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7926. fi
  7927. fi
  7928. rm -f core conftest.err conftest.$ac_objext \
  7929. conftest$ac_exeext conftest.$ac_ext
  7930. if test -z "$lt_cv_aix_libpath_"; then
  7931. lt_cv_aix_libpath_="/usr/lib:/lib"
  7932. fi
  7933. fi
  7934. aix_libpath=$lt_cv_aix_libpath_
  7935. fi
  7936. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7937. # Warning - without using the other run time loading flags,
  7938. # -berok will link without error, but may produce a broken library.
  7939. no_undefined_flag=' ${wl}-bernotok'
  7940. allow_undefined_flag=' ${wl}-berok'
  7941. if test "$with_gnu_ld" = yes; then
  7942. # We only use this code for GNU lds that support --whole-archive.
  7943. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7944. else
  7945. # Exported symbols can be pulled into shared objects from archives
  7946. whole_archive_flag_spec='$convenience'
  7947. fi
  7948. archive_cmds_need_lc=yes
  7949. # This is similar to how AIX traditionally builds its shared libraries.
  7950. 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'
  7951. fi
  7952. fi
  7953. ;;
  7954. amigaos*)
  7955. case $host_cpu in
  7956. powerpc)
  7957. # see comment about AmigaOS4 .so support
  7958. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7959. archive_expsym_cmds=''
  7960. ;;
  7961. m68k)
  7962. 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)'
  7963. hardcode_libdir_flag_spec='-L$libdir'
  7964. hardcode_minus_L=yes
  7965. ;;
  7966. esac
  7967. ;;
  7968. bsdi[45]*)
  7969. export_dynamic_flag_spec=-rdynamic
  7970. ;;
  7971. cygwin* | mingw* | pw32* | cegcc*)
  7972. # When not using gcc, we currently assume that we are using
  7973. # Microsoft Visual C++.
  7974. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7975. # no search path for DLLs.
  7976. case $cc_basename in
  7977. cl*)
  7978. # Native MSVC
  7979. hardcode_libdir_flag_spec=' '
  7980. allow_undefined_flag=unsupported
  7981. always_export_symbols=yes
  7982. file_list_spec='@'
  7983. # Tell ltmain to make .lib files, not .a files.
  7984. libext=lib
  7985. # Tell ltmain to make .dll files, not .so files.
  7986. shrext_cmds=".dll"
  7987. # FIXME: Setting linknames here is a bad hack.
  7988. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7989. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7990. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7991. else
  7992. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7993. fi~
  7994. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7995. linknames='
  7996. # The linker will not automatically build a static lib if we build a DLL.
  7997. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7998. enable_shared_with_static_runtimes=yes
  7999. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8000. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8001. # Don't use ranlib
  8002. old_postinstall_cmds='chmod 644 $oldlib'
  8003. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8004. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8005. case $lt_outputfile in
  8006. *.exe|*.EXE) ;;
  8007. *)
  8008. lt_outputfile="$lt_outputfile.exe"
  8009. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8010. ;;
  8011. esac~
  8012. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8013. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8014. $RM "$lt_outputfile.manifest";
  8015. fi'
  8016. ;;
  8017. *)
  8018. # Assume MSVC wrapper
  8019. hardcode_libdir_flag_spec=' '
  8020. allow_undefined_flag=unsupported
  8021. # Tell ltmain to make .lib files, not .a files.
  8022. libext=lib
  8023. # Tell ltmain to make .dll files, not .so files.
  8024. shrext_cmds=".dll"
  8025. # FIXME: Setting linknames here is a bad hack.
  8026. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8027. # The linker will automatically build a .lib file if we build a DLL.
  8028. old_archive_from_new_cmds='true'
  8029. # FIXME: Should let the user specify the lib program.
  8030. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8031. enable_shared_with_static_runtimes=yes
  8032. ;;
  8033. esac
  8034. ;;
  8035. darwin* | rhapsody*)
  8036. archive_cmds_need_lc=no
  8037. hardcode_direct=no
  8038. hardcode_automatic=yes
  8039. hardcode_shlibpath_var=unsupported
  8040. if test "$lt_cv_ld_force_load" = "yes"; then
  8041. 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\"`'
  8042. else
  8043. whole_archive_flag_spec=''
  8044. fi
  8045. link_all_deplibs=yes
  8046. allow_undefined_flag="$_lt_dar_allow_undefined"
  8047. case $cc_basename in
  8048. ifort*) _lt_dar_can_shared=yes ;;
  8049. *) _lt_dar_can_shared=$GCC ;;
  8050. esac
  8051. if test "$_lt_dar_can_shared" = "yes"; then
  8052. output_verbose_link_cmd=func_echo_all
  8053. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8054. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8055. 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}"
  8056. 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}"
  8057. else
  8058. ld_shlibs=no
  8059. fi
  8060. ;;
  8061. dgux*)
  8062. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8063. hardcode_libdir_flag_spec='-L$libdir'
  8064. hardcode_shlibpath_var=no
  8065. ;;
  8066. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8067. # support. Future versions do this automatically, but an explicit c++rt0.o
  8068. # does not break anything, and helps significantly (at the cost of a little
  8069. # extra space).
  8070. freebsd2.2*)
  8071. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8072. hardcode_libdir_flag_spec='-R$libdir'
  8073. hardcode_direct=yes
  8074. hardcode_shlibpath_var=no
  8075. ;;
  8076. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8077. freebsd2.*)
  8078. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8079. hardcode_direct=yes
  8080. hardcode_minus_L=yes
  8081. hardcode_shlibpath_var=no
  8082. ;;
  8083. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8084. freebsd* | dragonfly*)
  8085. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8086. hardcode_libdir_flag_spec='-R$libdir'
  8087. hardcode_direct=yes
  8088. hardcode_shlibpath_var=no
  8089. ;;
  8090. hpux9*)
  8091. if test "$GCC" = yes; then
  8092. 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'
  8093. else
  8094. 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'
  8095. fi
  8096. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8097. hardcode_libdir_separator=:
  8098. hardcode_direct=yes
  8099. # hardcode_minus_L: Not really in the search PATH,
  8100. # but as the default location of the library.
  8101. hardcode_minus_L=yes
  8102. export_dynamic_flag_spec='${wl}-E'
  8103. ;;
  8104. hpux10*)
  8105. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8106. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8107. else
  8108. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8109. fi
  8110. if test "$with_gnu_ld" = no; then
  8111. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8112. hardcode_libdir_separator=:
  8113. hardcode_direct=yes
  8114. hardcode_direct_absolute=yes
  8115. export_dynamic_flag_spec='${wl}-E'
  8116. # hardcode_minus_L: Not really in the search PATH,
  8117. # but as the default location of the library.
  8118. hardcode_minus_L=yes
  8119. fi
  8120. ;;
  8121. hpux11*)
  8122. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8123. case $host_cpu in
  8124. hppa*64*)
  8125. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8126. ;;
  8127. ia64*)
  8128. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8129. ;;
  8130. *)
  8131. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8132. ;;
  8133. esac
  8134. else
  8135. case $host_cpu in
  8136. hppa*64*)
  8137. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8138. ;;
  8139. ia64*)
  8140. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8141. ;;
  8142. *)
  8143. # Older versions of the 11.00 compiler do not understand -b yet
  8144. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8146. $as_echo_n "checking if $CC understands -b... " >&6; }
  8147. if ${lt_cv_prog_compiler__b+:} false; then :
  8148. $as_echo_n "(cached) " >&6
  8149. else
  8150. lt_cv_prog_compiler__b=no
  8151. save_LDFLAGS="$LDFLAGS"
  8152. LDFLAGS="$LDFLAGS -b"
  8153. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8154. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8155. # The linker can only warn and ignore the option if not recognized
  8156. # So say no if there are warnings
  8157. if test -s conftest.err; then
  8158. # Append any errors to the config.log.
  8159. cat conftest.err 1>&5
  8160. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8161. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8162. if diff conftest.exp conftest.er2 >/dev/null; then
  8163. lt_cv_prog_compiler__b=yes
  8164. fi
  8165. else
  8166. lt_cv_prog_compiler__b=yes
  8167. fi
  8168. fi
  8169. $RM -r conftest*
  8170. LDFLAGS="$save_LDFLAGS"
  8171. fi
  8172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8173. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8174. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8175. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8176. else
  8177. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8178. fi
  8179. ;;
  8180. esac
  8181. fi
  8182. if test "$with_gnu_ld" = no; then
  8183. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8184. hardcode_libdir_separator=:
  8185. case $host_cpu in
  8186. hppa*64*|ia64*)
  8187. hardcode_direct=no
  8188. hardcode_shlibpath_var=no
  8189. ;;
  8190. *)
  8191. hardcode_direct=yes
  8192. hardcode_direct_absolute=yes
  8193. export_dynamic_flag_spec='${wl}-E'
  8194. # hardcode_minus_L: Not really in the search PATH,
  8195. # but as the default location of the library.
  8196. hardcode_minus_L=yes
  8197. ;;
  8198. esac
  8199. fi
  8200. ;;
  8201. irix5* | irix6* | nonstopux*)
  8202. if test "$GCC" = yes; then
  8203. 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'
  8204. # Try to use the -exported_symbol ld option, if it does not
  8205. # work, assume that -exports_file does not work either and
  8206. # implicitly export all symbols.
  8207. # This should be the same for all languages, so no per-tag cache variable.
  8208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8209. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8210. if ${lt_cv_irix_exported_symbol+:} false; then :
  8211. $as_echo_n "(cached) " >&6
  8212. else
  8213. save_LDFLAGS="$LDFLAGS"
  8214. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8216. /* end confdefs.h. */
  8217. int foo (void) { return 0; }
  8218. _ACEOF
  8219. if ac_fn_c_try_link "$LINENO"; then :
  8220. lt_cv_irix_exported_symbol=yes
  8221. else
  8222. lt_cv_irix_exported_symbol=no
  8223. fi
  8224. rm -f core conftest.err conftest.$ac_objext \
  8225. conftest$ac_exeext conftest.$ac_ext
  8226. LDFLAGS="$save_LDFLAGS"
  8227. fi
  8228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8229. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8230. if test "$lt_cv_irix_exported_symbol" = yes; then
  8231. 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'
  8232. fi
  8233. else
  8234. 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'
  8235. 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'
  8236. fi
  8237. archive_cmds_need_lc='no'
  8238. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8239. hardcode_libdir_separator=:
  8240. inherit_rpath=yes
  8241. link_all_deplibs=yes
  8242. ;;
  8243. netbsd*)
  8244. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8245. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8246. else
  8247. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8248. fi
  8249. hardcode_libdir_flag_spec='-R$libdir'
  8250. hardcode_direct=yes
  8251. hardcode_shlibpath_var=no
  8252. ;;
  8253. newsos6)
  8254. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8255. hardcode_direct=yes
  8256. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8257. hardcode_libdir_separator=:
  8258. hardcode_shlibpath_var=no
  8259. ;;
  8260. *nto* | *qnx*)
  8261. ;;
  8262. openbsd*)
  8263. if test -f /usr/libexec/ld.so; then
  8264. hardcode_direct=yes
  8265. hardcode_shlibpath_var=no
  8266. hardcode_direct_absolute=yes
  8267. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8268. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8269. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8270. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8271. export_dynamic_flag_spec='${wl}-E'
  8272. else
  8273. case $host_os in
  8274. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8275. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8276. hardcode_libdir_flag_spec='-R$libdir'
  8277. ;;
  8278. *)
  8279. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8280. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8281. ;;
  8282. esac
  8283. fi
  8284. else
  8285. ld_shlibs=no
  8286. fi
  8287. ;;
  8288. os2*)
  8289. hardcode_libdir_flag_spec='-L$libdir'
  8290. hardcode_minus_L=yes
  8291. allow_undefined_flag=unsupported
  8292. 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'
  8293. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8294. ;;
  8295. osf3*)
  8296. if test "$GCC" = yes; then
  8297. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8298. 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'
  8299. else
  8300. allow_undefined_flag=' -expect_unresolved \*'
  8301. 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'
  8302. fi
  8303. archive_cmds_need_lc='no'
  8304. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8305. hardcode_libdir_separator=:
  8306. ;;
  8307. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8308. if test "$GCC" = yes; then
  8309. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8310. 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'
  8311. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8312. else
  8313. allow_undefined_flag=' -expect_unresolved \*'
  8314. 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'
  8315. 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~
  8316. $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'
  8317. # Both c and cxx compiler support -rpath directly
  8318. hardcode_libdir_flag_spec='-rpath $libdir'
  8319. fi
  8320. archive_cmds_need_lc='no'
  8321. hardcode_libdir_separator=:
  8322. ;;
  8323. solaris*)
  8324. no_undefined_flag=' -z defs'
  8325. if test "$GCC" = yes; then
  8326. wlarc='${wl}'
  8327. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$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 -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'
  8330. else
  8331. case `$CC -V 2>&1` in
  8332. *"Compilers 5.0"*)
  8333. wlarc=''
  8334. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8335. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8336. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8337. ;;
  8338. *)
  8339. wlarc='${wl}'
  8340. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8341. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8342. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8343. ;;
  8344. esac
  8345. fi
  8346. hardcode_libdir_flag_spec='-R$libdir'
  8347. hardcode_shlibpath_var=no
  8348. case $host_os in
  8349. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8350. *)
  8351. # The compiler driver will combine and reorder linker options,
  8352. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8353. # but is careful enough not to reorder.
  8354. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8355. if test "$GCC" = yes; then
  8356. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8357. else
  8358. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8359. fi
  8360. ;;
  8361. esac
  8362. link_all_deplibs=yes
  8363. ;;
  8364. sunos4*)
  8365. if test "x$host_vendor" = xsequent; then
  8366. # Use $CC to link under sequent, because it throws in some extra .o
  8367. # files that make .init and .fini sections work.
  8368. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8369. else
  8370. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8371. fi
  8372. hardcode_libdir_flag_spec='-L$libdir'
  8373. hardcode_direct=yes
  8374. hardcode_minus_L=yes
  8375. hardcode_shlibpath_var=no
  8376. ;;
  8377. sysv4)
  8378. case $host_vendor in
  8379. sni)
  8380. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8381. hardcode_direct=yes # is this really true???
  8382. ;;
  8383. siemens)
  8384. ## LD is ld it makes a PLAMLIB
  8385. ## CC just makes a GrossModule.
  8386. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8387. reload_cmds='$CC -r -o $output$reload_objs'
  8388. hardcode_direct=no
  8389. ;;
  8390. motorola)
  8391. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8392. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8393. ;;
  8394. esac
  8395. runpath_var='LD_RUN_PATH'
  8396. hardcode_shlibpath_var=no
  8397. ;;
  8398. sysv4.3*)
  8399. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8400. hardcode_shlibpath_var=no
  8401. export_dynamic_flag_spec='-Bexport'
  8402. ;;
  8403. sysv4*MP*)
  8404. if test -d /usr/nec; then
  8405. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8406. hardcode_shlibpath_var=no
  8407. runpath_var=LD_RUN_PATH
  8408. hardcode_runpath_var=yes
  8409. ld_shlibs=yes
  8410. fi
  8411. ;;
  8412. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8413. no_undefined_flag='${wl}-z,text'
  8414. archive_cmds_need_lc=no
  8415. hardcode_shlibpath_var=no
  8416. runpath_var='LD_RUN_PATH'
  8417. if test "$GCC" = yes; then
  8418. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8419. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8420. else
  8421. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8422. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8423. fi
  8424. ;;
  8425. sysv5* | sco3.2v5* | sco5v6*)
  8426. # Note: We can NOT use -z defs as we might desire, because we do not
  8427. # link with -lc, and that would cause any symbols used from libc to
  8428. # always be unresolved, which means just about no library would
  8429. # ever link correctly. If we're not using GNU ld we use -z text
  8430. # though, which does catch some bad symbols but isn't as heavy-handed
  8431. # as -z defs.
  8432. no_undefined_flag='${wl}-z,text'
  8433. allow_undefined_flag='${wl}-z,nodefs'
  8434. archive_cmds_need_lc=no
  8435. hardcode_shlibpath_var=no
  8436. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8437. hardcode_libdir_separator=':'
  8438. link_all_deplibs=yes
  8439. export_dynamic_flag_spec='${wl}-Bexport'
  8440. runpath_var='LD_RUN_PATH'
  8441. if test "$GCC" = yes; then
  8442. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8443. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8444. else
  8445. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8446. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8447. fi
  8448. ;;
  8449. uts4*)
  8450. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8451. hardcode_libdir_flag_spec='-L$libdir'
  8452. hardcode_shlibpath_var=no
  8453. ;;
  8454. *)
  8455. ld_shlibs=no
  8456. ;;
  8457. esac
  8458. if test x$host_vendor = xsni; then
  8459. case $host in
  8460. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8461. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8462. ;;
  8463. esac
  8464. fi
  8465. fi
  8466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8467. $as_echo "$ld_shlibs" >&6; }
  8468. test "$ld_shlibs" = no && can_build_shared=no
  8469. with_gnu_ld=$with_gnu_ld
  8470. #
  8471. # Do we need to explicitly link libc?
  8472. #
  8473. case "x$archive_cmds_need_lc" in
  8474. x|xyes)
  8475. # Assume -lc should be added
  8476. archive_cmds_need_lc=yes
  8477. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8478. case $archive_cmds in
  8479. *'~'*)
  8480. # FIXME: we may have to deal with multi-command sequences.
  8481. ;;
  8482. '$CC '*)
  8483. # Test whether the compiler implicitly links with -lc since on some
  8484. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8485. # to ld, don't add -lc before -lgcc.
  8486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8487. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8488. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8489. $as_echo_n "(cached) " >&6
  8490. else
  8491. $RM conftest*
  8492. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8493. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8494. (eval $ac_compile) 2>&5
  8495. ac_status=$?
  8496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8497. test $ac_status = 0; } 2>conftest.err; then
  8498. soname=conftest
  8499. lib=conftest
  8500. libobjs=conftest.$ac_objext
  8501. deplibs=
  8502. wl=$lt_prog_compiler_wl
  8503. pic_flag=$lt_prog_compiler_pic
  8504. compiler_flags=-v
  8505. linker_flags=-v
  8506. verstring=
  8507. output_objdir=.
  8508. libname=conftest
  8509. lt_save_allow_undefined_flag=$allow_undefined_flag
  8510. allow_undefined_flag=
  8511. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8512. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8513. ac_status=$?
  8514. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8515. test $ac_status = 0; }
  8516. then
  8517. lt_cv_archive_cmds_need_lc=no
  8518. else
  8519. lt_cv_archive_cmds_need_lc=yes
  8520. fi
  8521. allow_undefined_flag=$lt_save_allow_undefined_flag
  8522. else
  8523. cat conftest.err 1>&5
  8524. fi
  8525. $RM conftest*
  8526. fi
  8527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8528. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8529. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8530. ;;
  8531. esac
  8532. fi
  8533. ;;
  8534. esac
  8535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8536. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8537. if test "$GCC" = yes; then
  8538. case $host_os in
  8539. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8540. *) lt_awk_arg="/^libraries:/" ;;
  8541. esac
  8542. case $host_os in
  8543. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8544. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8545. esac
  8546. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8547. case $lt_search_path_spec in
  8548. *\;*)
  8549. # if the path contains ";" then we assume it to be the separator
  8550. # otherwise default to the standard path separator (i.e. ":") - it is
  8551. # assumed that no part of a normal pathname contains ";" but that should
  8552. # okay in the real world where ";" in dirpaths is itself problematic.
  8553. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8554. ;;
  8555. *)
  8556. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8557. ;;
  8558. esac
  8559. # Ok, now we have the path, separated by spaces, we can step through it
  8560. # and add multilib dir if necessary...
  8561. lt_tmp_lt_search_path_spec=
  8562. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8563. # ...but if some path already ends with the multilib dir we assume
  8564. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8565. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8566. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8567. lt_multi_os_dir=
  8568. ;;
  8569. esac
  8570. for lt_sys_path in $lt_search_path_spec; do
  8571. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8572. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8573. elif test -n "$lt_multi_os_dir"; then
  8574. test -d "$lt_sys_path" && \
  8575. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8576. fi
  8577. done
  8578. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8579. BEGIN {RS=" "; FS="/|\n";} {
  8580. lt_foo="";
  8581. lt_count=0;
  8582. for (lt_i = NF; lt_i > 0; lt_i--) {
  8583. if ($lt_i != "" && $lt_i != ".") {
  8584. if ($lt_i == "..") {
  8585. lt_count++;
  8586. } else {
  8587. if (lt_count == 0) {
  8588. lt_foo="/" $lt_i lt_foo;
  8589. } else {
  8590. lt_count--;
  8591. }
  8592. }
  8593. }
  8594. }
  8595. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8596. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8597. }'`
  8598. # AWK program above erroneously prepends '/' to C:/dos/paths
  8599. # for these hosts.
  8600. case $host_os in
  8601. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8602. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8603. esac
  8604. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8605. else
  8606. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8607. fi
  8608. library_names_spec=
  8609. libname_spec='lib$name'
  8610. soname_spec=
  8611. shrext_cmds=".so"
  8612. postinstall_cmds=
  8613. postuninstall_cmds=
  8614. finish_cmds=
  8615. finish_eval=
  8616. shlibpath_var=
  8617. shlibpath_overrides_runpath=unknown
  8618. version_type=none
  8619. dynamic_linker="$host_os ld.so"
  8620. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8621. need_lib_prefix=unknown
  8622. hardcode_into_libs=no
  8623. # when you set need_version to no, make sure it does not cause -set_version
  8624. # flags to be left without arguments
  8625. need_version=unknown
  8626. case $host_os in
  8627. aix3*)
  8628. version_type=linux # correct to gnu/linux during the next big refactor
  8629. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8630. shlibpath_var=LIBPATH
  8631. # AIX 3 has no versioning support, so we append a major version to the name.
  8632. soname_spec='${libname}${release}${shared_ext}$major'
  8633. ;;
  8634. aix[4-9]*)
  8635. version_type=linux # correct to gnu/linux during the next big refactor
  8636. need_lib_prefix=no
  8637. need_version=no
  8638. hardcode_into_libs=yes
  8639. if test "$host_cpu" = ia64; then
  8640. # AIX 5 supports IA64
  8641. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8642. shlibpath_var=LD_LIBRARY_PATH
  8643. else
  8644. # With GCC up to 2.95.x, collect2 would create an import file
  8645. # for dependence libraries. The import file would start with
  8646. # the line `#! .'. This would cause the generated library to
  8647. # depend on `.', always an invalid library. This was fixed in
  8648. # development snapshots of GCC prior to 3.0.
  8649. case $host_os in
  8650. aix4 | aix4.[01] | aix4.[01].*)
  8651. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8652. echo ' yes '
  8653. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8654. :
  8655. else
  8656. can_build_shared=no
  8657. fi
  8658. ;;
  8659. esac
  8660. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8661. # soname into executable. Probably we can add versioning support to
  8662. # collect2, so additional links can be useful in future.
  8663. if test "$aix_use_runtimelinking" = yes; then
  8664. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8665. # instead of lib<name>.a to let people know that these are not
  8666. # typical AIX shared libraries.
  8667. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8668. else
  8669. # We preserve .a as extension for shared libraries through AIX4.2
  8670. # and later when we are not doing run time linking.
  8671. library_names_spec='${libname}${release}.a $libname.a'
  8672. soname_spec='${libname}${release}${shared_ext}$major'
  8673. fi
  8674. shlibpath_var=LIBPATH
  8675. fi
  8676. ;;
  8677. amigaos*)
  8678. case $host_cpu in
  8679. powerpc)
  8680. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8681. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8682. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8683. ;;
  8684. m68k)
  8685. library_names_spec='$libname.ixlibrary $libname.a'
  8686. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8687. 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'
  8688. ;;
  8689. esac
  8690. ;;
  8691. beos*)
  8692. library_names_spec='${libname}${shared_ext}'
  8693. dynamic_linker="$host_os ld.so"
  8694. shlibpath_var=LIBRARY_PATH
  8695. ;;
  8696. bsdi[45]*)
  8697. version_type=linux # correct to gnu/linux during the next big refactor
  8698. need_version=no
  8699. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8700. soname_spec='${libname}${release}${shared_ext}$major'
  8701. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8702. shlibpath_var=LD_LIBRARY_PATH
  8703. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8704. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8705. # the default ld.so.conf also contains /usr/contrib/lib and
  8706. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8707. # libtool to hard-code these into programs
  8708. ;;
  8709. cygwin* | mingw* | pw32* | cegcc*)
  8710. version_type=windows
  8711. shrext_cmds=".dll"
  8712. need_version=no
  8713. need_lib_prefix=no
  8714. case $GCC,$cc_basename in
  8715. yes,*)
  8716. # gcc
  8717. library_names_spec='$libname.dll.a'
  8718. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8719. postinstall_cmds='base_file=`basename \${file}`~
  8720. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8721. dldir=$destdir/`dirname \$dlpath`~
  8722. test -d \$dldir || mkdir -p \$dldir~
  8723. $install_prog $dir/$dlname \$dldir/$dlname~
  8724. chmod a+x \$dldir/$dlname~
  8725. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8726. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8727. fi'
  8728. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8729. dlpath=$dir/\$dldll~
  8730. $RM \$dlpath'
  8731. shlibpath_overrides_runpath=yes
  8732. case $host_os in
  8733. cygwin*)
  8734. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8735. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8736. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8737. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8738. ;;
  8739. mingw* | cegcc*)
  8740. # MinGW DLLs use traditional 'lib' prefix
  8741. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8742. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8743. ;;
  8744. pw32*)
  8745. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8746. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8747. ;;
  8748. esac
  8749. dynamic_linker='Win32 ld.exe'
  8750. ;;
  8751. *,cl*)
  8752. # Native MSVC
  8753. libname_spec='$name'
  8754. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8755. library_names_spec='${libname}.dll.lib'
  8756. case $build_os in
  8757. mingw*)
  8758. sys_lib_search_path_spec=
  8759. lt_save_ifs=$IFS
  8760. IFS=';'
  8761. for lt_path in $LIB
  8762. do
  8763. IFS=$lt_save_ifs
  8764. # Let DOS variable expansion print the short 8.3 style file name.
  8765. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8766. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8767. done
  8768. IFS=$lt_save_ifs
  8769. # Convert to MSYS style.
  8770. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8771. ;;
  8772. cygwin*)
  8773. # Convert to unix form, then to dos form, then back to unix form
  8774. # but this time dos style (no spaces!) so that the unix form looks
  8775. # like /cygdrive/c/PROGRA~1:/cygdr...
  8776. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8777. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8778. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8779. ;;
  8780. *)
  8781. sys_lib_search_path_spec="$LIB"
  8782. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8783. # It is most probably a Windows format PATH.
  8784. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8785. else
  8786. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8787. fi
  8788. # FIXME: find the short name or the path components, as spaces are
  8789. # common. (e.g. "Program Files" -> "PROGRA~1")
  8790. ;;
  8791. esac
  8792. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8793. postinstall_cmds='base_file=`basename \${file}`~
  8794. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8795. dldir=$destdir/`dirname \$dlpath`~
  8796. test -d \$dldir || mkdir -p \$dldir~
  8797. $install_prog $dir/$dlname \$dldir/$dlname'
  8798. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8799. dlpath=$dir/\$dldll~
  8800. $RM \$dlpath'
  8801. shlibpath_overrides_runpath=yes
  8802. dynamic_linker='Win32 link.exe'
  8803. ;;
  8804. *)
  8805. # Assume MSVC wrapper
  8806. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8807. dynamic_linker='Win32 ld.exe'
  8808. ;;
  8809. esac
  8810. # FIXME: first we should search . and the directory the executable is in
  8811. shlibpath_var=PATH
  8812. ;;
  8813. darwin* | rhapsody*)
  8814. dynamic_linker="$host_os dyld"
  8815. version_type=darwin
  8816. need_lib_prefix=no
  8817. need_version=no
  8818. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8819. soname_spec='${libname}${release}${major}$shared_ext'
  8820. shlibpath_overrides_runpath=yes
  8821. shlibpath_var=DYLD_LIBRARY_PATH
  8822. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8823. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8824. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8825. ;;
  8826. dgux*)
  8827. version_type=linux # correct to gnu/linux during the next big refactor
  8828. need_lib_prefix=no
  8829. need_version=no
  8830. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8831. soname_spec='${libname}${release}${shared_ext}$major'
  8832. shlibpath_var=LD_LIBRARY_PATH
  8833. ;;
  8834. freebsd* | dragonfly*)
  8835. # DragonFly does not have aout. When/if they implement a new
  8836. # versioning mechanism, adjust this.
  8837. if test -x /usr/bin/objformat; then
  8838. objformat=`/usr/bin/objformat`
  8839. else
  8840. case $host_os in
  8841. freebsd[23].*) objformat=aout ;;
  8842. *) objformat=elf ;;
  8843. esac
  8844. fi
  8845. version_type=freebsd-$objformat
  8846. case $version_type in
  8847. freebsd-elf*)
  8848. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8849. need_version=no
  8850. need_lib_prefix=no
  8851. ;;
  8852. freebsd-*)
  8853. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8854. need_version=yes
  8855. ;;
  8856. esac
  8857. shlibpath_var=LD_LIBRARY_PATH
  8858. case $host_os in
  8859. freebsd2.*)
  8860. shlibpath_overrides_runpath=yes
  8861. ;;
  8862. freebsd3.[01]* | freebsdelf3.[01]*)
  8863. shlibpath_overrides_runpath=yes
  8864. hardcode_into_libs=yes
  8865. ;;
  8866. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8867. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8868. shlibpath_overrides_runpath=no
  8869. hardcode_into_libs=yes
  8870. ;;
  8871. *) # from 4.6 on, and DragonFly
  8872. shlibpath_overrides_runpath=yes
  8873. hardcode_into_libs=yes
  8874. ;;
  8875. esac
  8876. ;;
  8877. gnu*)
  8878. version_type=linux # correct to gnu/linux during the next big refactor
  8879. need_lib_prefix=no
  8880. need_version=no
  8881. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8882. soname_spec='${libname}${release}${shared_ext}$major'
  8883. shlibpath_var=LD_LIBRARY_PATH
  8884. shlibpath_overrides_runpath=no
  8885. hardcode_into_libs=yes
  8886. ;;
  8887. haiku*)
  8888. version_type=linux # correct to gnu/linux during the next big refactor
  8889. need_lib_prefix=no
  8890. need_version=no
  8891. dynamic_linker="$host_os runtime_loader"
  8892. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8893. soname_spec='${libname}${release}${shared_ext}$major'
  8894. shlibpath_var=LIBRARY_PATH
  8895. shlibpath_overrides_runpath=yes
  8896. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8897. hardcode_into_libs=yes
  8898. ;;
  8899. hpux9* | hpux10* | hpux11*)
  8900. # Give a soname corresponding to the major version so that dld.sl refuses to
  8901. # link against other versions.
  8902. version_type=sunos
  8903. need_lib_prefix=no
  8904. need_version=no
  8905. case $host_cpu in
  8906. ia64*)
  8907. shrext_cmds='.so'
  8908. hardcode_into_libs=yes
  8909. dynamic_linker="$host_os dld.so"
  8910. shlibpath_var=LD_LIBRARY_PATH
  8911. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8912. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8913. soname_spec='${libname}${release}${shared_ext}$major'
  8914. if test "X$HPUX_IA64_MODE" = X32; then
  8915. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8916. else
  8917. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8918. fi
  8919. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8920. ;;
  8921. hppa*64*)
  8922. shrext_cmds='.sl'
  8923. hardcode_into_libs=yes
  8924. dynamic_linker="$host_os dld.sl"
  8925. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8926. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8928. soname_spec='${libname}${release}${shared_ext}$major'
  8929. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8930. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8931. ;;
  8932. *)
  8933. shrext_cmds='.sl'
  8934. dynamic_linker="$host_os dld.sl"
  8935. shlibpath_var=SHLIB_PATH
  8936. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  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. ;;
  8940. esac
  8941. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8942. postinstall_cmds='chmod 555 $lib'
  8943. # or fails outright, so override atomically:
  8944. install_override_mode=555
  8945. ;;
  8946. interix[3-9]*)
  8947. version_type=linux # correct to gnu/linux during the next big refactor
  8948. need_lib_prefix=no
  8949. need_version=no
  8950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8951. soname_spec='${libname}${release}${shared_ext}$major'
  8952. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8953. shlibpath_var=LD_LIBRARY_PATH
  8954. shlibpath_overrides_runpath=no
  8955. hardcode_into_libs=yes
  8956. ;;
  8957. irix5* | irix6* | nonstopux*)
  8958. case $host_os in
  8959. nonstopux*) version_type=nonstopux ;;
  8960. *)
  8961. if test "$lt_cv_prog_gnu_ld" = yes; then
  8962. version_type=linux # correct to gnu/linux during the next big refactor
  8963. else
  8964. version_type=irix
  8965. fi ;;
  8966. esac
  8967. need_lib_prefix=no
  8968. need_version=no
  8969. soname_spec='${libname}${release}${shared_ext}$major'
  8970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8971. case $host_os in
  8972. irix5* | nonstopux*)
  8973. libsuff= shlibsuff=
  8974. ;;
  8975. *)
  8976. case $LD in # libtool.m4 will add one of these switches to LD
  8977. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8978. libsuff= shlibsuff= libmagic=32-bit;;
  8979. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8980. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8981. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8982. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8983. *) libsuff= shlibsuff= libmagic=never-match;;
  8984. esac
  8985. ;;
  8986. esac
  8987. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8988. shlibpath_overrides_runpath=no
  8989. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8990. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8991. hardcode_into_libs=yes
  8992. ;;
  8993. # No shared lib support for Linux oldld, aout, or coff.
  8994. linux*oldld* | linux*aout* | linux*coff*)
  8995. dynamic_linker=no
  8996. ;;
  8997. # This must be glibc/ELF.
  8998. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8999. version_type=linux # correct to gnu/linux during the next big refactor
  9000. need_lib_prefix=no
  9001. need_version=no
  9002. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9003. soname_spec='${libname}${release}${shared_ext}$major'
  9004. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9005. shlibpath_var=LD_LIBRARY_PATH
  9006. shlibpath_overrides_runpath=no
  9007. # Some binutils ld are patched to set DT_RUNPATH
  9008. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9009. $as_echo_n "(cached) " >&6
  9010. else
  9011. lt_cv_shlibpath_overrides_runpath=no
  9012. save_LDFLAGS=$LDFLAGS
  9013. save_libdir=$libdir
  9014. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9015. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9017. /* end confdefs.h. */
  9018. int
  9019. main ()
  9020. {
  9021. ;
  9022. return 0;
  9023. }
  9024. _ACEOF
  9025. if ac_fn_c_try_link "$LINENO"; then :
  9026. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9027. lt_cv_shlibpath_overrides_runpath=yes
  9028. fi
  9029. fi
  9030. rm -f core conftest.err conftest.$ac_objext \
  9031. conftest$ac_exeext conftest.$ac_ext
  9032. LDFLAGS=$save_LDFLAGS
  9033. libdir=$save_libdir
  9034. fi
  9035. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9036. # This implies no fast_install, which is unacceptable.
  9037. # Some rework will be needed to allow for fast_install
  9038. # before this can be enabled.
  9039. hardcode_into_libs=yes
  9040. # Append ld.so.conf contents to the search path
  9041. if test -f /etc/ld.so.conf; then
  9042. 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' ' '`
  9043. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9044. fi
  9045. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9046. # powerpc, because MkLinux only supported shared libraries with the
  9047. # GNU dynamic linker. Since this was broken with cross compilers,
  9048. # most powerpc-linux boxes support dynamic linking these days and
  9049. # people can always --disable-shared, the test was removed, and we
  9050. # assume the GNU/Linux dynamic linker is in use.
  9051. dynamic_linker='GNU/Linux ld.so'
  9052. ;;
  9053. netbsd*)
  9054. version_type=sunos
  9055. need_lib_prefix=no
  9056. need_version=no
  9057. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9059. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9060. dynamic_linker='NetBSD (a.out) ld.so'
  9061. else
  9062. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9063. soname_spec='${libname}${release}${shared_ext}$major'
  9064. dynamic_linker='NetBSD ld.elf_so'
  9065. fi
  9066. shlibpath_var=LD_LIBRARY_PATH
  9067. shlibpath_overrides_runpath=yes
  9068. hardcode_into_libs=yes
  9069. ;;
  9070. newsos6)
  9071. version_type=linux # correct to gnu/linux during the next big refactor
  9072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9073. shlibpath_var=LD_LIBRARY_PATH
  9074. shlibpath_overrides_runpath=yes
  9075. ;;
  9076. *nto* | *qnx*)
  9077. version_type=qnx
  9078. need_lib_prefix=no
  9079. need_version=no
  9080. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9081. soname_spec='${libname}${release}${shared_ext}$major'
  9082. shlibpath_var=LD_LIBRARY_PATH
  9083. shlibpath_overrides_runpath=no
  9084. hardcode_into_libs=yes
  9085. dynamic_linker='ldqnx.so'
  9086. ;;
  9087. openbsd*)
  9088. version_type=sunos
  9089. sys_lib_dlsearch_path_spec="/usr/lib"
  9090. need_lib_prefix=no
  9091. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9092. case $host_os in
  9093. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9094. *) need_version=no ;;
  9095. esac
  9096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9097. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9098. shlibpath_var=LD_LIBRARY_PATH
  9099. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9100. case $host_os in
  9101. openbsd2.[89] | openbsd2.[89].*)
  9102. shlibpath_overrides_runpath=no
  9103. ;;
  9104. *)
  9105. shlibpath_overrides_runpath=yes
  9106. ;;
  9107. esac
  9108. else
  9109. shlibpath_overrides_runpath=yes
  9110. fi
  9111. ;;
  9112. os2*)
  9113. libname_spec='$name'
  9114. shrext_cmds=".dll"
  9115. need_lib_prefix=no
  9116. library_names_spec='$libname${shared_ext} $libname.a'
  9117. dynamic_linker='OS/2 ld.exe'
  9118. shlibpath_var=LIBPATH
  9119. ;;
  9120. osf3* | osf4* | osf5*)
  9121. version_type=osf
  9122. need_lib_prefix=no
  9123. need_version=no
  9124. soname_spec='${libname}${release}${shared_ext}$major'
  9125. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9126. shlibpath_var=LD_LIBRARY_PATH
  9127. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9128. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9129. ;;
  9130. rdos*)
  9131. dynamic_linker=no
  9132. ;;
  9133. solaris*)
  9134. version_type=linux # correct to gnu/linux during the next big refactor
  9135. need_lib_prefix=no
  9136. need_version=no
  9137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9138. soname_spec='${libname}${release}${shared_ext}$major'
  9139. shlibpath_var=LD_LIBRARY_PATH
  9140. shlibpath_overrides_runpath=yes
  9141. hardcode_into_libs=yes
  9142. # ldd complains unless libraries are executable
  9143. postinstall_cmds='chmod +x $lib'
  9144. ;;
  9145. sunos4*)
  9146. version_type=sunos
  9147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9148. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9149. shlibpath_var=LD_LIBRARY_PATH
  9150. shlibpath_overrides_runpath=yes
  9151. if test "$with_gnu_ld" = yes; then
  9152. need_lib_prefix=no
  9153. fi
  9154. need_version=yes
  9155. ;;
  9156. sysv4 | sysv4.3*)
  9157. version_type=linux # correct to gnu/linux during the next big refactor
  9158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9159. soname_spec='${libname}${release}${shared_ext}$major'
  9160. shlibpath_var=LD_LIBRARY_PATH
  9161. case $host_vendor in
  9162. sni)
  9163. shlibpath_overrides_runpath=no
  9164. need_lib_prefix=no
  9165. runpath_var=LD_RUN_PATH
  9166. ;;
  9167. siemens)
  9168. need_lib_prefix=no
  9169. ;;
  9170. motorola)
  9171. need_lib_prefix=no
  9172. need_version=no
  9173. shlibpath_overrides_runpath=no
  9174. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9175. ;;
  9176. esac
  9177. ;;
  9178. sysv4*MP*)
  9179. if test -d /usr/nec ;then
  9180. version_type=linux # correct to gnu/linux during the next big refactor
  9181. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9182. soname_spec='$libname${shared_ext}.$major'
  9183. shlibpath_var=LD_LIBRARY_PATH
  9184. fi
  9185. ;;
  9186. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9187. version_type=freebsd-elf
  9188. need_lib_prefix=no
  9189. need_version=no
  9190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9191. soname_spec='${libname}${release}${shared_ext}$major'
  9192. shlibpath_var=LD_LIBRARY_PATH
  9193. shlibpath_overrides_runpath=yes
  9194. hardcode_into_libs=yes
  9195. if test "$with_gnu_ld" = yes; then
  9196. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9197. else
  9198. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9199. case $host_os in
  9200. sco3.2v5*)
  9201. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9202. ;;
  9203. esac
  9204. fi
  9205. sys_lib_dlsearch_path_spec='/usr/lib'
  9206. ;;
  9207. tpf*)
  9208. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9209. version_type=linux # correct to gnu/linux during the next big refactor
  9210. need_lib_prefix=no
  9211. need_version=no
  9212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9213. shlibpath_var=LD_LIBRARY_PATH
  9214. shlibpath_overrides_runpath=no
  9215. hardcode_into_libs=yes
  9216. ;;
  9217. uts4*)
  9218. version_type=linux # correct to gnu/linux during the next big refactor
  9219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9220. soname_spec='${libname}${release}${shared_ext}$major'
  9221. shlibpath_var=LD_LIBRARY_PATH
  9222. ;;
  9223. *)
  9224. dynamic_linker=no
  9225. ;;
  9226. esac
  9227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9228. $as_echo "$dynamic_linker" >&6; }
  9229. test "$dynamic_linker" = no && can_build_shared=no
  9230. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9231. if test "$GCC" = yes; then
  9232. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9233. fi
  9234. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9235. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9236. fi
  9237. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9238. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9239. fi
  9240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9241. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9242. hardcode_action=
  9243. if test -n "$hardcode_libdir_flag_spec" ||
  9244. test -n "$runpath_var" ||
  9245. test "X$hardcode_automatic" = "Xyes" ; then
  9246. # We can hardcode non-existent directories.
  9247. if test "$hardcode_direct" != no &&
  9248. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9249. # have to relink, otherwise we might link with an installed library
  9250. # when we should be linking with a yet-to-be-installed one
  9251. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9252. test "$hardcode_minus_L" != no; then
  9253. # Linking always hardcodes the temporary library directory.
  9254. hardcode_action=relink
  9255. else
  9256. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9257. hardcode_action=immediate
  9258. fi
  9259. else
  9260. # We cannot hardcode anything, or else we can only hardcode existing
  9261. # directories.
  9262. hardcode_action=unsupported
  9263. fi
  9264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9265. $as_echo "$hardcode_action" >&6; }
  9266. if test "$hardcode_action" = relink ||
  9267. test "$inherit_rpath" = yes; then
  9268. # Fast installation is not supported
  9269. enable_fast_install=no
  9270. elif test "$shlibpath_overrides_runpath" = yes ||
  9271. test "$enable_shared" = no; then
  9272. # Fast installation is not necessary
  9273. enable_fast_install=needless
  9274. fi
  9275. if test "x$enable_dlopen" != xyes; then
  9276. enable_dlopen=unknown
  9277. enable_dlopen_self=unknown
  9278. enable_dlopen_self_static=unknown
  9279. else
  9280. lt_cv_dlopen=no
  9281. lt_cv_dlopen_libs=
  9282. case $host_os in
  9283. beos*)
  9284. lt_cv_dlopen="load_add_on"
  9285. lt_cv_dlopen_libs=
  9286. lt_cv_dlopen_self=yes
  9287. ;;
  9288. mingw* | pw32* | cegcc*)
  9289. lt_cv_dlopen="LoadLibrary"
  9290. lt_cv_dlopen_libs=
  9291. ;;
  9292. cygwin*)
  9293. lt_cv_dlopen="dlopen"
  9294. lt_cv_dlopen_libs=
  9295. ;;
  9296. darwin*)
  9297. # if libdl is installed we need to link against it
  9298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9299. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9300. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9301. $as_echo_n "(cached) " >&6
  9302. else
  9303. ac_check_lib_save_LIBS=$LIBS
  9304. LIBS="-ldl $LIBS"
  9305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9306. /* end confdefs.h. */
  9307. /* Override any GCC internal prototype to avoid an error.
  9308. Use char because int might match the return type of a GCC
  9309. builtin and then its argument prototype would still apply. */
  9310. #ifdef __cplusplus
  9311. extern "C"
  9312. #endif
  9313. char dlopen ();
  9314. int
  9315. main ()
  9316. {
  9317. return dlopen ();
  9318. ;
  9319. return 0;
  9320. }
  9321. _ACEOF
  9322. if ac_fn_c_try_link "$LINENO"; then :
  9323. ac_cv_lib_dl_dlopen=yes
  9324. else
  9325. ac_cv_lib_dl_dlopen=no
  9326. fi
  9327. rm -f core conftest.err conftest.$ac_objext \
  9328. conftest$ac_exeext conftest.$ac_ext
  9329. LIBS=$ac_check_lib_save_LIBS
  9330. fi
  9331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9332. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9333. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9334. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9335. else
  9336. lt_cv_dlopen="dyld"
  9337. lt_cv_dlopen_libs=
  9338. lt_cv_dlopen_self=yes
  9339. fi
  9340. ;;
  9341. *)
  9342. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9343. if test "x$ac_cv_func_shl_load" = xyes; then :
  9344. lt_cv_dlopen="shl_load"
  9345. else
  9346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9347. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9348. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9349. $as_echo_n "(cached) " >&6
  9350. else
  9351. ac_check_lib_save_LIBS=$LIBS
  9352. LIBS="-ldld $LIBS"
  9353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9354. /* end confdefs.h. */
  9355. /* Override any GCC internal prototype to avoid an error.
  9356. Use char because int might match the return type of a GCC
  9357. builtin and then its argument prototype would still apply. */
  9358. #ifdef __cplusplus
  9359. extern "C"
  9360. #endif
  9361. char shl_load ();
  9362. int
  9363. main ()
  9364. {
  9365. return shl_load ();
  9366. ;
  9367. return 0;
  9368. }
  9369. _ACEOF
  9370. if ac_fn_c_try_link "$LINENO"; then :
  9371. ac_cv_lib_dld_shl_load=yes
  9372. else
  9373. ac_cv_lib_dld_shl_load=no
  9374. fi
  9375. rm -f core conftest.err conftest.$ac_objext \
  9376. conftest$ac_exeext conftest.$ac_ext
  9377. LIBS=$ac_check_lib_save_LIBS
  9378. fi
  9379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9380. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9381. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9382. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9383. else
  9384. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9385. if test "x$ac_cv_func_dlopen" = xyes; then :
  9386. lt_cv_dlopen="dlopen"
  9387. else
  9388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9389. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9390. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9391. $as_echo_n "(cached) " >&6
  9392. else
  9393. ac_check_lib_save_LIBS=$LIBS
  9394. LIBS="-ldl $LIBS"
  9395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9396. /* end confdefs.h. */
  9397. /* Override any GCC internal prototype to avoid an error.
  9398. Use char because int might match the return type of a GCC
  9399. builtin and then its argument prototype would still apply. */
  9400. #ifdef __cplusplus
  9401. extern "C"
  9402. #endif
  9403. char dlopen ();
  9404. int
  9405. main ()
  9406. {
  9407. return dlopen ();
  9408. ;
  9409. return 0;
  9410. }
  9411. _ACEOF
  9412. if ac_fn_c_try_link "$LINENO"; then :
  9413. ac_cv_lib_dl_dlopen=yes
  9414. else
  9415. ac_cv_lib_dl_dlopen=no
  9416. fi
  9417. rm -f core conftest.err conftest.$ac_objext \
  9418. conftest$ac_exeext conftest.$ac_ext
  9419. LIBS=$ac_check_lib_save_LIBS
  9420. fi
  9421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9422. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9423. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9424. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9425. else
  9426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9427. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9428. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9429. $as_echo_n "(cached) " >&6
  9430. else
  9431. ac_check_lib_save_LIBS=$LIBS
  9432. LIBS="-lsvld $LIBS"
  9433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9434. /* end confdefs.h. */
  9435. /* Override any GCC internal prototype to avoid an error.
  9436. Use char because int might match the return type of a GCC
  9437. builtin and then its argument prototype would still apply. */
  9438. #ifdef __cplusplus
  9439. extern "C"
  9440. #endif
  9441. char dlopen ();
  9442. int
  9443. main ()
  9444. {
  9445. return dlopen ();
  9446. ;
  9447. return 0;
  9448. }
  9449. _ACEOF
  9450. if ac_fn_c_try_link "$LINENO"; then :
  9451. ac_cv_lib_svld_dlopen=yes
  9452. else
  9453. ac_cv_lib_svld_dlopen=no
  9454. fi
  9455. rm -f core conftest.err conftest.$ac_objext \
  9456. conftest$ac_exeext conftest.$ac_ext
  9457. LIBS=$ac_check_lib_save_LIBS
  9458. fi
  9459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9460. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9461. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9462. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9463. else
  9464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9465. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9466. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9467. $as_echo_n "(cached) " >&6
  9468. else
  9469. ac_check_lib_save_LIBS=$LIBS
  9470. LIBS="-ldld $LIBS"
  9471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9472. /* end confdefs.h. */
  9473. /* Override any GCC internal prototype to avoid an error.
  9474. Use char because int might match the return type of a GCC
  9475. builtin and then its argument prototype would still apply. */
  9476. #ifdef __cplusplus
  9477. extern "C"
  9478. #endif
  9479. char dld_link ();
  9480. int
  9481. main ()
  9482. {
  9483. return dld_link ();
  9484. ;
  9485. return 0;
  9486. }
  9487. _ACEOF
  9488. if ac_fn_c_try_link "$LINENO"; then :
  9489. ac_cv_lib_dld_dld_link=yes
  9490. else
  9491. ac_cv_lib_dld_dld_link=no
  9492. fi
  9493. rm -f core conftest.err conftest.$ac_objext \
  9494. conftest$ac_exeext conftest.$ac_ext
  9495. LIBS=$ac_check_lib_save_LIBS
  9496. fi
  9497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9498. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9499. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9500. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9501. fi
  9502. fi
  9503. fi
  9504. fi
  9505. fi
  9506. fi
  9507. ;;
  9508. esac
  9509. if test "x$lt_cv_dlopen" != xno; then
  9510. enable_dlopen=yes
  9511. else
  9512. enable_dlopen=no
  9513. fi
  9514. case $lt_cv_dlopen in
  9515. dlopen)
  9516. save_CPPFLAGS="$CPPFLAGS"
  9517. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9518. save_LDFLAGS="$LDFLAGS"
  9519. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9520. save_LIBS="$LIBS"
  9521. LIBS="$lt_cv_dlopen_libs $LIBS"
  9522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9523. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9524. if ${lt_cv_dlopen_self+:} false; then :
  9525. $as_echo_n "(cached) " >&6
  9526. else
  9527. if test "$cross_compiling" = yes; then :
  9528. lt_cv_dlopen_self=cross
  9529. else
  9530. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9531. lt_status=$lt_dlunknown
  9532. cat > conftest.$ac_ext <<_LT_EOF
  9533. #line $LINENO "configure"
  9534. #include "confdefs.h"
  9535. #if HAVE_DLFCN_H
  9536. #include <dlfcn.h>
  9537. #endif
  9538. #include <stdio.h>
  9539. #ifdef RTLD_GLOBAL
  9540. # define LT_DLGLOBAL RTLD_GLOBAL
  9541. #else
  9542. # ifdef DL_GLOBAL
  9543. # define LT_DLGLOBAL DL_GLOBAL
  9544. # else
  9545. # define LT_DLGLOBAL 0
  9546. # endif
  9547. #endif
  9548. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9549. find out it does not work in some platform. */
  9550. #ifndef LT_DLLAZY_OR_NOW
  9551. # ifdef RTLD_LAZY
  9552. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9553. # else
  9554. # ifdef DL_LAZY
  9555. # define LT_DLLAZY_OR_NOW DL_LAZY
  9556. # else
  9557. # ifdef RTLD_NOW
  9558. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9559. # else
  9560. # ifdef DL_NOW
  9561. # define LT_DLLAZY_OR_NOW DL_NOW
  9562. # else
  9563. # define LT_DLLAZY_OR_NOW 0
  9564. # endif
  9565. # endif
  9566. # endif
  9567. # endif
  9568. #endif
  9569. /* When -fvisbility=hidden is used, assume the code has been annotated
  9570. correspondingly for the symbols needed. */
  9571. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9572. int fnord () __attribute__((visibility("default")));
  9573. #endif
  9574. int fnord () { return 42; }
  9575. int main ()
  9576. {
  9577. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9578. int status = $lt_dlunknown;
  9579. if (self)
  9580. {
  9581. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9582. else
  9583. {
  9584. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9585. else puts (dlerror ());
  9586. }
  9587. /* dlclose (self); */
  9588. }
  9589. else
  9590. puts (dlerror ());
  9591. return status;
  9592. }
  9593. _LT_EOF
  9594. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9595. (eval $ac_link) 2>&5
  9596. ac_status=$?
  9597. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9598. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9599. (./conftest; exit; ) >&5 2>/dev/null
  9600. lt_status=$?
  9601. case x$lt_status in
  9602. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9603. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9604. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9605. esac
  9606. else :
  9607. # compilation failed
  9608. lt_cv_dlopen_self=no
  9609. fi
  9610. fi
  9611. rm -fr conftest*
  9612. fi
  9613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9614. $as_echo "$lt_cv_dlopen_self" >&6; }
  9615. if test "x$lt_cv_dlopen_self" = xyes; then
  9616. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9618. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9619. if ${lt_cv_dlopen_self_static+:} false; then :
  9620. $as_echo_n "(cached) " >&6
  9621. else
  9622. if test "$cross_compiling" = yes; then :
  9623. lt_cv_dlopen_self_static=cross
  9624. else
  9625. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9626. lt_status=$lt_dlunknown
  9627. cat > conftest.$ac_ext <<_LT_EOF
  9628. #line $LINENO "configure"
  9629. #include "confdefs.h"
  9630. #if HAVE_DLFCN_H
  9631. #include <dlfcn.h>
  9632. #endif
  9633. #include <stdio.h>
  9634. #ifdef RTLD_GLOBAL
  9635. # define LT_DLGLOBAL RTLD_GLOBAL
  9636. #else
  9637. # ifdef DL_GLOBAL
  9638. # define LT_DLGLOBAL DL_GLOBAL
  9639. # else
  9640. # define LT_DLGLOBAL 0
  9641. # endif
  9642. #endif
  9643. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9644. find out it does not work in some platform. */
  9645. #ifndef LT_DLLAZY_OR_NOW
  9646. # ifdef RTLD_LAZY
  9647. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9648. # else
  9649. # ifdef DL_LAZY
  9650. # define LT_DLLAZY_OR_NOW DL_LAZY
  9651. # else
  9652. # ifdef RTLD_NOW
  9653. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9654. # else
  9655. # ifdef DL_NOW
  9656. # define LT_DLLAZY_OR_NOW DL_NOW
  9657. # else
  9658. # define LT_DLLAZY_OR_NOW 0
  9659. # endif
  9660. # endif
  9661. # endif
  9662. # endif
  9663. #endif
  9664. /* When -fvisbility=hidden is used, assume the code has been annotated
  9665. correspondingly for the symbols needed. */
  9666. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9667. int fnord () __attribute__((visibility("default")));
  9668. #endif
  9669. int fnord () { return 42; }
  9670. int main ()
  9671. {
  9672. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9673. int status = $lt_dlunknown;
  9674. if (self)
  9675. {
  9676. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9677. else
  9678. {
  9679. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9680. else puts (dlerror ());
  9681. }
  9682. /* dlclose (self); */
  9683. }
  9684. else
  9685. puts (dlerror ());
  9686. return status;
  9687. }
  9688. _LT_EOF
  9689. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9690. (eval $ac_link) 2>&5
  9691. ac_status=$?
  9692. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9693. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9694. (./conftest; exit; ) >&5 2>/dev/null
  9695. lt_status=$?
  9696. case x$lt_status in
  9697. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9698. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9699. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9700. esac
  9701. else :
  9702. # compilation failed
  9703. lt_cv_dlopen_self_static=no
  9704. fi
  9705. fi
  9706. rm -fr conftest*
  9707. fi
  9708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9709. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9710. fi
  9711. CPPFLAGS="$save_CPPFLAGS"
  9712. LDFLAGS="$save_LDFLAGS"
  9713. LIBS="$save_LIBS"
  9714. ;;
  9715. esac
  9716. case $lt_cv_dlopen_self in
  9717. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9718. *) enable_dlopen_self=unknown ;;
  9719. esac
  9720. case $lt_cv_dlopen_self_static in
  9721. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9722. *) enable_dlopen_self_static=unknown ;;
  9723. esac
  9724. fi
  9725. striplib=
  9726. old_striplib=
  9727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9728. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9729. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9730. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9731. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9733. $as_echo "yes" >&6; }
  9734. else
  9735. # FIXME - insert some real tests, host_os isn't really good enough
  9736. case $host_os in
  9737. darwin*)
  9738. if test -n "$STRIP" ; then
  9739. striplib="$STRIP -x"
  9740. old_striplib="$STRIP -S"
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9742. $as_echo "yes" >&6; }
  9743. else
  9744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9745. $as_echo "no" >&6; }
  9746. fi
  9747. ;;
  9748. *)
  9749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9750. $as_echo "no" >&6; }
  9751. ;;
  9752. esac
  9753. fi
  9754. # Report which library types will actually be built
  9755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9756. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9758. $as_echo "$can_build_shared" >&6; }
  9759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9760. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9761. test "$can_build_shared" = "no" && enable_shared=no
  9762. # On AIX, shared libraries and static libraries use the same namespace, and
  9763. # are all built from PIC.
  9764. case $host_os in
  9765. aix3*)
  9766. test "$enable_shared" = yes && enable_static=no
  9767. if test -n "$RANLIB"; then
  9768. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9769. postinstall_cmds='$RANLIB $lib'
  9770. fi
  9771. ;;
  9772. aix[4-9]*)
  9773. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9774. test "$enable_shared" = yes && enable_static=no
  9775. fi
  9776. ;;
  9777. esac
  9778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9779. $as_echo "$enable_shared" >&6; }
  9780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9781. $as_echo_n "checking whether to build static libraries... " >&6; }
  9782. # Make sure either enable_shared or enable_static is yes.
  9783. test "$enable_shared" = yes || enable_static=yes
  9784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9785. $as_echo "$enable_static" >&6; }
  9786. fi
  9787. ac_ext=c
  9788. ac_cpp='$CPP $CPPFLAGS'
  9789. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9790. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9791. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9792. CC="$lt_save_CC"
  9793. ac_config_commands="$ac_config_commands libtool"
  9794. # Only expand once:
  9795. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9796. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9797. LT_REVISION=$SDL_INTERFACE_AGE
  9798. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9799. ac_ext=c
  9800. ac_cpp='$CPP $CPPFLAGS'
  9801. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9802. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9803. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9804. if test -n "$ac_tool_prefix"; then
  9805. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9806. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9808. $as_echo_n "checking for $ac_word... " >&6; }
  9809. if ${ac_cv_prog_CC+:} false; then :
  9810. $as_echo_n "(cached) " >&6
  9811. else
  9812. if test -n "$CC"; then
  9813. ac_cv_prog_CC="$CC" # Let the user override the test.
  9814. else
  9815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9816. for as_dir in $PATH
  9817. do
  9818. IFS=$as_save_IFS
  9819. test -z "$as_dir" && as_dir=.
  9820. for ac_exec_ext in '' $ac_executable_extensions; do
  9821. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9822. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9823. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9824. break 2
  9825. fi
  9826. done
  9827. done
  9828. IFS=$as_save_IFS
  9829. fi
  9830. fi
  9831. CC=$ac_cv_prog_CC
  9832. if test -n "$CC"; then
  9833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9834. $as_echo "$CC" >&6; }
  9835. else
  9836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9837. $as_echo "no" >&6; }
  9838. fi
  9839. fi
  9840. if test -z "$ac_cv_prog_CC"; then
  9841. ac_ct_CC=$CC
  9842. # Extract the first word of "gcc", so it can be a program name with args.
  9843. set dummy gcc; ac_word=$2
  9844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9845. $as_echo_n "checking for $ac_word... " >&6; }
  9846. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9847. $as_echo_n "(cached) " >&6
  9848. else
  9849. if test -n "$ac_ct_CC"; then
  9850. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9851. else
  9852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9853. for as_dir in $PATH
  9854. do
  9855. IFS=$as_save_IFS
  9856. test -z "$as_dir" && as_dir=.
  9857. for ac_exec_ext in '' $ac_executable_extensions; do
  9858. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9859. ac_cv_prog_ac_ct_CC="gcc"
  9860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9861. break 2
  9862. fi
  9863. done
  9864. done
  9865. IFS=$as_save_IFS
  9866. fi
  9867. fi
  9868. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9869. if test -n "$ac_ct_CC"; then
  9870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9871. $as_echo "$ac_ct_CC" >&6; }
  9872. else
  9873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9874. $as_echo "no" >&6; }
  9875. fi
  9876. if test "x$ac_ct_CC" = x; then
  9877. CC=""
  9878. else
  9879. case $cross_compiling:$ac_tool_warned in
  9880. yes:)
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9882. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9883. ac_tool_warned=yes ;;
  9884. esac
  9885. CC=$ac_ct_CC
  9886. fi
  9887. else
  9888. CC="$ac_cv_prog_CC"
  9889. fi
  9890. if test -z "$CC"; then
  9891. if test -n "$ac_tool_prefix"; then
  9892. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9893. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9895. $as_echo_n "checking for $ac_word... " >&6; }
  9896. if ${ac_cv_prog_CC+:} false; then :
  9897. $as_echo_n "(cached) " >&6
  9898. else
  9899. if test -n "$CC"; then
  9900. ac_cv_prog_CC="$CC" # Let the user override the test.
  9901. else
  9902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9903. for as_dir in $PATH
  9904. do
  9905. IFS=$as_save_IFS
  9906. test -z "$as_dir" && as_dir=.
  9907. for ac_exec_ext in '' $ac_executable_extensions; do
  9908. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9909. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9911. break 2
  9912. fi
  9913. done
  9914. done
  9915. IFS=$as_save_IFS
  9916. fi
  9917. fi
  9918. CC=$ac_cv_prog_CC
  9919. if test -n "$CC"; then
  9920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9921. $as_echo "$CC" >&6; }
  9922. else
  9923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9924. $as_echo "no" >&6; }
  9925. fi
  9926. fi
  9927. fi
  9928. if test -z "$CC"; then
  9929. # Extract the first word of "cc", so it can be a program name with args.
  9930. set dummy cc; ac_word=$2
  9931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9932. $as_echo_n "checking for $ac_word... " >&6; }
  9933. if ${ac_cv_prog_CC+:} false; then :
  9934. $as_echo_n "(cached) " >&6
  9935. else
  9936. if test -n "$CC"; then
  9937. ac_cv_prog_CC="$CC" # Let the user override the test.
  9938. else
  9939. ac_prog_rejected=no
  9940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9941. for as_dir in $PATH
  9942. do
  9943. IFS=$as_save_IFS
  9944. test -z "$as_dir" && as_dir=.
  9945. for ac_exec_ext in '' $ac_executable_extensions; do
  9946. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9947. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9948. ac_prog_rejected=yes
  9949. continue
  9950. fi
  9951. ac_cv_prog_CC="cc"
  9952. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9953. break 2
  9954. fi
  9955. done
  9956. done
  9957. IFS=$as_save_IFS
  9958. if test $ac_prog_rejected = yes; then
  9959. # We found a bogon in the path, so make sure we never use it.
  9960. set dummy $ac_cv_prog_CC
  9961. shift
  9962. if test $# != 0; then
  9963. # We chose a different compiler from the bogus one.
  9964. # However, it has the same basename, so the bogon will be chosen
  9965. # first if we set CC to just the basename; use the full file name.
  9966. shift
  9967. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9968. fi
  9969. fi
  9970. fi
  9971. fi
  9972. CC=$ac_cv_prog_CC
  9973. if test -n "$CC"; then
  9974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9975. $as_echo "$CC" >&6; }
  9976. else
  9977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9978. $as_echo "no" >&6; }
  9979. fi
  9980. fi
  9981. if test -z "$CC"; then
  9982. if test -n "$ac_tool_prefix"; then
  9983. for ac_prog in cl.exe
  9984. do
  9985. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9986. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9988. $as_echo_n "checking for $ac_word... " >&6; }
  9989. if ${ac_cv_prog_CC+:} false; then :
  9990. $as_echo_n "(cached) " >&6
  9991. else
  9992. if test -n "$CC"; then
  9993. ac_cv_prog_CC="$CC" # Let the user override the test.
  9994. else
  9995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9996. for as_dir in $PATH
  9997. do
  9998. IFS=$as_save_IFS
  9999. test -z "$as_dir" && as_dir=.
  10000. for ac_exec_ext in '' $ac_executable_extensions; do
  10001. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10002. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10003. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10004. break 2
  10005. fi
  10006. done
  10007. done
  10008. IFS=$as_save_IFS
  10009. fi
  10010. fi
  10011. CC=$ac_cv_prog_CC
  10012. if test -n "$CC"; then
  10013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10014. $as_echo "$CC" >&6; }
  10015. else
  10016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10017. $as_echo "no" >&6; }
  10018. fi
  10019. test -n "$CC" && break
  10020. done
  10021. fi
  10022. if test -z "$CC"; then
  10023. ac_ct_CC=$CC
  10024. for ac_prog in cl.exe
  10025. do
  10026. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10027. set dummy $ac_prog; ac_word=$2
  10028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10029. $as_echo_n "checking for $ac_word... " >&6; }
  10030. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10031. $as_echo_n "(cached) " >&6
  10032. else
  10033. if test -n "$ac_ct_CC"; then
  10034. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10035. else
  10036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10037. for as_dir in $PATH
  10038. do
  10039. IFS=$as_save_IFS
  10040. test -z "$as_dir" && as_dir=.
  10041. for ac_exec_ext in '' $ac_executable_extensions; do
  10042. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10043. ac_cv_prog_ac_ct_CC="$ac_prog"
  10044. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10045. break 2
  10046. fi
  10047. done
  10048. done
  10049. IFS=$as_save_IFS
  10050. fi
  10051. fi
  10052. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10053. if test -n "$ac_ct_CC"; then
  10054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10055. $as_echo "$ac_ct_CC" >&6; }
  10056. else
  10057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10058. $as_echo "no" >&6; }
  10059. fi
  10060. test -n "$ac_ct_CC" && break
  10061. done
  10062. if test "x$ac_ct_CC" = x; then
  10063. CC=""
  10064. else
  10065. case $cross_compiling:$ac_tool_warned in
  10066. yes:)
  10067. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10068. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10069. ac_tool_warned=yes ;;
  10070. esac
  10071. CC=$ac_ct_CC
  10072. fi
  10073. fi
  10074. fi
  10075. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10076. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10077. as_fn_error $? "no acceptable C compiler found in \$PATH
  10078. See \`config.log' for more details" "$LINENO" 5; }
  10079. # Provide some information about the compiler.
  10080. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10081. set X $ac_compile
  10082. ac_compiler=$2
  10083. for ac_option in --version -v -V -qversion; do
  10084. { { ac_try="$ac_compiler $ac_option >&5"
  10085. case "(($ac_try" in
  10086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10087. *) ac_try_echo=$ac_try;;
  10088. esac
  10089. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10090. $as_echo "$ac_try_echo"; } >&5
  10091. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10092. ac_status=$?
  10093. if test -s conftest.err; then
  10094. sed '10a\
  10095. ... rest of stderr output deleted ...
  10096. 10q' conftest.err >conftest.er1
  10097. cat conftest.er1 >&5
  10098. fi
  10099. rm -f conftest.er1 conftest.err
  10100. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10101. test $ac_status = 0; }
  10102. done
  10103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10104. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10105. if ${ac_cv_c_compiler_gnu+:} false; then :
  10106. $as_echo_n "(cached) " >&6
  10107. else
  10108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10109. /* end confdefs.h. */
  10110. int
  10111. main ()
  10112. {
  10113. #ifndef __GNUC__
  10114. choke me
  10115. #endif
  10116. ;
  10117. return 0;
  10118. }
  10119. _ACEOF
  10120. if ac_fn_c_try_compile "$LINENO"; then :
  10121. ac_compiler_gnu=yes
  10122. else
  10123. ac_compiler_gnu=no
  10124. fi
  10125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10126. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10127. fi
  10128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10129. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10130. if test $ac_compiler_gnu = yes; then
  10131. GCC=yes
  10132. else
  10133. GCC=
  10134. fi
  10135. ac_test_CFLAGS=${CFLAGS+set}
  10136. ac_save_CFLAGS=$CFLAGS
  10137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10138. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10139. if ${ac_cv_prog_cc_g+:} false; then :
  10140. $as_echo_n "(cached) " >&6
  10141. else
  10142. ac_save_c_werror_flag=$ac_c_werror_flag
  10143. ac_c_werror_flag=yes
  10144. ac_cv_prog_cc_g=no
  10145. CFLAGS="-g"
  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. ac_cv_prog_cc_g=yes
  10157. else
  10158. CFLAGS=""
  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. else
  10170. ac_c_werror_flag=$ac_save_c_werror_flag
  10171. CFLAGS="-g"
  10172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10173. /* end confdefs.h. */
  10174. int
  10175. main ()
  10176. {
  10177. ;
  10178. return 0;
  10179. }
  10180. _ACEOF
  10181. if ac_fn_c_try_compile "$LINENO"; then :
  10182. ac_cv_prog_cc_g=yes
  10183. fi
  10184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10185. fi
  10186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10187. fi
  10188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10189. ac_c_werror_flag=$ac_save_c_werror_flag
  10190. fi
  10191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10192. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10193. if test "$ac_test_CFLAGS" = set; then
  10194. CFLAGS=$ac_save_CFLAGS
  10195. elif test $ac_cv_prog_cc_g = yes; then
  10196. if test "$GCC" = yes; then
  10197. CFLAGS="-g -O2"
  10198. else
  10199. CFLAGS="-g"
  10200. fi
  10201. else
  10202. if test "$GCC" = yes; then
  10203. CFLAGS="-O2"
  10204. else
  10205. CFLAGS=
  10206. fi
  10207. fi
  10208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10209. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10210. if ${ac_cv_prog_cc_c89+:} false; then :
  10211. $as_echo_n "(cached) " >&6
  10212. else
  10213. ac_cv_prog_cc_c89=no
  10214. ac_save_CC=$CC
  10215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10216. /* end confdefs.h. */
  10217. #include <stdarg.h>
  10218. #include <stdio.h>
  10219. struct stat;
  10220. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10221. struct buf { int x; };
  10222. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10223. static char *e (p, i)
  10224. char **p;
  10225. int i;
  10226. {
  10227. return p[i];
  10228. }
  10229. static char *f (char * (*g) (char **, int), char **p, ...)
  10230. {
  10231. char *s;
  10232. va_list v;
  10233. va_start (v,p);
  10234. s = g (p, va_arg (v,int));
  10235. va_end (v);
  10236. return s;
  10237. }
  10238. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10239. function prototypes and stuff, but not '\xHH' hex character constants.
  10240. These don't provoke an error unfortunately, instead are silently treated
  10241. as 'x'. The following induces an error, until -std is added to get
  10242. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10243. array size at least. It's necessary to write '\x00'==0 to get something
  10244. that's true only with -std. */
  10245. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10246. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10247. inside strings and character constants. */
  10248. #define FOO(x) 'x'
  10249. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10250. int test (int i, double x);
  10251. struct s1 {int (*f) (int a);};
  10252. struct s2 {int (*f) (double a);};
  10253. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10254. int argc;
  10255. char **argv;
  10256. int
  10257. main ()
  10258. {
  10259. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10260. ;
  10261. return 0;
  10262. }
  10263. _ACEOF
  10264. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10265. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10266. do
  10267. CC="$ac_save_CC $ac_arg"
  10268. if ac_fn_c_try_compile "$LINENO"; then :
  10269. ac_cv_prog_cc_c89=$ac_arg
  10270. fi
  10271. rm -f core conftest.err conftest.$ac_objext
  10272. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10273. done
  10274. rm -f conftest.$ac_ext
  10275. CC=$ac_save_CC
  10276. fi
  10277. # AC_CACHE_VAL
  10278. case "x$ac_cv_prog_cc_c89" in
  10279. x)
  10280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10281. $as_echo "none needed" >&6; } ;;
  10282. xno)
  10283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10284. $as_echo "unsupported" >&6; } ;;
  10285. *)
  10286. CC="$CC $ac_cv_prog_cc_c89"
  10287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10288. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10289. esac
  10290. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10291. fi
  10292. ac_ext=c
  10293. ac_cpp='$CPP $CPPFLAGS'
  10294. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10295. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10296. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10297. ac_ext=cpp
  10298. ac_cpp='$CXXCPP $CPPFLAGS'
  10299. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10300. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10301. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10302. if test -z "$CXX"; then
  10303. if test -n "$CCC"; then
  10304. CXX=$CCC
  10305. else
  10306. if test -n "$ac_tool_prefix"; then
  10307. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10308. do
  10309. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10310. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10312. $as_echo_n "checking for $ac_word... " >&6; }
  10313. if ${ac_cv_prog_CXX+:} false; then :
  10314. $as_echo_n "(cached) " >&6
  10315. else
  10316. if test -n "$CXX"; then
  10317. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10318. else
  10319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10320. for as_dir in $PATH
  10321. do
  10322. IFS=$as_save_IFS
  10323. test -z "$as_dir" && as_dir=.
  10324. for ac_exec_ext in '' $ac_executable_extensions; do
  10325. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10326. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10327. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10328. break 2
  10329. fi
  10330. done
  10331. done
  10332. IFS=$as_save_IFS
  10333. fi
  10334. fi
  10335. CXX=$ac_cv_prog_CXX
  10336. if test -n "$CXX"; then
  10337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10338. $as_echo "$CXX" >&6; }
  10339. else
  10340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10341. $as_echo "no" >&6; }
  10342. fi
  10343. test -n "$CXX" && break
  10344. done
  10345. fi
  10346. if test -z "$CXX"; then
  10347. ac_ct_CXX=$CXX
  10348. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10349. do
  10350. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10351. set dummy $ac_prog; ac_word=$2
  10352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10353. $as_echo_n "checking for $ac_word... " >&6; }
  10354. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10355. $as_echo_n "(cached) " >&6
  10356. else
  10357. if test -n "$ac_ct_CXX"; then
  10358. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10359. else
  10360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10361. for as_dir in $PATH
  10362. do
  10363. IFS=$as_save_IFS
  10364. test -z "$as_dir" && as_dir=.
  10365. for ac_exec_ext in '' $ac_executable_extensions; do
  10366. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10367. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10368. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10369. break 2
  10370. fi
  10371. done
  10372. done
  10373. IFS=$as_save_IFS
  10374. fi
  10375. fi
  10376. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10377. if test -n "$ac_ct_CXX"; then
  10378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10379. $as_echo "$ac_ct_CXX" >&6; }
  10380. else
  10381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10382. $as_echo "no" >&6; }
  10383. fi
  10384. test -n "$ac_ct_CXX" && break
  10385. done
  10386. if test "x$ac_ct_CXX" = x; then
  10387. CXX="g++"
  10388. else
  10389. case $cross_compiling:$ac_tool_warned in
  10390. yes:)
  10391. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10392. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10393. ac_tool_warned=yes ;;
  10394. esac
  10395. CXX=$ac_ct_CXX
  10396. fi
  10397. fi
  10398. fi
  10399. fi
  10400. # Provide some information about the compiler.
  10401. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10402. set X $ac_compile
  10403. ac_compiler=$2
  10404. for ac_option in --version -v -V -qversion; do
  10405. { { ac_try="$ac_compiler $ac_option >&5"
  10406. case "(($ac_try" in
  10407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10408. *) ac_try_echo=$ac_try;;
  10409. esac
  10410. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10411. $as_echo "$ac_try_echo"; } >&5
  10412. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10413. ac_status=$?
  10414. if test -s conftest.err; then
  10415. sed '10a\
  10416. ... rest of stderr output deleted ...
  10417. 10q' conftest.err >conftest.er1
  10418. cat conftest.er1 >&5
  10419. fi
  10420. rm -f conftest.er1 conftest.err
  10421. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10422. test $ac_status = 0; }
  10423. done
  10424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10425. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10426. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10427. $as_echo_n "(cached) " >&6
  10428. else
  10429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10430. /* end confdefs.h. */
  10431. int
  10432. main ()
  10433. {
  10434. #ifndef __GNUC__
  10435. choke me
  10436. #endif
  10437. ;
  10438. return 0;
  10439. }
  10440. _ACEOF
  10441. if ac_fn_cxx_try_compile "$LINENO"; then :
  10442. ac_compiler_gnu=yes
  10443. else
  10444. ac_compiler_gnu=no
  10445. fi
  10446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10447. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10448. fi
  10449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10450. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10451. if test $ac_compiler_gnu = yes; then
  10452. GXX=yes
  10453. else
  10454. GXX=
  10455. fi
  10456. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10457. ac_save_CXXFLAGS=$CXXFLAGS
  10458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10459. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10460. if ${ac_cv_prog_cxx_g+:} false; then :
  10461. $as_echo_n "(cached) " >&6
  10462. else
  10463. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10464. ac_cxx_werror_flag=yes
  10465. ac_cv_prog_cxx_g=no
  10466. CXXFLAGS="-g"
  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. ac_cv_prog_cxx_g=yes
  10478. else
  10479. CXXFLAGS=""
  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. else
  10491. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10492. CXXFLAGS="-g"
  10493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10494. /* end confdefs.h. */
  10495. int
  10496. main ()
  10497. {
  10498. ;
  10499. return 0;
  10500. }
  10501. _ACEOF
  10502. if ac_fn_cxx_try_compile "$LINENO"; then :
  10503. ac_cv_prog_cxx_g=yes
  10504. fi
  10505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10506. fi
  10507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10508. fi
  10509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10510. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10511. fi
  10512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10513. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10514. if test "$ac_test_CXXFLAGS" = set; then
  10515. CXXFLAGS=$ac_save_CXXFLAGS
  10516. elif test $ac_cv_prog_cxx_g = yes; then
  10517. if test "$GXX" = yes; then
  10518. CXXFLAGS="-g -O2"
  10519. else
  10520. CXXFLAGS="-g"
  10521. fi
  10522. else
  10523. if test "$GXX" = yes; then
  10524. CXXFLAGS="-O2"
  10525. else
  10526. CXXFLAGS=
  10527. fi
  10528. fi
  10529. ac_ext=c
  10530. ac_cpp='$CPP $CPPFLAGS'
  10531. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10532. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10533. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10534. func_stripname_cnf ()
  10535. {
  10536. case ${2} in
  10537. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10538. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10539. esac
  10540. } # func_stripname_cnf
  10541. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10542. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10543. (test "X$CXX" != "Xg++"))) ; then
  10544. ac_ext=cpp
  10545. ac_cpp='$CXXCPP $CPPFLAGS'
  10546. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10547. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10548. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10550. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10551. if test -z "$CXXCPP"; then
  10552. if ${ac_cv_prog_CXXCPP+:} false; then :
  10553. $as_echo_n "(cached) " >&6
  10554. else
  10555. # Double quotes because CXXCPP needs to be expanded
  10556. for CXXCPP in "$CXX -E" "/lib/cpp"
  10557. do
  10558. ac_preproc_ok=false
  10559. for ac_cxx_preproc_warn_flag in '' yes
  10560. do
  10561. # Use a header file that comes with gcc, so configuring glibc
  10562. # with a fresh cross-compiler works.
  10563. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10564. # <limits.h> exists even on freestanding compilers.
  10565. # On the NeXT, cc -E runs the code through the compiler's parser,
  10566. # not just through cpp. "Syntax error" is here to catch this case.
  10567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10568. /* end confdefs.h. */
  10569. #ifdef __STDC__
  10570. # include <limits.h>
  10571. #else
  10572. # include <assert.h>
  10573. #endif
  10574. Syntax error
  10575. _ACEOF
  10576. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10577. else
  10578. # Broken: fails on valid input.
  10579. continue
  10580. fi
  10581. rm -f conftest.err conftest.i conftest.$ac_ext
  10582. # OK, works on sane cases. Now check whether nonexistent headers
  10583. # can be detected and how.
  10584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10585. /* end confdefs.h. */
  10586. #include <ac_nonexistent.h>
  10587. _ACEOF
  10588. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10589. # Broken: success on invalid input.
  10590. continue
  10591. else
  10592. # Passes both tests.
  10593. ac_preproc_ok=:
  10594. break
  10595. fi
  10596. rm -f conftest.err conftest.i conftest.$ac_ext
  10597. done
  10598. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10599. rm -f conftest.i conftest.err conftest.$ac_ext
  10600. if $ac_preproc_ok; then :
  10601. break
  10602. fi
  10603. done
  10604. ac_cv_prog_CXXCPP=$CXXCPP
  10605. fi
  10606. CXXCPP=$ac_cv_prog_CXXCPP
  10607. else
  10608. ac_cv_prog_CXXCPP=$CXXCPP
  10609. fi
  10610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10611. $as_echo "$CXXCPP" >&6; }
  10612. ac_preproc_ok=false
  10613. for ac_cxx_preproc_warn_flag in '' yes
  10614. do
  10615. # Use a header file that comes with gcc, so configuring glibc
  10616. # with a fresh cross-compiler works.
  10617. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10618. # <limits.h> exists even on freestanding compilers.
  10619. # On the NeXT, cc -E runs the code through the compiler's parser,
  10620. # not just through cpp. "Syntax error" is here to catch this case.
  10621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10622. /* end confdefs.h. */
  10623. #ifdef __STDC__
  10624. # include <limits.h>
  10625. #else
  10626. # include <assert.h>
  10627. #endif
  10628. Syntax error
  10629. _ACEOF
  10630. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10631. else
  10632. # Broken: fails on valid input.
  10633. continue
  10634. fi
  10635. rm -f conftest.err conftest.i conftest.$ac_ext
  10636. # OK, works on sane cases. Now check whether nonexistent headers
  10637. # can be detected and how.
  10638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10639. /* end confdefs.h. */
  10640. #include <ac_nonexistent.h>
  10641. _ACEOF
  10642. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10643. # Broken: success on invalid input.
  10644. continue
  10645. else
  10646. # Passes both tests.
  10647. ac_preproc_ok=:
  10648. break
  10649. fi
  10650. rm -f conftest.err conftest.i conftest.$ac_ext
  10651. done
  10652. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10653. rm -f conftest.i conftest.err conftest.$ac_ext
  10654. if $ac_preproc_ok; then :
  10655. else
  10656. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10657. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10658. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10659. See \`config.log' for more details" "$LINENO" 5; }
  10660. fi
  10661. ac_ext=c
  10662. ac_cpp='$CPP $CPPFLAGS'
  10663. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10664. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10665. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10666. else
  10667. _lt_caught_CXX_error=yes
  10668. fi
  10669. ac_ext=cpp
  10670. ac_cpp='$CXXCPP $CPPFLAGS'
  10671. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10672. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10673. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10674. archive_cmds_need_lc_CXX=no
  10675. allow_undefined_flag_CXX=
  10676. always_export_symbols_CXX=no
  10677. archive_expsym_cmds_CXX=
  10678. compiler_needs_object_CXX=no
  10679. export_dynamic_flag_spec_CXX=
  10680. hardcode_direct_CXX=no
  10681. hardcode_direct_absolute_CXX=no
  10682. hardcode_libdir_flag_spec_CXX=
  10683. hardcode_libdir_separator_CXX=
  10684. hardcode_minus_L_CXX=no
  10685. hardcode_shlibpath_var_CXX=unsupported
  10686. hardcode_automatic_CXX=no
  10687. inherit_rpath_CXX=no
  10688. module_cmds_CXX=
  10689. module_expsym_cmds_CXX=
  10690. link_all_deplibs_CXX=unknown
  10691. old_archive_cmds_CXX=$old_archive_cmds
  10692. reload_flag_CXX=$reload_flag
  10693. reload_cmds_CXX=$reload_cmds
  10694. no_undefined_flag_CXX=
  10695. whole_archive_flag_spec_CXX=
  10696. enable_shared_with_static_runtimes_CXX=no
  10697. # Source file extension for C++ test sources.
  10698. ac_ext=cpp
  10699. # Object file extension for compiled C++ test sources.
  10700. objext=o
  10701. objext_CXX=$objext
  10702. # No sense in running all these tests if we already determined that
  10703. # the CXX compiler isn't working. Some variables (like enable_shared)
  10704. # are currently assumed to apply to all compilers on this platform,
  10705. # and will be corrupted by setting them based on a non-working compiler.
  10706. if test "$_lt_caught_CXX_error" != yes; then
  10707. # Code to be used in simple compile tests
  10708. lt_simple_compile_test_code="int some_variable = 0;"
  10709. # Code to be used in simple link tests
  10710. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10711. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10712. # If no C compiler was specified, use CC.
  10713. LTCC=${LTCC-"$CC"}
  10714. # If no C compiler flags were specified, use CFLAGS.
  10715. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10716. # Allow CC to be a program name with arguments.
  10717. compiler=$CC
  10718. # save warnings/boilerplate of simple test code
  10719. ac_outfile=conftest.$ac_objext
  10720. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10721. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10722. _lt_compiler_boilerplate=`cat conftest.err`
  10723. $RM conftest*
  10724. ac_outfile=conftest.$ac_objext
  10725. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10726. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10727. _lt_linker_boilerplate=`cat conftest.err`
  10728. $RM -r conftest*
  10729. # Allow CC to be a program name with arguments.
  10730. lt_save_CC=$CC
  10731. lt_save_CFLAGS=$CFLAGS
  10732. lt_save_LD=$LD
  10733. lt_save_GCC=$GCC
  10734. GCC=$GXX
  10735. lt_save_with_gnu_ld=$with_gnu_ld
  10736. lt_save_path_LD=$lt_cv_path_LD
  10737. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10738. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10739. else
  10740. $as_unset lt_cv_prog_gnu_ld
  10741. fi
  10742. if test -n "${lt_cv_path_LDCXX+set}"; then
  10743. lt_cv_path_LD=$lt_cv_path_LDCXX
  10744. else
  10745. $as_unset lt_cv_path_LD
  10746. fi
  10747. test -z "${LDCXX+set}" || LD=$LDCXX
  10748. CC=${CXX-"c++"}
  10749. CFLAGS=$CXXFLAGS
  10750. compiler=$CC
  10751. compiler_CXX=$CC
  10752. for cc_temp in $compiler""; do
  10753. case $cc_temp in
  10754. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10755. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10756. \-*) ;;
  10757. *) break;;
  10758. esac
  10759. done
  10760. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10761. if test -n "$compiler"; then
  10762. # We don't want -fno-exception when compiling C++ code, so set the
  10763. # no_builtin_flag separately
  10764. if test "$GXX" = yes; then
  10765. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10766. else
  10767. lt_prog_compiler_no_builtin_flag_CXX=
  10768. fi
  10769. if test "$GXX" = yes; then
  10770. # Set up default GNU C++ configuration
  10771. # Check whether --with-gnu-ld was given.
  10772. if test "${with_gnu_ld+set}" = set; then :
  10773. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10774. else
  10775. with_gnu_ld=no
  10776. fi
  10777. ac_prog=ld
  10778. if test "$GCC" = yes; then
  10779. # Check if gcc -print-prog-name=ld gives a path.
  10780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10781. $as_echo_n "checking for ld used by $CC... " >&6; }
  10782. case $host in
  10783. *-*-mingw*)
  10784. # gcc leaves a trailing carriage return which upsets mingw
  10785. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10786. *)
  10787. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10788. esac
  10789. case $ac_prog in
  10790. # Accept absolute paths.
  10791. [\\/]* | ?:[\\/]*)
  10792. re_direlt='/[^/][^/]*/\.\./'
  10793. # Canonicalize the pathname of ld
  10794. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10795. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10796. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10797. done
  10798. test -z "$LD" && LD="$ac_prog"
  10799. ;;
  10800. "")
  10801. # If it fails, then pretend we aren't using GCC.
  10802. ac_prog=ld
  10803. ;;
  10804. *)
  10805. # If it is relative, then search for the first ld in PATH.
  10806. with_gnu_ld=unknown
  10807. ;;
  10808. esac
  10809. elif test "$with_gnu_ld" = yes; then
  10810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10811. $as_echo_n "checking for GNU ld... " >&6; }
  10812. else
  10813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10814. $as_echo_n "checking for non-GNU ld... " >&6; }
  10815. fi
  10816. if ${lt_cv_path_LD+:} false; then :
  10817. $as_echo_n "(cached) " >&6
  10818. else
  10819. if test -z "$LD"; then
  10820. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10821. for ac_dir in $PATH; do
  10822. IFS="$lt_save_ifs"
  10823. test -z "$ac_dir" && ac_dir=.
  10824. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10825. lt_cv_path_LD="$ac_dir/$ac_prog"
  10826. # Check to see if the program is GNU ld. I'd rather use --version,
  10827. # but apparently some variants of GNU ld only accept -v.
  10828. # Break only if it was the GNU/non-GNU ld that we prefer.
  10829. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10830. *GNU* | *'with BFD'*)
  10831. test "$with_gnu_ld" != no && break
  10832. ;;
  10833. *)
  10834. test "$with_gnu_ld" != yes && break
  10835. ;;
  10836. esac
  10837. fi
  10838. done
  10839. IFS="$lt_save_ifs"
  10840. else
  10841. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10842. fi
  10843. fi
  10844. LD="$lt_cv_path_LD"
  10845. if test -n "$LD"; then
  10846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10847. $as_echo "$LD" >&6; }
  10848. else
  10849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10850. $as_echo "no" >&6; }
  10851. fi
  10852. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10854. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10855. if ${lt_cv_prog_gnu_ld+:} false; then :
  10856. $as_echo_n "(cached) " >&6
  10857. else
  10858. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10859. case `$LD -v 2>&1 </dev/null` in
  10860. *GNU* | *'with BFD'*)
  10861. lt_cv_prog_gnu_ld=yes
  10862. ;;
  10863. *)
  10864. lt_cv_prog_gnu_ld=no
  10865. ;;
  10866. esac
  10867. fi
  10868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10869. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10870. with_gnu_ld=$lt_cv_prog_gnu_ld
  10871. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10872. # archiving commands below assume that GNU ld is being used.
  10873. if test "$with_gnu_ld" = yes; then
  10874. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10875. 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'
  10876. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10877. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10878. # If archive_cmds runs LD, not CC, wlarc should be empty
  10879. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10880. # investigate it a little bit more. (MM)
  10881. wlarc='${wl}'
  10882. # ancient GNU ld didn't support --whole-archive et. al.
  10883. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10884. $GREP 'no-whole-archive' > /dev/null; then
  10885. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10886. else
  10887. whole_archive_flag_spec_CXX=
  10888. fi
  10889. else
  10890. with_gnu_ld=no
  10891. wlarc=
  10892. # A generic and very simple default shared library creation
  10893. # command for GNU C++ for the case where it uses the native
  10894. # linker, instead of GNU ld. If possible, this setting should
  10895. # overridden to take advantage of the native linker features on
  10896. # the platform it is being used on.
  10897. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10898. fi
  10899. # Commands to make compiler produce verbose output that lists
  10900. # what "hidden" libraries, object files and flags are used when
  10901. # linking a shared library.
  10902. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10903. else
  10904. GXX=no
  10905. with_gnu_ld=no
  10906. wlarc=
  10907. fi
  10908. # PORTME: fill in a description of your system's C++ link characteristics
  10909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10910. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10911. ld_shlibs_CXX=yes
  10912. case $host_os in
  10913. aix3*)
  10914. # FIXME: insert proper C++ library support
  10915. ld_shlibs_CXX=no
  10916. ;;
  10917. aix[4-9]*)
  10918. if test "$host_cpu" = ia64; then
  10919. # On IA64, the linker does run time linking by default, so we don't
  10920. # have to do anything special.
  10921. aix_use_runtimelinking=no
  10922. exp_sym_flag='-Bexport'
  10923. no_entry_flag=""
  10924. else
  10925. aix_use_runtimelinking=no
  10926. # Test if we are trying to use run time linking or normal
  10927. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10928. # need to do runtime linking.
  10929. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10930. for ld_flag in $LDFLAGS; do
  10931. case $ld_flag in
  10932. *-brtl*)
  10933. aix_use_runtimelinking=yes
  10934. break
  10935. ;;
  10936. esac
  10937. done
  10938. ;;
  10939. esac
  10940. exp_sym_flag='-bexport'
  10941. no_entry_flag='-bnoentry'
  10942. fi
  10943. # When large executables or shared objects are built, AIX ld can
  10944. # have problems creating the table of contents. If linking a library
  10945. # or program results in "error TOC overflow" add -mminimal-toc to
  10946. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10947. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10948. archive_cmds_CXX=''
  10949. hardcode_direct_CXX=yes
  10950. hardcode_direct_absolute_CXX=yes
  10951. hardcode_libdir_separator_CXX=':'
  10952. link_all_deplibs_CXX=yes
  10953. file_list_spec_CXX='${wl}-f,'
  10954. if test "$GXX" = yes; then
  10955. case $host_os in aix4.[012]|aix4.[012].*)
  10956. # We only want to do this on AIX 4.2 and lower, the check
  10957. # below for broken collect2 doesn't work under 4.3+
  10958. collect2name=`${CC} -print-prog-name=collect2`
  10959. if test -f "$collect2name" &&
  10960. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10961. then
  10962. # We have reworked collect2
  10963. :
  10964. else
  10965. # We have old collect2
  10966. hardcode_direct_CXX=unsupported
  10967. # It fails to find uninstalled libraries when the uninstalled
  10968. # path is not listed in the libpath. Setting hardcode_minus_L
  10969. # to unsupported forces relinking
  10970. hardcode_minus_L_CXX=yes
  10971. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10972. hardcode_libdir_separator_CXX=
  10973. fi
  10974. esac
  10975. shared_flag='-shared'
  10976. if test "$aix_use_runtimelinking" = yes; then
  10977. shared_flag="$shared_flag "'${wl}-G'
  10978. fi
  10979. else
  10980. # not using gcc
  10981. if test "$host_cpu" = ia64; then
  10982. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10983. # chokes on -Wl,-G. The following line is correct:
  10984. shared_flag='-G'
  10985. else
  10986. if test "$aix_use_runtimelinking" = yes; then
  10987. shared_flag='${wl}-G'
  10988. else
  10989. shared_flag='${wl}-bM:SRE'
  10990. fi
  10991. fi
  10992. fi
  10993. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10994. # It seems that -bexpall does not export symbols beginning with
  10995. # underscore (_), so it is better to generate a list of symbols to
  10996. # export.
  10997. always_export_symbols_CXX=yes
  10998. if test "$aix_use_runtimelinking" = yes; then
  10999. # Warning - without using the other runtime loading flags (-brtl),
  11000. # -berok will link without error, but may produce a broken library.
  11001. allow_undefined_flag_CXX='-berok'
  11002. # Determine the default libpath from the value encoded in an empty
  11003. # executable.
  11004. if test "${lt_cv_aix_libpath+set}" = set; then
  11005. aix_libpath=$lt_cv_aix_libpath
  11006. else
  11007. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11008. $as_echo_n "(cached) " >&6
  11009. else
  11010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11011. /* end confdefs.h. */
  11012. int
  11013. main ()
  11014. {
  11015. ;
  11016. return 0;
  11017. }
  11018. _ACEOF
  11019. if ac_fn_cxx_try_link "$LINENO"; then :
  11020. lt_aix_libpath_sed='
  11021. /Import File Strings/,/^$/ {
  11022. /^0/ {
  11023. s/^0 *\([^ ]*\) *$/\1/
  11024. p
  11025. }
  11026. }'
  11027. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11028. # Check for a 64-bit object if we didn't find anything.
  11029. if test -z "$lt_cv_aix_libpath__CXX"; then
  11030. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11031. fi
  11032. fi
  11033. rm -f core conftest.err conftest.$ac_objext \
  11034. conftest$ac_exeext conftest.$ac_ext
  11035. if test -z "$lt_cv_aix_libpath__CXX"; then
  11036. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11037. fi
  11038. fi
  11039. aix_libpath=$lt_cv_aix_libpath__CXX
  11040. fi
  11041. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11042. 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"
  11043. else
  11044. if test "$host_cpu" = ia64; then
  11045. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11046. allow_undefined_flag_CXX="-z nodefs"
  11047. 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"
  11048. else
  11049. # Determine the default libpath from the value encoded in an
  11050. # empty executable.
  11051. if test "${lt_cv_aix_libpath+set}" = set; then
  11052. aix_libpath=$lt_cv_aix_libpath
  11053. else
  11054. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11055. $as_echo_n "(cached) " >&6
  11056. else
  11057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11058. /* end confdefs.h. */
  11059. int
  11060. main ()
  11061. {
  11062. ;
  11063. return 0;
  11064. }
  11065. _ACEOF
  11066. if ac_fn_cxx_try_link "$LINENO"; then :
  11067. lt_aix_libpath_sed='
  11068. /Import File Strings/,/^$/ {
  11069. /^0/ {
  11070. s/^0 *\([^ ]*\) *$/\1/
  11071. p
  11072. }
  11073. }'
  11074. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11075. # Check for a 64-bit object if we didn't find anything.
  11076. if test -z "$lt_cv_aix_libpath__CXX"; then
  11077. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11078. fi
  11079. fi
  11080. rm -f core conftest.err conftest.$ac_objext \
  11081. conftest$ac_exeext conftest.$ac_ext
  11082. if test -z "$lt_cv_aix_libpath__CXX"; then
  11083. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11084. fi
  11085. fi
  11086. aix_libpath=$lt_cv_aix_libpath__CXX
  11087. fi
  11088. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11089. # Warning - without using the other run time loading flags,
  11090. # -berok will link without error, but may produce a broken library.
  11091. no_undefined_flag_CXX=' ${wl}-bernotok'
  11092. allow_undefined_flag_CXX=' ${wl}-berok'
  11093. if test "$with_gnu_ld" = yes; then
  11094. # We only use this code for GNU lds that support --whole-archive.
  11095. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11096. else
  11097. # Exported symbols can be pulled into shared objects from archives
  11098. whole_archive_flag_spec_CXX='$convenience'
  11099. fi
  11100. archive_cmds_need_lc_CXX=yes
  11101. # This is similar to how AIX traditionally builds its shared
  11102. # libraries.
  11103. 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'
  11104. fi
  11105. fi
  11106. ;;
  11107. beos*)
  11108. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11109. allow_undefined_flag_CXX=unsupported
  11110. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11111. # support --undefined. This deserves some investigation. FIXME
  11112. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11113. else
  11114. ld_shlibs_CXX=no
  11115. fi
  11116. ;;
  11117. chorus*)
  11118. case $cc_basename in
  11119. *)
  11120. # FIXME: insert proper C++ library support
  11121. ld_shlibs_CXX=no
  11122. ;;
  11123. esac
  11124. ;;
  11125. cygwin* | mingw* | pw32* | cegcc*)
  11126. case $GXX,$cc_basename in
  11127. ,cl* | no,cl*)
  11128. # Native MSVC
  11129. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11130. # no search path for DLLs.
  11131. hardcode_libdir_flag_spec_CXX=' '
  11132. allow_undefined_flag_CXX=unsupported
  11133. always_export_symbols_CXX=yes
  11134. file_list_spec_CXX='@'
  11135. # Tell ltmain to make .lib files, not .a files.
  11136. libext=lib
  11137. # Tell ltmain to make .dll files, not .so files.
  11138. shrext_cmds=".dll"
  11139. # FIXME: Setting linknames here is a bad hack.
  11140. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11141. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11142. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11143. else
  11144. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11145. fi~
  11146. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11147. linknames='
  11148. # The linker will not automatically build a static lib if we build a DLL.
  11149. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11150. enable_shared_with_static_runtimes_CXX=yes
  11151. # Don't use ranlib
  11152. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11153. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11154. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11155. case $lt_outputfile in
  11156. *.exe|*.EXE) ;;
  11157. *)
  11158. lt_outputfile="$lt_outputfile.exe"
  11159. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11160. ;;
  11161. esac~
  11162. func_to_tool_file "$lt_outputfile"~
  11163. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11164. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11165. $RM "$lt_outputfile.manifest";
  11166. fi'
  11167. ;;
  11168. *)
  11169. # g++
  11170. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11171. # as there is no search path for DLLs.
  11172. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11173. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11174. allow_undefined_flag_CXX=unsupported
  11175. always_export_symbols_CXX=no
  11176. enable_shared_with_static_runtimes_CXX=yes
  11177. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11178. 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'
  11179. # If the export-symbols file already is a .def file (1st line
  11180. # is EXPORTS), use it as is; otherwise, prepend...
  11181. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11182. cp $export_symbols $output_objdir/$soname.def;
  11183. else
  11184. echo EXPORTS > $output_objdir/$soname.def;
  11185. cat $export_symbols >> $output_objdir/$soname.def;
  11186. fi~
  11187. $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'
  11188. else
  11189. ld_shlibs_CXX=no
  11190. fi
  11191. ;;
  11192. esac
  11193. ;;
  11194. darwin* | rhapsody*)
  11195. archive_cmds_need_lc_CXX=no
  11196. hardcode_direct_CXX=no
  11197. hardcode_automatic_CXX=yes
  11198. hardcode_shlibpath_var_CXX=unsupported
  11199. if test "$lt_cv_ld_force_load" = "yes"; then
  11200. 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\"`'
  11201. else
  11202. whole_archive_flag_spec_CXX=''
  11203. fi
  11204. link_all_deplibs_CXX=yes
  11205. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11206. case $cc_basename in
  11207. ifort*) _lt_dar_can_shared=yes ;;
  11208. *) _lt_dar_can_shared=$GCC ;;
  11209. esac
  11210. if test "$_lt_dar_can_shared" = "yes"; then
  11211. output_verbose_link_cmd=func_echo_all
  11212. 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}"
  11213. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11214. 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}"
  11215. 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}"
  11216. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11217. 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}"
  11218. 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}"
  11219. fi
  11220. else
  11221. ld_shlibs_CXX=no
  11222. fi
  11223. ;;
  11224. dgux*)
  11225. case $cc_basename in
  11226. ec++*)
  11227. # FIXME: insert proper C++ library support
  11228. ld_shlibs_CXX=no
  11229. ;;
  11230. ghcx*)
  11231. # Green Hills C++ Compiler
  11232. # FIXME: insert proper C++ library support
  11233. ld_shlibs_CXX=no
  11234. ;;
  11235. *)
  11236. # FIXME: insert proper C++ library support
  11237. ld_shlibs_CXX=no
  11238. ;;
  11239. esac
  11240. ;;
  11241. freebsd2.*)
  11242. # C++ shared libraries reported to be fairly broken before
  11243. # switch to ELF
  11244. ld_shlibs_CXX=no
  11245. ;;
  11246. freebsd-elf*)
  11247. archive_cmds_need_lc_CXX=no
  11248. ;;
  11249. freebsd* | dragonfly*)
  11250. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11251. # conventions
  11252. ld_shlibs_CXX=yes
  11253. ;;
  11254. gnu*)
  11255. ;;
  11256. haiku*)
  11257. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11258. link_all_deplibs_CXX=yes
  11259. ;;
  11260. hpux9*)
  11261. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11262. hardcode_libdir_separator_CXX=:
  11263. export_dynamic_flag_spec_CXX='${wl}-E'
  11264. hardcode_direct_CXX=yes
  11265. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11266. # but as the default
  11267. # location of the library.
  11268. case $cc_basename in
  11269. CC*)
  11270. # FIXME: insert proper C++ library support
  11271. ld_shlibs_CXX=no
  11272. ;;
  11273. aCC*)
  11274. 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'
  11275. # Commands to make compiler produce verbose output that lists
  11276. # what "hidden" libraries, object files and flags are used when
  11277. # linking a shared library.
  11278. #
  11279. # There doesn't appear to be a way to prevent this compiler from
  11280. # explicitly linking system object files so we need to strip them
  11281. # from the output so that they don't get included in the library
  11282. # dependencies.
  11283. 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"'
  11284. ;;
  11285. *)
  11286. if test "$GXX" = yes; then
  11287. 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'
  11288. else
  11289. # FIXME: insert proper C++ library support
  11290. ld_shlibs_CXX=no
  11291. fi
  11292. ;;
  11293. esac
  11294. ;;
  11295. hpux10*|hpux11*)
  11296. if test $with_gnu_ld = no; then
  11297. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11298. hardcode_libdir_separator_CXX=:
  11299. case $host_cpu in
  11300. hppa*64*|ia64*)
  11301. ;;
  11302. *)
  11303. export_dynamic_flag_spec_CXX='${wl}-E'
  11304. ;;
  11305. esac
  11306. fi
  11307. case $host_cpu in
  11308. hppa*64*|ia64*)
  11309. hardcode_direct_CXX=no
  11310. hardcode_shlibpath_var_CXX=no
  11311. ;;
  11312. *)
  11313. hardcode_direct_CXX=yes
  11314. hardcode_direct_absolute_CXX=yes
  11315. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11316. # but as the default
  11317. # location of the library.
  11318. ;;
  11319. esac
  11320. case $cc_basename in
  11321. CC*)
  11322. # FIXME: insert proper C++ library support
  11323. ld_shlibs_CXX=no
  11324. ;;
  11325. aCC*)
  11326. case $host_cpu in
  11327. hppa*64*)
  11328. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11329. ;;
  11330. ia64*)
  11331. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11332. ;;
  11333. *)
  11334. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11335. ;;
  11336. esac
  11337. # Commands to make compiler produce verbose output that lists
  11338. # what "hidden" libraries, object files and flags are used when
  11339. # linking a shared library.
  11340. #
  11341. # There doesn't appear to be a way to prevent this compiler from
  11342. # explicitly linking system object files so we need to strip them
  11343. # from the output so that they don't get included in the library
  11344. # dependencies.
  11345. 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"'
  11346. ;;
  11347. *)
  11348. if test "$GXX" = yes; then
  11349. if test $with_gnu_ld = no; then
  11350. case $host_cpu in
  11351. hppa*64*)
  11352. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11353. ;;
  11354. ia64*)
  11355. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11356. ;;
  11357. *)
  11358. 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'
  11359. ;;
  11360. esac
  11361. fi
  11362. else
  11363. # FIXME: insert proper C++ library support
  11364. ld_shlibs_CXX=no
  11365. fi
  11366. ;;
  11367. esac
  11368. ;;
  11369. interix[3-9]*)
  11370. hardcode_direct_CXX=no
  11371. hardcode_shlibpath_var_CXX=no
  11372. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11373. export_dynamic_flag_spec_CXX='${wl}-E'
  11374. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11375. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11376. # default) and relocated if they conflict, which is a slow very memory
  11377. # consuming and fragmenting process. To avoid this, we pick a random,
  11378. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11379. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11380. 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'
  11381. 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'
  11382. ;;
  11383. irix5* | irix6*)
  11384. case $cc_basename in
  11385. CC*)
  11386. # SGI C++
  11387. 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'
  11388. # Archives containing C++ object files must be created using
  11389. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11390. # necessary to make sure instantiated templates are included
  11391. # in the archive.
  11392. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11393. ;;
  11394. *)
  11395. if test "$GXX" = yes; then
  11396. if test "$with_gnu_ld" = no; then
  11397. 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'
  11398. else
  11399. 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'
  11400. fi
  11401. fi
  11402. link_all_deplibs_CXX=yes
  11403. ;;
  11404. esac
  11405. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11406. hardcode_libdir_separator_CXX=:
  11407. inherit_rpath_CXX=yes
  11408. ;;
  11409. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11410. case $cc_basename in
  11411. KCC*)
  11412. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11413. # KCC will only create a shared library if the output file
  11414. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11415. # to its proper name (with version) after linking.
  11416. 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'
  11417. 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'
  11418. # Commands to make compiler produce verbose output that lists
  11419. # what "hidden" libraries, object files and flags are used when
  11420. # linking a shared library.
  11421. #
  11422. # There doesn't appear to be a way to prevent this compiler from
  11423. # explicitly linking system object files so we need to strip them
  11424. # from the output so that they don't get included in the library
  11425. # dependencies.
  11426. 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"'
  11427. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11428. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11429. # Archives containing C++ object files must be created using
  11430. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11431. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11432. ;;
  11433. icpc* | ecpc* )
  11434. # Intel C++
  11435. with_gnu_ld=yes
  11436. # version 8.0 and above of icpc choke on multiply defined symbols
  11437. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11438. # earlier do not add the objects themselves.
  11439. case `$CC -V 2>&1` in
  11440. *"Version 7."*)
  11441. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11442. 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'
  11443. ;;
  11444. *) # Version 8.0 or newer
  11445. tmp_idyn=
  11446. case $host_cpu in
  11447. ia64*) tmp_idyn=' -i_dynamic';;
  11448. esac
  11449. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11450. 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'
  11451. ;;
  11452. esac
  11453. archive_cmds_need_lc_CXX=no
  11454. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11455. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11456. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11457. ;;
  11458. pgCC* | pgcpp*)
  11459. # Portland Group C++ compiler
  11460. case `$CC -V` in
  11461. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11462. prelink_cmds_CXX='tpldir=Template.dir~
  11463. rm -rf $tpldir~
  11464. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11465. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11466. old_archive_cmds_CXX='tpldir=Template.dir~
  11467. rm -rf $tpldir~
  11468. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11469. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11470. $RANLIB $oldlib'
  11471. archive_cmds_CXX='tpldir=Template.dir~
  11472. rm -rf $tpldir~
  11473. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11474. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11475. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11476. rm -rf $tpldir~
  11477. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11478. $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'
  11479. ;;
  11480. *) # Version 6 and above use weak symbols
  11481. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11482. 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'
  11483. ;;
  11484. esac
  11485. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11486. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11487. 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'
  11488. ;;
  11489. cxx*)
  11490. # Compaq C++
  11491. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11492. 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'
  11493. runpath_var=LD_RUN_PATH
  11494. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11495. hardcode_libdir_separator_CXX=:
  11496. # Commands to make compiler produce verbose output that lists
  11497. # what "hidden" libraries, object files and flags are used when
  11498. # linking a shared library.
  11499. #
  11500. # There doesn't appear to be a way to prevent this compiler from
  11501. # explicitly linking system object files so we need to strip them
  11502. # from the output so that they don't get included in the library
  11503. # dependencies.
  11504. 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'
  11505. ;;
  11506. xl* | mpixl* | bgxl*)
  11507. # IBM XL 8.0 on PPC, with GNU ld
  11508. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11509. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11510. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11511. if test "x$supports_anon_versioning" = xyes; then
  11512. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11513. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11514. echo "local: *; };" >> $output_objdir/$libname.ver~
  11515. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11516. fi
  11517. ;;
  11518. *)
  11519. case `$CC -V 2>&1 | sed 5q` in
  11520. *Sun\ C*)
  11521. # Sun C++ 5.9
  11522. no_undefined_flag_CXX=' -zdefs'
  11523. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11524. 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'
  11525. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11526. 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'
  11527. compiler_needs_object_CXX=yes
  11528. # Not sure whether something based on
  11529. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11530. # would be better.
  11531. output_verbose_link_cmd='func_echo_all'
  11532. # Archives containing C++ object files must be created using
  11533. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11534. # necessary to make sure instantiated templates are included
  11535. # in the archive.
  11536. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11537. ;;
  11538. esac
  11539. ;;
  11540. esac
  11541. ;;
  11542. lynxos*)
  11543. # FIXME: insert proper C++ library support
  11544. ld_shlibs_CXX=no
  11545. ;;
  11546. m88k*)
  11547. # FIXME: insert proper C++ library support
  11548. ld_shlibs_CXX=no
  11549. ;;
  11550. mvs*)
  11551. case $cc_basename in
  11552. cxx*)
  11553. # FIXME: insert proper C++ library support
  11554. ld_shlibs_CXX=no
  11555. ;;
  11556. *)
  11557. # FIXME: insert proper C++ library support
  11558. ld_shlibs_CXX=no
  11559. ;;
  11560. esac
  11561. ;;
  11562. netbsd*)
  11563. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11564. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11565. wlarc=
  11566. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11567. hardcode_direct_CXX=yes
  11568. hardcode_shlibpath_var_CXX=no
  11569. fi
  11570. # Workaround some broken pre-1.5 toolchains
  11571. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11572. ;;
  11573. *nto* | *qnx*)
  11574. ld_shlibs_CXX=yes
  11575. ;;
  11576. openbsd2*)
  11577. # C++ shared libraries are fairly broken
  11578. ld_shlibs_CXX=no
  11579. ;;
  11580. openbsd*)
  11581. if test -f /usr/libexec/ld.so; then
  11582. hardcode_direct_CXX=yes
  11583. hardcode_shlibpath_var_CXX=no
  11584. hardcode_direct_absolute_CXX=yes
  11585. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11586. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11587. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11588. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11589. export_dynamic_flag_spec_CXX='${wl}-E'
  11590. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11591. fi
  11592. output_verbose_link_cmd=func_echo_all
  11593. else
  11594. ld_shlibs_CXX=no
  11595. fi
  11596. ;;
  11597. osf3* | osf4* | osf5*)
  11598. case $cc_basename in
  11599. KCC*)
  11600. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11601. # KCC will only create a shared library if the output file
  11602. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11603. # to its proper name (with version) after linking.
  11604. 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'
  11605. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11606. hardcode_libdir_separator_CXX=:
  11607. # Archives containing C++ object files must be created using
  11608. # the KAI C++ compiler.
  11609. case $host in
  11610. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11611. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11612. esac
  11613. ;;
  11614. RCC*)
  11615. # Rational C++ 2.4.1
  11616. # FIXME: insert proper C++ library support
  11617. ld_shlibs_CXX=no
  11618. ;;
  11619. cxx*)
  11620. case $host in
  11621. osf3*)
  11622. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11623. 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'
  11624. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11625. ;;
  11626. *)
  11627. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11628. 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'
  11629. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11630. echo "-hidden">> $lib.exp~
  11631. $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~
  11632. $RM $lib.exp'
  11633. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11634. ;;
  11635. esac
  11636. hardcode_libdir_separator_CXX=:
  11637. # Commands to make compiler produce verbose output that lists
  11638. # what "hidden" libraries, object files and flags are used when
  11639. # linking a shared library.
  11640. #
  11641. # There doesn't appear to be a way to prevent this compiler from
  11642. # explicitly linking system object files so we need to strip them
  11643. # from the output so that they don't get included in the library
  11644. # dependencies.
  11645. 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"'
  11646. ;;
  11647. *)
  11648. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11649. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11650. case $host in
  11651. osf3*)
  11652. 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'
  11653. ;;
  11654. *)
  11655. 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'
  11656. ;;
  11657. esac
  11658. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11659. hardcode_libdir_separator_CXX=:
  11660. # Commands to make compiler produce verbose output that lists
  11661. # what "hidden" libraries, object files and flags are used when
  11662. # linking a shared library.
  11663. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11664. else
  11665. # FIXME: insert proper C++ library support
  11666. ld_shlibs_CXX=no
  11667. fi
  11668. ;;
  11669. esac
  11670. ;;
  11671. psos*)
  11672. # FIXME: insert proper C++ library support
  11673. ld_shlibs_CXX=no
  11674. ;;
  11675. sunos4*)
  11676. case $cc_basename in
  11677. CC*)
  11678. # Sun C++ 4.x
  11679. # FIXME: insert proper C++ library support
  11680. ld_shlibs_CXX=no
  11681. ;;
  11682. lcc*)
  11683. # Lucid
  11684. # FIXME: insert proper C++ library support
  11685. ld_shlibs_CXX=no
  11686. ;;
  11687. *)
  11688. # FIXME: insert proper C++ library support
  11689. ld_shlibs_CXX=no
  11690. ;;
  11691. esac
  11692. ;;
  11693. solaris*)
  11694. case $cc_basename in
  11695. CC* | sunCC*)
  11696. # Sun C++ 4.2, 5.x and Centerline C++
  11697. archive_cmds_need_lc_CXX=yes
  11698. no_undefined_flag_CXX=' -zdefs'
  11699. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11700. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11701. $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'
  11702. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11703. hardcode_shlibpath_var_CXX=no
  11704. case $host_os in
  11705. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11706. *)
  11707. # The compiler driver will combine and reorder linker options,
  11708. # but understands `-z linker_flag'.
  11709. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11710. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11711. ;;
  11712. esac
  11713. link_all_deplibs_CXX=yes
  11714. output_verbose_link_cmd='func_echo_all'
  11715. # Archives containing C++ object files must be created using
  11716. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11717. # necessary to make sure instantiated templates are included
  11718. # in the archive.
  11719. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11720. ;;
  11721. gcx*)
  11722. # Green Hills C++ Compiler
  11723. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11724. # The C++ compiler must be used to create the archive.
  11725. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11726. ;;
  11727. *)
  11728. # GNU C++ compiler with Solaris linker
  11729. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11730. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11731. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11732. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11733. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11734. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11735. # Commands to make compiler produce verbose output that lists
  11736. # what "hidden" libraries, object files and flags are used when
  11737. # linking a shared library.
  11738. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11739. else
  11740. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11741. # platform.
  11742. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11743. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11744. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11745. # Commands to make compiler produce verbose output that lists
  11746. # what "hidden" libraries, object files and flags are used when
  11747. # linking a shared library.
  11748. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11749. fi
  11750. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11751. case $host_os in
  11752. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11753. *)
  11754. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11755. ;;
  11756. esac
  11757. fi
  11758. ;;
  11759. esac
  11760. ;;
  11761. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11762. no_undefined_flag_CXX='${wl}-z,text'
  11763. archive_cmds_need_lc_CXX=no
  11764. hardcode_shlibpath_var_CXX=no
  11765. runpath_var='LD_RUN_PATH'
  11766. case $cc_basename in
  11767. CC*)
  11768. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11769. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11770. ;;
  11771. *)
  11772. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11773. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11774. ;;
  11775. esac
  11776. ;;
  11777. sysv5* | sco3.2v5* | sco5v6*)
  11778. # Note: We can NOT use -z defs as we might desire, because we do not
  11779. # link with -lc, and that would cause any symbols used from libc to
  11780. # always be unresolved, which means just about no library would
  11781. # ever link correctly. If we're not using GNU ld we use -z text
  11782. # though, which does catch some bad symbols but isn't as heavy-handed
  11783. # as -z defs.
  11784. no_undefined_flag_CXX='${wl}-z,text'
  11785. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11786. archive_cmds_need_lc_CXX=no
  11787. hardcode_shlibpath_var_CXX=no
  11788. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11789. hardcode_libdir_separator_CXX=':'
  11790. link_all_deplibs_CXX=yes
  11791. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11792. runpath_var='LD_RUN_PATH'
  11793. case $cc_basename in
  11794. CC*)
  11795. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11796. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11797. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11798. '"$old_archive_cmds_CXX"
  11799. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11800. '"$reload_cmds_CXX"
  11801. ;;
  11802. *)
  11803. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11804. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11805. ;;
  11806. esac
  11807. ;;
  11808. tandem*)
  11809. case $cc_basename in
  11810. NCC*)
  11811. # NonStop-UX NCC 3.20
  11812. # FIXME: insert proper C++ library support
  11813. ld_shlibs_CXX=no
  11814. ;;
  11815. *)
  11816. # FIXME: insert proper C++ library support
  11817. ld_shlibs_CXX=no
  11818. ;;
  11819. esac
  11820. ;;
  11821. vxworks*)
  11822. # FIXME: insert proper C++ library support
  11823. ld_shlibs_CXX=no
  11824. ;;
  11825. *)
  11826. # FIXME: insert proper C++ library support
  11827. ld_shlibs_CXX=no
  11828. ;;
  11829. esac
  11830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11831. $as_echo "$ld_shlibs_CXX" >&6; }
  11832. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11833. GCC_CXX="$GXX"
  11834. LD_CXX="$LD"
  11835. ## CAVEAT EMPTOR:
  11836. ## There is no encapsulation within the following macros, do not change
  11837. ## the running order or otherwise move them around unless you know exactly
  11838. ## what you are doing...
  11839. # Dependencies to place before and after the object being linked:
  11840. predep_objects_CXX=
  11841. postdep_objects_CXX=
  11842. predeps_CXX=
  11843. postdeps_CXX=
  11844. compiler_lib_search_path_CXX=
  11845. cat > conftest.$ac_ext <<_LT_EOF
  11846. class Foo
  11847. {
  11848. public:
  11849. Foo (void) { a = 0; }
  11850. private:
  11851. int a;
  11852. };
  11853. _LT_EOF
  11854. _lt_libdeps_save_CFLAGS=$CFLAGS
  11855. case "$CC $CFLAGS " in #(
  11856. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11857. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11858. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11859. esac
  11860. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11861. (eval $ac_compile) 2>&5
  11862. ac_status=$?
  11863. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11864. test $ac_status = 0; }; then
  11865. # Parse the compiler output and extract the necessary
  11866. # objects, libraries and library flags.
  11867. # Sentinel used to keep track of whether or not we are before
  11868. # the conftest object file.
  11869. pre_test_object_deps_done=no
  11870. for p in `eval "$output_verbose_link_cmd"`; do
  11871. case ${prev}${p} in
  11872. -L* | -R* | -l*)
  11873. # Some compilers place space between "-{L,R}" and the path.
  11874. # Remove the space.
  11875. if test $p = "-L" ||
  11876. test $p = "-R"; then
  11877. prev=$p
  11878. continue
  11879. fi
  11880. # Expand the sysroot to ease extracting the directories later.
  11881. if test -z "$prev"; then
  11882. case $p in
  11883. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11884. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11885. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11886. esac
  11887. fi
  11888. case $p in
  11889. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11890. esac
  11891. if test "$pre_test_object_deps_done" = no; then
  11892. case ${prev} in
  11893. -L | -R)
  11894. # Internal compiler library paths should come after those
  11895. # provided the user. The postdeps already come after the
  11896. # user supplied libs so there is no need to process them.
  11897. if test -z "$compiler_lib_search_path_CXX"; then
  11898. compiler_lib_search_path_CXX="${prev}${p}"
  11899. else
  11900. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11901. fi
  11902. ;;
  11903. # The "-l" case would never come before the object being
  11904. # linked, so don't bother handling this case.
  11905. esac
  11906. else
  11907. if test -z "$postdeps_CXX"; then
  11908. postdeps_CXX="${prev}${p}"
  11909. else
  11910. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11911. fi
  11912. fi
  11913. prev=
  11914. ;;
  11915. *.lto.$objext) ;; # Ignore GCC LTO objects
  11916. *.$objext)
  11917. # This assumes that the test object file only shows up
  11918. # once in the compiler output.
  11919. if test "$p" = "conftest.$objext"; then
  11920. pre_test_object_deps_done=yes
  11921. continue
  11922. fi
  11923. if test "$pre_test_object_deps_done" = no; then
  11924. if test -z "$predep_objects_CXX"; then
  11925. predep_objects_CXX="$p"
  11926. else
  11927. predep_objects_CXX="$predep_objects_CXX $p"
  11928. fi
  11929. else
  11930. if test -z "$postdep_objects_CXX"; then
  11931. postdep_objects_CXX="$p"
  11932. else
  11933. postdep_objects_CXX="$postdep_objects_CXX $p"
  11934. fi
  11935. fi
  11936. ;;
  11937. *) ;; # Ignore the rest.
  11938. esac
  11939. done
  11940. # Clean up.
  11941. rm -f a.out a.exe
  11942. else
  11943. echo "libtool.m4: error: problem compiling CXX test program"
  11944. fi
  11945. $RM -f confest.$objext
  11946. CFLAGS=$_lt_libdeps_save_CFLAGS
  11947. # PORTME: override above test on systems where it is broken
  11948. case $host_os in
  11949. interix[3-9]*)
  11950. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11951. # hack all around it, let's just trust "g++" to DTRT.
  11952. predep_objects_CXX=
  11953. postdep_objects_CXX=
  11954. postdeps_CXX=
  11955. ;;
  11956. linux*)
  11957. case `$CC -V 2>&1 | sed 5q` in
  11958. *Sun\ C*)
  11959. # Sun C++ 5.9
  11960. # The more standards-conforming stlport4 library is
  11961. # incompatible with the Cstd library. Avoid specifying
  11962. # it if it's in CXXFLAGS. Ignore libCrun as
  11963. # -library=stlport4 depends on it.
  11964. case " $CXX $CXXFLAGS " in
  11965. *" -library=stlport4 "*)
  11966. solaris_use_stlport4=yes
  11967. ;;
  11968. esac
  11969. if test "$solaris_use_stlport4" != yes; then
  11970. postdeps_CXX='-library=Cstd -library=Crun'
  11971. fi
  11972. ;;
  11973. esac
  11974. ;;
  11975. solaris*)
  11976. case $cc_basename in
  11977. CC* | sunCC*)
  11978. # The more standards-conforming stlport4 library is
  11979. # incompatible with the Cstd library. Avoid specifying
  11980. # it if it's in CXXFLAGS. Ignore libCrun as
  11981. # -library=stlport4 depends on it.
  11982. case " $CXX $CXXFLAGS " in
  11983. *" -library=stlport4 "*)
  11984. solaris_use_stlport4=yes
  11985. ;;
  11986. esac
  11987. # Adding this requires a known-good setup of shared libraries for
  11988. # Sun compiler versions before 5.6, else PIC objects from an old
  11989. # archive will be linked into the output, leading to subtle bugs.
  11990. if test "$solaris_use_stlport4" != yes; then
  11991. postdeps_CXX='-library=Cstd -library=Crun'
  11992. fi
  11993. ;;
  11994. esac
  11995. ;;
  11996. esac
  11997. case " $postdeps_CXX " in
  11998. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11999. esac
  12000. compiler_lib_search_dirs_CXX=
  12001. if test -n "${compiler_lib_search_path_CXX}"; then
  12002. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12003. fi
  12004. lt_prog_compiler_wl_CXX=
  12005. lt_prog_compiler_pic_CXX=
  12006. lt_prog_compiler_static_CXX=
  12007. # C++ specific cases for pic, static, wl, etc.
  12008. if test "$GXX" = yes; then
  12009. lt_prog_compiler_wl_CXX='-Wl,'
  12010. lt_prog_compiler_static_CXX='-static'
  12011. case $host_os in
  12012. aix*)
  12013. # All AIX code is PIC.
  12014. if test "$host_cpu" = ia64; then
  12015. # AIX 5 now supports IA64 processor
  12016. lt_prog_compiler_static_CXX='-Bstatic'
  12017. fi
  12018. ;;
  12019. amigaos*)
  12020. case $host_cpu in
  12021. powerpc)
  12022. # see comment about AmigaOS4 .so support
  12023. lt_prog_compiler_pic_CXX='-fPIC'
  12024. ;;
  12025. m68k)
  12026. # FIXME: we need at least 68020 code to build shared libraries, but
  12027. # adding the `-m68020' flag to GCC prevents building anything better,
  12028. # like `-m68040'.
  12029. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12030. ;;
  12031. esac
  12032. ;;
  12033. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12034. # PIC is the default for these OSes.
  12035. ;;
  12036. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12037. # This hack is so that the source file can tell whether it is being
  12038. # built for inclusion in a dll (and should export symbols for example).
  12039. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12040. # (--disable-auto-import) libraries
  12041. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12042. ;;
  12043. darwin* | rhapsody*)
  12044. # PIC is the default on this platform
  12045. # Common symbols not allowed in MH_DYLIB files
  12046. lt_prog_compiler_pic_CXX='-fno-common'
  12047. ;;
  12048. *djgpp*)
  12049. # DJGPP does not support shared libraries at all
  12050. lt_prog_compiler_pic_CXX=
  12051. ;;
  12052. haiku*)
  12053. # PIC is the default for Haiku.
  12054. # The "-static" flag exists, but is broken.
  12055. lt_prog_compiler_static_CXX=
  12056. ;;
  12057. interix[3-9]*)
  12058. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12059. # Instead, we relocate shared libraries at runtime.
  12060. ;;
  12061. sysv4*MP*)
  12062. if test -d /usr/nec; then
  12063. lt_prog_compiler_pic_CXX=-Kconform_pic
  12064. fi
  12065. ;;
  12066. hpux*)
  12067. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12068. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12069. # sets the default TLS model and affects inlining.
  12070. case $host_cpu in
  12071. hppa*64*)
  12072. ;;
  12073. *)
  12074. lt_prog_compiler_pic_CXX='-fPIC'
  12075. ;;
  12076. esac
  12077. ;;
  12078. *qnx* | *nto*)
  12079. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12080. # it will coredump.
  12081. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12082. ;;
  12083. *)
  12084. lt_prog_compiler_pic_CXX='-fPIC'
  12085. ;;
  12086. esac
  12087. else
  12088. case $host_os in
  12089. aix[4-9]*)
  12090. # All AIX code is PIC.
  12091. if test "$host_cpu" = ia64; then
  12092. # AIX 5 now supports IA64 processor
  12093. lt_prog_compiler_static_CXX='-Bstatic'
  12094. else
  12095. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12096. fi
  12097. ;;
  12098. chorus*)
  12099. case $cc_basename in
  12100. cxch68*)
  12101. # Green Hills C++ Compiler
  12102. # _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"
  12103. ;;
  12104. esac
  12105. ;;
  12106. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12107. # This hack is so that the source file can tell whether it is being
  12108. # built for inclusion in a dll (and should export symbols for example).
  12109. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12110. ;;
  12111. dgux*)
  12112. case $cc_basename in
  12113. ec++*)
  12114. lt_prog_compiler_pic_CXX='-KPIC'
  12115. ;;
  12116. ghcx*)
  12117. # Green Hills C++ Compiler
  12118. lt_prog_compiler_pic_CXX='-pic'
  12119. ;;
  12120. *)
  12121. ;;
  12122. esac
  12123. ;;
  12124. freebsd* | dragonfly*)
  12125. # FreeBSD uses GNU C++
  12126. ;;
  12127. hpux9* | hpux10* | hpux11*)
  12128. case $cc_basename in
  12129. CC*)
  12130. lt_prog_compiler_wl_CXX='-Wl,'
  12131. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12132. if test "$host_cpu" != ia64; then
  12133. lt_prog_compiler_pic_CXX='+Z'
  12134. fi
  12135. ;;
  12136. aCC*)
  12137. lt_prog_compiler_wl_CXX='-Wl,'
  12138. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12139. case $host_cpu in
  12140. hppa*64*|ia64*)
  12141. # +Z the default
  12142. ;;
  12143. *)
  12144. lt_prog_compiler_pic_CXX='+Z'
  12145. ;;
  12146. esac
  12147. ;;
  12148. *)
  12149. ;;
  12150. esac
  12151. ;;
  12152. interix*)
  12153. # This is c89, which is MS Visual C++ (no shared libs)
  12154. # Anyone wants to do a port?
  12155. ;;
  12156. irix5* | irix6* | nonstopux*)
  12157. case $cc_basename in
  12158. CC*)
  12159. lt_prog_compiler_wl_CXX='-Wl,'
  12160. lt_prog_compiler_static_CXX='-non_shared'
  12161. # CC pic flag -KPIC is the default.
  12162. ;;
  12163. *)
  12164. ;;
  12165. esac
  12166. ;;
  12167. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12168. case $cc_basename in
  12169. KCC*)
  12170. # KAI C++ Compiler
  12171. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12172. lt_prog_compiler_pic_CXX='-fPIC'
  12173. ;;
  12174. ecpc* )
  12175. # old Intel C++ for x86_64 which still supported -KPIC.
  12176. lt_prog_compiler_wl_CXX='-Wl,'
  12177. lt_prog_compiler_pic_CXX='-KPIC'
  12178. lt_prog_compiler_static_CXX='-static'
  12179. ;;
  12180. icpc* )
  12181. # Intel C++, used to be incompatible with GCC.
  12182. # ICC 10 doesn't accept -KPIC any more.
  12183. lt_prog_compiler_wl_CXX='-Wl,'
  12184. lt_prog_compiler_pic_CXX='-fPIC'
  12185. lt_prog_compiler_static_CXX='-static'
  12186. ;;
  12187. pgCC* | pgcpp*)
  12188. # Portland Group C++ compiler
  12189. lt_prog_compiler_wl_CXX='-Wl,'
  12190. lt_prog_compiler_pic_CXX='-fpic'
  12191. lt_prog_compiler_static_CXX='-Bstatic'
  12192. ;;
  12193. cxx*)
  12194. # Compaq C++
  12195. # Make sure the PIC flag is empty. It appears that all Alpha
  12196. # Linux and Compaq Tru64 Unix objects are PIC.
  12197. lt_prog_compiler_pic_CXX=
  12198. lt_prog_compiler_static_CXX='-non_shared'
  12199. ;;
  12200. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12201. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12202. lt_prog_compiler_wl_CXX='-Wl,'
  12203. lt_prog_compiler_pic_CXX='-qpic'
  12204. lt_prog_compiler_static_CXX='-qstaticlink'
  12205. ;;
  12206. *)
  12207. case `$CC -V 2>&1 | sed 5q` in
  12208. *Sun\ C*)
  12209. # Sun C++ 5.9
  12210. lt_prog_compiler_pic_CXX='-KPIC'
  12211. lt_prog_compiler_static_CXX='-Bstatic'
  12212. lt_prog_compiler_wl_CXX='-Qoption ld '
  12213. ;;
  12214. esac
  12215. ;;
  12216. esac
  12217. ;;
  12218. lynxos*)
  12219. ;;
  12220. m88k*)
  12221. ;;
  12222. mvs*)
  12223. case $cc_basename in
  12224. cxx*)
  12225. lt_prog_compiler_pic_CXX='-W c,exportall'
  12226. ;;
  12227. *)
  12228. ;;
  12229. esac
  12230. ;;
  12231. netbsd*)
  12232. ;;
  12233. *qnx* | *nto*)
  12234. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12235. # it will coredump.
  12236. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12237. ;;
  12238. osf3* | osf4* | osf5*)
  12239. case $cc_basename in
  12240. KCC*)
  12241. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12242. ;;
  12243. RCC*)
  12244. # Rational C++ 2.4.1
  12245. lt_prog_compiler_pic_CXX='-pic'
  12246. ;;
  12247. cxx*)
  12248. # Digital/Compaq C++
  12249. lt_prog_compiler_wl_CXX='-Wl,'
  12250. # Make sure the PIC flag is empty. It appears that all Alpha
  12251. # Linux and Compaq Tru64 Unix objects are PIC.
  12252. lt_prog_compiler_pic_CXX=
  12253. lt_prog_compiler_static_CXX='-non_shared'
  12254. ;;
  12255. *)
  12256. ;;
  12257. esac
  12258. ;;
  12259. psos*)
  12260. ;;
  12261. solaris*)
  12262. case $cc_basename in
  12263. CC* | sunCC*)
  12264. # Sun C++ 4.2, 5.x and Centerline C++
  12265. lt_prog_compiler_pic_CXX='-KPIC'
  12266. lt_prog_compiler_static_CXX='-Bstatic'
  12267. lt_prog_compiler_wl_CXX='-Qoption ld '
  12268. ;;
  12269. gcx*)
  12270. # Green Hills C++ Compiler
  12271. lt_prog_compiler_pic_CXX='-PIC'
  12272. ;;
  12273. *)
  12274. ;;
  12275. esac
  12276. ;;
  12277. sunos4*)
  12278. case $cc_basename in
  12279. CC*)
  12280. # Sun C++ 4.x
  12281. lt_prog_compiler_pic_CXX='-pic'
  12282. lt_prog_compiler_static_CXX='-Bstatic'
  12283. ;;
  12284. lcc*)
  12285. # Lucid
  12286. lt_prog_compiler_pic_CXX='-pic'
  12287. ;;
  12288. *)
  12289. ;;
  12290. esac
  12291. ;;
  12292. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12293. case $cc_basename in
  12294. CC*)
  12295. lt_prog_compiler_wl_CXX='-Wl,'
  12296. lt_prog_compiler_pic_CXX='-KPIC'
  12297. lt_prog_compiler_static_CXX='-Bstatic'
  12298. ;;
  12299. esac
  12300. ;;
  12301. tandem*)
  12302. case $cc_basename in
  12303. NCC*)
  12304. # NonStop-UX NCC 3.20
  12305. lt_prog_compiler_pic_CXX='-KPIC'
  12306. ;;
  12307. *)
  12308. ;;
  12309. esac
  12310. ;;
  12311. vxworks*)
  12312. ;;
  12313. *)
  12314. lt_prog_compiler_can_build_shared_CXX=no
  12315. ;;
  12316. esac
  12317. fi
  12318. case $host_os in
  12319. # For platforms which do not support PIC, -DPIC is meaningless:
  12320. *djgpp*)
  12321. lt_prog_compiler_pic_CXX=
  12322. ;;
  12323. *)
  12324. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12325. ;;
  12326. esac
  12327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12328. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12329. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12330. $as_echo_n "(cached) " >&6
  12331. else
  12332. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12333. fi
  12334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12335. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12336. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12337. #
  12338. # Check to make sure the PIC flag actually works.
  12339. #
  12340. if test -n "$lt_prog_compiler_pic_CXX"; then
  12341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12342. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12343. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12344. $as_echo_n "(cached) " >&6
  12345. else
  12346. lt_cv_prog_compiler_pic_works_CXX=no
  12347. ac_outfile=conftest.$ac_objext
  12348. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12349. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12350. # Insert the option either (1) after the last *FLAGS variable, or
  12351. # (2) before a word containing "conftest.", or (3) at the end.
  12352. # Note that $ac_compile itself does not contain backslashes and begins
  12353. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12354. # The option is referenced via a variable to avoid confusing sed.
  12355. lt_compile=`echo "$ac_compile" | $SED \
  12356. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12357. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12358. -e 's:$: $lt_compiler_flag:'`
  12359. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12360. (eval "$lt_compile" 2>conftest.err)
  12361. ac_status=$?
  12362. cat conftest.err >&5
  12363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12364. if (exit $ac_status) && test -s "$ac_outfile"; then
  12365. # The compiler can only warn and ignore the option if not recognized
  12366. # So say no if there are warnings other than the usual output.
  12367. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12368. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12369. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12370. lt_cv_prog_compiler_pic_works_CXX=yes
  12371. fi
  12372. fi
  12373. $RM conftest*
  12374. fi
  12375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12376. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12377. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12378. case $lt_prog_compiler_pic_CXX in
  12379. "" | " "*) ;;
  12380. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12381. esac
  12382. else
  12383. lt_prog_compiler_pic_CXX=
  12384. lt_prog_compiler_can_build_shared_CXX=no
  12385. fi
  12386. fi
  12387. #
  12388. # Check to make sure the static flag actually works.
  12389. #
  12390. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12392. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12393. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12394. $as_echo_n "(cached) " >&6
  12395. else
  12396. lt_cv_prog_compiler_static_works_CXX=no
  12397. save_LDFLAGS="$LDFLAGS"
  12398. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12399. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12400. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12401. # The linker can only warn and ignore the option if not recognized
  12402. # So say no if there are warnings
  12403. if test -s conftest.err; then
  12404. # Append any errors to the config.log.
  12405. cat conftest.err 1>&5
  12406. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12407. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12408. if diff conftest.exp conftest.er2 >/dev/null; then
  12409. lt_cv_prog_compiler_static_works_CXX=yes
  12410. fi
  12411. else
  12412. lt_cv_prog_compiler_static_works_CXX=yes
  12413. fi
  12414. fi
  12415. $RM -r conftest*
  12416. LDFLAGS="$save_LDFLAGS"
  12417. fi
  12418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12419. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12420. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12421. :
  12422. else
  12423. lt_prog_compiler_static_CXX=
  12424. fi
  12425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12426. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12427. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12428. $as_echo_n "(cached) " >&6
  12429. else
  12430. lt_cv_prog_compiler_c_o_CXX=no
  12431. $RM -r conftest 2>/dev/null
  12432. mkdir conftest
  12433. cd conftest
  12434. mkdir out
  12435. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12436. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12437. # Insert the option either (1) after the last *FLAGS variable, or
  12438. # (2) before a word containing "conftest.", or (3) at the end.
  12439. # Note that $ac_compile itself does not contain backslashes and begins
  12440. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12441. lt_compile=`echo "$ac_compile" | $SED \
  12442. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12443. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12444. -e 's:$: $lt_compiler_flag:'`
  12445. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12446. (eval "$lt_compile" 2>out/conftest.err)
  12447. ac_status=$?
  12448. cat out/conftest.err >&5
  12449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12450. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12451. then
  12452. # The compiler can only warn and ignore the option if not recognized
  12453. # So say no if there are warnings
  12454. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12455. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12456. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12457. lt_cv_prog_compiler_c_o_CXX=yes
  12458. fi
  12459. fi
  12460. chmod u+w . 2>&5
  12461. $RM conftest*
  12462. # SGI C++ compiler will create directory out/ii_files/ for
  12463. # template instantiation
  12464. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12465. $RM out/* && rmdir out
  12466. cd ..
  12467. $RM -r conftest
  12468. $RM conftest*
  12469. fi
  12470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12471. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12473. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12474. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12475. $as_echo_n "(cached) " >&6
  12476. else
  12477. lt_cv_prog_compiler_c_o_CXX=no
  12478. $RM -r conftest 2>/dev/null
  12479. mkdir conftest
  12480. cd conftest
  12481. mkdir out
  12482. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12483. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12484. # Insert the option either (1) after the last *FLAGS variable, or
  12485. # (2) before a word containing "conftest.", or (3) at the end.
  12486. # Note that $ac_compile itself does not contain backslashes and begins
  12487. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12488. lt_compile=`echo "$ac_compile" | $SED \
  12489. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12490. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12491. -e 's:$: $lt_compiler_flag:'`
  12492. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12493. (eval "$lt_compile" 2>out/conftest.err)
  12494. ac_status=$?
  12495. cat out/conftest.err >&5
  12496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12497. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12498. then
  12499. # The compiler can only warn and ignore the option if not recognized
  12500. # So say no if there are warnings
  12501. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12502. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12503. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12504. lt_cv_prog_compiler_c_o_CXX=yes
  12505. fi
  12506. fi
  12507. chmod u+w . 2>&5
  12508. $RM conftest*
  12509. # SGI C++ compiler will create directory out/ii_files/ for
  12510. # template instantiation
  12511. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12512. $RM out/* && rmdir out
  12513. cd ..
  12514. $RM -r conftest
  12515. $RM conftest*
  12516. fi
  12517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12518. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12519. hard_links="nottested"
  12520. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12521. # do not overwrite the value of need_locks provided by the user
  12522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12523. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12524. hard_links=yes
  12525. $RM conftest*
  12526. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12527. touch conftest.a
  12528. ln conftest.a conftest.b 2>&5 || hard_links=no
  12529. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12531. $as_echo "$hard_links" >&6; }
  12532. if test "$hard_links" = no; then
  12533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12534. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12535. need_locks=warn
  12536. fi
  12537. else
  12538. need_locks=no
  12539. fi
  12540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12541. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12542. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12543. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12544. case $host_os in
  12545. aix[4-9]*)
  12546. # If we're using GNU nm, then we don't want the "-C" option.
  12547. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12548. # Also, AIX nm treats weak defined symbols like other global defined
  12549. # symbols, whereas GNU nm marks them as "W".
  12550. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12551. 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'
  12552. else
  12553. 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'
  12554. fi
  12555. ;;
  12556. pw32*)
  12557. export_symbols_cmds_CXX="$ltdll_cmds"
  12558. ;;
  12559. cygwin* | mingw* | cegcc*)
  12560. case $cc_basename in
  12561. cl*)
  12562. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12563. ;;
  12564. *)
  12565. 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'
  12566. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12567. ;;
  12568. esac
  12569. ;;
  12570. *)
  12571. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12572. ;;
  12573. esac
  12574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12575. $as_echo "$ld_shlibs_CXX" >&6; }
  12576. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12577. with_gnu_ld_CXX=$with_gnu_ld
  12578. #
  12579. # Do we need to explicitly link libc?
  12580. #
  12581. case "x$archive_cmds_need_lc_CXX" in
  12582. x|xyes)
  12583. # Assume -lc should be added
  12584. archive_cmds_need_lc_CXX=yes
  12585. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12586. case $archive_cmds_CXX in
  12587. *'~'*)
  12588. # FIXME: we may have to deal with multi-command sequences.
  12589. ;;
  12590. '$CC '*)
  12591. # Test whether the compiler implicitly links with -lc since on some
  12592. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12593. # to ld, don't add -lc before -lgcc.
  12594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12595. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12596. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12597. $as_echo_n "(cached) " >&6
  12598. else
  12599. $RM conftest*
  12600. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12601. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12602. (eval $ac_compile) 2>&5
  12603. ac_status=$?
  12604. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12605. test $ac_status = 0; } 2>conftest.err; then
  12606. soname=conftest
  12607. lib=conftest
  12608. libobjs=conftest.$ac_objext
  12609. deplibs=
  12610. wl=$lt_prog_compiler_wl_CXX
  12611. pic_flag=$lt_prog_compiler_pic_CXX
  12612. compiler_flags=-v
  12613. linker_flags=-v
  12614. verstring=
  12615. output_objdir=.
  12616. libname=conftest
  12617. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12618. allow_undefined_flag_CXX=
  12619. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12620. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12621. ac_status=$?
  12622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12623. test $ac_status = 0; }
  12624. then
  12625. lt_cv_archive_cmds_need_lc_CXX=no
  12626. else
  12627. lt_cv_archive_cmds_need_lc_CXX=yes
  12628. fi
  12629. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12630. else
  12631. cat conftest.err 1>&5
  12632. fi
  12633. $RM conftest*
  12634. fi
  12635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12636. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12637. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12638. ;;
  12639. esac
  12640. fi
  12641. ;;
  12642. esac
  12643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12644. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12645. library_names_spec=
  12646. libname_spec='lib$name'
  12647. soname_spec=
  12648. shrext_cmds=".so"
  12649. postinstall_cmds=
  12650. postuninstall_cmds=
  12651. finish_cmds=
  12652. finish_eval=
  12653. shlibpath_var=
  12654. shlibpath_overrides_runpath=unknown
  12655. version_type=none
  12656. dynamic_linker="$host_os ld.so"
  12657. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12658. need_lib_prefix=unknown
  12659. hardcode_into_libs=no
  12660. # when you set need_version to no, make sure it does not cause -set_version
  12661. # flags to be left without arguments
  12662. need_version=unknown
  12663. case $host_os in
  12664. aix3*)
  12665. version_type=linux # correct to gnu/linux during the next big refactor
  12666. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12667. shlibpath_var=LIBPATH
  12668. # AIX 3 has no versioning support, so we append a major version to the name.
  12669. soname_spec='${libname}${release}${shared_ext}$major'
  12670. ;;
  12671. aix[4-9]*)
  12672. version_type=linux # correct to gnu/linux during the next big refactor
  12673. need_lib_prefix=no
  12674. need_version=no
  12675. hardcode_into_libs=yes
  12676. if test "$host_cpu" = ia64; then
  12677. # AIX 5 supports IA64
  12678. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12679. shlibpath_var=LD_LIBRARY_PATH
  12680. else
  12681. # With GCC up to 2.95.x, collect2 would create an import file
  12682. # for dependence libraries. The import file would start with
  12683. # the line `#! .'. This would cause the generated library to
  12684. # depend on `.', always an invalid library. This was fixed in
  12685. # development snapshots of GCC prior to 3.0.
  12686. case $host_os in
  12687. aix4 | aix4.[01] | aix4.[01].*)
  12688. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12689. echo ' yes '
  12690. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12691. :
  12692. else
  12693. can_build_shared=no
  12694. fi
  12695. ;;
  12696. esac
  12697. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12698. # soname into executable. Probably we can add versioning support to
  12699. # collect2, so additional links can be useful in future.
  12700. if test "$aix_use_runtimelinking" = yes; then
  12701. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12702. # instead of lib<name>.a to let people know that these are not
  12703. # typical AIX shared libraries.
  12704. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12705. else
  12706. # We preserve .a as extension for shared libraries through AIX4.2
  12707. # and later when we are not doing run time linking.
  12708. library_names_spec='${libname}${release}.a $libname.a'
  12709. soname_spec='${libname}${release}${shared_ext}$major'
  12710. fi
  12711. shlibpath_var=LIBPATH
  12712. fi
  12713. ;;
  12714. amigaos*)
  12715. case $host_cpu in
  12716. powerpc)
  12717. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12718. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12719. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12720. ;;
  12721. m68k)
  12722. library_names_spec='$libname.ixlibrary $libname.a'
  12723. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12724. 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'
  12725. ;;
  12726. esac
  12727. ;;
  12728. beos*)
  12729. library_names_spec='${libname}${shared_ext}'
  12730. dynamic_linker="$host_os ld.so"
  12731. shlibpath_var=LIBRARY_PATH
  12732. ;;
  12733. bsdi[45]*)
  12734. version_type=linux # correct to gnu/linux during the next big refactor
  12735. need_version=no
  12736. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12737. soname_spec='${libname}${release}${shared_ext}$major'
  12738. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12739. shlibpath_var=LD_LIBRARY_PATH
  12740. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12741. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12742. # the default ld.so.conf also contains /usr/contrib/lib and
  12743. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12744. # libtool to hard-code these into programs
  12745. ;;
  12746. cygwin* | mingw* | pw32* | cegcc*)
  12747. version_type=windows
  12748. shrext_cmds=".dll"
  12749. need_version=no
  12750. need_lib_prefix=no
  12751. case $GCC,$cc_basename in
  12752. yes,*)
  12753. # gcc
  12754. library_names_spec='$libname.dll.a'
  12755. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12756. postinstall_cmds='base_file=`basename \${file}`~
  12757. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12758. dldir=$destdir/`dirname \$dlpath`~
  12759. test -d \$dldir || mkdir -p \$dldir~
  12760. $install_prog $dir/$dlname \$dldir/$dlname~
  12761. chmod a+x \$dldir/$dlname~
  12762. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12763. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12764. fi'
  12765. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12766. dlpath=$dir/\$dldll~
  12767. $RM \$dlpath'
  12768. shlibpath_overrides_runpath=yes
  12769. case $host_os in
  12770. cygwin*)
  12771. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12772. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12773. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12774. ;;
  12775. mingw* | cegcc*)
  12776. # MinGW DLLs use traditional 'lib' prefix
  12777. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12778. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12779. ;;
  12780. pw32*)
  12781. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12782. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12783. ;;
  12784. esac
  12785. dynamic_linker='Win32 ld.exe'
  12786. ;;
  12787. *,cl*)
  12788. # Native MSVC
  12789. libname_spec='$name'
  12790. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12791. library_names_spec='${libname}.dll.lib'
  12792. case $build_os in
  12793. mingw*)
  12794. sys_lib_search_path_spec=
  12795. lt_save_ifs=$IFS
  12796. IFS=';'
  12797. for lt_path in $LIB
  12798. do
  12799. IFS=$lt_save_ifs
  12800. # Let DOS variable expansion print the short 8.3 style file name.
  12801. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12802. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12803. done
  12804. IFS=$lt_save_ifs
  12805. # Convert to MSYS style.
  12806. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12807. ;;
  12808. cygwin*)
  12809. # Convert to unix form, then to dos form, then back to unix form
  12810. # but this time dos style (no spaces!) so that the unix form looks
  12811. # like /cygdrive/c/PROGRA~1:/cygdr...
  12812. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12813. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12814. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12815. ;;
  12816. *)
  12817. sys_lib_search_path_spec="$LIB"
  12818. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12819. # It is most probably a Windows format PATH.
  12820. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12821. else
  12822. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12823. fi
  12824. # FIXME: find the short name or the path components, as spaces are
  12825. # common. (e.g. "Program Files" -> "PROGRA~1")
  12826. ;;
  12827. esac
  12828. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12829. postinstall_cmds='base_file=`basename \${file}`~
  12830. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12831. dldir=$destdir/`dirname \$dlpath`~
  12832. test -d \$dldir || mkdir -p \$dldir~
  12833. $install_prog $dir/$dlname \$dldir/$dlname'
  12834. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12835. dlpath=$dir/\$dldll~
  12836. $RM \$dlpath'
  12837. shlibpath_overrides_runpath=yes
  12838. dynamic_linker='Win32 link.exe'
  12839. ;;
  12840. *)
  12841. # Assume MSVC wrapper
  12842. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12843. dynamic_linker='Win32 ld.exe'
  12844. ;;
  12845. esac
  12846. # FIXME: first we should search . and the directory the executable is in
  12847. shlibpath_var=PATH
  12848. ;;
  12849. darwin* | rhapsody*)
  12850. dynamic_linker="$host_os dyld"
  12851. version_type=darwin
  12852. need_lib_prefix=no
  12853. need_version=no
  12854. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12855. soname_spec='${libname}${release}${major}$shared_ext'
  12856. shlibpath_overrides_runpath=yes
  12857. shlibpath_var=DYLD_LIBRARY_PATH
  12858. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12859. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12860. ;;
  12861. dgux*)
  12862. version_type=linux # correct to gnu/linux during the next big refactor
  12863. need_lib_prefix=no
  12864. need_version=no
  12865. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12866. soname_spec='${libname}${release}${shared_ext}$major'
  12867. shlibpath_var=LD_LIBRARY_PATH
  12868. ;;
  12869. freebsd* | dragonfly*)
  12870. # DragonFly does not have aout. When/if they implement a new
  12871. # versioning mechanism, adjust this.
  12872. if test -x /usr/bin/objformat; then
  12873. objformat=`/usr/bin/objformat`
  12874. else
  12875. case $host_os in
  12876. freebsd[23].*) objformat=aout ;;
  12877. *) objformat=elf ;;
  12878. esac
  12879. fi
  12880. version_type=freebsd-$objformat
  12881. case $version_type in
  12882. freebsd-elf*)
  12883. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12884. need_version=no
  12885. need_lib_prefix=no
  12886. ;;
  12887. freebsd-*)
  12888. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12889. need_version=yes
  12890. ;;
  12891. esac
  12892. shlibpath_var=LD_LIBRARY_PATH
  12893. case $host_os in
  12894. freebsd2.*)
  12895. shlibpath_overrides_runpath=yes
  12896. ;;
  12897. freebsd3.[01]* | freebsdelf3.[01]*)
  12898. shlibpath_overrides_runpath=yes
  12899. hardcode_into_libs=yes
  12900. ;;
  12901. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12902. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12903. shlibpath_overrides_runpath=no
  12904. hardcode_into_libs=yes
  12905. ;;
  12906. *) # from 4.6 on, and DragonFly
  12907. shlibpath_overrides_runpath=yes
  12908. hardcode_into_libs=yes
  12909. ;;
  12910. esac
  12911. ;;
  12912. gnu*)
  12913. version_type=linux # correct to gnu/linux during the next big refactor
  12914. need_lib_prefix=no
  12915. need_version=no
  12916. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12917. soname_spec='${libname}${release}${shared_ext}$major'
  12918. shlibpath_var=LD_LIBRARY_PATH
  12919. shlibpath_overrides_runpath=no
  12920. hardcode_into_libs=yes
  12921. ;;
  12922. haiku*)
  12923. version_type=linux # correct to gnu/linux during the next big refactor
  12924. need_lib_prefix=no
  12925. need_version=no
  12926. dynamic_linker="$host_os runtime_loader"
  12927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12928. soname_spec='${libname}${release}${shared_ext}$major'
  12929. shlibpath_var=LIBRARY_PATH
  12930. shlibpath_overrides_runpath=yes
  12931. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12932. hardcode_into_libs=yes
  12933. ;;
  12934. hpux9* | hpux10* | hpux11*)
  12935. # Give a soname corresponding to the major version so that dld.sl refuses to
  12936. # link against other versions.
  12937. version_type=sunos
  12938. need_lib_prefix=no
  12939. need_version=no
  12940. case $host_cpu in
  12941. ia64*)
  12942. shrext_cmds='.so'
  12943. hardcode_into_libs=yes
  12944. dynamic_linker="$host_os dld.so"
  12945. shlibpath_var=LD_LIBRARY_PATH
  12946. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12947. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12948. soname_spec='${libname}${release}${shared_ext}$major'
  12949. if test "X$HPUX_IA64_MODE" = X32; then
  12950. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12951. else
  12952. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12953. fi
  12954. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12955. ;;
  12956. hppa*64*)
  12957. shrext_cmds='.sl'
  12958. hardcode_into_libs=yes
  12959. dynamic_linker="$host_os dld.sl"
  12960. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12961. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12962. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12963. soname_spec='${libname}${release}${shared_ext}$major'
  12964. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12965. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12966. ;;
  12967. *)
  12968. shrext_cmds='.sl'
  12969. dynamic_linker="$host_os dld.sl"
  12970. shlibpath_var=SHLIB_PATH
  12971. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  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. ;;
  12975. esac
  12976. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12977. postinstall_cmds='chmod 555 $lib'
  12978. # or fails outright, so override atomically:
  12979. install_override_mode=555
  12980. ;;
  12981. interix[3-9]*)
  12982. version_type=linux # correct to gnu/linux during the next big refactor
  12983. need_lib_prefix=no
  12984. need_version=no
  12985. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12986. soname_spec='${libname}${release}${shared_ext}$major'
  12987. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12988. shlibpath_var=LD_LIBRARY_PATH
  12989. shlibpath_overrides_runpath=no
  12990. hardcode_into_libs=yes
  12991. ;;
  12992. irix5* | irix6* | nonstopux*)
  12993. case $host_os in
  12994. nonstopux*) version_type=nonstopux ;;
  12995. *)
  12996. if test "$lt_cv_prog_gnu_ld" = yes; then
  12997. version_type=linux # correct to gnu/linux during the next big refactor
  12998. else
  12999. version_type=irix
  13000. fi ;;
  13001. esac
  13002. need_lib_prefix=no
  13003. need_version=no
  13004. soname_spec='${libname}${release}${shared_ext}$major'
  13005. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13006. case $host_os in
  13007. irix5* | nonstopux*)
  13008. libsuff= shlibsuff=
  13009. ;;
  13010. *)
  13011. case $LD in # libtool.m4 will add one of these switches to LD
  13012. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13013. libsuff= shlibsuff= libmagic=32-bit;;
  13014. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13015. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13016. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13017. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13018. *) libsuff= shlibsuff= libmagic=never-match;;
  13019. esac
  13020. ;;
  13021. esac
  13022. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13023. shlibpath_overrides_runpath=no
  13024. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13025. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13026. hardcode_into_libs=yes
  13027. ;;
  13028. # No shared lib support for Linux oldld, aout, or coff.
  13029. linux*oldld* | linux*aout* | linux*coff*)
  13030. dynamic_linker=no
  13031. ;;
  13032. # This must be glibc/ELF.
  13033. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13034. version_type=linux # correct to gnu/linux during the next big refactor
  13035. need_lib_prefix=no
  13036. need_version=no
  13037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13038. soname_spec='${libname}${release}${shared_ext}$major'
  13039. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13040. shlibpath_var=LD_LIBRARY_PATH
  13041. shlibpath_overrides_runpath=no
  13042. # Some binutils ld are patched to set DT_RUNPATH
  13043. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13044. $as_echo_n "(cached) " >&6
  13045. else
  13046. lt_cv_shlibpath_overrides_runpath=no
  13047. save_LDFLAGS=$LDFLAGS
  13048. save_libdir=$libdir
  13049. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13050. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13052. /* end confdefs.h. */
  13053. int
  13054. main ()
  13055. {
  13056. ;
  13057. return 0;
  13058. }
  13059. _ACEOF
  13060. if ac_fn_cxx_try_link "$LINENO"; then :
  13061. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13062. lt_cv_shlibpath_overrides_runpath=yes
  13063. fi
  13064. fi
  13065. rm -f core conftest.err conftest.$ac_objext \
  13066. conftest$ac_exeext conftest.$ac_ext
  13067. LDFLAGS=$save_LDFLAGS
  13068. libdir=$save_libdir
  13069. fi
  13070. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13071. # This implies no fast_install, which is unacceptable.
  13072. # Some rework will be needed to allow for fast_install
  13073. # before this can be enabled.
  13074. hardcode_into_libs=yes
  13075. # Append ld.so.conf contents to the search path
  13076. if test -f /etc/ld.so.conf; then
  13077. 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' ' '`
  13078. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13079. fi
  13080. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13081. # powerpc, because MkLinux only supported shared libraries with the
  13082. # GNU dynamic linker. Since this was broken with cross compilers,
  13083. # most powerpc-linux boxes support dynamic linking these days and
  13084. # people can always --disable-shared, the test was removed, and we
  13085. # assume the GNU/Linux dynamic linker is in use.
  13086. dynamic_linker='GNU/Linux ld.so'
  13087. ;;
  13088. netbsd*)
  13089. version_type=sunos
  13090. need_lib_prefix=no
  13091. need_version=no
  13092. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13093. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13094. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13095. dynamic_linker='NetBSD (a.out) ld.so'
  13096. else
  13097. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13098. soname_spec='${libname}${release}${shared_ext}$major'
  13099. dynamic_linker='NetBSD ld.elf_so'
  13100. fi
  13101. shlibpath_var=LD_LIBRARY_PATH
  13102. shlibpath_overrides_runpath=yes
  13103. hardcode_into_libs=yes
  13104. ;;
  13105. newsos6)
  13106. version_type=linux # correct to gnu/linux during the next big refactor
  13107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13108. shlibpath_var=LD_LIBRARY_PATH
  13109. shlibpath_overrides_runpath=yes
  13110. ;;
  13111. *nto* | *qnx*)
  13112. version_type=qnx
  13113. need_lib_prefix=no
  13114. need_version=no
  13115. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13116. soname_spec='${libname}${release}${shared_ext}$major'
  13117. shlibpath_var=LD_LIBRARY_PATH
  13118. shlibpath_overrides_runpath=no
  13119. hardcode_into_libs=yes
  13120. dynamic_linker='ldqnx.so'
  13121. ;;
  13122. openbsd*)
  13123. version_type=sunos
  13124. sys_lib_dlsearch_path_spec="/usr/lib"
  13125. need_lib_prefix=no
  13126. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13127. case $host_os in
  13128. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13129. *) need_version=no ;;
  13130. esac
  13131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13132. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13133. shlibpath_var=LD_LIBRARY_PATH
  13134. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13135. case $host_os in
  13136. openbsd2.[89] | openbsd2.[89].*)
  13137. shlibpath_overrides_runpath=no
  13138. ;;
  13139. *)
  13140. shlibpath_overrides_runpath=yes
  13141. ;;
  13142. esac
  13143. else
  13144. shlibpath_overrides_runpath=yes
  13145. fi
  13146. ;;
  13147. os2*)
  13148. libname_spec='$name'
  13149. shrext_cmds=".dll"
  13150. need_lib_prefix=no
  13151. library_names_spec='$libname${shared_ext} $libname.a'
  13152. dynamic_linker='OS/2 ld.exe'
  13153. shlibpath_var=LIBPATH
  13154. ;;
  13155. osf3* | osf4* | osf5*)
  13156. version_type=osf
  13157. need_lib_prefix=no
  13158. need_version=no
  13159. soname_spec='${libname}${release}${shared_ext}$major'
  13160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13161. shlibpath_var=LD_LIBRARY_PATH
  13162. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13163. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13164. ;;
  13165. rdos*)
  13166. dynamic_linker=no
  13167. ;;
  13168. solaris*)
  13169. version_type=linux # correct to gnu/linux during the next big refactor
  13170. need_lib_prefix=no
  13171. need_version=no
  13172. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13173. soname_spec='${libname}${release}${shared_ext}$major'
  13174. shlibpath_var=LD_LIBRARY_PATH
  13175. shlibpath_overrides_runpath=yes
  13176. hardcode_into_libs=yes
  13177. # ldd complains unless libraries are executable
  13178. postinstall_cmds='chmod +x $lib'
  13179. ;;
  13180. sunos4*)
  13181. version_type=sunos
  13182. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13183. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13184. shlibpath_var=LD_LIBRARY_PATH
  13185. shlibpath_overrides_runpath=yes
  13186. if test "$with_gnu_ld" = yes; then
  13187. need_lib_prefix=no
  13188. fi
  13189. need_version=yes
  13190. ;;
  13191. sysv4 | sysv4.3*)
  13192. version_type=linux # correct to gnu/linux during the next big refactor
  13193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13194. soname_spec='${libname}${release}${shared_ext}$major'
  13195. shlibpath_var=LD_LIBRARY_PATH
  13196. case $host_vendor in
  13197. sni)
  13198. shlibpath_overrides_runpath=no
  13199. need_lib_prefix=no
  13200. runpath_var=LD_RUN_PATH
  13201. ;;
  13202. siemens)
  13203. need_lib_prefix=no
  13204. ;;
  13205. motorola)
  13206. need_lib_prefix=no
  13207. need_version=no
  13208. shlibpath_overrides_runpath=no
  13209. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13210. ;;
  13211. esac
  13212. ;;
  13213. sysv4*MP*)
  13214. if test -d /usr/nec ;then
  13215. version_type=linux # correct to gnu/linux during the next big refactor
  13216. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13217. soname_spec='$libname${shared_ext}.$major'
  13218. shlibpath_var=LD_LIBRARY_PATH
  13219. fi
  13220. ;;
  13221. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13222. version_type=freebsd-elf
  13223. need_lib_prefix=no
  13224. need_version=no
  13225. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13226. soname_spec='${libname}${release}${shared_ext}$major'
  13227. shlibpath_var=LD_LIBRARY_PATH
  13228. shlibpath_overrides_runpath=yes
  13229. hardcode_into_libs=yes
  13230. if test "$with_gnu_ld" = yes; then
  13231. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13232. else
  13233. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13234. case $host_os in
  13235. sco3.2v5*)
  13236. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13237. ;;
  13238. esac
  13239. fi
  13240. sys_lib_dlsearch_path_spec='/usr/lib'
  13241. ;;
  13242. tpf*)
  13243. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13244. version_type=linux # correct to gnu/linux during the next big refactor
  13245. need_lib_prefix=no
  13246. need_version=no
  13247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13248. shlibpath_var=LD_LIBRARY_PATH
  13249. shlibpath_overrides_runpath=no
  13250. hardcode_into_libs=yes
  13251. ;;
  13252. uts4*)
  13253. version_type=linux # correct to gnu/linux during the next big refactor
  13254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13255. soname_spec='${libname}${release}${shared_ext}$major'
  13256. shlibpath_var=LD_LIBRARY_PATH
  13257. ;;
  13258. *)
  13259. dynamic_linker=no
  13260. ;;
  13261. esac
  13262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13263. $as_echo "$dynamic_linker" >&6; }
  13264. test "$dynamic_linker" = no && can_build_shared=no
  13265. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13266. if test "$GCC" = yes; then
  13267. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13268. fi
  13269. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13270. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13271. fi
  13272. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13273. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13274. fi
  13275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13276. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13277. hardcode_action_CXX=
  13278. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13279. test -n "$runpath_var_CXX" ||
  13280. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13281. # We can hardcode non-existent directories.
  13282. if test "$hardcode_direct_CXX" != no &&
  13283. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13284. # have to relink, otherwise we might link with an installed library
  13285. # when we should be linking with a yet-to-be-installed one
  13286. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13287. test "$hardcode_minus_L_CXX" != no; then
  13288. # Linking always hardcodes the temporary library directory.
  13289. hardcode_action_CXX=relink
  13290. else
  13291. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13292. hardcode_action_CXX=immediate
  13293. fi
  13294. else
  13295. # We cannot hardcode anything, or else we can only hardcode existing
  13296. # directories.
  13297. hardcode_action_CXX=unsupported
  13298. fi
  13299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13300. $as_echo "$hardcode_action_CXX" >&6; }
  13301. if test "$hardcode_action_CXX" = relink ||
  13302. test "$inherit_rpath_CXX" = yes; then
  13303. # Fast installation is not supported
  13304. enable_fast_install=no
  13305. elif test "$shlibpath_overrides_runpath" = yes ||
  13306. test "$enable_shared" = no; then
  13307. # Fast installation is not necessary
  13308. enable_fast_install=needless
  13309. fi
  13310. fi # test -n "$compiler"
  13311. CC=$lt_save_CC
  13312. CFLAGS=$lt_save_CFLAGS
  13313. LDCXX=$LD
  13314. LD=$lt_save_LD
  13315. GCC=$lt_save_GCC
  13316. with_gnu_ld=$lt_save_with_gnu_ld
  13317. lt_cv_path_LDCXX=$lt_cv_path_LD
  13318. lt_cv_path_LD=$lt_save_path_LD
  13319. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13320. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13321. fi # test "$_lt_caught_CXX_error" != yes
  13322. ac_ext=c
  13323. ac_cpp='$CPP $CPPFLAGS'
  13324. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13325. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13326. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13327. # Find a good install program. We prefer a C program (faster),
  13328. # so one script is as good as another. But avoid the broken or
  13329. # incompatible versions:
  13330. # SysV /etc/install, /usr/sbin/install
  13331. # SunOS /usr/etc/install
  13332. # IRIX /sbin/install
  13333. # AIX /bin/install
  13334. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13335. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13336. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13337. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13338. # OS/2's system install, which has a completely different semantic
  13339. # ./install, which can be erroneously created by make from ./install.sh.
  13340. # Reject install programs that cannot install multiple files.
  13341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13342. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13343. if test -z "$INSTALL"; then
  13344. if ${ac_cv_path_install+:} false; then :
  13345. $as_echo_n "(cached) " >&6
  13346. else
  13347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13348. for as_dir in $PATH
  13349. do
  13350. IFS=$as_save_IFS
  13351. test -z "$as_dir" && as_dir=.
  13352. # Account for people who put trailing slashes in PATH elements.
  13353. case $as_dir/ in #((
  13354. ./ | .// | /[cC]/* | \
  13355. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13356. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13357. /usr/ucb/* ) ;;
  13358. *)
  13359. # OSF1 and SCO ODT 3.0 have their own names for install.
  13360. # Don't use installbsd from OSF since it installs stuff as root
  13361. # by default.
  13362. for ac_prog in ginstall scoinst install; do
  13363. for ac_exec_ext in '' $ac_executable_extensions; do
  13364. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13365. if test $ac_prog = install &&
  13366. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13367. # AIX install. It has an incompatible calling convention.
  13368. :
  13369. elif test $ac_prog = install &&
  13370. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13371. # program-specific install script used by HP pwplus--don't use.
  13372. :
  13373. else
  13374. rm -rf conftest.one conftest.two conftest.dir
  13375. echo one > conftest.one
  13376. echo two > conftest.two
  13377. mkdir conftest.dir
  13378. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13379. test -s conftest.one && test -s conftest.two &&
  13380. test -s conftest.dir/conftest.one &&
  13381. test -s conftest.dir/conftest.two
  13382. then
  13383. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13384. break 3
  13385. fi
  13386. fi
  13387. fi
  13388. done
  13389. done
  13390. ;;
  13391. esac
  13392. done
  13393. IFS=$as_save_IFS
  13394. rm -rf conftest.one conftest.two conftest.dir
  13395. fi
  13396. if test "${ac_cv_path_install+set}" = set; then
  13397. INSTALL=$ac_cv_path_install
  13398. else
  13399. # As a last resort, use the slow shell script. Don't cache a
  13400. # value for INSTALL within a source directory, because that will
  13401. # break other packages using the cache if that directory is
  13402. # removed, or if the value is a relative name.
  13403. INSTALL=$ac_install_sh
  13404. fi
  13405. fi
  13406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13407. $as_echo "$INSTALL" >&6; }
  13408. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13409. # It thinks the first close brace ends the variable substitution.
  13410. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13411. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13412. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13414. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13415. set x ${MAKE-make}
  13416. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13417. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13418. $as_echo_n "(cached) " >&6
  13419. else
  13420. cat >conftest.make <<\_ACEOF
  13421. SHELL = /bin/sh
  13422. all:
  13423. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13424. _ACEOF
  13425. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13426. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13427. *@@@%%%=?*=@@@%%%*)
  13428. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13429. *)
  13430. eval ac_cv_prog_make_${ac_make}_set=no;;
  13431. esac
  13432. rm -f conftest.make
  13433. fi
  13434. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13436. $as_echo "yes" >&6; }
  13437. SET_MAKE=
  13438. else
  13439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13440. $as_echo "no" >&6; }
  13441. SET_MAKE="MAKE=${MAKE-make}"
  13442. fi
  13443. if test -n "$ac_tool_prefix"; then
  13444. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13445. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13447. $as_echo_n "checking for $ac_word... " >&6; }
  13448. if ${ac_cv_prog_WINDRES+:} false; then :
  13449. $as_echo_n "(cached) " >&6
  13450. else
  13451. if test -n "$WINDRES"; then
  13452. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13453. else
  13454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13455. for as_dir in $PATH
  13456. do
  13457. IFS=$as_save_IFS
  13458. test -z "$as_dir" && as_dir=.
  13459. for ac_exec_ext in '' $ac_executable_extensions; do
  13460. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13461. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13463. break 2
  13464. fi
  13465. done
  13466. done
  13467. IFS=$as_save_IFS
  13468. fi
  13469. fi
  13470. WINDRES=$ac_cv_prog_WINDRES
  13471. if test -n "$WINDRES"; then
  13472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13473. $as_echo "$WINDRES" >&6; }
  13474. else
  13475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13476. $as_echo "no" >&6; }
  13477. fi
  13478. fi
  13479. if test -z "$ac_cv_prog_WINDRES"; then
  13480. ac_ct_WINDRES=$WINDRES
  13481. # Extract the first word of "windres", so it can be a program name with args.
  13482. set dummy windres; ac_word=$2
  13483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13484. $as_echo_n "checking for $ac_word... " >&6; }
  13485. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13486. $as_echo_n "(cached) " >&6
  13487. else
  13488. if test -n "$ac_ct_WINDRES"; then
  13489. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13490. else
  13491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13492. for as_dir in $PATH
  13493. do
  13494. IFS=$as_save_IFS
  13495. test -z "$as_dir" && as_dir=.
  13496. for ac_exec_ext in '' $ac_executable_extensions; do
  13497. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13498. ac_cv_prog_ac_ct_WINDRES="windres"
  13499. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13500. break 2
  13501. fi
  13502. done
  13503. done
  13504. IFS=$as_save_IFS
  13505. fi
  13506. fi
  13507. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13508. if test -n "$ac_ct_WINDRES"; then
  13509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13510. $as_echo "$ac_ct_WINDRES" >&6; }
  13511. else
  13512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13513. $as_echo "no" >&6; }
  13514. fi
  13515. if test "x$ac_ct_WINDRES" = x; then
  13516. WINDRES=":"
  13517. else
  13518. case $cross_compiling:$ac_tool_warned in
  13519. yes:)
  13520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13521. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13522. ac_tool_warned=yes ;;
  13523. esac
  13524. WINDRES=$ac_ct_WINDRES
  13525. fi
  13526. else
  13527. WINDRES="$ac_cv_prog_WINDRES"
  13528. fi
  13529. case "$host" in
  13530. *-*-mingw32*)
  13531. # Except on msys, where make can't handle full pathnames (bug 1972)
  13532. ;;
  13533. *)
  13534. srcdir=`cd $srcdir && pwd`
  13535. ;;
  13536. esac
  13537. INCLUDE="-I$srcdir/include"
  13538. if test x$srcdir != x.; then
  13539. INCLUDE="-Iinclude $INCLUDE"
  13540. elif test -d .hg; then
  13541. as_fn_error $? "
  13542. *** When building from Mercurial you should configure and build in a
  13543. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13544. " "$LINENO" 5
  13545. fi
  13546. BASE_CFLAGS=""
  13547. BASE_LDFLAGS=""
  13548. case "$host" in
  13549. *-*-cygwin*)
  13550. # We build SDL on cygwin without the UNIX emulation layer
  13551. save_CFLAGS="$CFLAGS"
  13552. have_no_cygwin=no
  13553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13554. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13555. CFLAGS="$save_CFLAGS -mno-cygwin"
  13556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13557. /* end confdefs.h. */
  13558. int
  13559. main ()
  13560. {
  13561. ;
  13562. return 0;
  13563. }
  13564. _ACEOF
  13565. if ac_fn_c_try_compile "$LINENO"; then :
  13566. have_no_cygwin=yes
  13567. fi
  13568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13570. $as_echo "$have_no_cygwin" >&6; }
  13571. CFLAGS="$save_CFLAGS"
  13572. if test x$have_no_cygwin = xyes; then
  13573. BASE_CFLAGS="-mno-cygwin"
  13574. BASE_LDFLAGS="-mno-cygwin"
  13575. fi
  13576. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13577. ;;
  13578. esac
  13579. # Uncomment the following line if you want to force SDL and applications
  13580. # built with it to be compiled for a particular architecture.
  13581. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13582. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13583. # The default optimization for SDL is -O3 (Bug #31)
  13584. if test "x$orig_CFLAGS" = x; then
  13585. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13586. fi
  13587. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13588. BUILD_LDFLAGS="$LDFLAGS"
  13589. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13590. ## These are common directories to find software packages
  13591. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13592. # if test -d $path/include; then
  13593. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13594. # fi
  13595. # if test -d $path/lib; then
  13596. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13597. # fi
  13598. #done
  13599. SDL_CFLAGS="$BASE_CFLAGS"
  13600. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13601. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13602. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13603. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13604. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13605. find_lib()
  13606. {
  13607. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13608. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13609. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13610. if test "$cross_compiling" = yes; then
  13611. host_lib_path=""
  13612. else
  13613. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13614. fi
  13615. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13616. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13617. if test x$lib != x; then
  13618. echo $lib
  13619. return
  13620. fi
  13621. done
  13622. }
  13623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13624. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13625. if ${ac_cv_c_const+:} false; then :
  13626. $as_echo_n "(cached) " >&6
  13627. else
  13628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13629. /* end confdefs.h. */
  13630. int
  13631. main ()
  13632. {
  13633. #ifndef __cplusplus
  13634. /* Ultrix mips cc rejects this sort of thing. */
  13635. typedef int charset[2];
  13636. const charset cs = { 0, 0 };
  13637. /* SunOS 4.1.1 cc rejects this. */
  13638. char const *const *pcpcc;
  13639. char **ppc;
  13640. /* NEC SVR4.0.2 mips cc rejects this. */
  13641. struct point {int x, y;};
  13642. static struct point const zero = {0,0};
  13643. /* AIX XL C 1.02.0.0 rejects this.
  13644. It does not let you subtract one const X* pointer from another in
  13645. an arm of an if-expression whose if-part is not a constant
  13646. expression */
  13647. const char *g = "string";
  13648. pcpcc = &g + (g ? g-g : 0);
  13649. /* HPUX 7.0 cc rejects these. */
  13650. ++pcpcc;
  13651. ppc = (char**) pcpcc;
  13652. pcpcc = (char const *const *) ppc;
  13653. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13654. char tx;
  13655. char *t = &tx;
  13656. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13657. *t++ = 0;
  13658. if (s) return 0;
  13659. }
  13660. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13661. int x[] = {25, 17};
  13662. const int *foo = &x[0];
  13663. ++foo;
  13664. }
  13665. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13666. typedef const int *iptr;
  13667. iptr p = 0;
  13668. ++p;
  13669. }
  13670. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13671. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13672. struct s { int j; const int *ap[3]; } bx;
  13673. struct s *b = &bx; b->j = 5;
  13674. }
  13675. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13676. const int foo = 10;
  13677. if (!foo) return 0;
  13678. }
  13679. return !cs[0] && !zero.x;
  13680. #endif
  13681. ;
  13682. return 0;
  13683. }
  13684. _ACEOF
  13685. if ac_fn_c_try_compile "$LINENO"; then :
  13686. ac_cv_c_const=yes
  13687. else
  13688. ac_cv_c_const=no
  13689. fi
  13690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13691. fi
  13692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13693. $as_echo "$ac_cv_c_const" >&6; }
  13694. if test $ac_cv_c_const = no; then
  13695. $as_echo "#define const /**/" >>confdefs.h
  13696. fi
  13697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13698. $as_echo_n "checking for inline... " >&6; }
  13699. if ${ac_cv_c_inline+:} false; then :
  13700. $as_echo_n "(cached) " >&6
  13701. else
  13702. ac_cv_c_inline=no
  13703. for ac_kw in inline __inline__ __inline; do
  13704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13705. /* end confdefs.h. */
  13706. #ifndef __cplusplus
  13707. typedef int foo_t;
  13708. static $ac_kw foo_t static_foo () {return 0; }
  13709. $ac_kw foo_t foo () {return 0; }
  13710. #endif
  13711. _ACEOF
  13712. if ac_fn_c_try_compile "$LINENO"; then :
  13713. ac_cv_c_inline=$ac_kw
  13714. fi
  13715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13716. test "$ac_cv_c_inline" != no && break
  13717. done
  13718. fi
  13719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13720. $as_echo "$ac_cv_c_inline" >&6; }
  13721. case $ac_cv_c_inline in
  13722. inline | yes) ;;
  13723. *)
  13724. case $ac_cv_c_inline in
  13725. no) ac_val=;;
  13726. *) ac_val=$ac_cv_c_inline;;
  13727. esac
  13728. cat >>confdefs.h <<_ACEOF
  13729. #ifndef __cplusplus
  13730. #define inline $ac_val
  13731. #endif
  13732. _ACEOF
  13733. ;;
  13734. esac
  13735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13736. $as_echo_n "checking for working volatile... " >&6; }
  13737. if ${ac_cv_c_volatile+:} false; then :
  13738. $as_echo_n "(cached) " >&6
  13739. else
  13740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13741. /* end confdefs.h. */
  13742. int
  13743. main ()
  13744. {
  13745. volatile int x;
  13746. int * volatile y = (int *) 0;
  13747. return !x && !y;
  13748. ;
  13749. return 0;
  13750. }
  13751. _ACEOF
  13752. if ac_fn_c_try_compile "$LINENO"; then :
  13753. ac_cv_c_volatile=yes
  13754. else
  13755. ac_cv_c_volatile=no
  13756. fi
  13757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13758. fi
  13759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13760. $as_echo "$ac_cv_c_volatile" >&6; }
  13761. if test $ac_cv_c_volatile = no; then
  13762. $as_echo "#define volatile /**/" >>confdefs.h
  13763. fi
  13764. # Check whether --enable-assertions was given.
  13765. if test "${enable_assertions+set}" = set; then :
  13766. enableval=$enable_assertions;
  13767. else
  13768. enable_assertions=auto
  13769. fi
  13770. case "$enable_assertions" in
  13771. auto) # Use optimization settings to determine assertion level
  13772. ;;
  13773. disabled)
  13774. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13775. ;;
  13776. release)
  13777. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13778. ;;
  13779. enabled)
  13780. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13781. ;;
  13782. paranoid)
  13783. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13784. ;;
  13785. *)
  13786. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13787. ;;
  13788. esac
  13789. # Check whether --enable-dependency-tracking was given.
  13790. if test "${enable_dependency_tracking+set}" = set; then :
  13791. enableval=$enable_dependency_tracking;
  13792. else
  13793. enable_dependency_tracking=yes
  13794. fi
  13795. if test x$enable_dependency_tracking = xyes; then
  13796. have_gcc_mmd_mt=no
  13797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13798. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13800. /* end confdefs.h. */
  13801. #if !defined(__GNUC__) || __GNUC__ < 3
  13802. #error Dependency tracking requires GCC 3.0 or newer
  13803. #endif
  13804. int
  13805. main ()
  13806. {
  13807. ;
  13808. return 0;
  13809. }
  13810. _ACEOF
  13811. if ac_fn_c_try_compile "$LINENO"; then :
  13812. have_gcc_mmd_mt=yes
  13813. fi
  13814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13816. $as_echo "$have_gcc_mmd_mt" >&6; }
  13817. if test x$have_gcc_mmd_mt = xyes; then
  13818. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13819. fi
  13820. fi
  13821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13822. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13823. have_no_undefined=no
  13824. case "$host" in
  13825. *-*-openbsd*)
  13826. ;;
  13827. *)
  13828. save_LDFLAGS="$LDFLAGS"
  13829. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13831. /* end confdefs.h. */
  13832. int
  13833. main ()
  13834. {
  13835. ;
  13836. return 0;
  13837. }
  13838. _ACEOF
  13839. if ac_fn_c_try_link "$LINENO"; then :
  13840. have_no_undefined=yes
  13841. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13842. fi
  13843. rm -f core conftest.err conftest.$ac_objext \
  13844. conftest$ac_exeext conftest.$ac_ext
  13845. LDFLAGS="$save_LDFLAGS"
  13846. ;;
  13847. esac
  13848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13849. $as_echo "$have_no_undefined" >&6; }
  13850. # Check whether --enable-libc was given.
  13851. if test "${enable_libc+set}" = set; then :
  13852. enableval=$enable_libc;
  13853. else
  13854. enable_libc=yes
  13855. fi
  13856. if test x$enable_libc = xyes; then
  13857. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13859. $as_echo_n "checking for ANSI C header files... " >&6; }
  13860. if ${ac_cv_header_stdc+:} false; then :
  13861. $as_echo_n "(cached) " >&6
  13862. else
  13863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13864. /* end confdefs.h. */
  13865. #include <stdlib.h>
  13866. #include <stdarg.h>
  13867. #include <string.h>
  13868. #include <float.h>
  13869. int
  13870. main ()
  13871. {
  13872. ;
  13873. return 0;
  13874. }
  13875. _ACEOF
  13876. if ac_fn_c_try_compile "$LINENO"; then :
  13877. ac_cv_header_stdc=yes
  13878. else
  13879. ac_cv_header_stdc=no
  13880. fi
  13881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13882. if test $ac_cv_header_stdc = yes; then
  13883. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13885. /* end confdefs.h. */
  13886. #include <string.h>
  13887. _ACEOF
  13888. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13889. $EGREP "memchr" >/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. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13898. /* end confdefs.h. */
  13899. #include <stdlib.h>
  13900. _ACEOF
  13901. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13902. $EGREP "free" >/dev/null 2>&1; then :
  13903. else
  13904. ac_cv_header_stdc=no
  13905. fi
  13906. rm -f conftest*
  13907. fi
  13908. if test $ac_cv_header_stdc = yes; then
  13909. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13910. if test "$cross_compiling" = yes; then :
  13911. :
  13912. else
  13913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13914. /* end confdefs.h. */
  13915. #include <ctype.h>
  13916. #include <stdlib.h>
  13917. #if ((' ' & 0x0FF) == 0x020)
  13918. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13919. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13920. #else
  13921. # define ISLOWER(c) \
  13922. (('a' <= (c) && (c) <= 'i') \
  13923. || ('j' <= (c) && (c) <= 'r') \
  13924. || ('s' <= (c) && (c) <= 'z'))
  13925. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13926. #endif
  13927. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13928. int
  13929. main ()
  13930. {
  13931. int i;
  13932. for (i = 0; i < 256; i++)
  13933. if (XOR (islower (i), ISLOWER (i))
  13934. || toupper (i) != TOUPPER (i))
  13935. return 2;
  13936. return 0;
  13937. }
  13938. _ACEOF
  13939. if ac_fn_c_try_run "$LINENO"; then :
  13940. else
  13941. ac_cv_header_stdc=no
  13942. fi
  13943. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13944. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13945. fi
  13946. fi
  13947. fi
  13948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13949. $as_echo "$ac_cv_header_stdc" >&6; }
  13950. if test $ac_cv_header_stdc = yes; then
  13951. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13952. fi
  13953. 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
  13954. do :
  13955. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13956. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13957. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13958. cat >>confdefs.h <<_ACEOF
  13959. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13960. _ACEOF
  13961. fi
  13962. done
  13963. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13964. if test "x$ac_cv_type_size_t" = xyes; then :
  13965. else
  13966. cat >>confdefs.h <<_ACEOF
  13967. #define size_t unsigned int
  13968. _ACEOF
  13969. fi
  13970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13971. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13972. if ${ac_cv_define_M_PI+:} false; then :
  13973. $as_echo_n "(cached) " >&6
  13974. else
  13975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13976. /* end confdefs.h. */
  13977. #include <math.h>
  13978. #ifdef M_PI
  13979. YES_IS_DEFINED
  13980. #endif
  13981. _ACEOF
  13982. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13983. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13984. ac_cv_define_M_PI=yes
  13985. else
  13986. ac_cv_define_M_PI=no
  13987. fi
  13988. rm -f conftest*
  13989. fi
  13990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  13991. $as_echo "$ac_cv_define_M_PI" >&6; }
  13992. if test "$ac_cv_define_M_PI" = "yes" ; then
  13993. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  13994. fi
  13995. case "$host" in
  13996. *-*-cygwin* | *-*-mingw32*)
  13997. ;;
  13998. *)
  13999. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14000. # for constant arguments. Useless!
  14001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14002. $as_echo_n "checking for working alloca.h... " >&6; }
  14003. if ${ac_cv_working_alloca_h+:} false; then :
  14004. $as_echo_n "(cached) " >&6
  14005. else
  14006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14007. /* end confdefs.h. */
  14008. #include <alloca.h>
  14009. int
  14010. main ()
  14011. {
  14012. char *p = (char *) alloca (2 * sizeof (int));
  14013. if (p) return 0;
  14014. ;
  14015. return 0;
  14016. }
  14017. _ACEOF
  14018. if ac_fn_c_try_link "$LINENO"; then :
  14019. ac_cv_working_alloca_h=yes
  14020. else
  14021. ac_cv_working_alloca_h=no
  14022. fi
  14023. rm -f core conftest.err conftest.$ac_objext \
  14024. conftest$ac_exeext conftest.$ac_ext
  14025. fi
  14026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14027. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14028. if test $ac_cv_working_alloca_h = yes; then
  14029. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14030. fi
  14031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14032. $as_echo_n "checking for alloca... " >&6; }
  14033. if ${ac_cv_func_alloca_works+:} false; then :
  14034. $as_echo_n "(cached) " >&6
  14035. else
  14036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14037. /* end confdefs.h. */
  14038. #ifdef __GNUC__
  14039. # define alloca __builtin_alloca
  14040. #else
  14041. # ifdef _MSC_VER
  14042. # include <malloc.h>
  14043. # define alloca _alloca
  14044. # else
  14045. # ifdef HAVE_ALLOCA_H
  14046. # include <alloca.h>
  14047. # else
  14048. # ifdef _AIX
  14049. #pragma alloca
  14050. # else
  14051. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14052. void *alloca (size_t);
  14053. # endif
  14054. # endif
  14055. # endif
  14056. # endif
  14057. #endif
  14058. int
  14059. main ()
  14060. {
  14061. char *p = (char *) alloca (1);
  14062. if (p) return 0;
  14063. ;
  14064. return 0;
  14065. }
  14066. _ACEOF
  14067. if ac_fn_c_try_link "$LINENO"; then :
  14068. ac_cv_func_alloca_works=yes
  14069. else
  14070. ac_cv_func_alloca_works=no
  14071. fi
  14072. rm -f core conftest.err conftest.$ac_objext \
  14073. conftest$ac_exeext conftest.$ac_ext
  14074. fi
  14075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14076. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14077. if test $ac_cv_func_alloca_works = yes; then
  14078. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14079. else
  14080. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14081. # that cause trouble. Some versions do not even contain alloca or
  14082. # contain a buggy version. If you still want to use their alloca,
  14083. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14084. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14085. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14087. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14088. if ${ac_cv_os_cray+:} false; then :
  14089. $as_echo_n "(cached) " >&6
  14090. else
  14091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14092. /* end confdefs.h. */
  14093. #if defined CRAY && ! defined CRAY2
  14094. webecray
  14095. #else
  14096. wenotbecray
  14097. #endif
  14098. _ACEOF
  14099. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14100. $EGREP "webecray" >/dev/null 2>&1; then :
  14101. ac_cv_os_cray=yes
  14102. else
  14103. ac_cv_os_cray=no
  14104. fi
  14105. rm -f conftest*
  14106. fi
  14107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14108. $as_echo "$ac_cv_os_cray" >&6; }
  14109. if test $ac_cv_os_cray = yes; then
  14110. for ac_func in _getb67 GETB67 getb67; do
  14111. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14112. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14113. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14114. cat >>confdefs.h <<_ACEOF
  14115. #define CRAY_STACKSEG_END $ac_func
  14116. _ACEOF
  14117. break
  14118. fi
  14119. done
  14120. fi
  14121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14122. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14123. if ${ac_cv_c_stack_direction+:} false; then :
  14124. $as_echo_n "(cached) " >&6
  14125. else
  14126. if test "$cross_compiling" = yes; then :
  14127. ac_cv_c_stack_direction=0
  14128. else
  14129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14130. /* end confdefs.h. */
  14131. $ac_includes_default
  14132. int
  14133. find_stack_direction (int *addr, int depth)
  14134. {
  14135. int dir, dummy = 0;
  14136. if (! addr)
  14137. addr = &dummy;
  14138. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14139. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14140. return dir + dummy;
  14141. }
  14142. int
  14143. main (int argc, char **argv)
  14144. {
  14145. return find_stack_direction (0, argc + !argv + 20) < 0;
  14146. }
  14147. _ACEOF
  14148. if ac_fn_c_try_run "$LINENO"; then :
  14149. ac_cv_c_stack_direction=1
  14150. else
  14151. ac_cv_c_stack_direction=-1
  14152. fi
  14153. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14154. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14155. fi
  14156. fi
  14157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14158. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14159. cat >>confdefs.h <<_ACEOF
  14160. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14161. _ACEOF
  14162. fi
  14163. ;;
  14164. esac
  14165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14166. $as_echo_n "checking for working memcmp... " >&6; }
  14167. if ${ac_cv_func_memcmp_working+:} false; then :
  14168. $as_echo_n "(cached) " >&6
  14169. else
  14170. if test "$cross_compiling" = yes; then :
  14171. ac_cv_func_memcmp_working=no
  14172. else
  14173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14174. /* end confdefs.h. */
  14175. $ac_includes_default
  14176. int
  14177. main ()
  14178. {
  14179. /* Some versions of memcmp are not 8-bit clean. */
  14180. char c0 = '\100', c1 = '\200', c2 = '\201';
  14181. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14182. return 1;
  14183. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14184. or more and with at least one buffer not starting on a 4-byte boundary.
  14185. William Lewis provided this test program. */
  14186. {
  14187. char foo[21];
  14188. char bar[21];
  14189. int i;
  14190. for (i = 0; i < 4; i++)
  14191. {
  14192. char *a = foo + i;
  14193. char *b = bar + i;
  14194. strcpy (a, "--------01111111");
  14195. strcpy (b, "--------10000000");
  14196. if (memcmp (a, b, 16) >= 0)
  14197. return 1;
  14198. }
  14199. return 0;
  14200. }
  14201. ;
  14202. return 0;
  14203. }
  14204. _ACEOF
  14205. if ac_fn_c_try_run "$LINENO"; then :
  14206. ac_cv_func_memcmp_working=yes
  14207. else
  14208. ac_cv_func_memcmp_working=no
  14209. fi
  14210. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14211. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14212. fi
  14213. fi
  14214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14215. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14216. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14217. *" memcmp.$ac_objext "* ) ;;
  14218. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14219. ;;
  14220. esac
  14221. if test x$ac_cv_func_memcmp_working = xyes; then
  14222. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14223. fi
  14224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14225. $as_echo_n "checking for working strtod... " >&6; }
  14226. if ${ac_cv_func_strtod+:} false; then :
  14227. $as_echo_n "(cached) " >&6
  14228. else
  14229. if test "$cross_compiling" = yes; then :
  14230. ac_cv_func_strtod=no
  14231. else
  14232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14233. /* end confdefs.h. */
  14234. $ac_includes_default
  14235. #ifndef strtod
  14236. double strtod ();
  14237. #endif
  14238. int
  14239. main()
  14240. {
  14241. {
  14242. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14243. char *string = " +69";
  14244. char *term;
  14245. double value;
  14246. value = strtod (string, &term);
  14247. if (value != 69 || term != (string + 4))
  14248. return 1;
  14249. }
  14250. {
  14251. /* Under Solaris 2.4, strtod returns the wrong value for the
  14252. terminating character under some conditions. */
  14253. char *string = "NaN";
  14254. char *term;
  14255. strtod (string, &term);
  14256. if (term != string && *(term - 1) == 0)
  14257. return 1;
  14258. }
  14259. return 0;
  14260. }
  14261. _ACEOF
  14262. if ac_fn_c_try_run "$LINENO"; then :
  14263. ac_cv_func_strtod=yes
  14264. else
  14265. ac_cv_func_strtod=no
  14266. fi
  14267. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14268. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14269. fi
  14270. fi
  14271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14272. $as_echo "$ac_cv_func_strtod" >&6; }
  14273. if test $ac_cv_func_strtod = no; then
  14274. case " $LIBOBJS " in
  14275. *" strtod.$ac_objext "* ) ;;
  14276. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14277. ;;
  14278. esac
  14279. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14280. if test "x$ac_cv_func_pow" = xyes; then :
  14281. fi
  14282. if test $ac_cv_func_pow = no; then
  14283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14284. $as_echo_n "checking for pow in -lm... " >&6; }
  14285. if ${ac_cv_lib_m_pow+:} false; then :
  14286. $as_echo_n "(cached) " >&6
  14287. else
  14288. ac_check_lib_save_LIBS=$LIBS
  14289. LIBS="-lm $LIBS"
  14290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14291. /* end confdefs.h. */
  14292. /* Override any GCC internal prototype to avoid an error.
  14293. Use char because int might match the return type of a GCC
  14294. builtin and then its argument prototype would still apply. */
  14295. #ifdef __cplusplus
  14296. extern "C"
  14297. #endif
  14298. char pow ();
  14299. int
  14300. main ()
  14301. {
  14302. return pow ();
  14303. ;
  14304. return 0;
  14305. }
  14306. _ACEOF
  14307. if ac_fn_c_try_link "$LINENO"; then :
  14308. ac_cv_lib_m_pow=yes
  14309. else
  14310. ac_cv_lib_m_pow=no
  14311. fi
  14312. rm -f core conftest.err conftest.$ac_objext \
  14313. conftest$ac_exeext conftest.$ac_ext
  14314. LIBS=$ac_check_lib_save_LIBS
  14315. fi
  14316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14317. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14318. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14319. POW_LIB=-lm
  14320. else
  14321. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14322. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14323. fi
  14324. fi
  14325. fi
  14326. if test x$ac_cv_func_strtod = xyes; then
  14327. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14328. fi
  14329. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14330. if test "x$ac_cv_func_mprotect" = xyes; then :
  14331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14332. /* end confdefs.h. */
  14333. #include <sys/types.h>
  14334. #include <sys/mman.h>
  14335. int
  14336. main ()
  14337. {
  14338. ;
  14339. return 0;
  14340. }
  14341. _ACEOF
  14342. if ac_fn_c_try_compile "$LINENO"; then :
  14343. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14344. fi
  14345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14346. fi
  14347. 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 getauxval
  14348. do :
  14349. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14350. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14351. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14352. cat >>confdefs.h <<_ACEOF
  14353. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14354. _ACEOF
  14355. fi
  14356. done
  14357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14358. $as_echo_n "checking for pow in -lm... " >&6; }
  14359. if ${ac_cv_lib_m_pow+:} false; then :
  14360. $as_echo_n "(cached) " >&6
  14361. else
  14362. ac_check_lib_save_LIBS=$LIBS
  14363. LIBS="-lm $LIBS"
  14364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14365. /* end confdefs.h. */
  14366. /* Override any GCC internal prototype to avoid an error.
  14367. Use char because int might match the return type of a GCC
  14368. builtin and then its argument prototype would still apply. */
  14369. #ifdef __cplusplus
  14370. extern "C"
  14371. #endif
  14372. char pow ();
  14373. int
  14374. main ()
  14375. {
  14376. return pow ();
  14377. ;
  14378. return 0;
  14379. }
  14380. _ACEOF
  14381. if ac_fn_c_try_link "$LINENO"; then :
  14382. ac_cv_lib_m_pow=yes
  14383. else
  14384. ac_cv_lib_m_pow=no
  14385. fi
  14386. rm -f core conftest.err conftest.$ac_objext \
  14387. conftest$ac_exeext conftest.$ac_ext
  14388. LIBS=$ac_check_lib_save_LIBS
  14389. fi
  14390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14391. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14392. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14393. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14394. fi
  14395. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
  14396. do :
  14397. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14398. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14399. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14400. cat >>confdefs.h <<_ACEOF
  14401. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14402. _ACEOF
  14403. fi
  14404. done
  14405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14406. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14407. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14408. $as_echo_n "(cached) " >&6
  14409. else
  14410. ac_check_lib_save_LIBS=$LIBS
  14411. LIBS="-liconv $LIBS"
  14412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14413. /* end confdefs.h. */
  14414. /* Override any GCC internal prototype to avoid an error.
  14415. Use char because int might match the return type of a GCC
  14416. builtin and then its argument prototype would still apply. */
  14417. #ifdef __cplusplus
  14418. extern "C"
  14419. #endif
  14420. char iconv_open ();
  14421. int
  14422. main ()
  14423. {
  14424. return iconv_open ();
  14425. ;
  14426. return 0;
  14427. }
  14428. _ACEOF
  14429. if ac_fn_c_try_link "$LINENO"; then :
  14430. ac_cv_lib_iconv_iconv_open=yes
  14431. else
  14432. ac_cv_lib_iconv_iconv_open=no
  14433. fi
  14434. rm -f core conftest.err conftest.$ac_objext \
  14435. conftest$ac_exeext conftest.$ac_ext
  14436. LIBS=$ac_check_lib_save_LIBS
  14437. fi
  14438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14439. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14440. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14441. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14442. fi
  14443. for ac_func in iconv
  14444. do :
  14445. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14446. if test "x$ac_cv_func_iconv" = xyes; then :
  14447. cat >>confdefs.h <<_ACEOF
  14448. #define HAVE_ICONV 1
  14449. _ACEOF
  14450. fi
  14451. done
  14452. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14453. "
  14454. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14455. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14456. fi
  14457. fi
  14458. # Check whether --enable-gcc-atomics was given.
  14459. if test "${enable_gcc_atomics+set}" = set; then :
  14460. enableval=$enable_gcc_atomics;
  14461. else
  14462. enable_gcc_atomics=yes
  14463. fi
  14464. if test x$enable_gcc_atomics = xyes; then
  14465. have_gcc_atomics=no
  14466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14467. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14469. /* end confdefs.h. */
  14470. int
  14471. main ()
  14472. {
  14473. int a;
  14474. void *x, *y, *z;
  14475. __sync_lock_test_and_set(&a, 4);
  14476. __sync_lock_test_and_set(&x, y);
  14477. __sync_fetch_and_add(&a, 1);
  14478. __sync_bool_compare_and_swap(&a, 5, 10);
  14479. __sync_bool_compare_and_swap(&x, y, z);
  14480. ;
  14481. return 0;
  14482. }
  14483. _ACEOF
  14484. if ac_fn_c_try_link "$LINENO"; then :
  14485. have_gcc_atomics=yes
  14486. fi
  14487. rm -f core conftest.err conftest.$ac_objext \
  14488. conftest$ac_exeext conftest.$ac_ext
  14489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14490. $as_echo "$have_gcc_atomics" >&6; }
  14491. if test x$have_gcc_atomics = xyes; then
  14492. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14493. else
  14494. # See if we have the minimum operation needed for GCC atomics
  14495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14496. /* end confdefs.h. */
  14497. int
  14498. main ()
  14499. {
  14500. int a;
  14501. __sync_lock_test_and_set(&a, 1);
  14502. __sync_lock_release(&a);
  14503. ;
  14504. return 0;
  14505. }
  14506. _ACEOF
  14507. if ac_fn_c_try_link "$LINENO"; then :
  14508. have_gcc_sync_lock_test_and_set=yes
  14509. fi
  14510. rm -f core conftest.err conftest.$ac_objext \
  14511. conftest$ac_exeext conftest.$ac_ext
  14512. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14513. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14514. fi
  14515. fi
  14516. fi
  14517. # Standard C sources
  14518. SOURCES="$SOURCES $srcdir/src/*.c"
  14519. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14520. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14521. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14522. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14523. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14524. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14525. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14526. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14527. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14528. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14529. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14530. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14531. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14532. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14533. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14534. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14535. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14536. # Check whether --enable-atomic was given.
  14537. if test "${enable_atomic+set}" = set; then :
  14538. enableval=$enable_atomic;
  14539. else
  14540. enable_atomic=yes
  14541. fi
  14542. if test x$enable_atomic != xyes; then
  14543. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14544. else
  14545. SUMMARY_modules="${SUMMARY_modules} atomic"
  14546. fi
  14547. # Check whether --enable-audio was given.
  14548. if test "${enable_audio+set}" = set; then :
  14549. enableval=$enable_audio;
  14550. else
  14551. enable_audio=yes
  14552. fi
  14553. if test x$enable_audio != xyes; then
  14554. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14555. else
  14556. SUMMARY_modules="${SUMMARY_modules} audio"
  14557. fi
  14558. # Check whether --enable-video was given.
  14559. if test "${enable_video+set}" = set; then :
  14560. enableval=$enable_video;
  14561. else
  14562. enable_video=yes
  14563. fi
  14564. if test x$enable_video != xyes; then
  14565. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14566. else
  14567. SUMMARY_modules="${SUMMARY_modules} video"
  14568. fi
  14569. # Check whether --enable-render was given.
  14570. if test "${enable_render+set}" = set; then :
  14571. enableval=$enable_render;
  14572. else
  14573. enable_render=yes
  14574. fi
  14575. if test x$enable_render != xyes; then
  14576. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14577. else
  14578. SUMMARY_modules="${SUMMARY_modules} render"
  14579. fi
  14580. # Check whether --enable-events was given.
  14581. if test "${enable_events+set}" = set; then :
  14582. enableval=$enable_events;
  14583. else
  14584. enable_events=yes
  14585. fi
  14586. if test x$enable_events != xyes; then
  14587. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14588. else
  14589. SUMMARY_modules="${SUMMARY_modules} events"
  14590. fi
  14591. # Check whether --enable-joystick was given.
  14592. if test "${enable_joystick+set}" = set; then :
  14593. enableval=$enable_joystick;
  14594. else
  14595. enable_joystick=yes
  14596. fi
  14597. if test x$enable_joystick != xyes; then
  14598. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14599. else
  14600. SUMMARY_modules="${SUMMARY_modules} joystick"
  14601. fi
  14602. # Check whether --enable-haptic was given.
  14603. if test "${enable_haptic+set}" = set; then :
  14604. enableval=$enable_haptic;
  14605. else
  14606. enable_haptic=yes
  14607. fi
  14608. if test x$enable_haptic != xyes; then
  14609. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14610. else
  14611. SUMMARY_modules="${SUMMARY_modules} haptic"
  14612. fi
  14613. # Check whether --enable-power was given.
  14614. if test "${enable_power+set}" = set; then :
  14615. enableval=$enable_power;
  14616. else
  14617. enable_power=yes
  14618. fi
  14619. if test x$enable_power != xyes; then
  14620. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14621. else
  14622. SUMMARY_modules="${SUMMARY_modules} power"
  14623. fi
  14624. # Check whether --enable-filesystem was given.
  14625. if test "${enable_filesystem+set}" = set; then :
  14626. enableval=$enable_filesystem;
  14627. else
  14628. enable_filesystem=yes
  14629. fi
  14630. if test x$enable_filesystem != xyes; then
  14631. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14632. else
  14633. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14634. fi
  14635. # Check whether --enable-threads was given.
  14636. if test "${enable_threads+set}" = set; then :
  14637. enableval=$enable_threads;
  14638. else
  14639. enable_threads=yes
  14640. fi
  14641. if test x$enable_threads != xyes; then
  14642. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14643. else
  14644. SUMMARY_modules="${SUMMARY_modules} threads"
  14645. fi
  14646. # Check whether --enable-timers was given.
  14647. if test "${enable_timers+set}" = set; then :
  14648. enableval=$enable_timers;
  14649. else
  14650. enable_timers=yes
  14651. fi
  14652. if test x$enable_timers != xyes; then
  14653. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14654. else
  14655. SUMMARY_modules="${SUMMARY_modules} timers"
  14656. fi
  14657. # Check whether --enable-file was given.
  14658. if test "${enable_file+set}" = set; then :
  14659. enableval=$enable_file;
  14660. else
  14661. enable_file=yes
  14662. fi
  14663. if test x$enable_file != xyes; then
  14664. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14665. else
  14666. SUMMARY_modules="${SUMMARY_modules} file"
  14667. fi
  14668. # Check whether --enable-loadso was given.
  14669. if test "${enable_loadso+set}" = set; then :
  14670. enableval=$enable_loadso;
  14671. else
  14672. enable_loadso=yes
  14673. fi
  14674. if test x$enable_loadso != xyes; then
  14675. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14676. else
  14677. SUMMARY_modules="${SUMMARY_modules} loadso"
  14678. fi
  14679. # Check whether --enable-cpuinfo was given.
  14680. if test "${enable_cpuinfo+set}" = set; then :
  14681. enableval=$enable_cpuinfo;
  14682. else
  14683. enable_cpuinfo=yes
  14684. fi
  14685. if test x$enable_cpuinfo != xyes; then
  14686. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14687. else
  14688. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14689. fi
  14690. # Check whether --enable-assembly was given.
  14691. if test "${enable_assembly+set}" = set; then :
  14692. enableval=$enable_assembly;
  14693. else
  14694. enable_assembly=yes
  14695. fi
  14696. if test x$enable_assembly = xyes; then
  14697. SUMMARY_modules="${SUMMARY_modules} assembly"
  14698. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14699. # Make sure that we don't generate floating point code that would
  14700. # cause illegal instruction exceptions on older processors
  14701. case "$host" in
  14702. *-*-darwin*)
  14703. # Don't need to worry about Apple hardware, it's all SSE capable
  14704. default_ssemath=yes
  14705. ;;
  14706. *64-*-*)
  14707. # x86 64-bit architectures all have SSE instructions
  14708. default_ssemath=yes
  14709. ;;
  14710. *)
  14711. default_ssemath=no
  14712. ;;
  14713. esac
  14714. # Check whether --enable-ssemath was given.
  14715. if test "${enable_ssemath+set}" = set; then :
  14716. enableval=$enable_ssemath;
  14717. else
  14718. enable_ssemath=$default_ssemath
  14719. fi
  14720. if test x$enable_ssemath = xno; then
  14721. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
  14722. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14723. fi
  14724. fi
  14725. # Check whether --enable-mmx was given.
  14726. if test "${enable_mmx+set}" = set; then :
  14727. enableval=$enable_mmx;
  14728. else
  14729. enable_mmx=yes
  14730. fi
  14731. if test x$enable_mmx = xyes; then
  14732. save_CFLAGS="$CFLAGS"
  14733. have_gcc_mmx=no
  14734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14735. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14736. mmx_CFLAGS="-mmmx"
  14737. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14739. /* end confdefs.h. */
  14740. #ifdef __MINGW32__
  14741. #include <_mingw.h>
  14742. #ifdef __MINGW64_VERSION_MAJOR
  14743. #include <intrin.h>
  14744. #else
  14745. #include <mmintrin.h>
  14746. #endif
  14747. #else
  14748. #include <mmintrin.h>
  14749. #endif
  14750. #ifndef __MMX__
  14751. #error Assembler CPP flag not enabled
  14752. #endif
  14753. int
  14754. main ()
  14755. {
  14756. ;
  14757. return 0;
  14758. }
  14759. _ACEOF
  14760. if ac_fn_c_try_compile "$LINENO"; then :
  14761. have_gcc_mmx=yes
  14762. fi
  14763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14765. $as_echo "$have_gcc_mmx" >&6; }
  14766. CFLAGS="$save_CFLAGS"
  14767. if test x$have_gcc_mmx = xyes; then
  14768. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14769. SUMMARY_math="${SUMMARY_math} mmx"
  14770. fi
  14771. fi
  14772. # Check whether --enable-3dnow was given.
  14773. if test "${enable_3dnow+set}" = set; then :
  14774. enableval=$enable_3dnow;
  14775. else
  14776. enable_3dnow=yes
  14777. fi
  14778. if test x$enable_3dnow = xyes; then
  14779. save_CFLAGS="$CFLAGS"
  14780. have_gcc_3dnow=no
  14781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14782. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14783. amd3dnow_CFLAGS="-m3dnow"
  14784. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14786. /* end confdefs.h. */
  14787. #include <mm3dnow.h>
  14788. #ifndef __3dNOW__
  14789. #error Assembler CPP flag not enabled
  14790. #endif
  14791. int
  14792. main ()
  14793. {
  14794. void *p = 0;
  14795. _m_prefetch(p);
  14796. ;
  14797. return 0;
  14798. }
  14799. _ACEOF
  14800. if ac_fn_c_try_link "$LINENO"; then :
  14801. have_gcc_3dnow=yes
  14802. fi
  14803. rm -f core conftest.err conftest.$ac_objext \
  14804. conftest$ac_exeext conftest.$ac_ext
  14805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14806. $as_echo "$have_gcc_3dnow" >&6; }
  14807. CFLAGS="$save_CFLAGS"
  14808. if test x$have_gcc_3dnow = xyes; then
  14809. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14810. SUMMARY_math="${SUMMARY_math} 3dnow"
  14811. fi
  14812. fi
  14813. # Check whether --enable-sse was given.
  14814. if test "${enable_sse+set}" = set; then :
  14815. enableval=$enable_sse;
  14816. else
  14817. enable_sse=yes
  14818. fi
  14819. if test x$enable_sse = xyes; then
  14820. save_CFLAGS="$CFLAGS"
  14821. have_gcc_sse=no
  14822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14823. $as_echo_n "checking for GCC -msse option... " >&6; }
  14824. sse_CFLAGS="-msse"
  14825. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14827. /* end confdefs.h. */
  14828. #ifdef __MINGW32__
  14829. #include <_mingw.h>
  14830. #ifdef __MINGW64_VERSION_MAJOR
  14831. #include <intrin.h>
  14832. #else
  14833. #include <xmmintrin.h>
  14834. #endif
  14835. #else
  14836. #include <xmmintrin.h>
  14837. #endif
  14838. #ifndef __SSE__
  14839. #error Assembler CPP flag not enabled
  14840. #endif
  14841. int
  14842. main ()
  14843. {
  14844. ;
  14845. return 0;
  14846. }
  14847. _ACEOF
  14848. if ac_fn_c_try_compile "$LINENO"; then :
  14849. have_gcc_sse=yes
  14850. fi
  14851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14853. $as_echo "$have_gcc_sse" >&6; }
  14854. CFLAGS="$save_CFLAGS"
  14855. if test x$have_gcc_sse = xyes; then
  14856. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14857. SUMMARY_math="${SUMMARY_math} sse"
  14858. fi
  14859. fi
  14860. # Check whether --enable-sse2 was given.
  14861. if test "${enable_sse2+set}" = set; then :
  14862. enableval=$enable_sse2;
  14863. else
  14864. enable_sse2=$default_ssemath
  14865. fi
  14866. if test x$enable_sse2 = xyes; then
  14867. save_CFLAGS="$CFLAGS"
  14868. have_gcc_sse2=no
  14869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14870. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14871. sse2_CFLAGS="-msse2"
  14872. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14874. /* end confdefs.h. */
  14875. #ifdef __MINGW32__
  14876. #include <_mingw.h>
  14877. #ifdef __MINGW64_VERSION_MAJOR
  14878. #include <intrin.h>
  14879. #else
  14880. #include <emmintrin.h>
  14881. #endif
  14882. #else
  14883. #include <emmintrin.h>
  14884. #endif
  14885. #ifndef __SSE2__
  14886. #error Assembler CPP flag not enabled
  14887. #endif
  14888. int
  14889. main ()
  14890. {
  14891. ;
  14892. return 0;
  14893. }
  14894. _ACEOF
  14895. if ac_fn_c_try_compile "$LINENO"; then :
  14896. have_gcc_sse2=yes
  14897. fi
  14898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14900. $as_echo "$have_gcc_sse2" >&6; }
  14901. CFLAGS="$save_CFLAGS"
  14902. if test x$have_gcc_sse2 = xyes; then
  14903. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14904. SUMMARY_math="${SUMMARY_math} sse2"
  14905. fi
  14906. fi
  14907. # Check whether --enable-altivec was given.
  14908. if test "${enable_altivec+set}" = set; then :
  14909. enableval=$enable_altivec;
  14910. else
  14911. enable_altivec=yes
  14912. fi
  14913. if test x$enable_altivec = xyes; then
  14914. save_CFLAGS="$CFLAGS"
  14915. have_gcc_altivec=no
  14916. have_altivec_h_hdr=no
  14917. altivec_CFLAGS="-maltivec"
  14918. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14920. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14922. /* end confdefs.h. */
  14923. #include <altivec.h>
  14924. vector unsigned int vzero() {
  14925. return vec_splat_u32(0);
  14926. }
  14927. int
  14928. main ()
  14929. {
  14930. ;
  14931. return 0;
  14932. }
  14933. _ACEOF
  14934. if ac_fn_c_try_compile "$LINENO"; then :
  14935. have_gcc_altivec=yes
  14936. have_altivec_h_hdr=yes
  14937. fi
  14938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14940. $as_echo "$have_gcc_altivec" >&6; }
  14941. if test x$have_gcc_altivec = xno; then
  14942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  14943. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  14944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14945. /* end confdefs.h. */
  14946. vector unsigned int vzero() {
  14947. return vec_splat_u32(0);
  14948. }
  14949. int
  14950. main ()
  14951. {
  14952. ;
  14953. return 0;
  14954. }
  14955. _ACEOF
  14956. if ac_fn_c_try_compile "$LINENO"; then :
  14957. have_gcc_altivec=yes
  14958. fi
  14959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14961. $as_echo "$have_gcc_altivec" >&6; }
  14962. fi
  14963. if test x$have_gcc_altivec = xno; then
  14964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  14965. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  14966. altivec_CFLAGS="-faltivec"
  14967. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14969. /* end confdefs.h. */
  14970. #include <altivec.h>
  14971. vector unsigned int vzero() {
  14972. return vec_splat_u32(0);
  14973. }
  14974. int
  14975. main ()
  14976. {
  14977. ;
  14978. return 0;
  14979. }
  14980. _ACEOF
  14981. if ac_fn_c_try_compile "$LINENO"; then :
  14982. have_gcc_altivec=yes
  14983. have_altivec_h_hdr=yes
  14984. fi
  14985. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14987. $as_echo "$have_gcc_altivec" >&6; }
  14988. fi
  14989. if test x$have_gcc_altivec = xno; then
  14990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  14991. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  14992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14993. /* end confdefs.h. */
  14994. vector unsigned int vzero() {
  14995. return vec_splat_u32(0);
  14996. }
  14997. int
  14998. main ()
  14999. {
  15000. ;
  15001. return 0;
  15002. }
  15003. _ACEOF
  15004. if ac_fn_c_try_compile "$LINENO"; then :
  15005. have_gcc_altivec=yes
  15006. fi
  15007. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15009. $as_echo "$have_gcc_altivec" >&6; }
  15010. fi
  15011. CFLAGS="$save_CFLAGS"
  15012. if test x$have_gcc_altivec = xyes; then
  15013. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15014. if test x$have_altivec_h_hdr = xyes; then
  15015. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15016. fi
  15017. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15018. SUMMARY_math="${SUMMARY_math} altivec"
  15019. fi
  15020. fi
  15021. fi
  15022. CheckOSS()
  15023. {
  15024. # Check whether --enable-oss was given.
  15025. if test "${enable_oss+set}" = set; then :
  15026. enableval=$enable_oss;
  15027. else
  15028. enable_oss=maybe
  15029. fi
  15030. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15031. # use sndio instead. So on there, we default to disabled. You can force
  15032. # it on if you really want, though.
  15033. if test x$enable_oss = xmaybe; then
  15034. enable_oss=yes
  15035. case "$host" in
  15036. *-*-openbsd*)
  15037. enable_oss=no;;
  15038. esac
  15039. fi
  15040. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15042. $as_echo_n "checking for OSS audio support... " >&6; }
  15043. have_oss=no
  15044. if test x$have_oss != xyes; then
  15045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15046. /* end confdefs.h. */
  15047. #include <sys/soundcard.h>
  15048. int
  15049. main ()
  15050. {
  15051. int arg = SNDCTL_DSP_SETFRAGMENT;
  15052. ;
  15053. return 0;
  15054. }
  15055. _ACEOF
  15056. if ac_fn_c_try_compile "$LINENO"; then :
  15057. have_oss=yes
  15058. fi
  15059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15060. fi
  15061. if test x$have_oss != xyes; then
  15062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15063. /* end confdefs.h. */
  15064. #include <soundcard.h>
  15065. int
  15066. main ()
  15067. {
  15068. int arg = SNDCTL_DSP_SETFRAGMENT;
  15069. ;
  15070. return 0;
  15071. }
  15072. _ACEOF
  15073. if ac_fn_c_try_compile "$LINENO"; then :
  15074. have_oss=yes
  15075. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15076. fi
  15077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15078. fi
  15079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15080. $as_echo "$have_oss" >&6; }
  15081. if test x$have_oss = xyes; then
  15082. SUMMARY_audio="${SUMMARY_audio} oss"
  15083. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15084. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15085. have_audio=yes
  15086. # We may need to link with ossaudio emulation library
  15087. case "$host" in
  15088. *-*-openbsd*|*-*-netbsd*)
  15089. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15090. esac
  15091. fi
  15092. fi
  15093. }
  15094. CheckALSA()
  15095. {
  15096. # Check whether --enable-alsa was given.
  15097. if test "${enable_alsa+set}" = set; then :
  15098. enableval=$enable_alsa;
  15099. else
  15100. enable_alsa=yes
  15101. fi
  15102. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15103. alsa_save_CFLAGS="$CFLAGS"
  15104. alsa_save_LDFLAGS="$LDFLAGS"
  15105. alsa_save_LIBS="$LIBS"
  15106. alsa_found=yes
  15107. # Check whether --with-alsa-prefix was given.
  15108. if test "${with_alsa_prefix+set}" = set; then :
  15109. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15110. else
  15111. alsa_prefix=""
  15112. fi
  15113. # Check whether --with-alsa-inc-prefix was given.
  15114. if test "${with_alsa_inc_prefix+set}" = set; then :
  15115. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15116. else
  15117. alsa_inc_prefix=""
  15118. fi
  15119. # Check whether --enable-alsatest was given.
  15120. if test "${enable_alsatest+set}" = set; then :
  15121. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15122. else
  15123. enable_alsatest=yes
  15124. fi
  15125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15126. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15127. if test "$alsa_inc_prefix" != "" ; then
  15128. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15129. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15130. fi
  15131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15132. $as_echo "$ALSA_CFLAGS" >&6; }
  15133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15134. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15135. if test "$alsa_prefix" != "" ; then
  15136. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15137. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15138. fi
  15139. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15140. LIBS=`echo $LIBS | sed 's/-lm//'`
  15141. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15142. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15143. LIBS=`echo $LIBS | sed 's/ //'`
  15144. LIBS="$ALSA_LIBS $LIBS"
  15145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15146. $as_echo "$ALSA_LIBS" >&6; }
  15147. min_alsa_version=1.0.11
  15148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15149. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15150. no_alsa=""
  15151. alsa_min_major_version=`echo $min_alsa_version | \
  15152. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15153. alsa_min_minor_version=`echo $min_alsa_version | \
  15154. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15155. alsa_min_micro_version=`echo $min_alsa_version | \
  15156. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15157. ac_ext=c
  15158. ac_cpp='$CPP $CPPFLAGS'
  15159. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15160. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15161. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15163. /* end confdefs.h. */
  15164. #include <alsa/asoundlib.h>
  15165. int
  15166. main ()
  15167. {
  15168. /* ensure backward compatibility */
  15169. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15170. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15171. #endif
  15172. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15173. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15174. #endif
  15175. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15176. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15177. #endif
  15178. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15179. exit(0);
  15180. # else
  15181. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15182. # error not present
  15183. # endif
  15184. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15185. exit(0);
  15186. # else
  15187. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15188. # error not present
  15189. # endif
  15190. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15191. # error not present
  15192. # endif
  15193. # endif
  15194. # endif
  15195. exit(0);
  15196. ;
  15197. return 0;
  15198. }
  15199. _ACEOF
  15200. if ac_fn_c_try_compile "$LINENO"; then :
  15201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15202. $as_echo "found." >&6; }
  15203. else
  15204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15205. $as_echo "not present." >&6; }
  15206. alsa_found=no
  15207. fi
  15208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15209. ac_ext=c
  15210. ac_cpp='$CPP $CPPFLAGS'
  15211. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15212. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15213. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15214. if test "x$enable_alsatest" = "xyes"; then
  15215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15216. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15217. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15218. $as_echo_n "(cached) " >&6
  15219. else
  15220. ac_check_lib_save_LIBS=$LIBS
  15221. LIBS="-lasound $LIBS"
  15222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15223. /* end confdefs.h. */
  15224. /* Override any GCC internal prototype to avoid an error.
  15225. Use char because int might match the return type of a GCC
  15226. builtin and then its argument prototype would still apply. */
  15227. #ifdef __cplusplus
  15228. extern "C"
  15229. #endif
  15230. char snd_ctl_open ();
  15231. int
  15232. main ()
  15233. {
  15234. return snd_ctl_open ();
  15235. ;
  15236. return 0;
  15237. }
  15238. _ACEOF
  15239. if ac_fn_c_try_link "$LINENO"; then :
  15240. ac_cv_lib_asound_snd_ctl_open=yes
  15241. else
  15242. ac_cv_lib_asound_snd_ctl_open=no
  15243. fi
  15244. rm -f core conftest.err conftest.$ac_objext \
  15245. conftest$ac_exeext conftest.$ac_ext
  15246. LIBS=$ac_check_lib_save_LIBS
  15247. fi
  15248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15249. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15250. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15251. cat >>confdefs.h <<_ACEOF
  15252. #define HAVE_LIBASOUND 1
  15253. _ACEOF
  15254. LIBS="-lasound $LIBS"
  15255. else
  15256. alsa_found=no
  15257. fi
  15258. fi
  15259. if test "x$alsa_found" = "xyes" ; then
  15260. have_alsa=yes
  15261. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15262. LIBS=`echo $LIBS | sed 's/ //'`
  15263. LIBS="-lasound $LIBS"
  15264. fi
  15265. if test "x$alsa_found" = "xno" ; then
  15266. have_alsa=no
  15267. CFLAGS="$alsa_save_CFLAGS"
  15268. LDFLAGS="$alsa_save_LDFLAGS"
  15269. LIBS="$alsa_save_LIBS"
  15270. ALSA_CFLAGS=""
  15271. ALSA_LIBS=""
  15272. fi
  15273. # Restore all flags from before the ALSA detection runs
  15274. CFLAGS="$alsa_save_CFLAGS"
  15275. LDFLAGS="$alsa_save_LDFLAGS"
  15276. LIBS="$alsa_save_LIBS"
  15277. if test x$have_alsa = xyes; then
  15278. # Check whether --enable-alsa-shared was given.
  15279. if test "${enable_alsa_shared+set}" = set; then :
  15280. enableval=$enable_alsa_shared;
  15281. else
  15282. enable_alsa_shared=yes
  15283. fi
  15284. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15285. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15286. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15287. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15288. if test x$have_loadso != xyes && \
  15289. test x$enable_alsa_shared = xyes; then
  15290. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15291. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15292. fi
  15293. if test x$have_loadso = xyes && \
  15294. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15295. echo "-- dynamic libasound -> $alsa_lib"
  15296. cat >>confdefs.h <<_ACEOF
  15297. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15298. _ACEOF
  15299. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15300. else
  15301. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15302. SUMMARY_audio="${SUMMARY_audio} alsa"
  15303. fi
  15304. have_audio=yes
  15305. fi
  15306. fi
  15307. }
  15308. CheckESD()
  15309. {
  15310. # Check whether --enable-esd was given.
  15311. if test "${enable_esd+set}" = set; then :
  15312. enableval=$enable_esd;
  15313. else
  15314. enable_esd=yes
  15315. fi
  15316. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15317. # Check whether --with-esd-prefix was given.
  15318. if test "${with_esd_prefix+set}" = set; then :
  15319. withval=$with_esd_prefix; esd_prefix="$withval"
  15320. else
  15321. esd_prefix=""
  15322. fi
  15323. # Check whether --with-esd-exec-prefix was given.
  15324. if test "${with_esd_exec_prefix+set}" = set; then :
  15325. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15326. else
  15327. esd_exec_prefix=""
  15328. fi
  15329. # Check whether --enable-esdtest was given.
  15330. if test "${enable_esdtest+set}" = set; then :
  15331. enableval=$enable_esdtest;
  15332. else
  15333. enable_esdtest=yes
  15334. fi
  15335. if test x$esd_exec_prefix != x ; then
  15336. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15337. if test x${ESD_CONFIG+set} != xset ; then
  15338. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15339. fi
  15340. fi
  15341. if test x$esd_prefix != x ; then
  15342. esd_args="$esd_args --prefix=$esd_prefix"
  15343. if test x${ESD_CONFIG+set} != xset ; then
  15344. ESD_CONFIG=$esd_prefix/bin/esd-config
  15345. fi
  15346. fi
  15347. # Extract the first word of "esd-config", so it can be a program name with args.
  15348. set dummy esd-config; ac_word=$2
  15349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15350. $as_echo_n "checking for $ac_word... " >&6; }
  15351. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15352. $as_echo_n "(cached) " >&6
  15353. else
  15354. case $ESD_CONFIG in
  15355. [\\/]* | ?:[\\/]*)
  15356. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15357. ;;
  15358. *)
  15359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15360. for as_dir in $PATH
  15361. do
  15362. IFS=$as_save_IFS
  15363. test -z "$as_dir" && as_dir=.
  15364. for ac_exec_ext in '' $ac_executable_extensions; do
  15365. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15366. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15367. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15368. break 2
  15369. fi
  15370. done
  15371. done
  15372. IFS=$as_save_IFS
  15373. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15374. ;;
  15375. esac
  15376. fi
  15377. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15378. if test -n "$ESD_CONFIG"; then
  15379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15380. $as_echo "$ESD_CONFIG" >&6; }
  15381. else
  15382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15383. $as_echo "no" >&6; }
  15384. fi
  15385. min_esd_version=0.2.8
  15386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15387. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15388. no_esd=""
  15389. if test "$ESD_CONFIG" = "no" ; then
  15390. no_esd=yes
  15391. else
  15392. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15393. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15394. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15395. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15396. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15397. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15398. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15399. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15400. if test "x$enable_esdtest" = "xyes" ; then
  15401. ac_save_CFLAGS="$CFLAGS"
  15402. ac_save_LIBS="$LIBS"
  15403. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15404. LIBS="$LIBS $ESD_LIBS"
  15405. rm -f conf.esdtest
  15406. if test "$cross_compiling" = yes; then :
  15407. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15408. else
  15409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15410. /* end confdefs.h. */
  15411. #include <stdio.h>
  15412. #include <stdlib.h>
  15413. #include <string.h>
  15414. #include <esd.h>
  15415. char*
  15416. my_strdup (char *str)
  15417. {
  15418. char *new_str;
  15419. if (str)
  15420. {
  15421. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15422. strcpy (new_str, str);
  15423. }
  15424. else
  15425. new_str = NULL;
  15426. return new_str;
  15427. }
  15428. int main ()
  15429. {
  15430. int major, minor, micro;
  15431. char *tmp_version;
  15432. system ("touch conf.esdtest");
  15433. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15434. tmp_version = my_strdup("$min_esd_version");
  15435. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15436. printf("%s, bad version string\n", "$min_esd_version");
  15437. exit(1);
  15438. }
  15439. if (($esd_major_version > major) ||
  15440. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15441. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15442. {
  15443. return 0;
  15444. }
  15445. else
  15446. {
  15447. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15448. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15449. printf("*** best to upgrade to the required version.\n");
  15450. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15451. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15452. printf("*** config.cache before re-running configure\n");
  15453. return 1;
  15454. }
  15455. }
  15456. _ACEOF
  15457. if ac_fn_c_try_run "$LINENO"; then :
  15458. else
  15459. no_esd=yes
  15460. fi
  15461. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15462. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15463. fi
  15464. CFLAGS="$ac_save_CFLAGS"
  15465. LIBS="$ac_save_LIBS"
  15466. fi
  15467. fi
  15468. if test "x$no_esd" = x ; then
  15469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15470. $as_echo "yes" >&6; }
  15471. have_esd=yes
  15472. else
  15473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15474. $as_echo "no" >&6; }
  15475. if test "$ESD_CONFIG" = "no" ; then
  15476. echo "*** The esd-config script installed by ESD could not be found"
  15477. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15478. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15479. echo "*** full path to esd-config."
  15480. else
  15481. if test -f conf.esdtest ; then
  15482. :
  15483. else
  15484. echo "*** Could not run ESD test program, checking why..."
  15485. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15486. LIBS="$LIBS $ESD_LIBS"
  15487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15488. /* end confdefs.h. */
  15489. #include <stdio.h>
  15490. #include <esd.h>
  15491. int
  15492. main ()
  15493. {
  15494. return 0;
  15495. ;
  15496. return 0;
  15497. }
  15498. _ACEOF
  15499. if ac_fn_c_try_link "$LINENO"; then :
  15500. echo "*** The test program compiled, but did not run. This usually means"
  15501. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15502. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15503. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15504. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15505. echo "*** is required on your system"
  15506. echo "***"
  15507. echo "*** If you have an old version installed, it is best to remove it, although"
  15508. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15509. else
  15510. echo "*** The test program failed to compile or link. See the file config.log for the"
  15511. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15512. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15513. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15514. fi
  15515. rm -f core conftest.err conftest.$ac_objext \
  15516. conftest$ac_exeext conftest.$ac_ext
  15517. CFLAGS="$ac_save_CFLAGS"
  15518. LIBS="$ac_save_LIBS"
  15519. fi
  15520. fi
  15521. ESD_CFLAGS=""
  15522. ESD_LIBS=""
  15523. have_esd=no
  15524. fi
  15525. rm -f conf.esdtest
  15526. if test x$have_esd = xyes; then
  15527. # Check whether --enable-esd-shared was given.
  15528. if test "${enable_esd_shared+set}" = set; then :
  15529. enableval=$enable_esd_shared;
  15530. else
  15531. enable_esd_shared=yes
  15532. fi
  15533. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15534. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15535. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15536. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15537. if test x$have_loadso != xyes && \
  15538. test x$enable_esd_shared = xyes; then
  15539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15540. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15541. fi
  15542. if test x$have_loadso = xyes && \
  15543. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15544. echo "-- dynamic libesd -> $esd_lib"
  15545. cat >>confdefs.h <<_ACEOF
  15546. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15547. _ACEOF
  15548. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15549. else
  15550. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15551. SUMMARY_audio="${SUMMARY_audio} esd"
  15552. fi
  15553. have_audio=yes
  15554. fi
  15555. fi
  15556. }
  15557. CheckPulseAudio()
  15558. {
  15559. # Check whether --enable-pulseaudio was given.
  15560. if test "${enable_pulseaudio+set}" = set; then :
  15561. enableval=$enable_pulseaudio;
  15562. else
  15563. enable_pulseaudio=yes
  15564. fi
  15565. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15566. audio_pulseaudio=no
  15567. PULSEAUDIO_REQUIRED_VERSION=0.9
  15568. # Extract the first word of "pkg-config", so it can be a program name with args.
  15569. set dummy pkg-config; ac_word=$2
  15570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15571. $as_echo_n "checking for $ac_word... " >&6; }
  15572. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15573. $as_echo_n "(cached) " >&6
  15574. else
  15575. case $PKG_CONFIG in
  15576. [\\/]* | ?:[\\/]*)
  15577. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15578. ;;
  15579. *)
  15580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15581. for as_dir in $PATH
  15582. do
  15583. IFS=$as_save_IFS
  15584. test -z "$as_dir" && as_dir=.
  15585. for ac_exec_ext in '' $ac_executable_extensions; do
  15586. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15587. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15588. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15589. break 2
  15590. fi
  15591. done
  15592. done
  15593. IFS=$as_save_IFS
  15594. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15595. ;;
  15596. esac
  15597. fi
  15598. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15599. if test -n "$PKG_CONFIG"; then
  15600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15601. $as_echo "$PKG_CONFIG" >&6; }
  15602. else
  15603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15604. $as_echo "no" >&6; }
  15605. fi
  15606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15607. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15608. if test x$PKG_CONFIG != xno; then
  15609. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15610. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15611. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15612. audio_pulseaudio=yes
  15613. fi
  15614. fi
  15615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15616. $as_echo "$audio_pulseaudio" >&6; }
  15617. if test x$audio_pulseaudio = xyes; then
  15618. # Check whether --enable-pulseaudio-shared was given.
  15619. if test "${enable_pulseaudio_shared+set}" = set; then :
  15620. enableval=$enable_pulseaudio_shared;
  15621. else
  15622. enable_pulseaudio_shared=yes
  15623. fi
  15624. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15625. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15626. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15627. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15628. if test x$have_loadso != xyes && \
  15629. test x$enable_pulseaudio_shared = xyes; then
  15630. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15631. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15632. fi
  15633. if test x$have_loadso = xyes && \
  15634. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15635. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15636. cat >>confdefs.h <<_ACEOF
  15637. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15638. _ACEOF
  15639. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15640. case "$host" in
  15641. # On Solaris, pulseaudio must be linked deferred explicitly
  15642. # to prevent undefined symbol failures.
  15643. *-*-solaris*)
  15644. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15645. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15646. esac
  15647. else
  15648. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15649. SUMMARY_audio="${SUMMARY_audio} pulse"
  15650. fi
  15651. have_audio=yes
  15652. fi
  15653. fi
  15654. }
  15655. CheckARTSC()
  15656. {
  15657. # Check whether --enable-arts was given.
  15658. if test "${enable_arts+set}" = set; then :
  15659. enableval=$enable_arts;
  15660. else
  15661. enable_arts=yes
  15662. fi
  15663. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15664. # Extract the first word of "artsc-config", so it can be a program name with args.
  15665. set dummy artsc-config; ac_word=$2
  15666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15667. $as_echo_n "checking for $ac_word... " >&6; }
  15668. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15669. $as_echo_n "(cached) " >&6
  15670. else
  15671. case $ARTSCONFIG in
  15672. [\\/]* | ?:[\\/]*)
  15673. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15674. ;;
  15675. *)
  15676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15677. for as_dir in $PATH
  15678. do
  15679. IFS=$as_save_IFS
  15680. test -z "$as_dir" && as_dir=.
  15681. for ac_exec_ext in '' $ac_executable_extensions; do
  15682. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15683. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15684. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15685. break 2
  15686. fi
  15687. done
  15688. done
  15689. IFS=$as_save_IFS
  15690. ;;
  15691. esac
  15692. fi
  15693. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15694. if test -n "$ARTSCONFIG"; then
  15695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15696. $as_echo "$ARTSCONFIG" >&6; }
  15697. else
  15698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15699. $as_echo "no" >&6; }
  15700. fi
  15701. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15702. : # arts isn't installed
  15703. else
  15704. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15705. ARTS_LIBS=`$ARTSCONFIG --libs`
  15706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15707. $as_echo_n "checking for aRts development environment... " >&6; }
  15708. audio_arts=no
  15709. save_CFLAGS="$CFLAGS"
  15710. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15712. /* end confdefs.h. */
  15713. #include <artsc.h>
  15714. int
  15715. main ()
  15716. {
  15717. arts_stream_t stream;
  15718. ;
  15719. return 0;
  15720. }
  15721. _ACEOF
  15722. if ac_fn_c_try_compile "$LINENO"; then :
  15723. audio_arts=yes
  15724. fi
  15725. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15726. CFLAGS="$save_CFLAGS"
  15727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15728. $as_echo "$audio_arts" >&6; }
  15729. if test x$audio_arts = xyes; then
  15730. # Check whether --enable-arts-shared was given.
  15731. if test "${enable_arts_shared+set}" = set; then :
  15732. enableval=$enable_arts_shared;
  15733. else
  15734. enable_arts_shared=yes
  15735. fi
  15736. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15737. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15738. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15739. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15740. if test x$have_loadso != xyes && \
  15741. test x$enable_arts_shared = xyes; then
  15742. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15743. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15744. fi
  15745. if test x$have_loadso = xyes && \
  15746. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15747. echo "-- dynamic libartsc -> $arts_lib"
  15748. cat >>confdefs.h <<_ACEOF
  15749. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15750. _ACEOF
  15751. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15752. else
  15753. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15754. SUMMARY_audio="${SUMMARY_audio} arts"
  15755. fi
  15756. have_audio=yes
  15757. fi
  15758. fi
  15759. fi
  15760. }
  15761. CheckNAS()
  15762. {
  15763. # Check whether --enable-nas was given.
  15764. if test "${enable_nas+set}" = set; then :
  15765. enableval=$enable_nas;
  15766. else
  15767. enable_nas=yes
  15768. fi
  15769. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15770. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15771. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15772. have_nas_hdr=yes
  15773. fi
  15774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15775. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15776. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15777. $as_echo_n "(cached) " >&6
  15778. else
  15779. ac_check_lib_save_LIBS=$LIBS
  15780. LIBS="-laudio $LIBS"
  15781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15782. /* end confdefs.h. */
  15783. /* Override any GCC internal prototype to avoid an error.
  15784. Use char because int might match the return type of a GCC
  15785. builtin and then its argument prototype would still apply. */
  15786. #ifdef __cplusplus
  15787. extern "C"
  15788. #endif
  15789. char AuOpenServer ();
  15790. int
  15791. main ()
  15792. {
  15793. return AuOpenServer ();
  15794. ;
  15795. return 0;
  15796. }
  15797. _ACEOF
  15798. if ac_fn_c_try_link "$LINENO"; then :
  15799. ac_cv_lib_audio_AuOpenServer=yes
  15800. else
  15801. ac_cv_lib_audio_AuOpenServer=no
  15802. fi
  15803. rm -f core conftest.err conftest.$ac_objext \
  15804. conftest$ac_exeext conftest.$ac_ext
  15805. LIBS=$ac_check_lib_save_LIBS
  15806. fi
  15807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15808. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15809. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15810. have_nas_lib=yes
  15811. fi
  15812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15813. $as_echo_n "checking for NAS audio support... " >&6; }
  15814. have_nas=no
  15815. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15816. have_nas=yes
  15817. NAS_LIBS="-laudio"
  15818. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15819. have_nas=yes
  15820. NAS_CFLAGS="-I/usr/X11R6/include/"
  15821. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15822. fi
  15823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15824. $as_echo "$have_nas" >&6; }
  15825. if test x$have_nas = xyes; then
  15826. # Check whether --enable-nas-shared was given.
  15827. if test "${enable_nas_shared+set}" = set; then :
  15828. enableval=$enable_nas_shared;
  15829. else
  15830. enable_nas_shared=yes
  15831. fi
  15832. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15833. if test x$have_loadso != xyes && \
  15834. test x$enable_nas_shared = xyes; then
  15835. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15836. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15837. fi
  15838. if test x$have_loadso = xyes && \
  15839. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15840. echo "-- dynamic libaudio -> $nas_lib"
  15841. cat >>confdefs.h <<_ACEOF
  15842. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15843. _ACEOF
  15844. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  15845. else
  15846. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  15847. SUMMARY_audio="${SUMMARY_audio} nas"
  15848. fi
  15849. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  15850. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  15851. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  15852. have_audio=yes
  15853. fi
  15854. fi
  15855. }
  15856. CheckSNDIO()
  15857. {
  15858. # Check whether --enable-sndio was given.
  15859. if test "${enable_sndio+set}" = set; then :
  15860. enableval=$enable_sndio;
  15861. else
  15862. enable_sndio=yes
  15863. fi
  15864. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  15865. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  15866. if test "x$ac_cv_header_sndio_h" = xyes; then :
  15867. have_sndio_hdr=yes
  15868. fi
  15869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  15870. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  15871. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  15872. $as_echo_n "(cached) " >&6
  15873. else
  15874. ac_check_lib_save_LIBS=$LIBS
  15875. LIBS="-lsndio $LIBS"
  15876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15877. /* end confdefs.h. */
  15878. /* Override any GCC internal prototype to avoid an error.
  15879. Use char because int might match the return type of a GCC
  15880. builtin and then its argument prototype would still apply. */
  15881. #ifdef __cplusplus
  15882. extern "C"
  15883. #endif
  15884. char sio_open ();
  15885. int
  15886. main ()
  15887. {
  15888. return sio_open ();
  15889. ;
  15890. return 0;
  15891. }
  15892. _ACEOF
  15893. if ac_fn_c_try_link "$LINENO"; then :
  15894. ac_cv_lib_sndio_sio_open=yes
  15895. else
  15896. ac_cv_lib_sndio_sio_open=no
  15897. fi
  15898. rm -f core conftest.err conftest.$ac_objext \
  15899. conftest$ac_exeext conftest.$ac_ext
  15900. LIBS=$ac_check_lib_save_LIBS
  15901. fi
  15902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  15903. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  15904. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  15905. have_sndio_lib=yes
  15906. fi
  15907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  15908. $as_echo_n "checking for sndio audio support... " >&6; }
  15909. have_sndio=no
  15910. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  15911. have_sndio=yes
  15912. SNDIO_LIBS="-lsndio"
  15913. fi
  15914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  15915. $as_echo "$have_sndio" >&6; }
  15916. if test x$have_sndio = xyes; then
  15917. # Check whether --enable-sndio-shared was given.
  15918. if test "${enable_sndio_shared+set}" = set; then :
  15919. enableval=$enable_sndio_shared;
  15920. else
  15921. enable_sndio_shared=yes
  15922. fi
  15923. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15924. if test x$have_loadso != xyes && \
  15925. test x$enable_sndio_shared = xyes; then
  15926. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  15927. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  15928. fi
  15929. if test x$have_loadso = xyes && \
  15930. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  15931. echo "-- dynamic libsndio -> $sndio_lib"
  15932. cat >>confdefs.h <<_ACEOF
  15933. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  15934. _ACEOF
  15935. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  15936. else
  15937. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  15938. SUMMARY_audio="${SUMMARY_audio} sndio"
  15939. fi
  15940. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  15941. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  15942. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  15943. have_audio=yes
  15944. fi
  15945. fi
  15946. }
  15947. CheckFusionSound()
  15948. {
  15949. # Check whether --enable-fusionsound was given.
  15950. if test "${enable_fusionsound+set}" = set; then :
  15951. enableval=$enable_fusionsound;
  15952. else
  15953. enable_fusionsound=no
  15954. fi
  15955. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  15956. fusionsound=no
  15957. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  15958. # Extract the first word of "pkg-config", so it can be a program name with args.
  15959. set dummy pkg-config; ac_word=$2
  15960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15961. $as_echo_n "checking for $ac_word... " >&6; }
  15962. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15963. $as_echo_n "(cached) " >&6
  15964. else
  15965. case $PKG_CONFIG in
  15966. [\\/]* | ?:[\\/]*)
  15967. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15968. ;;
  15969. *)
  15970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15971. for as_dir in $PATH
  15972. do
  15973. IFS=$as_save_IFS
  15974. test -z "$as_dir" && as_dir=.
  15975. for ac_exec_ext in '' $ac_executable_extensions; do
  15976. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15977. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15979. break 2
  15980. fi
  15981. done
  15982. done
  15983. IFS=$as_save_IFS
  15984. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15985. ;;
  15986. esac
  15987. fi
  15988. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15989. if test -n "$PKG_CONFIG"; then
  15990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15991. $as_echo "$PKG_CONFIG" >&6; }
  15992. else
  15993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15994. $as_echo "no" >&6; }
  15995. fi
  15996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  15997. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  15998. if test x$PKG_CONFIG != xno; then
  15999. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  16000. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  16001. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  16002. fusionsound=yes
  16003. fi
  16004. fi
  16005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  16006. $as_echo "$fusionsound" >&6; }
  16007. if test x$fusionsound = xyes; then
  16008. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16009. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16010. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16011. # Check whether --enable-fusionsound-shared was given.
  16012. if test "${enable_fusionsound_shared+set}" = set; then :
  16013. enableval=$enable_fusionsound_shared;
  16014. else
  16015. enable_fusionsound_shared=yes
  16016. fi
  16017. fusionsound_shared=no
  16018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16019. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16020. if test x$have_loadso != xyes && \
  16021. test x$enable_fusionsound_shared = xyes; then
  16022. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16023. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16024. fi
  16025. if test x$have_loadso = xyes && \
  16026. test x$enable_fusionsound_shared = xyes; then
  16027. cat >>confdefs.h <<_ACEOF
  16028. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16029. _ACEOF
  16030. fusionsound_shared=yes
  16031. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16032. else
  16033. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16034. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16035. fi
  16036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16037. $as_echo "$fusionsound_shared" >&6; }
  16038. have_audio=yes
  16039. fi
  16040. fi
  16041. }
  16042. CheckDiskAudio()
  16043. {
  16044. # Check whether --enable-diskaudio was given.
  16045. if test "${enable_diskaudio+set}" = set; then :
  16046. enableval=$enable_diskaudio;
  16047. else
  16048. enable_diskaudio=yes
  16049. fi
  16050. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16051. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16052. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16053. SUMMARY_audio="${SUMMARY_audio} disk"
  16054. fi
  16055. }
  16056. CheckDummyAudio()
  16057. {
  16058. # Check whether --enable-dummyaudio was given.
  16059. if test "${enable_dummyaudio+set}" = set; then :
  16060. enableval=$enable_dummyaudio;
  16061. else
  16062. enable_dummyaudio=yes
  16063. fi
  16064. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16065. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16066. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16067. SUMMARY_audio="${SUMMARY_audio} dummy"
  16068. fi
  16069. }
  16070. CheckLibSampleRate()
  16071. {
  16072. # Check whether --enable-libsamplerate was given.
  16073. if test "${enable_libsamplerate+set}" = set; then :
  16074. enableval=$enable_libsamplerate;
  16075. else
  16076. enable_libsamplerate=yes
  16077. fi
  16078. if test x$enable_libsamplerate = xyes; then
  16079. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16080. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16081. have_samplerate_h_hdr=yes
  16082. else
  16083. have_samplerate_h_hdr=no
  16084. fi
  16085. if test x$have_samplerate_h_hdr = xyes; then
  16086. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16087. # Check whether --enable-libsamplerate-shared was given.
  16088. if test "${enable_libsamplerate_shared+set}" = set; then :
  16089. enableval=$enable_libsamplerate_shared;
  16090. else
  16091. enable_libsamplerate_shared=yes
  16092. fi
  16093. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16094. if test x$have_loadso != xyes && \
  16095. test x$enable_libsamplerate_shared = xyes; then
  16096. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16097. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16098. fi
  16099. if test x$have_loadso = xyes && \
  16100. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16101. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16102. cat >>confdefs.h <<_ACEOF
  16103. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16104. _ACEOF
  16105. else
  16106. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16107. fi
  16108. fi
  16109. fi
  16110. }
  16111. CheckVisibilityHidden()
  16112. {
  16113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16114. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16115. have_gcc_fvisibility=no
  16116. visibility_CFLAGS="-fvisibility=hidden"
  16117. save_CFLAGS="$CFLAGS"
  16118. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16120. /* end confdefs.h. */
  16121. #if !defined(__GNUC__) || __GNUC__ < 4
  16122. #error SDL only uses visibility attributes in GCC 4 or newer
  16123. #endif
  16124. int
  16125. main ()
  16126. {
  16127. ;
  16128. return 0;
  16129. }
  16130. _ACEOF
  16131. if ac_fn_c_try_compile "$LINENO"; then :
  16132. have_gcc_fvisibility=yes
  16133. fi
  16134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16136. $as_echo "$have_gcc_fvisibility" >&6; }
  16137. CFLAGS="$save_CFLAGS"
  16138. if test x$have_gcc_fvisibility = xyes; then
  16139. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16140. fi
  16141. }
  16142. CheckStackBoundary()
  16143. {
  16144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16145. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16146. have_gcc_preferred_stack_boundary=no
  16147. save_CFLAGS="$CFLAGS"
  16148. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16150. /* end confdefs.h. */
  16151. int x = 0;
  16152. int
  16153. main ()
  16154. {
  16155. ;
  16156. return 0;
  16157. }
  16158. _ACEOF
  16159. if ac_fn_c_try_compile "$LINENO"; then :
  16160. have_gcc_preferred_stack_boundary=yes
  16161. fi
  16162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16164. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16165. CFLAGS="$save_CFLAGS"
  16166. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16167. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16168. fi
  16169. }
  16170. CheckDeclarationAfterStatement()
  16171. {
  16172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16173. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16174. have_gcc_declaration_after_statement=no
  16175. save_CFLAGS="$CFLAGS"
  16176. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16178. /* end confdefs.h. */
  16179. int x = 0;
  16180. int
  16181. main ()
  16182. {
  16183. ;
  16184. return 0;
  16185. }
  16186. _ACEOF
  16187. if ac_fn_c_try_compile "$LINENO"; then :
  16188. have_gcc_declaration_after_statement=yes
  16189. fi
  16190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16192. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16193. CFLAGS="$save_CFLAGS"
  16194. if test x$have_gcc_declaration_after_statement = xyes; then
  16195. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16196. fi
  16197. }
  16198. CheckWarnAll()
  16199. {
  16200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16201. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16202. have_gcc_Wall=no
  16203. save_CFLAGS="$CFLAGS"
  16204. CFLAGS="$save_CFLAGS -Wall"
  16205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16206. /* end confdefs.h. */
  16207. int x = 0;
  16208. int
  16209. main ()
  16210. {
  16211. ;
  16212. return 0;
  16213. }
  16214. _ACEOF
  16215. if ac_fn_c_try_compile "$LINENO"; then :
  16216. have_gcc_Wall=yes
  16217. fi
  16218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16220. $as_echo "$have_gcc_Wall" >&6; }
  16221. CFLAGS="$save_CFLAGS"
  16222. if test x$have_gcc_Wall = xyes; then
  16223. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16225. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16226. need_gcc_Wno_multichar=no
  16227. case "$host" in
  16228. *-*-haiku*)
  16229. need_gcc_Wno_multichar=yes
  16230. ;;
  16231. esac
  16232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16233. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16234. if test x$need_gcc_Wno_multichar = xyes; then
  16235. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16236. fi
  16237. fi
  16238. }
  16239. CheckWayland()
  16240. {
  16241. # Check whether --enable-video-wayland was given.
  16242. if test "${enable_video_wayland+set}" = set; then :
  16243. enableval=$enable_video_wayland;
  16244. else
  16245. enable_video_wayland=yes
  16246. fi
  16247. # Check whether --enable-video-wayland-qt-touch was given.
  16248. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16249. enableval=$enable_video_wayland_qt_touch;
  16250. else
  16251. enable_video_wayland_qt_touch=yes
  16252. fi
  16253. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16254. # Extract the first word of "pkg-config", so it can be a program name with args.
  16255. set dummy pkg-config; ac_word=$2
  16256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16257. $as_echo_n "checking for $ac_word... " >&6; }
  16258. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16259. $as_echo_n "(cached) " >&6
  16260. else
  16261. case $PKG_CONFIG in
  16262. [\\/]* | ?:[\\/]*)
  16263. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16264. ;;
  16265. *)
  16266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16267. for as_dir in $PATH
  16268. do
  16269. IFS=$as_save_IFS
  16270. test -z "$as_dir" && as_dir=.
  16271. for ac_exec_ext in '' $ac_executable_extensions; do
  16272. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16273. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16274. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16275. break 2
  16276. fi
  16277. done
  16278. done
  16279. IFS=$as_save_IFS
  16280. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16281. ;;
  16282. esac
  16283. fi
  16284. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16285. if test -n "$PKG_CONFIG"; then
  16286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16287. $as_echo "$PKG_CONFIG" >&6; }
  16288. else
  16289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16290. $as_echo "no" >&6; }
  16291. fi
  16292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16293. $as_echo_n "checking for Wayland support... " >&6; }
  16294. video_wayland=no
  16295. if test x$PKG_CONFIG != xno && \
  16296. test x$video_opengl_egl = xyes && \
  16297. test x$video_opengles_v2 = xyes; then
  16298. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16299. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16300. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16301. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16302. WAYLAND_CORE_PROTOCOL_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-client`
  16303. WAYLAND_PROTOCOLS_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
  16304. video_wayland=yes
  16305. fi
  16306. fi
  16307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16308. $as_echo "$video_wayland" >&6; }
  16309. if test x$video_wayland = xyes; then
  16310. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16311. if test x$enable_video_wayland_qt_touch = xyes; then
  16312. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16313. fi
  16314. WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1"
  16315. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16316. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16317. # Check whether --enable-wayland-shared was given.
  16318. if test "${enable_wayland_shared+set}" = set; then :
  16319. enableval=$enable_wayland_shared;
  16320. else
  16321. enable_wayland_shared=maybe
  16322. fi
  16323. case "$host" in
  16324. *)
  16325. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16326. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16327. if test x$wayland_egl_lib = x; then
  16328. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16329. fi
  16330. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16331. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16332. ;;
  16333. esac
  16334. if test x$enable_wayland_shared = xmaybe; then
  16335. enable_wayland_shared=yes
  16336. fi
  16337. if test x$have_loadso != xyes && \
  16338. test x$enable_wayland_shared = xyes; then
  16339. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16340. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16341. enable_wayland_shared=no
  16342. fi
  16343. if test x$have_loadso = xyes && \
  16344. test x$enable_wayland_shared = xyes && \
  16345. test x$wayland_client_lib != x && \
  16346. test x$wayland_egl_lib != x && \
  16347. test x$wayland_cursor_lib != x && \
  16348. test x$xkbcommon_lib != x; then
  16349. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16350. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16351. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16352. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16353. cat >>confdefs.h <<_ACEOF
  16354. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16355. _ACEOF
  16356. cat >>confdefs.h <<_ACEOF
  16357. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16358. _ACEOF
  16359. cat >>confdefs.h <<_ACEOF
  16360. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16361. _ACEOF
  16362. cat >>confdefs.h <<_ACEOF
  16363. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16364. _ACEOF
  16365. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16366. else
  16367. enable_wayland_shared=no
  16368. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16369. SUMMARY_video="${SUMMARY_video} wayland"
  16370. fi
  16371. have_video=yes
  16372. fi
  16373. fi
  16374. }
  16375. CheckMir()
  16376. {
  16377. # Check whether --enable-video-mir was given.
  16378. if test "${enable_video_mir+set}" = set; then :
  16379. enableval=$enable_video_mir;
  16380. else
  16381. enable_video_mir=yes
  16382. fi
  16383. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16384. # Extract the first word of "pkg-config", so it can be a program name with args.
  16385. set dummy pkg-config; ac_word=$2
  16386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16387. $as_echo_n "checking for $ac_word... " >&6; }
  16388. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16389. $as_echo_n "(cached) " >&6
  16390. else
  16391. case $PKG_CONFIG in
  16392. [\\/]* | ?:[\\/]*)
  16393. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16394. ;;
  16395. *)
  16396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16397. for as_dir in $PATH
  16398. do
  16399. IFS=$as_save_IFS
  16400. test -z "$as_dir" && as_dir=.
  16401. for ac_exec_ext in '' $ac_executable_extensions; do
  16402. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16403. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16404. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16405. break 2
  16406. fi
  16407. done
  16408. done
  16409. IFS=$as_save_IFS
  16410. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16411. ;;
  16412. esac
  16413. fi
  16414. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16415. if test -n "$PKG_CONFIG"; then
  16416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16417. $as_echo "$PKG_CONFIG" >&6; }
  16418. else
  16419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16420. $as_echo "no" >&6; }
  16421. fi
  16422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16423. $as_echo_n "checking for Mir support... " >&6; }
  16424. video_mir=no
  16425. if test x$PKG_CONFIG != xno; then
  16426. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16427. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16428. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16429. save_CFLAGS="$CFLAGS"
  16430. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16432. /* end confdefs.h. */
  16433. #include <mir_toolkit/mir_client_library.h>
  16434. int
  16435. main ()
  16436. {
  16437. MirTouchAction actions = mir_touch_actions
  16438. ;
  16439. return 0;
  16440. }
  16441. _ACEOF
  16442. if ac_fn_c_try_compile "$LINENO"; then :
  16443. video_mir=yes
  16444. fi
  16445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16446. CFLAGS="$save_CFLAGS"
  16447. fi
  16448. fi
  16449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16450. $as_echo "$video_mir" >&6; }
  16451. if test x$video_mir = xyes; then
  16452. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16453. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16454. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16455. # Check whether --enable-mir-shared was given.
  16456. if test "${enable_mir_shared+set}" = set; then :
  16457. enableval=$enable_mir_shared;
  16458. else
  16459. enable_mir_shared=maybe
  16460. fi
  16461. case "$host" in
  16462. *)
  16463. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16464. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16465. ;;
  16466. esac
  16467. if test x$enable_mir_shared = xmaybe; then
  16468. enable_mir_shared=yes
  16469. fi
  16470. if test x$have_loadso != xyes && \
  16471. test x$enable_mir_shared = xyes; then
  16472. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16473. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16474. enable_mir_shared=no
  16475. fi
  16476. if test x$have_loadso = xyes && \
  16477. test x$enable_mir_shared = xyes && \
  16478. test x$mirclient_lib != x && \
  16479. test x$xkbcommon_lib != x; then
  16480. echo "-- dynamic libmirclient -> $mirclient_lib"
  16481. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16482. cat >>confdefs.h <<_ACEOF
  16483. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16484. _ACEOF
  16485. cat >>confdefs.h <<_ACEOF
  16486. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16487. _ACEOF
  16488. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16489. else
  16490. enable_mir_shared=no
  16491. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16492. SUMMARY_video="${SUMMARY_video} mir"
  16493. fi
  16494. have_video=yes
  16495. fi
  16496. fi
  16497. }
  16498. CheckNativeClient()
  16499. {
  16500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16501. /* end confdefs.h. */
  16502. #if !defined(__native_client__)
  16503. #error "NO NACL"
  16504. #endif
  16505. int
  16506. main ()
  16507. {
  16508. ;
  16509. return 0;
  16510. }
  16511. _ACEOF
  16512. if ac_fn_c_try_compile "$LINENO"; then :
  16513. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16514. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16515. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16516. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16517. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16518. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16519. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16520. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16521. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16522. SUMMARY_audio="${SUMMARY_audio} nacl"
  16523. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16524. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16525. fi
  16526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16527. }
  16528. CheckX11()
  16529. {
  16530. # Check whether --enable-video-x11 was given.
  16531. if test "${enable_video_x11+set}" = set; then :
  16532. enableval=$enable_video_x11;
  16533. else
  16534. enable_video_x11=yes
  16535. fi
  16536. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16537. case "$host" in
  16538. *-*-darwin*)
  16539. # This isn't necessary for X11, but fixes GLX detection
  16540. if test "x$x_includes" = xNONE && \
  16541. test "x$x_libraries" = xNONE && \
  16542. test -d /usr/X11R6/include && \
  16543. test -d /usr/X11R6/lib; then
  16544. x_includes="/usr/X11R6/include"
  16545. x_libraries="/usr/X11R6/lib"
  16546. fi
  16547. ;;
  16548. esac
  16549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16550. $as_echo_n "checking for X... " >&6; }
  16551. # Check whether --with-x was given.
  16552. if test "${with_x+set}" = set; then :
  16553. withval=$with_x;
  16554. fi
  16555. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16556. if test "x$with_x" = xno; then
  16557. # The user explicitly disabled X.
  16558. have_x=disabled
  16559. else
  16560. case $x_includes,$x_libraries in #(
  16561. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16562. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16563. $as_echo_n "(cached) " >&6
  16564. else
  16565. # One or both of the vars are not set, and there is no cached value.
  16566. ac_x_includes=no ac_x_libraries=no
  16567. rm -f -r conftest.dir
  16568. if mkdir conftest.dir; then
  16569. cd conftest.dir
  16570. cat >Imakefile <<'_ACEOF'
  16571. incroot:
  16572. @echo incroot='${INCROOT}'
  16573. usrlibdir:
  16574. @echo usrlibdir='${USRLIBDIR}'
  16575. libdir:
  16576. @echo libdir='${LIBDIR}'
  16577. _ACEOF
  16578. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16579. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16580. for ac_var in incroot usrlibdir libdir; do
  16581. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16582. done
  16583. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16584. for ac_extension in a so sl dylib la dll; do
  16585. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16586. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16587. ac_im_usrlibdir=$ac_im_libdir; break
  16588. fi
  16589. done
  16590. # Screen out bogus values from the imake configuration. They are
  16591. # bogus both because they are the default anyway, and because
  16592. # using them would break gcc on systems where it needs fixed includes.
  16593. case $ac_im_incroot in
  16594. /usr/include) ac_x_includes= ;;
  16595. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16596. esac
  16597. case $ac_im_usrlibdir in
  16598. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16599. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16600. esac
  16601. fi
  16602. cd ..
  16603. rm -f -r conftest.dir
  16604. fi
  16605. # Standard set of common directories for X headers.
  16606. # Check X11 before X11Rn because it is often a symlink to the current release.
  16607. ac_x_header_dirs='
  16608. /usr/X11/include
  16609. /usr/X11R7/include
  16610. /usr/X11R6/include
  16611. /usr/X11R5/include
  16612. /usr/X11R4/include
  16613. /usr/include/X11
  16614. /usr/include/X11R7
  16615. /usr/include/X11R6
  16616. /usr/include/X11R5
  16617. /usr/include/X11R4
  16618. /usr/local/X11/include
  16619. /usr/local/X11R7/include
  16620. /usr/local/X11R6/include
  16621. /usr/local/X11R5/include
  16622. /usr/local/X11R4/include
  16623. /usr/local/include/X11
  16624. /usr/local/include/X11R7
  16625. /usr/local/include/X11R6
  16626. /usr/local/include/X11R5
  16627. /usr/local/include/X11R4
  16628. /usr/X386/include
  16629. /usr/x386/include
  16630. /usr/XFree86/include/X11
  16631. /usr/include
  16632. /usr/local/include
  16633. /usr/unsupported/include
  16634. /usr/athena/include
  16635. /usr/local/x11r5/include
  16636. /usr/lpp/Xamples/include
  16637. /usr/openwin/include
  16638. /usr/openwin/share/include'
  16639. if test "$ac_x_includes" = no; then
  16640. # Guess where to find include files, by looking for Xlib.h.
  16641. # First, try using that file with no special directory specified.
  16642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16643. /* end confdefs.h. */
  16644. #include <X11/Xlib.h>
  16645. _ACEOF
  16646. if ac_fn_c_try_cpp "$LINENO"; then :
  16647. # We can compile using X headers with no special include directory.
  16648. ac_x_includes=
  16649. else
  16650. for ac_dir in $ac_x_header_dirs; do
  16651. if test -r "$ac_dir/X11/Xlib.h"; then
  16652. ac_x_includes=$ac_dir
  16653. break
  16654. fi
  16655. done
  16656. fi
  16657. rm -f conftest.err conftest.i conftest.$ac_ext
  16658. fi # $ac_x_includes = no
  16659. if test "$ac_x_libraries" = no; then
  16660. # Check for the libraries.
  16661. # See if we find them without any special options.
  16662. # Don't add to $LIBS permanently.
  16663. ac_save_LIBS=$LIBS
  16664. LIBS="-lX11 $LIBS"
  16665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16666. /* end confdefs.h. */
  16667. #include <X11/Xlib.h>
  16668. int
  16669. main ()
  16670. {
  16671. XrmInitialize ()
  16672. ;
  16673. return 0;
  16674. }
  16675. _ACEOF
  16676. if ac_fn_c_try_link "$LINENO"; then :
  16677. LIBS=$ac_save_LIBS
  16678. # We can link X programs with no special library path.
  16679. ac_x_libraries=
  16680. else
  16681. LIBS=$ac_save_LIBS
  16682. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16683. do
  16684. # Don't even attempt the hair of trying to link an X program!
  16685. for ac_extension in a so sl dylib la dll; do
  16686. if test -r "$ac_dir/libX11.$ac_extension"; then
  16687. ac_x_libraries=$ac_dir
  16688. break 2
  16689. fi
  16690. done
  16691. done
  16692. fi
  16693. rm -f core conftest.err conftest.$ac_objext \
  16694. conftest$ac_exeext conftest.$ac_ext
  16695. fi # $ac_x_libraries = no
  16696. case $ac_x_includes,$ac_x_libraries in #(
  16697. no,* | *,no | *\'*)
  16698. # Didn't find X, or a directory has "'" in its name.
  16699. ac_cv_have_x="have_x=no";; #(
  16700. *)
  16701. # Record where we found X for the cache.
  16702. ac_cv_have_x="have_x=yes\
  16703. ac_x_includes='$ac_x_includes'\
  16704. ac_x_libraries='$ac_x_libraries'"
  16705. esac
  16706. fi
  16707. ;; #(
  16708. *) have_x=yes;;
  16709. esac
  16710. eval "$ac_cv_have_x"
  16711. fi # $with_x != no
  16712. if test "$have_x" != yes; then
  16713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16714. $as_echo "$have_x" >&6; }
  16715. no_x=yes
  16716. else
  16717. # If each of the values was on the command line, it overrides each guess.
  16718. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16719. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16720. # Update the cache value to reflect the command line values.
  16721. ac_cv_have_x="have_x=yes\
  16722. ac_x_includes='$x_includes'\
  16723. ac_x_libraries='$x_libraries'"
  16724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16725. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16726. fi
  16727. if test "$no_x" = yes; then
  16728. # Not all programs may use this symbol, but it does not hurt to define it.
  16729. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16730. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16731. else
  16732. if test -n "$x_includes"; then
  16733. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16734. fi
  16735. # It would also be nice to do this for all -L options, not just this one.
  16736. if test -n "$x_libraries"; then
  16737. X_LIBS="$X_LIBS -L$x_libraries"
  16738. # For Solaris; some versions of Sun CC require a space after -R and
  16739. # others require no space. Words are not sufficient . . . .
  16740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16741. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16742. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16743. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16744. ac_c_werror_flag=yes
  16745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16746. /* end confdefs.h. */
  16747. int
  16748. main ()
  16749. {
  16750. ;
  16751. return 0;
  16752. }
  16753. _ACEOF
  16754. if ac_fn_c_try_link "$LINENO"; then :
  16755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16756. $as_echo "no" >&6; }
  16757. X_LIBS="$X_LIBS -R$x_libraries"
  16758. else
  16759. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16761. /* end confdefs.h. */
  16762. int
  16763. main ()
  16764. {
  16765. ;
  16766. return 0;
  16767. }
  16768. _ACEOF
  16769. if ac_fn_c_try_link "$LINENO"; then :
  16770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16771. $as_echo "yes" >&6; }
  16772. X_LIBS="$X_LIBS -R $x_libraries"
  16773. else
  16774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16775. $as_echo "neither works" >&6; }
  16776. fi
  16777. rm -f core conftest.err conftest.$ac_objext \
  16778. conftest$ac_exeext conftest.$ac_ext
  16779. fi
  16780. rm -f core conftest.err conftest.$ac_objext \
  16781. conftest$ac_exeext conftest.$ac_ext
  16782. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16783. LIBS=$ac_xsave_LIBS
  16784. fi
  16785. # Check for system-dependent libraries X programs must link with.
  16786. # Do this before checking for the system-independent R6 libraries
  16787. # (-lICE), since we may need -lsocket or whatever for X linking.
  16788. if test "$ISC" = yes; then
  16789. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16790. else
  16791. # Martyn Johnson says this is needed for Ultrix, if the X
  16792. # libraries were built with DECnet support. And Karl Berry says
  16793. # the Alpha needs dnet_stub (dnet does not exist).
  16794. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16796. /* end confdefs.h. */
  16797. /* Override any GCC internal prototype to avoid an error.
  16798. Use char because int might match the return type of a GCC
  16799. builtin and then its argument prototype would still apply. */
  16800. #ifdef __cplusplus
  16801. extern "C"
  16802. #endif
  16803. char XOpenDisplay ();
  16804. int
  16805. main ()
  16806. {
  16807. return XOpenDisplay ();
  16808. ;
  16809. return 0;
  16810. }
  16811. _ACEOF
  16812. if ac_fn_c_try_link "$LINENO"; then :
  16813. else
  16814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16815. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16816. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16817. $as_echo_n "(cached) " >&6
  16818. else
  16819. ac_check_lib_save_LIBS=$LIBS
  16820. LIBS="-ldnet $LIBS"
  16821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16822. /* end confdefs.h. */
  16823. /* Override any GCC internal prototype to avoid an error.
  16824. Use char because int might match the return type of a GCC
  16825. builtin and then its argument prototype would still apply. */
  16826. #ifdef __cplusplus
  16827. extern "C"
  16828. #endif
  16829. char dnet_ntoa ();
  16830. int
  16831. main ()
  16832. {
  16833. return dnet_ntoa ();
  16834. ;
  16835. return 0;
  16836. }
  16837. _ACEOF
  16838. if ac_fn_c_try_link "$LINENO"; then :
  16839. ac_cv_lib_dnet_dnet_ntoa=yes
  16840. else
  16841. ac_cv_lib_dnet_dnet_ntoa=no
  16842. fi
  16843. rm -f core conftest.err conftest.$ac_objext \
  16844. conftest$ac_exeext conftest.$ac_ext
  16845. LIBS=$ac_check_lib_save_LIBS
  16846. fi
  16847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16848. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  16849. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  16850. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16851. fi
  16852. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  16854. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  16855. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  16856. $as_echo_n "(cached) " >&6
  16857. else
  16858. ac_check_lib_save_LIBS=$LIBS
  16859. LIBS="-ldnet_stub $LIBS"
  16860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16861. /* end confdefs.h. */
  16862. /* Override any GCC internal prototype to avoid an error.
  16863. Use char because int might match the return type of a GCC
  16864. builtin and then its argument prototype would still apply. */
  16865. #ifdef __cplusplus
  16866. extern "C"
  16867. #endif
  16868. char dnet_ntoa ();
  16869. int
  16870. main ()
  16871. {
  16872. return dnet_ntoa ();
  16873. ;
  16874. return 0;
  16875. }
  16876. _ACEOF
  16877. if ac_fn_c_try_link "$LINENO"; then :
  16878. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16879. else
  16880. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16881. fi
  16882. rm -f core conftest.err conftest.$ac_objext \
  16883. conftest$ac_exeext conftest.$ac_ext
  16884. LIBS=$ac_check_lib_save_LIBS
  16885. fi
  16886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16887. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  16888. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  16889. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16890. fi
  16891. fi
  16892. fi
  16893. rm -f core conftest.err conftest.$ac_objext \
  16894. conftest$ac_exeext conftest.$ac_ext
  16895. LIBS="$ac_xsave_LIBS"
  16896. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  16897. # to get the SysV transport functions.
  16898. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  16899. # needs -lnsl.
  16900. # The nsl library prevents programs from opening the X display
  16901. # on Irix 5.2, according to T.E. Dickey.
  16902. # The functions gethostbyname, getservbyname, and inet_addr are
  16903. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  16904. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16905. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16906. fi
  16907. if test $ac_cv_func_gethostbyname = no; then
  16908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16909. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16910. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16911. $as_echo_n "(cached) " >&6
  16912. else
  16913. ac_check_lib_save_LIBS=$LIBS
  16914. LIBS="-lnsl $LIBS"
  16915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16916. /* end confdefs.h. */
  16917. /* Override any GCC internal prototype to avoid an error.
  16918. Use char because int might match the return type of a GCC
  16919. builtin and then its argument prototype would still apply. */
  16920. #ifdef __cplusplus
  16921. extern "C"
  16922. #endif
  16923. char gethostbyname ();
  16924. int
  16925. main ()
  16926. {
  16927. return gethostbyname ();
  16928. ;
  16929. return 0;
  16930. }
  16931. _ACEOF
  16932. if ac_fn_c_try_link "$LINENO"; then :
  16933. ac_cv_lib_nsl_gethostbyname=yes
  16934. else
  16935. ac_cv_lib_nsl_gethostbyname=no
  16936. fi
  16937. rm -f core conftest.err conftest.$ac_objext \
  16938. conftest$ac_exeext conftest.$ac_ext
  16939. LIBS=$ac_check_lib_save_LIBS
  16940. fi
  16941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16942. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16943. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16944. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  16945. fi
  16946. if test $ac_cv_lib_nsl_gethostbyname = no; then
  16947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  16948. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  16949. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  16950. $as_echo_n "(cached) " >&6
  16951. else
  16952. ac_check_lib_save_LIBS=$LIBS
  16953. LIBS="-lbsd $LIBS"
  16954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16955. /* end confdefs.h. */
  16956. /* Override any GCC internal prototype to avoid an error.
  16957. Use char because int might match the return type of a GCC
  16958. builtin and then its argument prototype would still apply. */
  16959. #ifdef __cplusplus
  16960. extern "C"
  16961. #endif
  16962. char gethostbyname ();
  16963. int
  16964. main ()
  16965. {
  16966. return gethostbyname ();
  16967. ;
  16968. return 0;
  16969. }
  16970. _ACEOF
  16971. if ac_fn_c_try_link "$LINENO"; then :
  16972. ac_cv_lib_bsd_gethostbyname=yes
  16973. else
  16974. ac_cv_lib_bsd_gethostbyname=no
  16975. fi
  16976. rm -f core conftest.err conftest.$ac_objext \
  16977. conftest$ac_exeext conftest.$ac_ext
  16978. LIBS=$ac_check_lib_save_LIBS
  16979. fi
  16980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  16981. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  16982. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  16983. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  16984. fi
  16985. fi
  16986. fi
  16987. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  16988. # socket/setsockopt and other routines are undefined under SCO ODT
  16989. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  16990. # on later versions), says Simon Leinen: it contains gethostby*
  16991. # variants that don't use the name server (or something). -lsocket
  16992. # must be given before -lnsl if both are needed. We assume that
  16993. # if connect needs -lnsl, so does gethostbyname.
  16994. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  16995. if test "x$ac_cv_func_connect" = xyes; then :
  16996. fi
  16997. if test $ac_cv_func_connect = no; then
  16998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  16999. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17000. if ${ac_cv_lib_socket_connect+:} false; then :
  17001. $as_echo_n "(cached) " >&6
  17002. else
  17003. ac_check_lib_save_LIBS=$LIBS
  17004. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17006. /* end confdefs.h. */
  17007. /* Override any GCC internal prototype to avoid an error.
  17008. Use char because int might match the return type of a GCC
  17009. builtin and then its argument prototype would still apply. */
  17010. #ifdef __cplusplus
  17011. extern "C"
  17012. #endif
  17013. char connect ();
  17014. int
  17015. main ()
  17016. {
  17017. return connect ();
  17018. ;
  17019. return 0;
  17020. }
  17021. _ACEOF
  17022. if ac_fn_c_try_link "$LINENO"; then :
  17023. ac_cv_lib_socket_connect=yes
  17024. else
  17025. ac_cv_lib_socket_connect=no
  17026. fi
  17027. rm -f core conftest.err conftest.$ac_objext \
  17028. conftest$ac_exeext conftest.$ac_ext
  17029. LIBS=$ac_check_lib_save_LIBS
  17030. fi
  17031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17032. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17033. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17034. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17035. fi
  17036. fi
  17037. # Guillermo Gomez says -lposix is necessary on A/UX.
  17038. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17039. if test "x$ac_cv_func_remove" = xyes; then :
  17040. fi
  17041. if test $ac_cv_func_remove = no; then
  17042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17043. $as_echo_n "checking for remove in -lposix... " >&6; }
  17044. if ${ac_cv_lib_posix_remove+:} false; then :
  17045. $as_echo_n "(cached) " >&6
  17046. else
  17047. ac_check_lib_save_LIBS=$LIBS
  17048. LIBS="-lposix $LIBS"
  17049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17050. /* end confdefs.h. */
  17051. /* Override any GCC internal prototype to avoid an error.
  17052. Use char because int might match the return type of a GCC
  17053. builtin and then its argument prototype would still apply. */
  17054. #ifdef __cplusplus
  17055. extern "C"
  17056. #endif
  17057. char remove ();
  17058. int
  17059. main ()
  17060. {
  17061. return remove ();
  17062. ;
  17063. return 0;
  17064. }
  17065. _ACEOF
  17066. if ac_fn_c_try_link "$LINENO"; then :
  17067. ac_cv_lib_posix_remove=yes
  17068. else
  17069. ac_cv_lib_posix_remove=no
  17070. fi
  17071. rm -f core conftest.err conftest.$ac_objext \
  17072. conftest$ac_exeext conftest.$ac_ext
  17073. LIBS=$ac_check_lib_save_LIBS
  17074. fi
  17075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17076. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17077. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17078. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17079. fi
  17080. fi
  17081. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17082. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17083. if test "x$ac_cv_func_shmat" = xyes; then :
  17084. fi
  17085. if test $ac_cv_func_shmat = no; then
  17086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17087. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17088. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17089. $as_echo_n "(cached) " >&6
  17090. else
  17091. ac_check_lib_save_LIBS=$LIBS
  17092. LIBS="-lipc $LIBS"
  17093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17094. /* end confdefs.h. */
  17095. /* Override any GCC internal prototype to avoid an error.
  17096. Use char because int might match the return type of a GCC
  17097. builtin and then its argument prototype would still apply. */
  17098. #ifdef __cplusplus
  17099. extern "C"
  17100. #endif
  17101. char shmat ();
  17102. int
  17103. main ()
  17104. {
  17105. return shmat ();
  17106. ;
  17107. return 0;
  17108. }
  17109. _ACEOF
  17110. if ac_fn_c_try_link "$LINENO"; then :
  17111. ac_cv_lib_ipc_shmat=yes
  17112. else
  17113. ac_cv_lib_ipc_shmat=no
  17114. fi
  17115. rm -f core conftest.err conftest.$ac_objext \
  17116. conftest$ac_exeext conftest.$ac_ext
  17117. LIBS=$ac_check_lib_save_LIBS
  17118. fi
  17119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17120. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17121. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17122. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17123. fi
  17124. fi
  17125. fi
  17126. # Check for libraries that X11R6 Xt/Xaw programs need.
  17127. ac_save_LDFLAGS=$LDFLAGS
  17128. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17129. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17130. # check for ICE first), but we must link in the order -lSM -lICE or
  17131. # we get undefined symbols. So assume we have SM if we have ICE.
  17132. # These have to be linked with before -lX11, unlike the other
  17133. # libraries we check for below, so use a different variable.
  17134. # John Interrante, Karl Berry
  17135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17136. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17137. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17138. $as_echo_n "(cached) " >&6
  17139. else
  17140. ac_check_lib_save_LIBS=$LIBS
  17141. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17143. /* end confdefs.h. */
  17144. /* Override any GCC internal prototype to avoid an error.
  17145. Use char because int might match the return type of a GCC
  17146. builtin and then its argument prototype would still apply. */
  17147. #ifdef __cplusplus
  17148. extern "C"
  17149. #endif
  17150. char IceConnectionNumber ();
  17151. int
  17152. main ()
  17153. {
  17154. return IceConnectionNumber ();
  17155. ;
  17156. return 0;
  17157. }
  17158. _ACEOF
  17159. if ac_fn_c_try_link "$LINENO"; then :
  17160. ac_cv_lib_ICE_IceConnectionNumber=yes
  17161. else
  17162. ac_cv_lib_ICE_IceConnectionNumber=no
  17163. fi
  17164. rm -f core conftest.err conftest.$ac_objext \
  17165. conftest$ac_exeext conftest.$ac_ext
  17166. LIBS=$ac_check_lib_save_LIBS
  17167. fi
  17168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17169. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17170. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17171. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17172. fi
  17173. LDFLAGS=$ac_save_LDFLAGS
  17174. fi
  17175. if test x$have_x = xyes; then
  17176. # Check whether --enable-x11-shared was given.
  17177. if test "${enable_x11_shared+set}" = set; then :
  17178. enableval=$enable_x11_shared;
  17179. else
  17180. enable_x11_shared=maybe
  17181. fi
  17182. case "$host" in
  17183. *-*-darwin*)
  17184. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17185. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17186. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17187. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17188. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17189. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17190. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17191. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17192. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17193. ;;
  17194. *-*-openbsd*)
  17195. x11_lib='libX11.so'
  17196. x11ext_lib='libXext.so'
  17197. xcursor_lib='libXcursor.so'
  17198. xinerama_lib='libXinerama.so'
  17199. xinput_lib='libXi.so'
  17200. xrandr_lib='libXrandr.so'
  17201. xrender_lib='libXrender.so'
  17202. xss_lib='libXss.so'
  17203. xvidmode_lib='libXxf86vm.so'
  17204. ;;
  17205. *)
  17206. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17207. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17208. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17209. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17210. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17211. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17212. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17213. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17214. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17215. ;;
  17216. esac
  17217. if test x$ac_cv_func_shmat != xyes; then
  17218. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17219. fi
  17220. CFLAGS="$CFLAGS $X_CFLAGS"
  17221. LDFLAGS="$LDFLAGS $X_LIBS"
  17222. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17223. #include <X11/Xproto.h>
  17224. "
  17225. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17226. have_xext_h_hdr=yes
  17227. else
  17228. have_xext_h_hdr=no
  17229. fi
  17230. if test x$have_xext_h_hdr != xyes; then
  17231. as_fn_error $? "
  17232. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17233. " "$LINENO" 5
  17234. fi
  17235. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17236. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17237. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17238. # Needed so SDL applications can include SDL_syswm.h
  17239. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17240. if test x$enable_x11_shared = xmaybe; then
  17241. enable_x11_shared=yes
  17242. fi
  17243. if test x$have_loadso != xyes && \
  17244. test x$enable_x11_shared = xyes; then
  17245. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17246. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17247. enable_x11_shared=no
  17248. fi
  17249. if test x$have_loadso = xyes && \
  17250. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17251. echo "-- dynamic libX11 -> $x11_lib"
  17252. echo "-- dynamic libX11ext -> $x11ext_lib"
  17253. cat >>confdefs.h <<_ACEOF
  17254. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17255. _ACEOF
  17256. cat >>confdefs.h <<_ACEOF
  17257. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17258. _ACEOF
  17259. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17260. else
  17261. enable_x11_shared=no
  17262. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17263. SUMMARY_video="${SUMMARY_video} x11"
  17264. fi
  17265. have_video=yes
  17266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17267. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17268. have_const_param_XextAddDisplay=no
  17269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17270. /* end confdefs.h. */
  17271. #include <X11/Xlib.h>
  17272. #include <X11/Xproto.h>
  17273. #include <X11/extensions/Xext.h>
  17274. #include <X11/extensions/extutil.h>
  17275. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17276. int
  17277. main ()
  17278. {
  17279. ;
  17280. return 0;
  17281. }
  17282. _ACEOF
  17283. if ac_fn_c_try_compile "$LINENO"; then :
  17284. have_const_param_XextAddDisplay=yes
  17285. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17286. fi
  17287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17289. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17291. $as_echo_n "checking for XGenericEvent... " >&6; }
  17292. have_XGenericEvent=no
  17293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17294. /* end confdefs.h. */
  17295. #include <X11/Xlib.h>
  17296. int
  17297. main ()
  17298. {
  17299. Display *display;
  17300. XEvent event;
  17301. XGenericEventCookie *cookie = &event.xcookie;
  17302. XNextEvent(display, &event);
  17303. XGetEventData(display, cookie);
  17304. XFreeEventData(display, cookie);
  17305. ;
  17306. return 0;
  17307. }
  17308. _ACEOF
  17309. if ac_fn_c_try_compile "$LINENO"; then :
  17310. have_XGenericEvent=yes
  17311. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17312. fi
  17313. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17315. $as_echo "$have_XGenericEvent" >&6; }
  17316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17317. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17318. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17319. $as_echo_n "(cached) " >&6
  17320. else
  17321. ac_check_lib_save_LIBS=$LIBS
  17322. LIBS="-lX11 $LIBS"
  17323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17324. /* end confdefs.h. */
  17325. /* Override any GCC internal prototype to avoid an error.
  17326. Use char because int might match the return type of a GCC
  17327. builtin and then its argument prototype would still apply. */
  17328. #ifdef __cplusplus
  17329. extern "C"
  17330. #endif
  17331. char XkbKeycodeToKeysym ();
  17332. int
  17333. main ()
  17334. {
  17335. return XkbKeycodeToKeysym ();
  17336. ;
  17337. return 0;
  17338. }
  17339. _ACEOF
  17340. if ac_fn_c_try_link "$LINENO"; then :
  17341. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17342. else
  17343. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17344. fi
  17345. rm -f core conftest.err conftest.$ac_objext \
  17346. conftest$ac_exeext conftest.$ac_ext
  17347. LIBS=$ac_check_lib_save_LIBS
  17348. fi
  17349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17350. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17351. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17352. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17353. fi
  17354. # Check whether --enable-video-x11-xcursor was given.
  17355. if test "${enable_video_x11_xcursor+set}" = set; then :
  17356. enableval=$enable_video_x11_xcursor;
  17357. else
  17358. enable_video_x11_xcursor=yes
  17359. fi
  17360. if test x$enable_video_x11_xcursor = xyes; then
  17361. definitely_enable_video_x11_xcursor=no
  17362. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17363. "
  17364. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17365. have_xcursor_h_hdr=yes
  17366. else
  17367. have_xcursor_h_hdr=no
  17368. fi
  17369. if test x$have_xcursor_h_hdr = xyes; then
  17370. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17371. echo "-- dynamic libXcursor -> $xcursor_lib"
  17372. cat >>confdefs.h <<_ACEOF
  17373. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17374. _ACEOF
  17375. definitely_enable_video_x11_xcursor=yes
  17376. else
  17377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17378. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17379. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17380. $as_echo_n "(cached) " >&6
  17381. else
  17382. ac_check_lib_save_LIBS=$LIBS
  17383. LIBS="-lXcursor $LIBS"
  17384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17385. /* end confdefs.h. */
  17386. /* Override any GCC internal prototype to avoid an error.
  17387. Use char because int might match the return type of a GCC
  17388. builtin and then its argument prototype would still apply. */
  17389. #ifdef __cplusplus
  17390. extern "C"
  17391. #endif
  17392. char XcursorImageCreate ();
  17393. int
  17394. main ()
  17395. {
  17396. return XcursorImageCreate ();
  17397. ;
  17398. return 0;
  17399. }
  17400. _ACEOF
  17401. if ac_fn_c_try_link "$LINENO"; then :
  17402. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17403. else
  17404. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17405. fi
  17406. rm -f core conftest.err conftest.$ac_objext \
  17407. conftest$ac_exeext conftest.$ac_ext
  17408. LIBS=$ac_check_lib_save_LIBS
  17409. fi
  17410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17411. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17412. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17413. have_xcursor_lib=yes
  17414. fi
  17415. if test x$have_xcursor_lib = xyes ; then
  17416. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17417. definitely_enable_video_x11_xcursor=yes
  17418. fi
  17419. fi
  17420. fi
  17421. fi
  17422. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17423. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17424. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17425. fi
  17426. # Check whether --enable-video-x11-xdbe was given.
  17427. if test "${enable_video_x11_xdbe+set}" = set; then :
  17428. enableval=$enable_video_x11_xdbe;
  17429. else
  17430. enable_video_x11_xdbe=yes
  17431. fi
  17432. if test x$enable_video_x11_xdbe = xyes; then
  17433. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17434. "
  17435. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17436. have_dbe_h_hdr=yes
  17437. else
  17438. have_dbe_h_hdr=no
  17439. fi
  17440. if test x$have_dbe_h_hdr = xyes; then
  17441. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17442. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17443. fi
  17444. fi
  17445. # Check whether --enable-video-x11-xinerama was given.
  17446. if test "${enable_video_x11_xinerama+set}" = set; then :
  17447. enableval=$enable_video_x11_xinerama;
  17448. else
  17449. enable_video_x11_xinerama=yes
  17450. fi
  17451. if test x$enable_video_x11_xinerama = xyes; then
  17452. definitely_enable_video_x11_xinerama=no
  17453. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17454. "
  17455. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17456. have_xinerama_h_hdr=yes
  17457. else
  17458. have_xinerama_h_hdr=no
  17459. fi
  17460. if test x$have_xinerama_h_hdr = xyes; then
  17461. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17462. echo "-- dynamic libXinerama -> $xinerama_lib"
  17463. cat >>confdefs.h <<_ACEOF
  17464. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17465. _ACEOF
  17466. definitely_enable_video_x11_xinerama=yes
  17467. else
  17468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17469. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17470. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17471. $as_echo_n "(cached) " >&6
  17472. else
  17473. ac_check_lib_save_LIBS=$LIBS
  17474. LIBS="-lXinerama $LIBS"
  17475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17476. /* end confdefs.h. */
  17477. /* Override any GCC internal prototype to avoid an error.
  17478. Use char because int might match the return type of a GCC
  17479. builtin and then its argument prototype would still apply. */
  17480. #ifdef __cplusplus
  17481. extern "C"
  17482. #endif
  17483. char XineramaQueryExtension ();
  17484. int
  17485. main ()
  17486. {
  17487. return XineramaQueryExtension ();
  17488. ;
  17489. return 0;
  17490. }
  17491. _ACEOF
  17492. if ac_fn_c_try_link "$LINENO"; then :
  17493. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17494. else
  17495. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17496. fi
  17497. rm -f core conftest.err conftest.$ac_objext \
  17498. conftest$ac_exeext conftest.$ac_ext
  17499. LIBS=$ac_check_lib_save_LIBS
  17500. fi
  17501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17502. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17503. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17504. have_xinerama_lib=yes
  17505. fi
  17506. if test x$have_xinerama_lib = xyes ; then
  17507. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17508. definitely_enable_video_x11_xinerama=yes
  17509. fi
  17510. fi
  17511. fi
  17512. fi
  17513. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17514. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17515. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17516. fi
  17517. # Check whether --enable-video-x11-xinput was given.
  17518. if test "${enable_video_x11_xinput+set}" = set; then :
  17519. enableval=$enable_video_x11_xinput;
  17520. else
  17521. enable_video_x11_xinput=yes
  17522. fi
  17523. if test x$enable_video_x11_xinput = xyes; then
  17524. definitely_enable_video_x11_xinput=no
  17525. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17526. "
  17527. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17528. have_xinput_h_hdr=yes
  17529. else
  17530. have_xinput_h_hdr=no
  17531. fi
  17532. if test x$have_xinput_h_hdr = xyes; then
  17533. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17534. echo "-- dynamic libXi -> $xinput_lib"
  17535. cat >>confdefs.h <<_ACEOF
  17536. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17537. _ACEOF
  17538. definitely_enable_video_x11_xinput=yes
  17539. else
  17540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17541. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17542. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17543. $as_echo_n "(cached) " >&6
  17544. else
  17545. ac_check_lib_save_LIBS=$LIBS
  17546. LIBS="-lXi $LIBS"
  17547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17548. /* end confdefs.h. */
  17549. /* Override any GCC internal prototype to avoid an error.
  17550. Use char because int might match the return type of a GCC
  17551. builtin and then its argument prototype would still apply. */
  17552. #ifdef __cplusplus
  17553. extern "C"
  17554. #endif
  17555. char XOpenDevice ();
  17556. int
  17557. main ()
  17558. {
  17559. return XOpenDevice ();
  17560. ;
  17561. return 0;
  17562. }
  17563. _ACEOF
  17564. if ac_fn_c_try_link "$LINENO"; then :
  17565. ac_cv_lib_Xi_XOpenDevice=yes
  17566. else
  17567. ac_cv_lib_Xi_XOpenDevice=no
  17568. fi
  17569. rm -f core conftest.err conftest.$ac_objext \
  17570. conftest$ac_exeext conftest.$ac_ext
  17571. LIBS=$ac_check_lib_save_LIBS
  17572. fi
  17573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17574. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17575. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17576. have_xinput_lib=yes
  17577. fi
  17578. if test x$have_xinput_lib = xyes ; then
  17579. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17580. definitely_enable_video_x11_xinput=yes
  17581. fi
  17582. fi
  17583. fi
  17584. fi
  17585. if test x$definitely_enable_video_x11_xinput = xyes; then
  17586. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17587. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17589. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17590. have_xinput2_multitouch=no
  17591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17592. /* end confdefs.h. */
  17593. #include <X11/Xlib.h>
  17594. #include <X11/Xproto.h>
  17595. #include <X11/extensions/XInput2.h>
  17596. int
  17597. main ()
  17598. {
  17599. int event_type = XI_TouchBegin;
  17600. XITouchClassInfo *t;
  17601. ;
  17602. return 0;
  17603. }
  17604. _ACEOF
  17605. if ac_fn_c_try_compile "$LINENO"; then :
  17606. have_xinput2_multitouch=yes
  17607. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17608. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17609. fi
  17610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17612. $as_echo "$have_xinput2_multitouch" >&6; }
  17613. fi
  17614. # Check whether --enable-video-x11-xrandr was given.
  17615. if test "${enable_video_x11_xrandr+set}" = set; then :
  17616. enableval=$enable_video_x11_xrandr;
  17617. else
  17618. enable_video_x11_xrandr=yes
  17619. fi
  17620. if test x$enable_video_x11_xrandr = xyes; then
  17621. definitely_enable_video_x11_xrandr=no
  17622. have_xrandr_h_hdr=no
  17623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17624. /* end confdefs.h. */
  17625. #include <X11/Xlib.h>
  17626. #include <X11/extensions/Xrandr.h>
  17627. int
  17628. main ()
  17629. {
  17630. XRRScreenResources *res = NULL;
  17631. ;
  17632. return 0;
  17633. }
  17634. _ACEOF
  17635. if ac_fn_c_try_compile "$LINENO"; then :
  17636. have_xrandr_h_hdr=yes
  17637. fi
  17638. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17639. if test x$have_xrandr_h_hdr = xyes; then
  17640. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17641. echo "-- dynamic libXrandr -> $xrandr_lib"
  17642. cat >>confdefs.h <<_ACEOF
  17643. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17644. _ACEOF
  17645. definitely_enable_video_x11_xrandr=yes
  17646. else
  17647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17648. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17649. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17650. $as_echo_n "(cached) " >&6
  17651. else
  17652. ac_check_lib_save_LIBS=$LIBS
  17653. LIBS="-lXrandr $LIBS"
  17654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17655. /* end confdefs.h. */
  17656. /* Override any GCC internal prototype to avoid an error.
  17657. Use char because int might match the return type of a GCC
  17658. builtin and then its argument prototype would still apply. */
  17659. #ifdef __cplusplus
  17660. extern "C"
  17661. #endif
  17662. char XRRQueryExtension ();
  17663. int
  17664. main ()
  17665. {
  17666. return XRRQueryExtension ();
  17667. ;
  17668. return 0;
  17669. }
  17670. _ACEOF
  17671. if ac_fn_c_try_link "$LINENO"; then :
  17672. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17673. else
  17674. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17675. fi
  17676. rm -f core conftest.err conftest.$ac_objext \
  17677. conftest$ac_exeext conftest.$ac_ext
  17678. LIBS=$ac_check_lib_save_LIBS
  17679. fi
  17680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17681. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17682. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17683. have_xrandr_lib=yes
  17684. fi
  17685. if test x$have_xrandr_lib = xyes ; then
  17686. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17687. definitely_enable_video_x11_xrandr=yes
  17688. fi
  17689. fi
  17690. fi
  17691. fi
  17692. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17693. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17694. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17695. fi
  17696. # Check whether --enable-video-x11-scrnsaver was given.
  17697. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17698. enableval=$enable_video_x11_scrnsaver;
  17699. else
  17700. enable_video_x11_scrnsaver=yes
  17701. fi
  17702. if test x$enable_video_x11_scrnsaver = xyes; then
  17703. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17704. "
  17705. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17706. have_scrnsaver_h_hdr=yes
  17707. else
  17708. have_scrnsaver_h_hdr=no
  17709. fi
  17710. if test x$have_scrnsaver_h_hdr = xyes; then
  17711. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17712. echo "-- dynamic libXss -> $xss_lib"
  17713. cat >>confdefs.h <<_ACEOF
  17714. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17715. _ACEOF
  17716. definitely_enable_video_x11_scrnsaver=yes
  17717. else
  17718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17719. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17720. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17721. $as_echo_n "(cached) " >&6
  17722. else
  17723. ac_check_lib_save_LIBS=$LIBS
  17724. LIBS="-lXss $LIBS"
  17725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17726. /* end confdefs.h. */
  17727. /* Override any GCC internal prototype to avoid an error.
  17728. Use char because int might match the return type of a GCC
  17729. builtin and then its argument prototype would still apply. */
  17730. #ifdef __cplusplus
  17731. extern "C"
  17732. #endif
  17733. char XScreenSaverSuspend ();
  17734. int
  17735. main ()
  17736. {
  17737. return XScreenSaverSuspend ();
  17738. ;
  17739. return 0;
  17740. }
  17741. _ACEOF
  17742. if ac_fn_c_try_link "$LINENO"; then :
  17743. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17744. else
  17745. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17746. fi
  17747. rm -f core conftest.err conftest.$ac_objext \
  17748. conftest$ac_exeext conftest.$ac_ext
  17749. LIBS=$ac_check_lib_save_LIBS
  17750. fi
  17751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17752. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17753. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17754. have_xss_lib=yes
  17755. fi
  17756. if test x$have_xss_lib = xyes ; then
  17757. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17758. definitely_enable_video_x11_scrnsaver=yes
  17759. fi
  17760. fi
  17761. fi
  17762. fi
  17763. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17764. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17765. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17766. fi
  17767. # Check whether --enable-video-x11-xshape was given.
  17768. if test "${enable_video_x11_xshape+set}" = set; then :
  17769. enableval=$enable_video_x11_xshape;
  17770. else
  17771. enable_video_x11_xshape=yes
  17772. fi
  17773. if test x$enable_video_x11_xshape = xyes; then
  17774. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17775. "
  17776. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17777. have_shape_h_hdr=yes
  17778. else
  17779. have_shape_h_hdr=no
  17780. fi
  17781. if test x$have_shape_h_hdr = xyes; then
  17782. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17783. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  17784. fi
  17785. fi
  17786. # Check whether --enable-video-x11-vm was given.
  17787. if test "${enable_video_x11_vm+set}" = set; then :
  17788. enableval=$enable_video_x11_vm;
  17789. else
  17790. enable_video_x11_vm=yes
  17791. fi
  17792. if test x$enable_video_x11_vm = xyes; then
  17793. definitely_enable_video_x11_vm=no
  17794. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17795. "
  17796. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17797. have_vm_h_hdr=yes
  17798. else
  17799. have_vm_h_hdr=no
  17800. fi
  17801. if test x$have_vm_h_hdr = xyes; then
  17802. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17803. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17804. cat >>confdefs.h <<_ACEOF
  17805. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17806. _ACEOF
  17807. definitely_enable_video_x11_vm=yes
  17808. else
  17809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17810. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17811. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17812. $as_echo_n "(cached) " >&6
  17813. else
  17814. ac_check_lib_save_LIBS=$LIBS
  17815. LIBS="-lXxf86vm $LIBS"
  17816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17817. /* end confdefs.h. */
  17818. /* Override any GCC internal prototype to avoid an error.
  17819. Use char because int might match the return type of a GCC
  17820. builtin and then its argument prototype would still apply. */
  17821. #ifdef __cplusplus
  17822. extern "C"
  17823. #endif
  17824. char XF86VidModeQueryVersion ();
  17825. int
  17826. main ()
  17827. {
  17828. return XF86VidModeQueryVersion ();
  17829. ;
  17830. return 0;
  17831. }
  17832. _ACEOF
  17833. if ac_fn_c_try_link "$LINENO"; then :
  17834. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17835. else
  17836. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17837. fi
  17838. rm -f core conftest.err conftest.$ac_objext \
  17839. conftest$ac_exeext conftest.$ac_ext
  17840. LIBS=$ac_check_lib_save_LIBS
  17841. fi
  17842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17843. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17844. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  17845. have_vm_lib=yes
  17846. fi
  17847. if test x$have_vm_lib = xyes ; then
  17848. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  17849. definitely_enable_video_x11_vm=yes
  17850. fi
  17851. fi
  17852. fi
  17853. fi
  17854. if test x$definitely_enable_video_x11_vm = xyes; then
  17855. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  17856. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  17857. fi
  17858. fi
  17859. fi
  17860. }
  17861. CheckVivanteVideo()
  17862. {
  17863. # Check whether --enable-video-vivante was given.
  17864. if test "${enable_video_vivante+set}" = set; then :
  17865. enableval=$enable_video_vivante;
  17866. else
  17867. enable_video_vivante=yes
  17868. fi
  17869. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  17870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  17871. $as_echo_n "checking for Vivante VDK API... " >&6; }
  17872. have_vivante_vdk=no
  17873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17874. /* end confdefs.h. */
  17875. #define LINUX
  17876. #define EGL_API_FB
  17877. #include <gc_vdk.h>
  17878. int
  17879. main ()
  17880. {
  17881. ;
  17882. return 0;
  17883. }
  17884. _ACEOF
  17885. if ac_fn_c_try_compile "$LINENO"; then :
  17886. have_vivante_vdk=yes
  17887. fi
  17888. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  17890. $as_echo "$have_vivante_vdk" >&6; }
  17891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  17892. $as_echo_n "checking for Vivante FB API... " >&6; }
  17893. have_vivante_egl=no
  17894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17895. /* end confdefs.h. */
  17896. #define LINUX
  17897. #define EGL_API_FB
  17898. #include <EGL/eglvivante.h>
  17899. int
  17900. main ()
  17901. {
  17902. ;
  17903. return 0;
  17904. }
  17905. _ACEOF
  17906. if ac_fn_c_try_compile "$LINENO"; then :
  17907. have_vivante_egl=yes
  17908. fi
  17909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  17911. $as_echo "$have_vivante_egl" >&6; }
  17912. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  17913. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  17914. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  17915. if test x$have_vivante_vdk = xyes; then
  17916. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  17917. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  17918. fi
  17919. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  17920. SUMMARY_video="${SUMMARY_video} vivante"
  17921. have_video=yes
  17922. fi
  17923. fi
  17924. }
  17925. CheckHaikuVideo()
  17926. {
  17927. if test x$enable_video = xyes; then
  17928. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  17929. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  17930. have_video=yes
  17931. SUMMARY_video="${SUMMARY_video} haiku"
  17932. fi
  17933. }
  17934. CheckCOCOA()
  17935. {
  17936. # Check whether --enable-video-cocoa was given.
  17937. if test "${enable_video_cocoa+set}" = set; then :
  17938. enableval=$enable_video_cocoa;
  17939. else
  17940. enable_video_cocoa=yes
  17941. fi
  17942. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  17943. save_CFLAGS="$CFLAGS"
  17944. CFLAGS="$CFLAGS -x objective-c"
  17945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  17946. $as_echo_n "checking for Cocoa framework... " >&6; }
  17947. have_cocoa=no
  17948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17949. /* end confdefs.h. */
  17950. #import <Cocoa/Cocoa.h>
  17951. int
  17952. main ()
  17953. {
  17954. ;
  17955. return 0;
  17956. }
  17957. _ACEOF
  17958. if ac_fn_c_try_compile "$LINENO"; then :
  17959. have_cocoa=yes
  17960. fi
  17961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  17963. $as_echo "$have_cocoa" >&6; }
  17964. CFLAGS="$save_CFLAGS"
  17965. if test x$have_cocoa = xyes; then
  17966. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  17967. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  17968. SUMMARY_video="${SUMMARY_video} cocoa"
  17969. have_video=yes
  17970. fi
  17971. fi
  17972. }
  17973. CheckDirectFB()
  17974. {
  17975. # Check whether --enable-video-directfb was given.
  17976. if test "${enable_video_directfb+set}" = set; then :
  17977. enableval=$enable_video_directfb;
  17978. else
  17979. enable_video_directfb=no
  17980. fi
  17981. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  17982. video_directfb=no
  17983. DIRECTFB_REQUIRED_VERSION=1.0.0
  17984. for ac_prog in directfb-config
  17985. do
  17986. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17987. set dummy $ac_prog; ac_word=$2
  17988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17989. $as_echo_n "checking for $ac_word... " >&6; }
  17990. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  17991. $as_echo_n "(cached) " >&6
  17992. else
  17993. case $DIRECTFBCONFIG in
  17994. [\\/]* | ?:[\\/]*)
  17995. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  17996. ;;
  17997. *)
  17998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17999. as_dummy="$prefix/bin:$PATH"
  18000. for as_dir in $as_dummy
  18001. do
  18002. IFS=$as_save_IFS
  18003. test -z "$as_dir" && as_dir=.
  18004. for ac_exec_ext in '' $ac_executable_extensions; do
  18005. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18006. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18008. break 2
  18009. fi
  18010. done
  18011. done
  18012. IFS=$as_save_IFS
  18013. ;;
  18014. esac
  18015. fi
  18016. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  18017. if test -n "$DIRECTFBCONFIG"; then
  18018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  18019. $as_echo "$DIRECTFBCONFIG" >&6; }
  18020. else
  18021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18022. $as_echo "no" >&6; }
  18023. fi
  18024. test -n "$DIRECTFBCONFIG" && break
  18025. done
  18026. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  18027. if test x$DIRECTFBCONFIG = xno; then
  18028. # Extract the first word of "pkg-config", so it can be a program name with args.
  18029. set dummy pkg-config; ac_word=$2
  18030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18031. $as_echo_n "checking for $ac_word... " >&6; }
  18032. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18033. $as_echo_n "(cached) " >&6
  18034. else
  18035. case $PKG_CONFIG in
  18036. [\\/]* | ?:[\\/]*)
  18037. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18038. ;;
  18039. *)
  18040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18041. for as_dir in $PATH
  18042. do
  18043. IFS=$as_save_IFS
  18044. test -z "$as_dir" && as_dir=.
  18045. for ac_exec_ext in '' $ac_executable_extensions; do
  18046. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18047. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18048. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18049. break 2
  18050. fi
  18051. done
  18052. done
  18053. IFS=$as_save_IFS
  18054. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18055. ;;
  18056. esac
  18057. fi
  18058. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18059. if test -n "$PKG_CONFIG"; then
  18060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18061. $as_echo "$PKG_CONFIG" >&6; }
  18062. else
  18063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18064. $as_echo "no" >&6; }
  18065. fi
  18066. if test x$PKG_CONFIG != xno; then
  18067. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  18068. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  18069. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  18070. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  18071. video_directfb=yes
  18072. fi
  18073. fi
  18074. else
  18075. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  18076. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18077. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  18078. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18079. if test $HAVE_VERSION -ge $NEED_VERSION; then
  18080. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  18081. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  18082. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  18083. video_directfb=yes
  18084. fi
  18085. fi
  18086. if test x$video_directfb = xyes; then
  18087. # SuSE 11.1 installs directfb-config without directfb-devel
  18088. save_CPPFLAGS="$CPPFLAGS"
  18089. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18090. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18091. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18092. have_directfb_hdr=yes
  18093. else
  18094. have_directfb_hdr=no
  18095. fi
  18096. CPPFLAGS="$save_CPPFLAGS"
  18097. video_directfb=$have_directfb_hdr
  18098. fi
  18099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  18100. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  18101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  18102. $as_echo "$video_directfb" >&6; }
  18103. if test x$video_directfb = xyes; then
  18104. # Check whether --enable-directfb-shared was given.
  18105. if test "${enable_directfb_shared+set}" = set; then :
  18106. enableval=$enable_directfb_shared;
  18107. else
  18108. enable_directfb_shared=yes
  18109. fi
  18110. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18111. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18112. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18113. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18115. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18116. directfb_shared=no
  18117. directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  18118. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18119. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18120. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18121. if test x$have_loadso != xyes && \
  18122. test x$enable_directfb_shared = xyes; then
  18123. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18124. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18125. fi
  18126. if test x$have_loadso = xyes && \
  18127. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18128. directfb_shared=yes
  18129. echo "-- $directfb_lib_spec -> $directfb_lib"
  18130. cat >>confdefs.h <<_ACEOF
  18131. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18132. _ACEOF
  18133. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18134. else
  18135. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18136. SUMMARY_video="${SUMMARY_video} directfb"
  18137. fi
  18138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18139. $as_echo "$directfb_shared" >&6; }
  18140. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18141. have_video=yes
  18142. fi
  18143. fi
  18144. }
  18145. CheckDummyVideo()
  18146. {
  18147. # Check whether --enable-video-dummy was given.
  18148. if test "${enable_video_dummy+set}" = set; then :
  18149. enableval=$enable_video_dummy;
  18150. else
  18151. enable_video_dummy=yes
  18152. fi
  18153. if test x$enable_video_dummy = xyes; then
  18154. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18155. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18156. have_video=yes
  18157. SUMMARY_video="${SUMMARY_video} dummy"
  18158. fi
  18159. }
  18160. # Check whether --enable-video-opengl was given.
  18161. if test "${enable_video_opengl+set}" = set; then :
  18162. enableval=$enable_video_opengl;
  18163. else
  18164. enable_video_opengl=yes
  18165. fi
  18166. CheckOpenGLX11()
  18167. {
  18168. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18170. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18171. video_opengl=no
  18172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18173. /* end confdefs.h. */
  18174. #include <GL/gl.h>
  18175. #include <GL/glx.h>
  18176. int
  18177. main ()
  18178. {
  18179. ;
  18180. return 0;
  18181. }
  18182. _ACEOF
  18183. if ac_fn_c_try_compile "$LINENO"; then :
  18184. video_opengl=yes
  18185. fi
  18186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18188. $as_echo "$video_opengl" >&6; }
  18189. if test x$video_opengl = xyes; then
  18190. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18191. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18192. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18193. SUMMARY_video="${SUMMARY_video} opengl"
  18194. fi
  18195. fi
  18196. }
  18197. # Check whether --enable-video-opengles was given.
  18198. if test "${enable_video_opengles+set}" = set; then :
  18199. enableval=$enable_video_opengles;
  18200. else
  18201. enable_video_opengles=yes
  18202. fi
  18203. # Check whether --enable-video-opengles1 was given.
  18204. if test "${enable_video_opengles1+set}" = set; then :
  18205. enableval=$enable_video_opengles1;
  18206. else
  18207. enable_video_opengles1=yes
  18208. fi
  18209. # Check whether --enable-video-opengles2 was given.
  18210. if test "${enable_video_opengles2+set}" = set; then :
  18211. enableval=$enable_video_opengles2;
  18212. else
  18213. enable_video_opengles2=yes
  18214. fi
  18215. CheckOpenGLESX11()
  18216. {
  18217. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18219. $as_echo_n "checking for EGL support... " >&6; }
  18220. video_opengl_egl=no
  18221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18222. /* end confdefs.h. */
  18223. #define LINUX
  18224. #define EGL_API_FB
  18225. #include <EGL/egl.h>
  18226. #include <EGL/eglext.h>
  18227. int
  18228. main ()
  18229. {
  18230. ;
  18231. return 0;
  18232. }
  18233. _ACEOF
  18234. if ac_fn_c_try_compile "$LINENO"; then :
  18235. video_opengl_egl=yes
  18236. fi
  18237. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18239. $as_echo "$video_opengl_egl" >&6; }
  18240. if test x$video_opengl_egl = xyes; then
  18241. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18242. fi
  18243. if test x$enable_video_opengles1 = xyes; then
  18244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18245. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18246. video_opengles_v1=no
  18247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18248. /* end confdefs.h. */
  18249. #include <GLES/gl.h>
  18250. #include <GLES/glext.h>
  18251. int
  18252. main ()
  18253. {
  18254. ;
  18255. return 0;
  18256. }
  18257. _ACEOF
  18258. if ac_fn_c_try_compile "$LINENO"; then :
  18259. video_opengles_v1=yes
  18260. fi
  18261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18263. $as_echo "$video_opengles_v1" >&6; }
  18264. if test x$video_opengles_v1 = xyes; then
  18265. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18266. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18267. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18268. fi
  18269. fi
  18270. if test x$enable_video_opengles2 = xyes; then
  18271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18272. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18273. video_opengles_v2=no
  18274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18275. /* end confdefs.h. */
  18276. #include <GLES2/gl2.h>
  18277. #include <GLES2/gl2ext.h>
  18278. int
  18279. main ()
  18280. {
  18281. ;
  18282. return 0;
  18283. }
  18284. _ACEOF
  18285. if ac_fn_c_try_compile "$LINENO"; then :
  18286. video_opengles_v2=yes
  18287. fi
  18288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18290. $as_echo "$video_opengles_v2" >&6; }
  18291. if test x$video_opengles_v2 = xyes; then
  18292. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18293. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18294. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18295. fi
  18296. fi
  18297. fi
  18298. }
  18299. CheckWINDOWSGL()
  18300. {
  18301. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18302. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18303. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18304. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18305. SUMMARY_video="${SUMMARY_video} opengl"
  18306. fi
  18307. }
  18308. CheckWINDOWSGLES()
  18309. {
  18310. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18312. $as_echo_n "checking for EGL support... " >&6; }
  18313. video_opengl_egl=no
  18314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18315. /* end confdefs.h. */
  18316. #include <EGL/egl.h>
  18317. int
  18318. main ()
  18319. {
  18320. ;
  18321. return 0;
  18322. }
  18323. _ACEOF
  18324. if ac_fn_c_try_compile "$LINENO"; then :
  18325. video_opengl_egl=yes
  18326. fi
  18327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18329. $as_echo "$video_opengl_egl" >&6; }
  18330. if test x$video_opengl_egl = xyes; then
  18331. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18332. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18333. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18334. fi
  18335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18336. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18337. video_opengles_v2=no
  18338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18339. /* end confdefs.h. */
  18340. #include <GLES2/gl2.h>
  18341. #include <GLES2/gl2ext.h>
  18342. int
  18343. main ()
  18344. {
  18345. ;
  18346. return 0;
  18347. }
  18348. _ACEOF
  18349. if ac_fn_c_try_compile "$LINENO"; then :
  18350. video_opengles_v2=yes
  18351. fi
  18352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18354. $as_echo "$video_opengles_v2" >&6; }
  18355. if test x$video_opengles_v2 = xyes; then
  18356. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18357. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18358. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18359. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18360. fi
  18361. fi
  18362. }
  18363. CheckHaikuGL()
  18364. {
  18365. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18366. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18367. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18368. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18369. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18370. SUMMARY_video="${SUMMARY_video} opengl"
  18371. fi
  18372. }
  18373. CheckMacGL()
  18374. {
  18375. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18376. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18377. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18378. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18379. SUMMARY_video="${SUMMARY_video} opengl"
  18380. fi
  18381. }
  18382. CheckEmscriptenGLES()
  18383. {
  18384. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18386. $as_echo_n "checking for EGL support... " >&6; }
  18387. video_opengl_egl=no
  18388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18389. /* end confdefs.h. */
  18390. #include <EGL/egl.h>
  18391. int
  18392. main ()
  18393. {
  18394. ;
  18395. return 0;
  18396. }
  18397. _ACEOF
  18398. if ac_fn_c_try_compile "$LINENO"; then :
  18399. video_opengl_egl=yes
  18400. fi
  18401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18403. $as_echo "$video_opengl_egl" >&6; }
  18404. if test x$video_opengl_egl = xyes; then
  18405. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18406. fi
  18407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18408. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18409. video_opengles_v2=no
  18410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18411. /* end confdefs.h. */
  18412. #include <GLES2/gl2.h>
  18413. #include <GLES2/gl2ext.h>
  18414. int
  18415. main ()
  18416. {
  18417. ;
  18418. return 0;
  18419. }
  18420. _ACEOF
  18421. if ac_fn_c_try_compile "$LINENO"; then :
  18422. video_opengles_v2=yes
  18423. fi
  18424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18426. $as_echo "$video_opengles_v2" >&6; }
  18427. if test x$video_opengles_v2 = xyes; then
  18428. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18429. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18430. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18431. fi
  18432. fi
  18433. }
  18434. CheckInputEvents()
  18435. {
  18436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18437. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18438. use_input_events=no
  18439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18440. /* end confdefs.h. */
  18441. #include <linux/input.h>
  18442. int
  18443. main ()
  18444. {
  18445. #ifndef EVIOCGNAME
  18446. #error EVIOCGNAME() ioctl not available
  18447. #endif
  18448. ;
  18449. return 0;
  18450. }
  18451. _ACEOF
  18452. if ac_fn_c_try_compile "$LINENO"; then :
  18453. use_input_events=yes
  18454. fi
  18455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18457. $as_echo "$use_input_events" >&6; }
  18458. if test x$use_input_events = xyes; then
  18459. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18460. SUMMARY_input="${SUMMARY_input} linuxev"
  18461. fi
  18462. }
  18463. CheckInputKD()
  18464. {
  18465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18466. $as_echo_n "checking for Linux kd.h... " >&6; }
  18467. use_input_kd=no
  18468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18469. /* end confdefs.h. */
  18470. #include <linux/kd.h>
  18471. #include <linux/keyboard.h>
  18472. int
  18473. main ()
  18474. {
  18475. struct kbentry kbe;
  18476. kbe.kb_table = KG_CTRL;
  18477. ioctl(0, KDGKBENT, &kbe);
  18478. ;
  18479. return 0;
  18480. }
  18481. _ACEOF
  18482. if ac_fn_c_try_compile "$LINENO"; then :
  18483. use_input_kd=yes
  18484. fi
  18485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18487. $as_echo "$use_input_kd" >&6; }
  18488. if test x$use_input_kd = xyes; then
  18489. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18490. SUMMARY_input="${SUMMARY_input} linuxkd"
  18491. fi
  18492. }
  18493. CheckLibUDev()
  18494. {
  18495. # Check whether --enable-libudev was given.
  18496. if test "${enable_libudev+set}" = set; then :
  18497. enableval=$enable_libudev;
  18498. else
  18499. enable_libudev=yes
  18500. fi
  18501. if test x$enable_libudev = xyes; then
  18502. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18503. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18504. have_libudev_h_hdr=yes
  18505. else
  18506. have_libudev_h_hdr=no
  18507. fi
  18508. if test x$have_libudev_h_hdr = xyes; then
  18509. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18510. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  18511. if test x$udev_lib != x; then
  18512. echo "-- dynamic udev -> $udev_lib"
  18513. cat >>confdefs.h <<_ACEOF
  18514. #define SDL_UDEV_DYNAMIC "$udev_lib"
  18515. _ACEOF
  18516. fi
  18517. fi
  18518. fi
  18519. }
  18520. CheckDBus()
  18521. {
  18522. # Check whether --enable-dbus was given.
  18523. if test "${enable_dbus+set}" = set; then :
  18524. enableval=$enable_dbus;
  18525. else
  18526. enable_dbus=yes
  18527. fi
  18528. if test x$enable_dbus = xyes; then
  18529. # Extract the first word of "pkg-config", so it can be a program name with args.
  18530. set dummy pkg-config; ac_word=$2
  18531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18532. $as_echo_n "checking for $ac_word... " >&6; }
  18533. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18534. $as_echo_n "(cached) " >&6
  18535. else
  18536. case $PKG_CONFIG in
  18537. [\\/]* | ?:[\\/]*)
  18538. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18539. ;;
  18540. *)
  18541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18542. for as_dir in $PATH
  18543. do
  18544. IFS=$as_save_IFS
  18545. test -z "$as_dir" && as_dir=.
  18546. for ac_exec_ext in '' $ac_executable_extensions; do
  18547. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18548. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18549. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18550. break 2
  18551. fi
  18552. done
  18553. done
  18554. IFS=$as_save_IFS
  18555. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18556. ;;
  18557. esac
  18558. fi
  18559. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18560. if test -n "$PKG_CONFIG"; then
  18561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18562. $as_echo "$PKG_CONFIG" >&6; }
  18563. else
  18564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18565. $as_echo "no" >&6; }
  18566. fi
  18567. if test x$PKG_CONFIG != xno; then
  18568. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18569. save_CFLAGS="$CFLAGS"
  18570. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18571. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18572. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18573. have_dbus_dbus_h_hdr=yes
  18574. else
  18575. have_dbus_dbus_h_hdr=no
  18576. fi
  18577. CFLAGS="$save_CFLAGS"
  18578. if test x$have_dbus_dbus_h_hdr = xyes; then
  18579. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18580. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18581. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  18582. fi
  18583. fi
  18584. fi
  18585. }
  18586. CheckIME()
  18587. {
  18588. # Check whether --enable-ime was given.
  18589. if test "${enable_ime+set}" = set; then :
  18590. enableval=$enable_ime;
  18591. else
  18592. enable_ime=yes
  18593. fi
  18594. if test x$enable_ime = xyes; then
  18595. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  18596. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  18597. fi
  18598. }
  18599. CheckIBus()
  18600. {
  18601. # Check whether --enable-ibus was given.
  18602. if test "${enable_ibus+set}" = set; then :
  18603. enableval=$enable_ibus;
  18604. else
  18605. enable_ibus=yes
  18606. fi
  18607. if test x$enable_ibus = xyes; then
  18608. # Extract the first word of "pkg-config", so it can be a program name with args.
  18609. set dummy pkg-config; ac_word=$2
  18610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18611. $as_echo_n "checking for $ac_word... " >&6; }
  18612. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18613. $as_echo_n "(cached) " >&6
  18614. else
  18615. case $PKG_CONFIG in
  18616. [\\/]* | ?:[\\/]*)
  18617. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18618. ;;
  18619. *)
  18620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18621. for as_dir in $PATH
  18622. do
  18623. IFS=$as_save_IFS
  18624. test -z "$as_dir" && as_dir=.
  18625. for ac_exec_ext in '' $ac_executable_extensions; do
  18626. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18627. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18628. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18629. break 2
  18630. fi
  18631. done
  18632. done
  18633. IFS=$as_save_IFS
  18634. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18635. ;;
  18636. esac
  18637. fi
  18638. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18639. if test -n "$PKG_CONFIG"; then
  18640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18641. $as_echo "$PKG_CONFIG" >&6; }
  18642. else
  18643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18644. $as_echo "no" >&6; }
  18645. fi
  18646. if test x$PKG_CONFIG != xno; then
  18647. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  18648. save_CFLAGS="$CFLAGS"
  18649. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  18650. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  18651. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  18652. have_ibus_ibus_h_hdr=yes
  18653. else
  18654. have_ibus_ibus_h_hdr=no
  18655. fi
  18656. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  18657. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  18658. have_inotify_inotify_h_hdr=yes
  18659. else
  18660. have_inotify_inotify_h_hdr=no
  18661. fi
  18662. CFLAGS="$save_CFLAGS"
  18663. if test x$have_ibus_ibus_h_hdr = xyes; then
  18664. if test x$enable_ime != xyes; then
  18665. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  18666. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  18667. have_ibus_ibus_h_hdr=no
  18668. elif test x$enable_dbus != xyes; then
  18669. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  18670. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  18671. have_ibus_ibus_h_hdr=no
  18672. elif test x$have_inotify_inotify_h_hdr != xyes; then
  18673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  18674. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  18675. have_ibus_ibus_h_hdr=no
  18676. else
  18677. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  18678. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  18679. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  18680. fi
  18681. fi
  18682. fi
  18683. fi
  18684. }
  18685. CheckFcitx()
  18686. {
  18687. # Check whether --enable-fcitx was given.
  18688. if test "${enable_fcitx+set}" = set; then :
  18689. enableval=$enable_fcitx;
  18690. else
  18691. enable_fcitx=yes
  18692. fi
  18693. if test x$enable_fcitx = xyes; then
  18694. # Extract the first word of "pkg-config", so it can be a program name with args.
  18695. set dummy pkg-config; ac_word=$2
  18696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18697. $as_echo_n "checking for $ac_word... " >&6; }
  18698. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18699. $as_echo_n "(cached) " >&6
  18700. else
  18701. case $PKG_CONFIG in
  18702. [\\/]* | ?:[\\/]*)
  18703. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18704. ;;
  18705. *)
  18706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18707. for as_dir in $PATH
  18708. do
  18709. IFS=$as_save_IFS
  18710. test -z "$as_dir" && as_dir=.
  18711. for ac_exec_ext in '' $ac_executable_extensions; do
  18712. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18713. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18714. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18715. break 2
  18716. fi
  18717. done
  18718. done
  18719. IFS=$as_save_IFS
  18720. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18721. ;;
  18722. esac
  18723. fi
  18724. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18725. if test -n "$PKG_CONFIG"; then
  18726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18727. $as_echo "$PKG_CONFIG" >&6; }
  18728. else
  18729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18730. $as_echo "no" >&6; }
  18731. fi
  18732. if test x$PKG_CONFIG != xno; then
  18733. FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
  18734. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  18735. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  18736. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  18737. have_fcitx_frontend_h_hdr=yes
  18738. else
  18739. have_fcitx_frontend_h_hdr=no
  18740. fi
  18741. CFLAGS="$save_CFLAGS"
  18742. if test x$have_fcitx_frontend_h_hdr = xyes; then
  18743. if test x$enable_ime != xyes; then
  18744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  18745. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  18746. have_fcitx_frontend_h_hdr=no
  18747. elif test x$enable_dbus != xyes; then
  18748. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  18749. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  18750. have_fcitx_frontend_h_hdr=no
  18751. else
  18752. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  18753. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  18754. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  18755. fi
  18756. fi
  18757. fi
  18758. fi
  18759. }
  18760. CheckTslib()
  18761. {
  18762. # Check whether --enable-input-tslib was given.
  18763. if test "${enable_input_tslib+set}" = set; then :
  18764. enableval=$enable_input_tslib;
  18765. else
  18766. enable_input_tslib=yes
  18767. fi
  18768. if test x$enable_input_tslib = xyes; then
  18769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  18770. $as_echo_n "checking for Touchscreen library support... " >&6; }
  18771. enable_input_tslib=no
  18772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18773. /* end confdefs.h. */
  18774. #include "tslib.h"
  18775. int
  18776. main ()
  18777. {
  18778. ;
  18779. return 0;
  18780. }
  18781. _ACEOF
  18782. if ac_fn_c_try_compile "$LINENO"; then :
  18783. enable_input_tslib=yes
  18784. fi
  18785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  18787. $as_echo "$enable_input_tslib" >&6; }
  18788. if test x$enable_input_tslib = xyes; then
  18789. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  18790. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  18791. SUMMARY_input="${SUMMARY_input} ts"
  18792. fi
  18793. fi
  18794. }
  18795. CheckPTHREAD()
  18796. {
  18797. # Check whether --enable-pthreads was given.
  18798. if test "${enable_pthreads+set}" = set; then :
  18799. enableval=$enable_pthreads;
  18800. else
  18801. enable_pthreads=yes
  18802. fi
  18803. # Check whether --enable-pthread-sem was given.
  18804. if test "${enable_pthread_sem+set}" = set; then :
  18805. enableval=$enable_pthread_sem;
  18806. else
  18807. enable_pthread_sem=yes
  18808. fi
  18809. case "$host" in
  18810. *-*-androideabi*)
  18811. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18812. pthread_lib=""
  18813. ;;
  18814. *-*-linux*|*-*-uclinux*)
  18815. pthread_cflags="-D_REENTRANT"
  18816. pthread_lib="-lpthread"
  18817. ;;
  18818. *-*-bsdi*)
  18819. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18820. pthread_lib=""
  18821. ;;
  18822. *-*-darwin*)
  18823. pthread_cflags="-D_THREAD_SAFE"
  18824. # causes Carbon.p complaints?
  18825. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18826. ;;
  18827. *-*-freebsd*|*-*-dragonfly*)
  18828. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18829. pthread_lib="-pthread"
  18830. ;;
  18831. *-*-netbsd*)
  18832. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18833. pthread_lib="-lpthread"
  18834. ;;
  18835. *-*-openbsd*)
  18836. pthread_cflags="-D_REENTRANT"
  18837. pthread_lib="-pthread"
  18838. ;;
  18839. *-*-solaris2.9)
  18840. # From Solaris 9+, posix4's preferred name is rt.
  18841. pthread_cflags="-D_REENTRANT"
  18842. pthread_lib="-lpthread -lrt"
  18843. ;;
  18844. *-*-solaris2.10)
  18845. # Solaris 10+ merged pthread into libc.
  18846. pthread_cflags="-D_REENTRANT"
  18847. pthread_lib="-lrt"
  18848. ;;
  18849. *-*-solaris*)
  18850. # Solaris 11+ merged rt into libc.
  18851. pthread_cflags="-D_REENTRANT"
  18852. pthread_lib=""
  18853. ;;
  18854. *-*-sysv5*)
  18855. pthread_cflags="-D_REENTRANT -Kthread"
  18856. pthread_lib=""
  18857. ;;
  18858. *-*-aix*)
  18859. pthread_cflags="-D_REENTRANT -mthreads"
  18860. pthread_lib="-lpthread"
  18861. ;;
  18862. *-*-hpux11*)
  18863. pthread_cflags="-D_REENTRANT"
  18864. pthread_lib="-L/usr/lib -lpthread"
  18865. ;;
  18866. *-*-haiku*)
  18867. pthread_cflags="-D_REENTRANT"
  18868. pthread_lib=""
  18869. ;;
  18870. *)
  18871. pthread_cflags="-D_REENTRANT"
  18872. pthread_lib="-lpthread"
  18873. ;;
  18874. esac
  18875. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  18876. # Save the original compiler flags and libraries
  18877. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18878. # Add the pthread compiler flags and libraries
  18879. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18880. # Check to see if we have pthread support on this system
  18881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  18882. $as_echo_n "checking for pthreads... " >&6; }
  18883. use_pthreads=no
  18884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18885. /* end confdefs.h. */
  18886. #include <pthread.h>
  18887. int
  18888. main ()
  18889. {
  18890. pthread_attr_t type;
  18891. pthread_attr_init(&type);
  18892. ;
  18893. return 0;
  18894. }
  18895. _ACEOF
  18896. if ac_fn_c_try_link "$LINENO"; then :
  18897. use_pthreads=yes
  18898. fi
  18899. rm -f core conftest.err conftest.$ac_objext \
  18900. conftest$ac_exeext conftest.$ac_ext
  18901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  18902. $as_echo "$use_pthreads" >&6; }
  18903. # Restore the compiler flags and libraries
  18904. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18905. # Do futher testing if we have pthread support...
  18906. if test x$use_pthreads = xyes; then
  18907. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  18908. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  18909. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  18910. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  18911. # Save the original compiler flags and libraries
  18912. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18913. # Add the pthread compiler flags and libraries
  18914. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18915. # Check to see if recursive mutexes are available
  18916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  18917. $as_echo_n "checking for recursive mutexes... " >&6; }
  18918. has_recursive_mutexes=no
  18919. if test x$has_recursive_mutexes = xno; then
  18920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18921. /* end confdefs.h. */
  18922. #define _GNU_SOURCE 1
  18923. #include <pthread.h>
  18924. int
  18925. main ()
  18926. {
  18927. pthread_mutexattr_t attr;
  18928. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  18929. ;
  18930. return 0;
  18931. }
  18932. _ACEOF
  18933. if ac_fn_c_try_link "$LINENO"; then :
  18934. has_recursive_mutexes=yes
  18935. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  18936. fi
  18937. rm -f core conftest.err conftest.$ac_objext \
  18938. conftest$ac_exeext conftest.$ac_ext
  18939. fi
  18940. if test x$has_recursive_mutexes = xno; then
  18941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18942. /* end confdefs.h. */
  18943. #define _GNU_SOURCE 1
  18944. #include <pthread.h>
  18945. int
  18946. main ()
  18947. {
  18948. pthread_mutexattr_t attr;
  18949. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  18950. ;
  18951. return 0;
  18952. }
  18953. _ACEOF
  18954. if ac_fn_c_try_link "$LINENO"; then :
  18955. has_recursive_mutexes=yes
  18956. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  18957. fi
  18958. rm -f core conftest.err conftest.$ac_objext \
  18959. conftest$ac_exeext conftest.$ac_ext
  18960. fi
  18961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  18962. $as_echo "$has_recursive_mutexes" >&6; }
  18963. # Check to see if pthread semaphore support is missing
  18964. if test x$enable_pthread_sem = xyes; then
  18965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  18966. $as_echo_n "checking for pthread semaphores... " >&6; }
  18967. have_pthread_sem=no
  18968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18969. /* end confdefs.h. */
  18970. #include <pthread.h>
  18971. #include <semaphore.h>
  18972. int
  18973. main ()
  18974. {
  18975. ;
  18976. return 0;
  18977. }
  18978. _ACEOF
  18979. if ac_fn_c_try_compile "$LINENO"; then :
  18980. have_pthread_sem=yes
  18981. fi
  18982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  18984. $as_echo "$have_pthread_sem" >&6; }
  18985. fi
  18986. if test x$have_pthread_sem = xyes; then
  18987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  18988. $as_echo_n "checking for sem_timedwait... " >&6; }
  18989. have_sem_timedwait=no
  18990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18991. /* end confdefs.h. */
  18992. #include <pthread.h>
  18993. #include <semaphore.h>
  18994. int
  18995. main ()
  18996. {
  18997. sem_timedwait(NULL, NULL);
  18998. ;
  18999. return 0;
  19000. }
  19001. _ACEOF
  19002. if ac_fn_c_try_link "$LINENO"; then :
  19003. have_sem_timedwait=yes
  19004. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19005. fi
  19006. rm -f core conftest.err conftest.$ac_objext \
  19007. conftest$ac_exeext conftest.$ac_ext
  19008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19009. $as_echo "$have_sem_timedwait" >&6; }
  19010. fi
  19011. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19012. "
  19013. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19014. have_pthread_np_h=yes
  19015. else
  19016. have_pthread_np_h=no
  19017. fi
  19018. if test x$have_pthread_np_h = xyes; then
  19019. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19020. fi
  19021. # Check to see if pthread naming is available
  19022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19023. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19025. /* end confdefs.h. */
  19026. /* Override any GCC internal prototype to avoid an error.
  19027. Use char because int might match the return type of a GCC
  19028. builtin and then its argument prototype would still apply. */
  19029. #ifdef __cplusplus
  19030. extern "C"
  19031. #endif
  19032. char pthread_setname_np ();
  19033. int
  19034. main ()
  19035. {
  19036. return pthread_setname_np ();
  19037. ;
  19038. return 0;
  19039. }
  19040. _ACEOF
  19041. if ac_fn_c_try_link "$LINENO"; then :
  19042. has_pthread_setname_np=yes
  19043. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19044. else
  19045. has_pthread_setname_np=no
  19046. fi
  19047. rm -f core conftest.err conftest.$ac_objext \
  19048. conftest$ac_exeext conftest.$ac_ext
  19049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19050. $as_echo "$has_pthread_setname_np" >&6; }
  19051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19052. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19054. /* end confdefs.h. */
  19055. /* Override any GCC internal prototype to avoid an error.
  19056. Use char because int might match the return type of a GCC
  19057. builtin and then its argument prototype would still apply. */
  19058. #ifdef __cplusplus
  19059. extern "C"
  19060. #endif
  19061. char pthread_set_name_np ();
  19062. int
  19063. main ()
  19064. {
  19065. return pthread_set_name_np ();
  19066. ;
  19067. return 0;
  19068. }
  19069. _ACEOF
  19070. if ac_fn_c_try_link "$LINENO"; then :
  19071. has_pthread_set_name_np=yes
  19072. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19073. else
  19074. has_pthread_set_name_np=no
  19075. fi
  19076. rm -f core conftest.err conftest.$ac_objext \
  19077. conftest$ac_exeext conftest.$ac_ext
  19078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19079. $as_echo "$has_pthread_set_name_np" >&6; }
  19080. # Restore the compiler flags and libraries
  19081. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19082. # Basic thread creation functions
  19083. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19084. # Semaphores
  19085. # We can fake these with mutexes and condition variables if necessary
  19086. if test x$have_pthread_sem = xyes; then
  19087. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19088. else
  19089. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19090. fi
  19091. # Mutexes
  19092. # We can fake these with semaphores if necessary
  19093. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19094. # Condition variables
  19095. # We can fake these with semaphores and mutexes if necessary
  19096. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19097. # Thread local storage
  19098. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19099. have_threads=yes
  19100. fi
  19101. fi
  19102. }
  19103. CheckWINDOWS()
  19104. {
  19105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19106. $as_echo_n "checking Windows compiler... " >&6; }
  19107. have_win32_gcc=no
  19108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19109. /* end confdefs.h. */
  19110. #include <windows.h>
  19111. int
  19112. main ()
  19113. {
  19114. ;
  19115. return 0;
  19116. }
  19117. _ACEOF
  19118. if ac_fn_c_try_compile "$LINENO"; then :
  19119. have_win32_gcc=yes
  19120. fi
  19121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19123. $as_echo "$have_win32_gcc" >&6; }
  19124. if test x$have_win32_gcc != xyes; then
  19125. as_fn_error $? "
  19126. *** Your compiler ($CC) does not produce Windows executables!
  19127. " "$LINENO" 5
  19128. fi
  19129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19130. $as_echo_n "checking Windows CE... " >&6; }
  19131. have_wince=no
  19132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19133. /* end confdefs.h. */
  19134. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19135. #error This is not Windows CE
  19136. #endif
  19137. int
  19138. main ()
  19139. {
  19140. ;
  19141. return 0;
  19142. }
  19143. _ACEOF
  19144. if ac_fn_c_try_compile "$LINENO"; then :
  19145. have_wince=yes
  19146. as_fn_error $? "
  19147. *** Sorry, Windows CE is no longer supported.
  19148. " "$LINENO" 5
  19149. fi
  19150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19152. $as_echo "$have_wince" >&6; }
  19153. # This fixes Windows stack alignment with newer GCC
  19154. CheckStackBoundary
  19155. }
  19156. CheckDIRECTX()
  19157. {
  19158. # Check whether --enable-directx was given.
  19159. if test "${enable_directx+set}" = set; then :
  19160. enableval=$enable_directx;
  19161. else
  19162. enable_directx=yes
  19163. fi
  19164. if test x$enable_directx = xyes; then
  19165. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19166. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19167. have_d3d=yes
  19168. fi
  19169. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19170. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19171. have_d3d11=yes
  19172. fi
  19173. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19174. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19175. have_ddraw=yes
  19176. fi
  19177. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19178. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19179. have_dsound=yes
  19180. fi
  19181. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19182. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19183. have_dinput=yes
  19184. fi
  19185. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19186. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19187. have_dxgi=yes
  19188. fi
  19189. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  19190. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  19191. have_xaudio2=yes
  19192. fi
  19193. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19194. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19195. have_xinput=yes
  19196. fi
  19197. if test x$have_ddraw = xyes; then
  19198. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19199. fi
  19200. if test x$have_dinput = xyes; then
  19201. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19202. fi
  19203. if test x$have_dsound = xyes; then
  19204. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19205. fi
  19206. if test x$have_dxgi = xyes; then
  19207. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19208. fi
  19209. if test x$have_xinput = xyes; then
  19210. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19211. fi
  19212. SUMMARY_video="${SUMMARY_video} directx"
  19213. SUMMARY_audio="${SUMMARY_audio} directx"
  19214. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19215. # FIXME: ...so force it off for now.
  19216. case "$host" in
  19217. *-*-cygwin*)
  19218. have_dinput=false
  19219. ;;
  19220. esac
  19221. fi
  19222. }
  19223. CheckDLOPEN()
  19224. {
  19225. # Check whether --enable-sdl-dlopen was given.
  19226. if test "${enable_sdl_dlopen+set}" = set; then :
  19227. enableval=$enable_sdl_dlopen;
  19228. else
  19229. enable_sdl_dlopen=yes
  19230. fi
  19231. if test x$enable_sdl_dlopen = xyes; then
  19232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19233. $as_echo_n "checking for dlopen... " >&6; }
  19234. have_dlopen=no
  19235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19236. /* end confdefs.h. */
  19237. #include <dlfcn.h>
  19238. int
  19239. main ()
  19240. {
  19241. void *handle = dlopen("", RTLD_NOW);
  19242. const char *loaderror = (char *) dlerror();
  19243. ;
  19244. return 0;
  19245. }
  19246. _ACEOF
  19247. if ac_fn_c_try_compile "$LINENO"; then :
  19248. have_dlopen=yes
  19249. fi
  19250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19252. $as_echo "$have_dlopen" >&6; }
  19253. if test x$have_dlopen = xyes; then
  19254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19255. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19256. if ${ac_cv_lib_c_dlopen+:} false; then :
  19257. $as_echo_n "(cached) " >&6
  19258. else
  19259. ac_check_lib_save_LIBS=$LIBS
  19260. LIBS="-lc $LIBS"
  19261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19262. /* end confdefs.h. */
  19263. /* Override any GCC internal prototype to avoid an error.
  19264. Use char because int might match the return type of a GCC
  19265. builtin and then its argument prototype would still apply. */
  19266. #ifdef __cplusplus
  19267. extern "C"
  19268. #endif
  19269. char dlopen ();
  19270. int
  19271. main ()
  19272. {
  19273. return dlopen ();
  19274. ;
  19275. return 0;
  19276. }
  19277. _ACEOF
  19278. if ac_fn_c_try_link "$LINENO"; then :
  19279. ac_cv_lib_c_dlopen=yes
  19280. else
  19281. ac_cv_lib_c_dlopen=no
  19282. fi
  19283. rm -f core conftest.err conftest.$ac_objext \
  19284. conftest$ac_exeext conftest.$ac_ext
  19285. LIBS=$ac_check_lib_save_LIBS
  19286. fi
  19287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19288. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19289. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19290. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19291. else
  19292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19293. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19294. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19295. $as_echo_n "(cached) " >&6
  19296. else
  19297. ac_check_lib_save_LIBS=$LIBS
  19298. LIBS="-ldl $LIBS"
  19299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19300. /* end confdefs.h. */
  19301. /* Override any GCC internal prototype to avoid an error.
  19302. Use char because int might match the return type of a GCC
  19303. builtin and then its argument prototype would still apply. */
  19304. #ifdef __cplusplus
  19305. extern "C"
  19306. #endif
  19307. char dlopen ();
  19308. int
  19309. main ()
  19310. {
  19311. return dlopen ();
  19312. ;
  19313. return 0;
  19314. }
  19315. _ACEOF
  19316. if ac_fn_c_try_link "$LINENO"; then :
  19317. ac_cv_lib_dl_dlopen=yes
  19318. else
  19319. ac_cv_lib_dl_dlopen=no
  19320. fi
  19321. rm -f core conftest.err conftest.$ac_objext \
  19322. conftest$ac_exeext conftest.$ac_ext
  19323. LIBS=$ac_check_lib_save_LIBS
  19324. fi
  19325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19326. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19327. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19328. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19329. else
  19330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19331. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19332. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19333. $as_echo_n "(cached) " >&6
  19334. else
  19335. ac_check_lib_save_LIBS=$LIBS
  19336. LIBS="-lltdl $LIBS"
  19337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19338. /* end confdefs.h. */
  19339. /* Override any GCC internal prototype to avoid an error.
  19340. Use char because int might match the return type of a GCC
  19341. builtin and then its argument prototype would still apply. */
  19342. #ifdef __cplusplus
  19343. extern "C"
  19344. #endif
  19345. char dlopen ();
  19346. int
  19347. main ()
  19348. {
  19349. return dlopen ();
  19350. ;
  19351. return 0;
  19352. }
  19353. _ACEOF
  19354. if ac_fn_c_try_link "$LINENO"; then :
  19355. ac_cv_lib_ltdl_dlopen=yes
  19356. else
  19357. ac_cv_lib_ltdl_dlopen=no
  19358. fi
  19359. rm -f core conftest.err conftest.$ac_objext \
  19360. conftest$ac_exeext conftest.$ac_ext
  19361. LIBS=$ac_check_lib_save_LIBS
  19362. fi
  19363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19364. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19365. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19366. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19367. fi
  19368. fi
  19369. fi
  19370. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19371. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19372. have_loadso=yes
  19373. fi
  19374. fi
  19375. }
  19376. CheckUSBHID()
  19377. {
  19378. case "$host" in
  19379. *-*-*bsd*)
  19380. if test x$enable_joystick = xyes; then
  19381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19382. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19383. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19384. $as_echo_n "(cached) " >&6
  19385. else
  19386. ac_check_lib_save_LIBS=$LIBS
  19387. LIBS="-lusbhid $LIBS"
  19388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19389. /* end confdefs.h. */
  19390. /* Override any GCC internal prototype to avoid an error.
  19391. Use char because int might match the return type of a GCC
  19392. builtin and then its argument prototype would still apply. */
  19393. #ifdef __cplusplus
  19394. extern "C"
  19395. #endif
  19396. char hid_init ();
  19397. int
  19398. main ()
  19399. {
  19400. return hid_init ();
  19401. ;
  19402. return 0;
  19403. }
  19404. _ACEOF
  19405. if ac_fn_c_try_link "$LINENO"; then :
  19406. ac_cv_lib_usbhid_hid_init=yes
  19407. else
  19408. ac_cv_lib_usbhid_hid_init=no
  19409. fi
  19410. rm -f core conftest.err conftest.$ac_objext \
  19411. conftest$ac_exeext conftest.$ac_ext
  19412. LIBS=$ac_check_lib_save_LIBS
  19413. fi
  19414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19415. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19416. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  19417. have_libusbhid=yes
  19418. fi
  19419. if test x$have_libusbhid = xyes; then
  19420. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  19421. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  19422. USB_CFLAGS="-DHAVE_USBHID_H"
  19423. fi
  19424. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  19425. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  19426. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  19427. fi
  19428. USB_LIBS="$USB_LIBS -lusbhid"
  19429. else
  19430. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  19431. if test "x$ac_cv_header_usb_h" = xyes; then :
  19432. USB_CFLAGS="-DHAVE_USB_H"
  19433. fi
  19434. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  19435. if test "x$ac_cv_header_libusb_h" = xyes; then :
  19436. USB_CFLAGS="-DHAVE_LIBUSB_H"
  19437. fi
  19438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  19439. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  19440. if ${ac_cv_lib_usb_hid_init+:} false; then :
  19441. $as_echo_n "(cached) " >&6
  19442. else
  19443. ac_check_lib_save_LIBS=$LIBS
  19444. LIBS="-lusb $LIBS"
  19445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19446. /* end confdefs.h. */
  19447. /* Override any GCC internal prototype to avoid an error.
  19448. Use char because int might match the return type of a GCC
  19449. builtin and then its argument prototype would still apply. */
  19450. #ifdef __cplusplus
  19451. extern "C"
  19452. #endif
  19453. char hid_init ();
  19454. int
  19455. main ()
  19456. {
  19457. return hid_init ();
  19458. ;
  19459. return 0;
  19460. }
  19461. _ACEOF
  19462. if ac_fn_c_try_link "$LINENO"; then :
  19463. ac_cv_lib_usb_hid_init=yes
  19464. else
  19465. ac_cv_lib_usb_hid_init=no
  19466. fi
  19467. rm -f core conftest.err conftest.$ac_objext \
  19468. conftest$ac_exeext conftest.$ac_ext
  19469. LIBS=$ac_check_lib_save_LIBS
  19470. fi
  19471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  19472. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  19473. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  19474. USB_LIBS="$USB_LIBS -lusb"
  19475. fi
  19476. fi
  19477. save_CFLAGS="$CFLAGS"
  19478. CFLAGS="$CFLAGS $USB_CFLAGS"
  19479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  19480. $as_echo_n "checking for usbhid... " >&6; }
  19481. have_usbhid=no
  19482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19483. /* end confdefs.h. */
  19484. #include <sys/types.h>
  19485. #if defined(HAVE_USB_H)
  19486. #include <usb.h>
  19487. #endif
  19488. #ifdef __DragonFly__
  19489. # include <bus/usb/usb.h>
  19490. # include <bus/usb/usbhid.h>
  19491. #else
  19492. # include <dev/usb/usb.h>
  19493. # include <dev/usb/usbhid.h>
  19494. #endif
  19495. #if defined(HAVE_USBHID_H)
  19496. #include <usbhid.h>
  19497. #elif defined(HAVE_LIBUSB_H)
  19498. #include <libusb.h>
  19499. #elif defined(HAVE_LIBUSBHID_H)
  19500. #include <libusbhid.h>
  19501. #endif
  19502. int
  19503. main ()
  19504. {
  19505. struct report_desc *repdesc;
  19506. struct usb_ctl_report *repbuf;
  19507. hid_kind_t hidkind;
  19508. ;
  19509. return 0;
  19510. }
  19511. _ACEOF
  19512. if ac_fn_c_try_compile "$LINENO"; then :
  19513. have_usbhid=yes
  19514. fi
  19515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  19517. $as_echo "$have_usbhid" >&6; }
  19518. if test x$have_usbhid = xyes; then
  19519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  19520. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  19521. have_usbhid_ucr_data=no
  19522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19523. /* end confdefs.h. */
  19524. #include <sys/types.h>
  19525. #if defined(HAVE_USB_H)
  19526. #include <usb.h>
  19527. #endif
  19528. #ifdef __DragonFly__
  19529. # include <bus/usb/usb.h>
  19530. # include <bus/usb/usbhid.h>
  19531. #else
  19532. # include <dev/usb/usb.h>
  19533. # include <dev/usb/usbhid.h>
  19534. #endif
  19535. #if defined(HAVE_USBHID_H)
  19536. #include <usbhid.h>
  19537. #elif defined(HAVE_LIBUSB_H)
  19538. #include <libusb.h>
  19539. #elif defined(HAVE_LIBUSBHID_H)
  19540. #include <libusbhid.h>
  19541. #endif
  19542. int
  19543. main ()
  19544. {
  19545. struct usb_ctl_report buf;
  19546. if (buf.ucr_data) { }
  19547. ;
  19548. return 0;
  19549. }
  19550. _ACEOF
  19551. if ac_fn_c_try_compile "$LINENO"; then :
  19552. have_usbhid_ucr_data=yes
  19553. fi
  19554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19555. if test x$have_usbhid_ucr_data = xyes; then
  19556. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  19557. fi
  19558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  19559. $as_echo "$have_usbhid_ucr_data" >&6; }
  19560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  19561. $as_echo_n "checking for new usbhid API... " >&6; }
  19562. have_usbhid_new=no
  19563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19564. /* end confdefs.h. */
  19565. #include <sys/types.h>
  19566. #if defined(HAVE_USB_H)
  19567. #include <usb.h>
  19568. #endif
  19569. #ifdef __DragonFly__
  19570. #include <bus/usb/usb.h>
  19571. #include <bus/usb/usbhid.h>
  19572. #else
  19573. #include <dev/usb/usb.h>
  19574. #include <dev/usb/usbhid.h>
  19575. #endif
  19576. #if defined(HAVE_USBHID_H)
  19577. #include <usbhid.h>
  19578. #elif defined(HAVE_LIBUSB_H)
  19579. #include <libusb.h>
  19580. #elif defined(HAVE_LIBUSBHID_H)
  19581. #include <libusbhid.h>
  19582. #endif
  19583. int
  19584. main ()
  19585. {
  19586. report_desc_t d;
  19587. hid_start_parse(d, 1, 1);
  19588. ;
  19589. return 0;
  19590. }
  19591. _ACEOF
  19592. if ac_fn_c_try_compile "$LINENO"; then :
  19593. have_usbhid_new=yes
  19594. fi
  19595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19596. if test x$have_usbhid_new = xyes; then
  19597. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  19598. fi
  19599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  19600. $as_echo "$have_usbhid_new" >&6; }
  19601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  19602. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  19603. have_machine_joystick=no
  19604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19605. /* end confdefs.h. */
  19606. #include <machine/joystick.h>
  19607. int
  19608. main ()
  19609. {
  19610. struct joystick t;
  19611. ;
  19612. return 0;
  19613. }
  19614. _ACEOF
  19615. if ac_fn_c_try_compile "$LINENO"; then :
  19616. have_machine_joystick=yes
  19617. fi
  19618. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19619. if test x$have_machine_joystick = xyes; then
  19620. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  19621. fi
  19622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  19623. $as_echo "$have_machine_joystick" >&6; }
  19624. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  19625. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  19626. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  19627. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  19628. have_joystick=yes
  19629. fi
  19630. CFLAGS="$save_CFLAGS"
  19631. fi
  19632. ;;
  19633. esac
  19634. }
  19635. CheckClockGettime()
  19636. {
  19637. # Check whether --enable-clock_gettime was given.
  19638. if test "${enable_clock_gettime+set}" = set; then :
  19639. enableval=$enable_clock_gettime;
  19640. else
  19641. enable_clock_gettime=yes
  19642. fi
  19643. if test x$enable_clock_gettime = xyes; then
  19644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  19645. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  19646. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  19647. $as_echo_n "(cached) " >&6
  19648. else
  19649. ac_check_lib_save_LIBS=$LIBS
  19650. LIBS="-lrt $LIBS"
  19651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19652. /* end confdefs.h. */
  19653. /* Override any GCC internal prototype to avoid an error.
  19654. Use char because int might match the return type of a GCC
  19655. builtin and then its argument prototype would still apply. */
  19656. #ifdef __cplusplus
  19657. extern "C"
  19658. #endif
  19659. char clock_gettime ();
  19660. int
  19661. main ()
  19662. {
  19663. return clock_gettime ();
  19664. ;
  19665. return 0;
  19666. }
  19667. _ACEOF
  19668. if ac_fn_c_try_link "$LINENO"; then :
  19669. ac_cv_lib_rt_clock_gettime=yes
  19670. else
  19671. ac_cv_lib_rt_clock_gettime=no
  19672. fi
  19673. rm -f core conftest.err conftest.$ac_objext \
  19674. conftest$ac_exeext conftest.$ac_ext
  19675. LIBS=$ac_check_lib_save_LIBS
  19676. fi
  19677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  19678. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  19679. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  19680. have_clock_gettime=yes
  19681. fi
  19682. if test x$have_clock_gettime = xyes; then
  19683. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19684. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  19685. else
  19686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  19687. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  19688. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  19689. $as_echo_n "(cached) " >&6
  19690. else
  19691. ac_check_lib_save_LIBS=$LIBS
  19692. LIBS="-lc $LIBS"
  19693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19694. /* end confdefs.h. */
  19695. /* Override any GCC internal prototype to avoid an error.
  19696. Use char because int might match the return type of a GCC
  19697. builtin and then its argument prototype would still apply. */
  19698. #ifdef __cplusplus
  19699. extern "C"
  19700. #endif
  19701. char clock_gettime ();
  19702. int
  19703. main ()
  19704. {
  19705. return clock_gettime ();
  19706. ;
  19707. return 0;
  19708. }
  19709. _ACEOF
  19710. if ac_fn_c_try_link "$LINENO"; then :
  19711. ac_cv_lib_c_clock_gettime=yes
  19712. else
  19713. ac_cv_lib_c_clock_gettime=no
  19714. fi
  19715. rm -f core conftest.err conftest.$ac_objext \
  19716. conftest$ac_exeext conftest.$ac_ext
  19717. LIBS=$ac_check_lib_save_LIBS
  19718. fi
  19719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  19720. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  19721. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  19722. have_clock_gettime=yes
  19723. fi
  19724. if test x$have_clock_gettime = xyes; then
  19725. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19726. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19727. fi
  19728. fi
  19729. fi
  19730. }
  19731. CheckLinuxVersion()
  19732. {
  19733. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  19734. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  19735. have_linux_version_h=yes
  19736. fi
  19737. if test x$have_linux_version_h = xyes; then
  19738. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  19739. fi
  19740. }
  19741. CheckRPATH()
  19742. {
  19743. # Check whether --enable-rpath was given.
  19744. if test "${enable_rpath+set}" = set; then :
  19745. enableval=$enable_rpath;
  19746. else
  19747. enable_rpath=yes
  19748. fi
  19749. }
  19750. CheckWarnAll
  19751. case "$host" in
  19752. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  19753. case "$host" in
  19754. *-raspberry-linux*)
  19755. # Raspberry Pi
  19756. ARCH=linux
  19757. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19758. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19759. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19760. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19761. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  19762. if test x$enable_video = xyes; then
  19763. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19764. # FIXME: confdefs? Not AC_DEFINE?
  19765. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19766. SUMMARY_video="${SUMMARY_video} rpi"
  19767. fi
  19768. ;;
  19769. *-*-androideabi*)
  19770. # Android
  19771. ARCH=android
  19772. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  19773. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  19774. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  19775. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  19776. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  19777. if test x$enable_video = xyes; then
  19778. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  19779. # FIXME: confdefs? Not AC_DEFINE?
  19780. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  19781. SUMMARY_video="${SUMMARY_video} android"
  19782. fi
  19783. ;;
  19784. *-*-linux*) ARCH=linux ;;
  19785. *-*-uclinux*) ARCH=linux ;;
  19786. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  19787. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  19788. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  19789. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  19790. *-*-bsdi*) ARCH=bsdi ;;
  19791. *-*-freebsd*) ARCH=freebsd ;;
  19792. *-*-dragonfly*) ARCH=freebsd ;;
  19793. *-raspberry-netbsd*)
  19794. # Raspberry Pi
  19795. ARCH=netbsd
  19796. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  19797. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19798. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19799. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19800. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host -ldl"
  19801. if test x$enable_video = xyes; then
  19802. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19803. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19804. SUMMARY_video="${SUMMARY_video} raspberry"
  19805. fi
  19806. ;;
  19807. *-*-netbsd*) ARCH=netbsd ;;
  19808. *-*-openbsd*) ARCH=openbsd ;;
  19809. *-*-sysv5*) ARCH=sysv5 ;;
  19810. *-*-solaris*) ARCH=solaris ;;
  19811. *-*-hpux*) ARCH=hpux ;;
  19812. *-*-aix*) ARCH=aix ;;
  19813. *-*-minix*) ARCH=minix ;;
  19814. esac
  19815. CheckVisibilityHidden
  19816. CheckDeclarationAfterStatement
  19817. CheckDummyVideo
  19818. CheckDiskAudio
  19819. CheckDummyAudio
  19820. CheckDLOPEN
  19821. CheckOSS
  19822. CheckALSA
  19823. CheckPulseAudio
  19824. CheckARTSC
  19825. CheckESD
  19826. CheckNAS
  19827. CheckSNDIO
  19828. CheckFusionSound
  19829. CheckLibSampleRate
  19830. CheckX11
  19831. CheckDirectFB
  19832. CheckOpenGLX11
  19833. CheckOpenGLESX11
  19834. CheckMir
  19835. CheckWayland
  19836. CheckLibUDev
  19837. CheckDBus
  19838. CheckIME
  19839. CheckIBus
  19840. CheckFcitx
  19841. case $ARCH in
  19842. linux)
  19843. CheckInputEvents
  19844. CheckInputKD
  19845. ;;
  19846. esac
  19847. CheckTslib
  19848. CheckUSBHID
  19849. CheckPTHREAD
  19850. CheckClockGettime
  19851. CheckLinuxVersion
  19852. CheckRPATH
  19853. CheckVivanteVideo
  19854. # Set up files for the audio library
  19855. if test x$enable_audio = xyes; then
  19856. case $ARCH in
  19857. sysv5|solaris|hpux)
  19858. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  19859. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  19860. have_audio=yes
  19861. ;;
  19862. netbsd) # Don't use this on OpenBSD, it's busted.
  19863. $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
  19864. SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  19865. have_audio=yes
  19866. ;;
  19867. aix)
  19868. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  19869. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  19870. have_audio=yes
  19871. ;;
  19872. android)
  19873. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  19874. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  19875. SUMMARY_audio="${SUMMARY_audio} android"
  19876. have_audio=yes
  19877. ;;
  19878. esac
  19879. fi
  19880. # Set up files for the joystick library
  19881. if test x$enable_joystick = xyes; then
  19882. case $ARCH in
  19883. linux)
  19884. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  19885. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  19886. have_joystick=yes
  19887. ;;
  19888. android)
  19889. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  19890. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  19891. have_joystick=yes
  19892. ;;
  19893. esac
  19894. fi
  19895. # Set up files for the haptic library
  19896. if test x$enable_haptic = xyes; then
  19897. if test x$use_input_events = xyes; then
  19898. case $ARCH in
  19899. linux)
  19900. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  19901. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  19902. have_haptic=yes
  19903. ;;
  19904. esac
  19905. fi
  19906. fi
  19907. # Set up files for the power library
  19908. if test x$enable_power = xyes; then
  19909. case $ARCH in
  19910. linux)
  19911. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  19912. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  19913. have_power=yes
  19914. ;;
  19915. android)
  19916. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  19917. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  19918. have_power=yes
  19919. ;;
  19920. esac
  19921. fi
  19922. # Set up files for the filesystem library
  19923. if test x$enable_filesystem = xyes; then
  19924. case $ARCH in
  19925. android)
  19926. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  19927. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  19928. have_filesystem=yes
  19929. ;;
  19930. *)
  19931. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  19932. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  19933. have_filesystem=yes
  19934. ;;
  19935. esac
  19936. fi
  19937. # Set up files for the timer library
  19938. if test x$enable_timers = xyes; then
  19939. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19940. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19941. have_timers=yes
  19942. fi
  19943. # Set up files for udev hotplugging support
  19944. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  19945. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  19946. fi
  19947. # Set up files for evdev input
  19948. if test x$use_input_events = xyes; then
  19949. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  19950. fi
  19951. ;;
  19952. *-*-cygwin* | *-*-mingw32*)
  19953. ARCH=win32
  19954. if test "$build" != "$host"; then # cross-compiling
  19955. # Default cross-compile location
  19956. ac_default_prefix=/usr/local/cross-tools/$host
  19957. else
  19958. # Look for the location of the tools and install there
  19959. if test "$BUILD_PREFIX" != ""; then
  19960. ac_default_prefix=$BUILD_PREFIX
  19961. fi
  19962. fi
  19963. CheckDummyVideo
  19964. CheckDiskAudio
  19965. CheckDummyAudio
  19966. CheckWINDOWS
  19967. CheckWINDOWSGL
  19968. CheckWINDOWSGLES
  19969. CheckDIRECTX
  19970. # Set up the core platform files
  19971. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  19972. # Set up files for the video library
  19973. if test x$enable_video = xyes; then
  19974. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  19975. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  19976. have_video=yes
  19977. # Check whether --enable-render-d3d was given.
  19978. if test "${enable_render_d3d+set}" = set; then :
  19979. enableval=$enable_render_d3d;
  19980. else
  19981. enable_render_d3d=yes
  19982. fi
  19983. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  19984. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  19985. fi
  19986. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  19987. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  19988. fi
  19989. fi
  19990. # Set up files for the audio library
  19991. if test x$enable_audio = xyes; then
  19992. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  19993. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  19994. if test x$have_dsound = xyes; then
  19995. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  19996. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  19997. fi
  19998. if test x$have_xaudio2 = xyes; then
  19999. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  20000. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  20001. fi
  20002. have_audio=yes
  20003. fi
  20004. # Set up files for the joystick library
  20005. if test x$enable_joystick = xyes; then
  20006. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20007. if test x$have_xinput = xyes; then
  20008. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  20009. fi
  20010. if test x$have_dinput = xyes; then
  20011. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  20012. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  20013. fi
  20014. else
  20015. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  20016. fi
  20017. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  20018. have_joystick=yes
  20019. fi
  20020. if test x$enable_haptic = xyes; then
  20021. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20022. if test x$have_xinput = xyes; then
  20023. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  20024. fi
  20025. if test x$have_dinput = xyes; then
  20026. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  20027. fi
  20028. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  20029. have_haptic=yes
  20030. fi
  20031. fi
  20032. if test x$enable_power = xyes; then
  20033. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  20034. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  20035. have_power=yes
  20036. fi
  20037. if test x$enable_filesystem = xyes; then
  20038. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  20039. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  20040. have_filesystem=yes
  20041. fi
  20042. # Set up files for the thread library
  20043. if test x$enable_threads = xyes; then
  20044. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  20045. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  20046. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  20047. have_threads=yes
  20048. fi
  20049. # Set up files for the timer library
  20050. if test x$enable_timers = xyes; then
  20051. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  20052. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  20053. have_timers=yes
  20054. fi
  20055. # Set up files for the shared object loading library
  20056. if test x$enable_loadso = xyes; then
  20057. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  20058. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  20059. have_loadso=yes
  20060. fi
  20061. # Set up the system libraries we need
  20062. if test -f /lib/w32api/libuuid.a; then
  20063. LIBUUID=/lib/w32api/libuuid.a
  20064. else
  20065. LIBUUID=-luuid
  20066. fi
  20067. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
  20068. # The Windows platform requires special setup
  20069. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  20070. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  20071. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  20072. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  20073. # Check to see if this is a mingw or cygwin build
  20074. have_mingw32=
  20075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  20076. $as_echo_n "checking for main in -lmingw32... " >&6; }
  20077. if ${ac_cv_lib_mingw32_main+:} false; then :
  20078. $as_echo_n "(cached) " >&6
  20079. else
  20080. ac_check_lib_save_LIBS=$LIBS
  20081. LIBS="-lmingw32 $LIBS"
  20082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20083. /* end confdefs.h. */
  20084. int
  20085. main ()
  20086. {
  20087. return main ();
  20088. ;
  20089. return 0;
  20090. }
  20091. _ACEOF
  20092. if ac_fn_c_try_link "$LINENO"; then :
  20093. ac_cv_lib_mingw32_main=yes
  20094. else
  20095. ac_cv_lib_mingw32_main=no
  20096. fi
  20097. rm -f core conftest.err conftest.$ac_objext \
  20098. conftest$ac_exeext conftest.$ac_ext
  20099. LIBS=$ac_check_lib_save_LIBS
  20100. fi
  20101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  20102. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  20103. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  20104. have_mingw32=yes
  20105. fi
  20106. if test x$have_mingw32 = xyes; then
  20107. SDL_LIBS="-lmingw32 $SDL_LIBS"
  20108. else
  20109. SDL_LIBS="-lcygwin $SDL_LIBS"
  20110. fi
  20111. ;;
  20112. *-*-beos*)
  20113. as_fn_error $? "
  20114. *** BeOS support has been removed as of SDL 2.0.2.
  20115. " "$LINENO" 5
  20116. ;;
  20117. *-*-haiku*)
  20118. ARCH=haiku
  20119. ac_default_prefix=/boot/system
  20120. CheckDummyVideo
  20121. CheckDiskAudio
  20122. CheckDummyAudio
  20123. CheckDLOPEN
  20124. CheckHaikuVideo
  20125. CheckHaikuGL
  20126. CheckPTHREAD
  20127. # Set up files for the audio library
  20128. if test x$enable_audio = xyes; then
  20129. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  20130. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  20131. have_audio=yes
  20132. fi
  20133. # Set up files for the joystick library
  20134. if test x$enable_joystick = xyes; then
  20135. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  20136. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  20137. have_joystick=yes
  20138. fi
  20139. # Set up files for the timer library
  20140. if test x$enable_timers = xyes; then
  20141. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  20142. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  20143. have_timers=yes
  20144. fi
  20145. # Set up files for the system power library
  20146. if test x$enable_power = xyes; then
  20147. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  20148. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  20149. have_power=yes
  20150. fi
  20151. # Set up files for the system filesystem library
  20152. if test x$enable_filesystem = xyes; then
  20153. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20154. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20155. have_filesystem=yes
  20156. fi
  20157. # The Haiku platform requires special setup.
  20158. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20159. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  20160. ;;
  20161. arm*-apple-darwin*)
  20162. # iOS - We are not writing anything to confdefs.h because you have to replace
  20163. # SDL_config.h for SDL_config_iphoneos.h anyway
  20164. ARCH=ios
  20165. CheckVisibilityHidden
  20166. CheckDeclarationAfterStatement
  20167. CheckDummyVideo
  20168. CheckDiskAudio
  20169. CheckDummyAudio
  20170. CheckDLOPEN
  20171. CheckCOCOA
  20172. CheckPTHREAD
  20173. # Set up files for the audio library
  20174. if test x$enable_audio = xyes; then
  20175. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20176. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20177. have_audio=yes
  20178. fi
  20179. # Set up files for the joystick library
  20180. if test x$enable_joystick = xyes; then
  20181. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20182. have_joystick=yes
  20183. fi
  20184. # Set up files for the haptic library
  20185. #if test x$enable_haptic = xyes; then
  20186. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20187. # have_haptic=yes
  20188. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20189. #fi
  20190. # Set up files for the power library
  20191. if test x$enable_power = xyes; then
  20192. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20193. have_power=yes
  20194. fi
  20195. # Set up files for the filesystem library
  20196. if test x$enable_filesystem = xyes; then
  20197. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20198. have_filesystem=yes
  20199. fi
  20200. # Set up files for the timer library
  20201. if test x$enable_timers = xyes; then
  20202. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20203. have_timers=yes
  20204. fi
  20205. # Set up additional files for the file library
  20206. if test x$enable_file = xyes; then
  20207. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20208. fi
  20209. # The iOS platform requires special setup.
  20210. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20211. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20212. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20213. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20214. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20215. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20216. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20217. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20218. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20219. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20220. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20221. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20222. ;;
  20223. *-*-darwin* )
  20224. # This could be either full "Mac OS X", or plain "Darwin" which is
  20225. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20226. # Next line is broken, and a few files below require Mac OS X (full)
  20227. ARCH=macosx
  20228. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20229. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20230. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20231. CheckVisibilityHidden
  20232. CheckDeclarationAfterStatement
  20233. CheckDummyVideo
  20234. CheckDiskAudio
  20235. CheckDummyAudio
  20236. CheckDLOPEN
  20237. CheckCOCOA
  20238. CheckX11
  20239. CheckMacGL
  20240. CheckOpenGLX11
  20241. CheckPTHREAD
  20242. # Set up files for the audio library
  20243. if test x$enable_audio = xyes; then
  20244. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20245. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20246. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  20247. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20248. have_audio=yes
  20249. fi
  20250. # Set up files for the joystick library
  20251. if test x$enable_joystick = xyes; then
  20252. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20253. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20254. have_joystick=yes
  20255. fi
  20256. # Set up files for the haptic library
  20257. if test x$enable_haptic = xyes; then
  20258. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20259. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20260. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20261. have_haptic=yes
  20262. fi
  20263. # Set up files for the power library
  20264. if test x$enable_power = xyes; then
  20265. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20266. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20267. have_power=yes
  20268. fi
  20269. # Set up files for the filesystem library
  20270. if test x$enable_filesystem = xyes; then
  20271. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20272. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20273. have_filesystem=yes
  20274. fi
  20275. # Set up files for the timer library
  20276. if test x$enable_timers = xyes; then
  20277. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20278. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20279. have_timers=yes
  20280. fi
  20281. # Set up additional files for the file library
  20282. if test x$enable_file = xyes; then
  20283. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20284. fi
  20285. # The Mac OS X platform requires special setup.
  20286. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20287. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  20288. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  20289. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  20290. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  20291. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  20292. ;;
  20293. *-nacl|*-pnacl)
  20294. ARCH=nacl
  20295. CheckNativeClient
  20296. CheckDummyAudio
  20297. CheckDummyVideo
  20298. CheckInputEvents
  20299. CheckPTHREAD
  20300. # Set up files for the timer library
  20301. if test x$enable_timers = xyes; then
  20302. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20303. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20304. have_timers=yes
  20305. fi
  20306. if test x$enable_filesystem = xyes; then
  20307. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  20308. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  20309. have_filesystem=yes
  20310. fi
  20311. ;;
  20312. *-*-emscripten* )
  20313. if test x$enable_video = xyes; then
  20314. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20315. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  20316. have_video=yes
  20317. SUMMARY_video="${SUMMARY_video} emscripten"
  20318. fi
  20319. if test x$enable_audio = xyes; then
  20320. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20321. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  20322. have_audio=yes
  20323. SUMMARY_audio="${SUMMARY_audio} emscripten"
  20324. fi
  20325. CheckVisibilityHidden
  20326. CheckDeclarationAfterStatement
  20327. CheckDummyVideo
  20328. CheckDiskAudio
  20329. CheckDummyAudio
  20330. CheckDLOPEN
  20331. CheckClockGettime
  20332. CheckEmscriptenGLES
  20333. # Set up files for the power library
  20334. if test x$enable_power = xyes; then
  20335. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  20336. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  20337. have_power=yes
  20338. fi
  20339. # Set up files for the power library
  20340. if test x$enable_joystick = xyes; then
  20341. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  20342. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  20343. have_joystick=yes
  20344. fi
  20345. # Set up files for the filesystem library
  20346. if test x$enable_filesystem = xyes; then
  20347. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  20348. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  20349. have_filesystem=yes
  20350. fi
  20351. # Set up files for the timer library
  20352. if test x$enable_timers = xyes; then
  20353. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20354. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20355. have_timers=yes
  20356. fi
  20357. ;;
  20358. *)
  20359. as_fn_error $? "
  20360. *** Unsupported host: Please add to configure.in
  20361. " "$LINENO" 5
  20362. ;;
  20363. esac
  20364. # Verify that we have all the platform specific files we need
  20365. if test x$have_joystick != xyes; then
  20366. if test x$enable_joystick = xyes; then
  20367. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  20368. fi
  20369. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  20370. fi
  20371. if test x$have_haptic != xyes; then
  20372. if test x$enable_haptic = xyes; then
  20373. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  20374. fi
  20375. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  20376. fi
  20377. if test x$have_threads != xyes; then
  20378. if test x$enable_threads = xyes; then
  20379. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  20380. fi
  20381. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  20382. fi
  20383. if test x$have_timers != xyes; then
  20384. if test x$enable_timers = xyes; then
  20385. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  20386. fi
  20387. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  20388. fi
  20389. if test x$have_filesystem != xyes; then
  20390. if test x$enable_filesystem = xyes; then
  20391. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  20392. fi
  20393. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  20394. fi
  20395. if test x$have_loadso != xyes; then
  20396. if test x$enable_loadso = xyes; then
  20397. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  20398. fi
  20399. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  20400. fi
  20401. if test x$SDLMAIN_SOURCES = x; then
  20402. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  20403. fi
  20404. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  20405. if test x$video_wayland = xyes; then
  20406. WAYLAND_CORE_PROTOCOL_SOURCE='$(gen)/wayland-protocol.c'
  20407. WAYLAND_CORE_PROTOCOL_HEADER='$(gen)/wayland-client-protocol.h'
  20408. WAYLAND_PROTOCOLS_UNSTABLE_SOURCES=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20409. sed 's,[^ ]\+,\\$(gen)/&-protocol.c,g'`
  20410. WAYLAND_PROTOCOLS_UNSTABLE_HEADERS=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20411. sed 's,[^ ]\+,\\$(gen)/&-client-protocol.h,g'`
  20412. GEN_SOURCES="$GEN_SOURCES $WAYLAND_CORE_PROTOCOL_SOURCE $WAYLAND_PROTOCOLS_UNSTABLE_SOURCES"
  20413. GEN_HEADERS="$GEN_HEADERS $WAYLAND_CORE_PROTOCOL_HEADER $WAYLAND_PROTOCOLS_UNSTABLE_HEADERS"
  20414. WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS="
  20415. $WAYLAND_CORE_PROTOCOL_SOURCE: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20416. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20417. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) code \$< \$@"
  20418. WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS="
  20419. $WAYLAND_CORE_PROTOCOL_HEADER: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20420. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20421. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) client-header \$< \$@"
  20422. WAYLAND_CORE_PROTOCOL_OBJECT="
  20423. \$(objects)/`echo $WAYLAND_CORE_PROTOCOL_SOURCE | sed 's/\$(gen)\/\(.*\).c$/\1.lo/'`: $WAYLAND_CORE_PROTOCOL_SOURCE
  20424. \$(RUN_CMD_CC)\$(LIBTOOL) --tag=CC --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \$< -o \$@"
  20425. WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20426. do echo ; echo \$p | sed\
  20427. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-client-protocol.h: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20428. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20429. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@," ; done`
  20430. WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20431. do echo ; echo \$p | sed\
  20432. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-protocol.c: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20433. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20434. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@," ; done`
  20435. WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20436. do echo ; echo \$p | sed\
  20437. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\\$(objects)/&-protocol.lo: \\$(gen)/&-protocol.c \\$(gen)/&-client-protocol.h\\\\
  20438. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@," ; done`
  20439. WAYLAND_PROTOCOLS_DEPENDS="
  20440. $WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS
  20441. $WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS
  20442. $WAYLAND_CORE_PROTOCOL_OBJECT
  20443. $WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS
  20444. $WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS
  20445. $WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE
  20446. "
  20447. fi
  20448. OBJECTS=`echo $SOURCES`
  20449. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  20450. for EXT in asm cc m c S; do
  20451. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  20452. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  20453. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  20454. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20455. done
  20456. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20457. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  20458. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  20459. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  20460. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  20461. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  20462. \\$(WINDRES) \\$< \\$@,g"`
  20463. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  20464. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  20465. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20466. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20467. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20468. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20469. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  20470. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  20471. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20472. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20473. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20474. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20475. # Set runtime shared library paths as needed
  20476. if test "x$enable_rpath" = "xyes"; then
  20477. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  20478. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  20479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  20480. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  20481. have_enable_new_dtags=no
  20482. save_LDFLAGS="$LDFLAGS"
  20483. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  20484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20485. /* end confdefs.h. */
  20486. int
  20487. main ()
  20488. {
  20489. ;
  20490. return 0;
  20491. }
  20492. _ACEOF
  20493. if ac_fn_c_try_link "$LINENO"; then :
  20494. have_enable_new_dtags=yes
  20495. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  20496. fi
  20497. rm -f core conftest.err conftest.$ac_objext \
  20498. conftest$ac_exeext conftest.$ac_ext
  20499. LDFLAGS="$save_LDFLAGS"
  20500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  20501. $as_echo "$have_enable_new_dtags" >&6; }
  20502. fi
  20503. if test $ARCH = solaris; then
  20504. SDL_RLD_FLAGS="-R\${libdir}"
  20505. fi
  20506. else
  20507. SDL_RLD_FLAGS=""
  20508. fi
  20509. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  20510. if test x$enable_shared = xyes; then
  20511. ENABLE_SHARED_TRUE=
  20512. ENABLE_SHARED_FALSE="#"
  20513. else
  20514. ENABLE_SHARED_TRUE="#"
  20515. ENABLE_SHARED_FALSE=
  20516. fi
  20517. if test x$enable_static = xyes; then
  20518. ENABLE_STATIC_TRUE=
  20519. ENABLE_STATIC_FALSE="#"
  20520. else
  20521. ENABLE_STATIC_TRUE="#"
  20522. ENABLE_STATIC_FALSE=
  20523. fi
  20524. cat >Makefile.rules <<__EOF__
  20525. # Build rules for objects
  20526. -include \$(OBJECTS:.lo=.d)
  20527. # Special dependency for SDL.c, since it depends on SDL_revision.h
  20528. $srcdir/src/SDL.c: update-revision
  20529. $DEPENDS
  20530. $VERSION_DEPENDS
  20531. $SDLMAIN_DEPENDS
  20532. $SDLTEST_DEPENDS
  20533. $WAYLAND_PROTOCOLS_DEPENDS
  20534. __EOF__
  20535. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  20536. ac_config_commands="$ac_config_commands sdl2_config"
  20537. SUMMARY="SDL2 Configure Summary:\n"
  20538. if test x$enable_shared = xyes; then
  20539. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  20540. fi
  20541. if test x$enable_static = xyes; then
  20542. SUMMARY="${SUMMARY}Building Static Libraries\n"
  20543. fi
  20544. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  20545. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  20546. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  20547. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  20548. if test x$have_x = xyes; then
  20549. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  20550. fi
  20551. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  20552. if test x$have_libudev_h_hdr = xyes; then
  20553. SUMMARY="${SUMMARY}Using libudev : YES\n"
  20554. else
  20555. SUMMARY="${SUMMARY}Using libudev : NO\n"
  20556. fi
  20557. if test x$have_dbus_dbus_h_hdr = xyes; then
  20558. SUMMARY="${SUMMARY}Using dbus : YES\n"
  20559. else
  20560. SUMMARY="${SUMMARY}Using dbus : NO\n"
  20561. fi
  20562. if test x$enable_ime = xyes; then
  20563. SUMMARY="${SUMMARY}Using ime : YES\n"
  20564. else
  20565. SUMMARY="${SUMMARY}Using ime : NO\n"
  20566. fi
  20567. if test x$have_ibus_ibus_h_hdr = xyes; then
  20568. SUMMARY="${SUMMARY}Using ibus : YES\n"
  20569. else
  20570. SUMMARY="${SUMMARY}Using ibus : NO\n"
  20571. fi
  20572. if test x$have_fcitx_frontend_h_hdr = xyes; then
  20573. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  20574. else
  20575. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  20576. fi
  20577. ac_config_commands="$ac_config_commands summary"
  20578. cat >confcache <<\_ACEOF
  20579. # This file is a shell script that caches the results of configure
  20580. # tests run on this system so they can be shared between configure
  20581. # scripts and configure runs, see configure's option --config-cache.
  20582. # It is not useful on other systems. If it contains results you don't
  20583. # want to keep, you may remove or edit it.
  20584. #
  20585. # config.status only pays attention to the cache file if you give it
  20586. # the --recheck option to rerun configure.
  20587. #
  20588. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20589. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20590. # following values.
  20591. _ACEOF
  20592. # The following way of writing the cache mishandles newlines in values,
  20593. # but we know of no workaround that is simple, portable, and efficient.
  20594. # So, we kill variables containing newlines.
  20595. # Ultrix sh set writes to stderr and can't be redirected directly,
  20596. # and sets the high bit in the cache file unless we assign to the vars.
  20597. (
  20598. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20599. eval ac_val=\$$ac_var
  20600. case $ac_val in #(
  20601. *${as_nl}*)
  20602. case $ac_var in #(
  20603. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  20604. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20605. esac
  20606. case $ac_var in #(
  20607. _ | IFS | as_nl) ;; #(
  20608. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20609. *) { eval $ac_var=; unset $ac_var;} ;;
  20610. esac ;;
  20611. esac
  20612. done
  20613. (set) 2>&1 |
  20614. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20615. *${as_nl}ac_space=\ *)
  20616. # `set' does not quote correctly, so add quotes: double-quote
  20617. # substitution turns \\\\ into \\, and sed turns \\ into \.
  20618. sed -n \
  20619. "s/'/'\\\\''/g;
  20620. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20621. ;; #(
  20622. *)
  20623. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20624. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20625. ;;
  20626. esac |
  20627. sort
  20628. ) |
  20629. sed '
  20630. /^ac_cv_env_/b end
  20631. t clear
  20632. :clear
  20633. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20634. t end
  20635. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20636. :end' >>confcache
  20637. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20638. if test -w "$cache_file"; then
  20639. if test "x$cache_file" != "x/dev/null"; then
  20640. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  20641. $as_echo "$as_me: updating cache $cache_file" >&6;}
  20642. if test ! -f "$cache_file" || test -h "$cache_file"; then
  20643. cat confcache >"$cache_file"
  20644. else
  20645. case $cache_file in #(
  20646. */* | ?:*)
  20647. mv -f confcache "$cache_file"$$ &&
  20648. mv -f "$cache_file"$$ "$cache_file" ;; #(
  20649. *)
  20650. mv -f confcache "$cache_file" ;;
  20651. esac
  20652. fi
  20653. fi
  20654. else
  20655. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  20656. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20657. fi
  20658. fi
  20659. rm -f confcache
  20660. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20661. # Let make expand exec_prefix.
  20662. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20663. DEFS=-DHAVE_CONFIG_H
  20664. ac_libobjs=
  20665. ac_ltlibobjs=
  20666. U=
  20667. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20668. # 1. Remove the extension, and $U if already installed.
  20669. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20670. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20671. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20672. # will be set to the directory where LIBOBJS objects are built.
  20673. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20674. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  20675. done
  20676. LIBOBJS=$ac_libobjs
  20677. LTLIBOBJS=$ac_ltlibobjs
  20678. : "${CONFIG_STATUS=./config.status}"
  20679. ac_write_fail=0
  20680. ac_clean_files_save=$ac_clean_files
  20681. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20682. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  20683. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20684. as_write_fail=0
  20685. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  20686. #! $SHELL
  20687. # Generated by $as_me.
  20688. # Run this file to recreate the current configuration.
  20689. # Compiler output produced by configure, useful for debugging
  20690. # configure, is in config.log if it exists.
  20691. debug=false
  20692. ac_cs_recheck=false
  20693. ac_cs_silent=false
  20694. SHELL=\${CONFIG_SHELL-$SHELL}
  20695. export SHELL
  20696. _ASEOF
  20697. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  20698. ## -------------------- ##
  20699. ## M4sh Initialization. ##
  20700. ## -------------------- ##
  20701. # Be more Bourne compatible
  20702. DUALCASE=1; export DUALCASE # for MKS sh
  20703. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20704. emulate sh
  20705. NULLCMD=:
  20706. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20707. # is contrary to our usage. Disable this feature.
  20708. alias -g '${1+"$@"}'='"$@"'
  20709. setopt NO_GLOB_SUBST
  20710. else
  20711. case `(set -o) 2>/dev/null` in #(
  20712. *posix*) :
  20713. set -o posix ;; #(
  20714. *) :
  20715. ;;
  20716. esac
  20717. fi
  20718. as_nl='
  20719. '
  20720. export as_nl
  20721. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  20722. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  20723. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  20724. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  20725. # Prefer a ksh shell builtin over an external printf program on Solaris,
  20726. # but without wasting forks for bash or zsh.
  20727. if test -z "$BASH_VERSION$ZSH_VERSION" \
  20728. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  20729. as_echo='print -r --'
  20730. as_echo_n='print -rn --'
  20731. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  20732. as_echo='printf %s\n'
  20733. as_echo_n='printf %s'
  20734. else
  20735. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  20736. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  20737. as_echo_n='/usr/ucb/echo -n'
  20738. else
  20739. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  20740. as_echo_n_body='eval
  20741. arg=$1;
  20742. case $arg in #(
  20743. *"$as_nl"*)
  20744. expr "X$arg" : "X\\(.*\\)$as_nl";
  20745. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  20746. esac;
  20747. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  20748. '
  20749. export as_echo_n_body
  20750. as_echo_n='sh -c $as_echo_n_body as_echo'
  20751. fi
  20752. export as_echo_body
  20753. as_echo='sh -c $as_echo_body as_echo'
  20754. fi
  20755. # The user is always right.
  20756. if test "${PATH_SEPARATOR+set}" != set; then
  20757. PATH_SEPARATOR=:
  20758. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20759. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20760. PATH_SEPARATOR=';'
  20761. }
  20762. fi
  20763. # IFS
  20764. # We need space, tab and new line, in precisely that order. Quoting is
  20765. # there to prevent editors from complaining about space-tab.
  20766. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20767. # splitting by setting IFS to empty value.)
  20768. IFS=" "" $as_nl"
  20769. # Find who we are. Look in the path if we contain no directory separator.
  20770. as_myself=
  20771. case $0 in #((
  20772. *[\\/]* ) as_myself=$0 ;;
  20773. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20774. for as_dir in $PATH
  20775. do
  20776. IFS=$as_save_IFS
  20777. test -z "$as_dir" && as_dir=.
  20778. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20779. done
  20780. IFS=$as_save_IFS
  20781. ;;
  20782. esac
  20783. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20784. # in which case we are not to be found in the path.
  20785. if test "x$as_myself" = x; then
  20786. as_myself=$0
  20787. fi
  20788. if test ! -f "$as_myself"; then
  20789. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20790. exit 1
  20791. fi
  20792. # Unset variables that we do not need and which cause bugs (e.g. in
  20793. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  20794. # suppresses any "Segmentation fault" message there. '((' could
  20795. # trigger a bug in pdksh 5.2.14.
  20796. for as_var in BASH_ENV ENV MAIL MAILPATH
  20797. do eval test x\${$as_var+set} = xset \
  20798. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  20799. done
  20800. PS1='$ '
  20801. PS2='> '
  20802. PS4='+ '
  20803. # NLS nuisances.
  20804. LC_ALL=C
  20805. export LC_ALL
  20806. LANGUAGE=C
  20807. export LANGUAGE
  20808. # CDPATH.
  20809. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20810. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  20811. # ----------------------------------------
  20812. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  20813. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  20814. # script with STATUS, using 1 if that was 0.
  20815. as_fn_error ()
  20816. {
  20817. as_status=$1; test $as_status -eq 0 && as_status=1
  20818. if test "$4"; then
  20819. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  20820. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  20821. fi
  20822. $as_echo "$as_me: error: $2" >&2
  20823. as_fn_exit $as_status
  20824. } # as_fn_error
  20825. # as_fn_set_status STATUS
  20826. # -----------------------
  20827. # Set $? to STATUS, without forking.
  20828. as_fn_set_status ()
  20829. {
  20830. return $1
  20831. } # as_fn_set_status
  20832. # as_fn_exit STATUS
  20833. # -----------------
  20834. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  20835. as_fn_exit ()
  20836. {
  20837. set +e
  20838. as_fn_set_status $1
  20839. exit $1
  20840. } # as_fn_exit
  20841. # as_fn_unset VAR
  20842. # ---------------
  20843. # Portably unset VAR.
  20844. as_fn_unset ()
  20845. {
  20846. { eval $1=; unset $1;}
  20847. }
  20848. as_unset=as_fn_unset
  20849. # as_fn_append VAR VALUE
  20850. # ----------------------
  20851. # Append the text in VALUE to the end of the definition contained in VAR. Take
  20852. # advantage of any shell optimizations that allow amortized linear growth over
  20853. # repeated appends, instead of the typical quadratic growth present in naive
  20854. # implementations.
  20855. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  20856. eval 'as_fn_append ()
  20857. {
  20858. eval $1+=\$2
  20859. }'
  20860. else
  20861. as_fn_append ()
  20862. {
  20863. eval $1=\$$1\$2
  20864. }
  20865. fi # as_fn_append
  20866. # as_fn_arith ARG...
  20867. # ------------------
  20868. # Perform arithmetic evaluation on the ARGs, and store the result in the
  20869. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  20870. # must be portable across $(()) and expr.
  20871. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  20872. eval 'as_fn_arith ()
  20873. {
  20874. as_val=$(( $* ))
  20875. }'
  20876. else
  20877. as_fn_arith ()
  20878. {
  20879. as_val=`expr "$@" || test $? -eq 1`
  20880. }
  20881. fi # as_fn_arith
  20882. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20883. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20884. as_expr=expr
  20885. else
  20886. as_expr=false
  20887. fi
  20888. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20889. as_basename=basename
  20890. else
  20891. as_basename=false
  20892. fi
  20893. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20894. as_dirname=dirname
  20895. else
  20896. as_dirname=false
  20897. fi
  20898. as_me=`$as_basename -- "$0" ||
  20899. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20900. X"$0" : 'X\(//\)$' \| \
  20901. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20902. $as_echo X/"$0" |
  20903. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20904. s//\1/
  20905. q
  20906. }
  20907. /^X\/\(\/\/\)$/{
  20908. s//\1/
  20909. q
  20910. }
  20911. /^X\/\(\/\).*/{
  20912. s//\1/
  20913. q
  20914. }
  20915. s/.*/./; q'`
  20916. # Avoid depending upon Character Ranges.
  20917. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20918. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20919. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20920. as_cr_digits='0123456789'
  20921. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20922. ECHO_C= ECHO_N= ECHO_T=
  20923. case `echo -n x` in #(((((
  20924. -n*)
  20925. case `echo 'xy\c'` in
  20926. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20927. xy) ECHO_C='\c';;
  20928. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  20929. ECHO_T=' ';;
  20930. esac;;
  20931. *)
  20932. ECHO_N='-n';;
  20933. esac
  20934. rm -f conf$$ conf$$.exe conf$$.file
  20935. if test -d conf$$.dir; then
  20936. rm -f conf$$.dir/conf$$.file
  20937. else
  20938. rm -f conf$$.dir
  20939. mkdir conf$$.dir 2>/dev/null
  20940. fi
  20941. if (echo >conf$$.file) 2>/dev/null; then
  20942. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20943. as_ln_s='ln -s'
  20944. # ... but there are two gotchas:
  20945. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20946. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20947. # In both cases, we have to default to `cp -pR'.
  20948. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20949. as_ln_s='cp -pR'
  20950. elif ln conf$$.file conf$$ 2>/dev/null; then
  20951. as_ln_s=ln
  20952. else
  20953. as_ln_s='cp -pR'
  20954. fi
  20955. else
  20956. as_ln_s='cp -pR'
  20957. fi
  20958. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20959. rmdir conf$$.dir 2>/dev/null
  20960. # as_fn_mkdir_p
  20961. # -------------
  20962. # Create "$as_dir" as a directory, including parents if necessary.
  20963. as_fn_mkdir_p ()
  20964. {
  20965. case $as_dir in #(
  20966. -*) as_dir=./$as_dir;;
  20967. esac
  20968. test -d "$as_dir" || eval $as_mkdir_p || {
  20969. as_dirs=
  20970. while :; do
  20971. case $as_dir in #(
  20972. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  20973. *) as_qdir=$as_dir;;
  20974. esac
  20975. as_dirs="'$as_qdir' $as_dirs"
  20976. as_dir=`$as_dirname -- "$as_dir" ||
  20977. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20978. X"$as_dir" : 'X\(//\)[^/]' \| \
  20979. X"$as_dir" : 'X\(//\)$' \| \
  20980. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20981. $as_echo X"$as_dir" |
  20982. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20983. s//\1/
  20984. q
  20985. }
  20986. /^X\(\/\/\)[^/].*/{
  20987. s//\1/
  20988. q
  20989. }
  20990. /^X\(\/\/\)$/{
  20991. s//\1/
  20992. q
  20993. }
  20994. /^X\(\/\).*/{
  20995. s//\1/
  20996. q
  20997. }
  20998. s/.*/./; q'`
  20999. test -d "$as_dir" && break
  21000. done
  21001. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21002. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  21003. } # as_fn_mkdir_p
  21004. if mkdir -p . 2>/dev/null; then
  21005. as_mkdir_p='mkdir -p "$as_dir"'
  21006. else
  21007. test -d ./-p && rmdir ./-p
  21008. as_mkdir_p=false
  21009. fi
  21010. # as_fn_executable_p FILE
  21011. # -----------------------
  21012. # Test if FILE is an executable regular file.
  21013. as_fn_executable_p ()
  21014. {
  21015. test -f "$1" && test -x "$1"
  21016. } # as_fn_executable_p
  21017. as_test_x='test -x'
  21018. as_executable_p=as_fn_executable_p
  21019. # Sed expression to map a string onto a valid CPP name.
  21020. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21021. # Sed expression to map a string onto a valid variable name.
  21022. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21023. exec 6>&1
  21024. ## ----------------------------------- ##
  21025. ## Main body of $CONFIG_STATUS script. ##
  21026. ## ----------------------------------- ##
  21027. _ASEOF
  21028. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  21029. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21030. # Save the log message, to keep $0 and so on meaningful, and to
  21031. # report actual input values of CONFIG_FILES etc. instead of their
  21032. # values after options handling.
  21033. ac_log="
  21034. This file was extended by $as_me, which was
  21035. generated by GNU Autoconf 2.69. Invocation command line was
  21036. CONFIG_FILES = $CONFIG_FILES
  21037. CONFIG_HEADERS = $CONFIG_HEADERS
  21038. CONFIG_LINKS = $CONFIG_LINKS
  21039. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21040. $ $0 $@
  21041. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21042. "
  21043. _ACEOF
  21044. case $ac_config_files in *"
  21045. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21046. esac
  21047. case $ac_config_headers in *"
  21048. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21049. esac
  21050. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21051. # Files that config.status was made for.
  21052. config_files="$ac_config_files"
  21053. config_headers="$ac_config_headers"
  21054. config_commands="$ac_config_commands"
  21055. _ACEOF
  21056. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21057. ac_cs_usage="\
  21058. \`$as_me' instantiates files and other configuration actions
  21059. from templates according to the current configuration. Unless the files
  21060. and actions are specified as TAGs, all are instantiated by default.
  21061. Usage: $0 [OPTION]... [TAG]...
  21062. -h, --help print this help, then exit
  21063. -V, --version print version number and configuration settings, then exit
  21064. --config print configuration, then exit
  21065. -q, --quiet, --silent
  21066. do not print progress messages
  21067. -d, --debug don't remove temporary files
  21068. --recheck update $as_me by reconfiguring in the same conditions
  21069. --file=FILE[:TEMPLATE]
  21070. instantiate the configuration file FILE
  21071. --header=FILE[:TEMPLATE]
  21072. instantiate the configuration header FILE
  21073. Configuration files:
  21074. $config_files
  21075. Configuration headers:
  21076. $config_headers
  21077. Configuration commands:
  21078. $config_commands
  21079. Report bugs to the package provider."
  21080. _ACEOF
  21081. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21082. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21083. ac_cs_version="\\
  21084. config.status
  21085. configured by $0, generated by GNU Autoconf 2.69,
  21086. with options \\"\$ac_cs_config\\"
  21087. Copyright (C) 2012 Free Software Foundation, Inc.
  21088. This config.status script is free software; the Free Software Foundation
  21089. gives unlimited permission to copy, distribute and modify it."
  21090. ac_pwd='$ac_pwd'
  21091. srcdir='$srcdir'
  21092. INSTALL='$INSTALL'
  21093. AWK='$AWK'
  21094. test -n "\$AWK" || AWK=awk
  21095. _ACEOF
  21096. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21097. # The default lists apply if the user does not specify any file.
  21098. ac_need_defaults=:
  21099. while test $# != 0
  21100. do
  21101. case $1 in
  21102. --*=?*)
  21103. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21104. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21105. ac_shift=:
  21106. ;;
  21107. --*=)
  21108. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21109. ac_optarg=
  21110. ac_shift=:
  21111. ;;
  21112. *)
  21113. ac_option=$1
  21114. ac_optarg=$2
  21115. ac_shift=shift
  21116. ;;
  21117. esac
  21118. case $ac_option in
  21119. # Handling of the options.
  21120. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21121. ac_cs_recheck=: ;;
  21122. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21123. $as_echo "$ac_cs_version"; exit ;;
  21124. --config | --confi | --conf | --con | --co | --c )
  21125. $as_echo "$ac_cs_config"; exit ;;
  21126. --debug | --debu | --deb | --de | --d | -d )
  21127. debug=: ;;
  21128. --file | --fil | --fi | --f )
  21129. $ac_shift
  21130. case $ac_optarg in
  21131. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21132. '') as_fn_error $? "missing file argument" ;;
  21133. esac
  21134. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21135. ac_need_defaults=false;;
  21136. --header | --heade | --head | --hea )
  21137. $ac_shift
  21138. case $ac_optarg in
  21139. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21140. esac
  21141. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21142. ac_need_defaults=false;;
  21143. --he | --h)
  21144. # Conflict between --help and --header
  21145. as_fn_error $? "ambiguous option: \`$1'
  21146. Try \`$0 --help' for more information.";;
  21147. --help | --hel | -h )
  21148. $as_echo "$ac_cs_usage"; exit ;;
  21149. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21150. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21151. ac_cs_silent=: ;;
  21152. # This is an error.
  21153. -*) as_fn_error $? "unrecognized option: \`$1'
  21154. Try \`$0 --help' for more information." ;;
  21155. *) as_fn_append ac_config_targets " $1"
  21156. ac_need_defaults=false ;;
  21157. esac
  21158. shift
  21159. done
  21160. ac_configure_extra_args=
  21161. if $ac_cs_silent; then
  21162. exec 6>/dev/null
  21163. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21164. fi
  21165. _ACEOF
  21166. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21167. if \$ac_cs_recheck; then
  21168. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21169. shift
  21170. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21171. CONFIG_SHELL='$SHELL'
  21172. export CONFIG_SHELL
  21173. exec "\$@"
  21174. fi
  21175. _ACEOF
  21176. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21177. exec 5>>config.log
  21178. {
  21179. echo
  21180. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21181. ## Running $as_me. ##
  21182. _ASBOX
  21183. $as_echo "$ac_log"
  21184. } >&5
  21185. _ACEOF
  21186. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21187. #
  21188. # INIT-COMMANDS
  21189. #
  21190. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21191. # if CDPATH is set.
  21192. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21193. sed_quote_subst='$sed_quote_subst'
  21194. double_quote_subst='$double_quote_subst'
  21195. delay_variable_subst='$delay_variable_subst'
  21196. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21197. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21198. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21199. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21200. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21201. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21202. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21203. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21204. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21205. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21206. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21207. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21208. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21209. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21210. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21211. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21212. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21213. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21214. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21215. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21216. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21217. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21218. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21219. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21220. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21221. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21222. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21223. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21224. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21225. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21226. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21227. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21228. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21229. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21230. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21231. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21232. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21233. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21234. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21235. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21236. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21237. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21238. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21239. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21240. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21241. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21242. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21243. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21244. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21245. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  21246. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  21247. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  21248. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  21249. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  21250. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21251. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21252. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21253. 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"`'
  21254. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21255. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21256. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21257. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21258. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21259. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21260. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21261. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21262. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21263. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21264. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21265. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21266. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21267. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21268. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21269. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21270. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21271. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21272. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21273. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21274. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21275. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21276. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21277. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21278. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21279. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21280. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21281. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21282. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21283. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21284. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21285. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21286. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21287. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  21288. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  21289. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  21290. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  21291. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  21292. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21293. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  21294. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  21295. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  21296. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  21297. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  21298. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  21299. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  21300. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  21301. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  21302. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  21303. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  21304. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21305. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  21306. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  21307. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  21308. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21309. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  21310. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  21311. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  21312. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  21313. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  21314. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21315. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21316. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  21317. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  21318. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  21319. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  21320. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  21321. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  21322. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  21323. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  21324. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  21325. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  21326. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  21327. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  21328. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  21329. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  21330. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  21331. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  21332. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  21333. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  21334. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21335. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21336. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21337. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  21338. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  21339. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21340. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  21341. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  21342. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  21343. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  21344. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  21345. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  21346. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21347. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21348. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  21349. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21350. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21351. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21352. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21353. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21354. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21355. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  21356. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21357. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21358. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21359. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  21360. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  21361. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  21362. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  21363. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  21364. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  21365. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  21366. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  21367. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  21368. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21369. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21370. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21371. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21372. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21373. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21374. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  21375. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  21376. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21377. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21378. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  21379. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  21380. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  21381. LTCC='$LTCC'
  21382. LTCFLAGS='$LTCFLAGS'
  21383. compiler='$compiler_DEFAULT'
  21384. # A function that is used when there is no print builtin or printf.
  21385. func_fallback_echo ()
  21386. {
  21387. eval 'cat <<_LTECHO_EOF
  21388. \$1
  21389. _LTECHO_EOF'
  21390. }
  21391. # Quote evaled strings.
  21392. for var in AS \
  21393. DLLTOOL \
  21394. OBJDUMP \
  21395. SHELL \
  21396. ECHO \
  21397. PATH_SEPARATOR \
  21398. SED \
  21399. GREP \
  21400. EGREP \
  21401. FGREP \
  21402. LD \
  21403. NM \
  21404. LN_S \
  21405. lt_SP2NL \
  21406. lt_NL2SP \
  21407. reload_flag \
  21408. deplibs_check_method \
  21409. file_magic_cmd \
  21410. file_magic_glob \
  21411. want_nocaseglob \
  21412. sharedlib_from_linklib_cmd \
  21413. AR \
  21414. AR_FLAGS \
  21415. archiver_list_spec \
  21416. STRIP \
  21417. RANLIB \
  21418. CC \
  21419. CFLAGS \
  21420. compiler \
  21421. lt_cv_sys_global_symbol_pipe \
  21422. lt_cv_sys_global_symbol_to_cdecl \
  21423. lt_cv_sys_global_symbol_to_c_name_address \
  21424. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21425. nm_file_list_spec \
  21426. lt_prog_compiler_no_builtin_flag \
  21427. lt_prog_compiler_pic \
  21428. lt_prog_compiler_wl \
  21429. lt_prog_compiler_static \
  21430. lt_cv_prog_compiler_c_o \
  21431. need_locks \
  21432. MANIFEST_TOOL \
  21433. DSYMUTIL \
  21434. NMEDIT \
  21435. LIPO \
  21436. OTOOL \
  21437. OTOOL64 \
  21438. shrext_cmds \
  21439. export_dynamic_flag_spec \
  21440. whole_archive_flag_spec \
  21441. compiler_needs_object \
  21442. with_gnu_ld \
  21443. allow_undefined_flag \
  21444. no_undefined_flag \
  21445. hardcode_libdir_flag_spec \
  21446. hardcode_libdir_separator \
  21447. exclude_expsyms \
  21448. include_expsyms \
  21449. file_list_spec \
  21450. variables_saved_for_relink \
  21451. libname_spec \
  21452. library_names_spec \
  21453. soname_spec \
  21454. install_override_mode \
  21455. finish_eval \
  21456. old_striplib \
  21457. striplib \
  21458. compiler_lib_search_dirs \
  21459. predep_objects \
  21460. postdep_objects \
  21461. predeps \
  21462. postdeps \
  21463. compiler_lib_search_path \
  21464. LD_CXX \
  21465. reload_flag_CXX \
  21466. compiler_CXX \
  21467. lt_prog_compiler_no_builtin_flag_CXX \
  21468. lt_prog_compiler_pic_CXX \
  21469. lt_prog_compiler_wl_CXX \
  21470. lt_prog_compiler_static_CXX \
  21471. lt_cv_prog_compiler_c_o_CXX \
  21472. export_dynamic_flag_spec_CXX \
  21473. whole_archive_flag_spec_CXX \
  21474. compiler_needs_object_CXX \
  21475. with_gnu_ld_CXX \
  21476. allow_undefined_flag_CXX \
  21477. no_undefined_flag_CXX \
  21478. hardcode_libdir_flag_spec_CXX \
  21479. hardcode_libdir_separator_CXX \
  21480. exclude_expsyms_CXX \
  21481. include_expsyms_CXX \
  21482. file_list_spec_CXX \
  21483. compiler_lib_search_dirs_CXX \
  21484. predep_objects_CXX \
  21485. postdep_objects_CXX \
  21486. predeps_CXX \
  21487. postdeps_CXX \
  21488. compiler_lib_search_path_CXX; do
  21489. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21490. *[\\\\\\\`\\"\\\$]*)
  21491. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  21492. ;;
  21493. *)
  21494. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21495. ;;
  21496. esac
  21497. done
  21498. # Double-quote double-evaled strings.
  21499. for var in reload_cmds \
  21500. old_postinstall_cmds \
  21501. old_postuninstall_cmds \
  21502. old_archive_cmds \
  21503. extract_expsyms_cmds \
  21504. old_archive_from_new_cmds \
  21505. old_archive_from_expsyms_cmds \
  21506. archive_cmds \
  21507. archive_expsym_cmds \
  21508. module_cmds \
  21509. module_expsym_cmds \
  21510. export_symbols_cmds \
  21511. prelink_cmds \
  21512. postlink_cmds \
  21513. postinstall_cmds \
  21514. postuninstall_cmds \
  21515. finish_cmds \
  21516. sys_lib_search_path_spec \
  21517. sys_lib_dlsearch_path_spec \
  21518. reload_cmds_CXX \
  21519. old_archive_cmds_CXX \
  21520. old_archive_from_new_cmds_CXX \
  21521. old_archive_from_expsyms_cmds_CXX \
  21522. archive_cmds_CXX \
  21523. archive_expsym_cmds_CXX \
  21524. module_cmds_CXX \
  21525. module_expsym_cmds_CXX \
  21526. export_symbols_cmds_CXX \
  21527. prelink_cmds_CXX \
  21528. postlink_cmds_CXX; do
  21529. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21530. *[\\\\\\\`\\"\\\$]*)
  21531. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  21532. ;;
  21533. *)
  21534. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21535. ;;
  21536. esac
  21537. done
  21538. ac_aux_dir='$ac_aux_dir'
  21539. xsi_shell='$xsi_shell'
  21540. lt_shell_append='$lt_shell_append'
  21541. # See if we are running on zsh, and set the options which allow our
  21542. # commands through without removal of \ escapes INIT.
  21543. if test -n "\${ZSH_VERSION+set}" ; then
  21544. setopt NO_GLOB_SUBST
  21545. fi
  21546. PACKAGE='$PACKAGE'
  21547. VERSION='$VERSION'
  21548. TIMESTAMP='$TIMESTAMP'
  21549. RM='$RM'
  21550. ofile='$ofile'
  21551. SUMMARY="$SUMMARY"
  21552. _ACEOF
  21553. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21554. # Handling of arguments.
  21555. for ac_config_target in $ac_config_targets
  21556. do
  21557. case $ac_config_target in
  21558. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  21559. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  21560. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  21561. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  21562. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  21563. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  21564. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  21565. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  21566. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  21567. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  21568. esac
  21569. done
  21570. # If the user did not use the arguments to specify the items to instantiate,
  21571. # then the envvar interface is used. Set only those that are not.
  21572. # We use the long form for the default assignment because of an extremely
  21573. # bizarre bug on SunOS 4.1.3.
  21574. if $ac_need_defaults; then
  21575. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21576. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21577. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21578. fi
  21579. # Have a temporary directory for convenience. Make it in the build tree
  21580. # simply because there is no reason against having it here, and in addition,
  21581. # creating and moving files from /tmp can sometimes cause problems.
  21582. # Hook for its removal unless debugging.
  21583. # Note that there is a small window in which the directory will not be cleaned:
  21584. # after its creation but before its name has been assigned to `$tmp'.
  21585. $debug ||
  21586. {
  21587. tmp= ac_tmp=
  21588. trap 'exit_status=$?
  21589. : "${ac_tmp:=$tmp}"
  21590. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  21591. ' 0
  21592. trap 'as_fn_exit 1' 1 2 13 15
  21593. }
  21594. # Create a (secure) tmp directory for tmp files.
  21595. {
  21596. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21597. test -d "$tmp"
  21598. } ||
  21599. {
  21600. tmp=./conf$$-$RANDOM
  21601. (umask 077 && mkdir "$tmp")
  21602. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  21603. ac_tmp=$tmp
  21604. # Set up the scripts for CONFIG_FILES section.
  21605. # No need to generate them if there are no CONFIG_FILES.
  21606. # This happens for instance with `./config.status config.h'.
  21607. if test -n "$CONFIG_FILES"; then
  21608. ac_cr=`echo X | tr X '\015'`
  21609. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  21610. # But we know of no other shell where ac_cr would be empty at this
  21611. # point, so we can use a bashism as a fallback.
  21612. if test "x$ac_cr" = x; then
  21613. eval ac_cr=\$\'\\r\'
  21614. fi
  21615. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21616. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21617. ac_cs_awk_cr='\\r'
  21618. else
  21619. ac_cs_awk_cr=$ac_cr
  21620. fi
  21621. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  21622. _ACEOF
  21623. {
  21624. echo "cat >conf$$subs.awk <<_ACEOF" &&
  21625. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21626. echo "_ACEOF"
  21627. } >conf$$subs.sh ||
  21628. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21629. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  21630. ac_delim='%!_!# '
  21631. for ac_last_try in false false false false false :; do
  21632. . ./conf$$subs.sh ||
  21633. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21634. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21635. if test $ac_delim_n = $ac_delim_num; then
  21636. break
  21637. elif $ac_last_try; then
  21638. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21639. else
  21640. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21641. fi
  21642. done
  21643. rm -f conf$$subs.sh
  21644. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21645. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  21646. _ACEOF
  21647. sed -n '
  21648. h
  21649. s/^/S["/; s/!.*/"]=/
  21650. p
  21651. g
  21652. s/^[^!]*!//
  21653. :repl
  21654. t repl
  21655. s/'"$ac_delim"'$//
  21656. t delim
  21657. :nl
  21658. h
  21659. s/\(.\{148\}\)..*/\1/
  21660. t more1
  21661. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21662. p
  21663. n
  21664. b repl
  21665. :more1
  21666. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21667. p
  21668. g
  21669. s/.\{148\}//
  21670. t nl
  21671. :delim
  21672. h
  21673. s/\(.\{148\}\)..*/\1/
  21674. t more2
  21675. s/["\\]/\\&/g; s/^/"/; s/$/"/
  21676. p
  21677. b
  21678. :more2
  21679. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21680. p
  21681. g
  21682. s/.\{148\}//
  21683. t delim
  21684. ' <conf$$subs.awk | sed '
  21685. /^[^""]/{
  21686. N
  21687. s/\n//
  21688. }
  21689. ' >>$CONFIG_STATUS || ac_write_fail=1
  21690. rm -f conf$$subs.awk
  21691. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21692. _ACAWK
  21693. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  21694. for (key in S) S_is_set[key] = 1
  21695. FS = ""
  21696. }
  21697. {
  21698. line = $ 0
  21699. nfields = split(line, field, "@")
  21700. substed = 0
  21701. len = length(field[1])
  21702. for (i = 2; i < nfields; i++) {
  21703. key = field[i]
  21704. keylen = length(key)
  21705. if (S_is_set[key]) {
  21706. value = S[key]
  21707. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21708. len += length(value) + length(field[++i])
  21709. substed = 1
  21710. } else
  21711. len += 1 + keylen
  21712. }
  21713. print line
  21714. }
  21715. _ACAWK
  21716. _ACEOF
  21717. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21718. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21719. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21720. else
  21721. cat
  21722. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  21723. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  21724. _ACEOF
  21725. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  21726. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  21727. # trailing colons and then remove the whole line if VPATH becomes empty
  21728. # (actually we leave an empty line to preserve line numbers).
  21729. if test "x$srcdir" = x.; then
  21730. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  21731. h
  21732. s///
  21733. s/^/:/
  21734. s/[ ]*$/:/
  21735. s/:\$(srcdir):/:/g
  21736. s/:\${srcdir}:/:/g
  21737. s/:@srcdir@:/:/g
  21738. s/^:*//
  21739. s/:*$//
  21740. x
  21741. s/\(=[ ]*\).*/\1/
  21742. G
  21743. s/\n//
  21744. s/^[^=]*=[ ]*$//
  21745. }'
  21746. fi
  21747. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21748. fi # test -n "$CONFIG_FILES"
  21749. # Set up the scripts for CONFIG_HEADERS section.
  21750. # No need to generate them if there are no CONFIG_HEADERS.
  21751. # This happens for instance with `./config.status Makefile'.
  21752. if test -n "$CONFIG_HEADERS"; then
  21753. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  21754. BEGIN {
  21755. _ACEOF
  21756. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21757. # here-document in config.status, that substitutes the proper values into
  21758. # config.h.in to produce config.h.
  21759. # Create a delimiter string that does not exist in confdefs.h, to ease
  21760. # handling of long lines.
  21761. ac_delim='%!_!# '
  21762. for ac_last_try in false false :; do
  21763. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  21764. if test -z "$ac_tt"; then
  21765. break
  21766. elif $ac_last_try; then
  21767. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  21768. else
  21769. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21770. fi
  21771. done
  21772. # For the awk script, D is an array of macro values keyed by name,
  21773. # likewise P contains macro parameters if any. Preserve backslash
  21774. # newline sequences.
  21775. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21776. sed -n '
  21777. s/.\{148\}/&'"$ac_delim"'/g
  21778. t rset
  21779. :rset
  21780. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21781. t def
  21782. d
  21783. :def
  21784. s/\\$//
  21785. t bsnl
  21786. s/["\\]/\\&/g
  21787. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21788. D["\1"]=" \3"/p
  21789. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21790. d
  21791. :bsnl
  21792. s/["\\]/\\&/g
  21793. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21794. D["\1"]=" \3\\\\\\n"\\/p
  21795. t cont
  21796. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21797. t cont
  21798. d
  21799. :cont
  21800. n
  21801. s/.\{148\}/&'"$ac_delim"'/g
  21802. t clear
  21803. :clear
  21804. s/\\$//
  21805. t bsnlc
  21806. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21807. d
  21808. :bsnlc
  21809. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21810. b cont
  21811. ' <confdefs.h | sed '
  21812. s/'"$ac_delim"'/"\\\
  21813. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21814. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21815. for (key in D) D_is_set[key] = 1
  21816. FS = ""
  21817. }
  21818. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21819. line = \$ 0
  21820. split(line, arg, " ")
  21821. if (arg[1] == "#") {
  21822. defundef = arg[2]
  21823. mac1 = arg[3]
  21824. } else {
  21825. defundef = substr(arg[1], 2)
  21826. mac1 = arg[2]
  21827. }
  21828. split(mac1, mac2, "(") #)
  21829. macro = mac2[1]
  21830. prefix = substr(line, 1, index(line, defundef) - 1)
  21831. if (D_is_set[macro]) {
  21832. # Preserve the white space surrounding the "#".
  21833. print prefix "define", macro P[macro] D[macro]
  21834. next
  21835. } else {
  21836. # Replace #undef with comments. This is necessary, for example,
  21837. # in the case of _POSIX_SOURCE, which is predefined and required
  21838. # on some systems where configure will not decide to define it.
  21839. if (defundef == "undef") {
  21840. print "/*", prefix defundef, macro, "*/"
  21841. next
  21842. }
  21843. }
  21844. }
  21845. { print }
  21846. _ACAWK
  21847. _ACEOF
  21848. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21849. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  21850. fi # test -n "$CONFIG_HEADERS"
  21851. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21852. shift
  21853. for ac_tag
  21854. do
  21855. case $ac_tag in
  21856. :[FHLC]) ac_mode=$ac_tag; continue;;
  21857. esac
  21858. case $ac_mode$ac_tag in
  21859. :[FHL]*:*);;
  21860. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  21861. :[FH]-) ac_tag=-:-;;
  21862. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21863. esac
  21864. ac_save_IFS=$IFS
  21865. IFS=:
  21866. set x $ac_tag
  21867. IFS=$ac_save_IFS
  21868. shift
  21869. ac_file=$1
  21870. shift
  21871. case $ac_mode in
  21872. :L) ac_source=$1;;
  21873. :[FH])
  21874. ac_file_inputs=
  21875. for ac_f
  21876. do
  21877. case $ac_f in
  21878. -) ac_f="$ac_tmp/stdin";;
  21879. *) # Look for the file first in the build tree, then in the source tree
  21880. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21881. # because $ac_f cannot contain `:'.
  21882. test -f "$ac_f" ||
  21883. case $ac_f in
  21884. [\\/$]*) false;;
  21885. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21886. esac ||
  21887. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  21888. esac
  21889. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21890. as_fn_append ac_file_inputs " '$ac_f'"
  21891. done
  21892. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21893. # use $as_me), people would be surprised to read:
  21894. # /* config.h. Generated by config.status. */
  21895. configure_input='Generated from '`
  21896. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21897. `' by configure.'
  21898. if test x"$ac_file" != x-; then
  21899. configure_input="$ac_file. $configure_input"
  21900. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  21901. $as_echo "$as_me: creating $ac_file" >&6;}
  21902. fi
  21903. # Neutralize special characters interpreted by sed in replacement strings.
  21904. case $configure_input in #(
  21905. *\&* | *\|* | *\\* )
  21906. ac_sed_conf_input=`$as_echo "$configure_input" |
  21907. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21908. *) ac_sed_conf_input=$configure_input;;
  21909. esac
  21910. case $ac_tag in
  21911. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  21912. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  21913. esac
  21914. ;;
  21915. esac
  21916. ac_dir=`$as_dirname -- "$ac_file" ||
  21917. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21918. X"$ac_file" : 'X\(//\)[^/]' \| \
  21919. X"$ac_file" : 'X\(//\)$' \| \
  21920. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21921. $as_echo X"$ac_file" |
  21922. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21923. s//\1/
  21924. q
  21925. }
  21926. /^X\(\/\/\)[^/].*/{
  21927. s//\1/
  21928. q
  21929. }
  21930. /^X\(\/\/\)$/{
  21931. s//\1/
  21932. q
  21933. }
  21934. /^X\(\/\).*/{
  21935. s//\1/
  21936. q
  21937. }
  21938. s/.*/./; q'`
  21939. as_dir="$ac_dir"; as_fn_mkdir_p
  21940. ac_builddir=.
  21941. case "$ac_dir" in
  21942. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21943. *)
  21944. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21945. # A ".." for each directory in $ac_dir_suffix.
  21946. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21947. case $ac_top_builddir_sub in
  21948. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21949. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21950. esac ;;
  21951. esac
  21952. ac_abs_top_builddir=$ac_pwd
  21953. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21954. # for backward compatibility:
  21955. ac_top_builddir=$ac_top_build_prefix
  21956. case $srcdir in
  21957. .) # We are building in place.
  21958. ac_srcdir=.
  21959. ac_top_srcdir=$ac_top_builddir_sub
  21960. ac_abs_top_srcdir=$ac_pwd ;;
  21961. [\\/]* | ?:[\\/]* ) # Absolute name.
  21962. ac_srcdir=$srcdir$ac_dir_suffix;
  21963. ac_top_srcdir=$srcdir
  21964. ac_abs_top_srcdir=$srcdir ;;
  21965. *) # Relative name.
  21966. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21967. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21968. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21969. esac
  21970. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21971. case $ac_mode in
  21972. :F)
  21973. #
  21974. # CONFIG_FILE
  21975. #
  21976. case $INSTALL in
  21977. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21978. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21979. esac
  21980. _ACEOF
  21981. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21982. # If the template does not know about datarootdir, expand it.
  21983. # FIXME: This hack should be removed a few years after 2.60.
  21984. ac_datarootdir_hack=; ac_datarootdir_seen=
  21985. ac_sed_dataroot='
  21986. /datarootdir/ {
  21987. p
  21988. q
  21989. }
  21990. /@datadir@/p
  21991. /@docdir@/p
  21992. /@infodir@/p
  21993. /@localedir@/p
  21994. /@mandir@/p'
  21995. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21996. *datarootdir*) ac_datarootdir_seen=yes;;
  21997. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21999. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22000. _ACEOF
  22001. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22002. ac_datarootdir_hack='
  22003. s&@datadir@&$datadir&g
  22004. s&@docdir@&$docdir&g
  22005. s&@infodir@&$infodir&g
  22006. s&@localedir@&$localedir&g
  22007. s&@mandir@&$mandir&g
  22008. s&\\\${datarootdir}&$datarootdir&g' ;;
  22009. esac
  22010. _ACEOF
  22011. # Neutralize VPATH when `$srcdir' = `.'.
  22012. # Shell code in configure.ac might set extrasub.
  22013. # FIXME: do we really want to maintain this feature?
  22014. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22015. ac_sed_extra="$ac_vpsub
  22016. $extrasub
  22017. _ACEOF
  22018. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22019. :t
  22020. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22021. s|@configure_input@|$ac_sed_conf_input|;t t
  22022. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22023. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22024. s&@srcdir@&$ac_srcdir&;t t
  22025. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22026. s&@top_srcdir@&$ac_top_srcdir&;t t
  22027. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22028. s&@builddir@&$ac_builddir&;t t
  22029. s&@abs_builddir@&$ac_abs_builddir&;t t
  22030. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22031. s&@INSTALL@&$ac_INSTALL&;t t
  22032. $ac_datarootdir_hack
  22033. "
  22034. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  22035. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22036. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22037. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  22038. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  22039. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  22040. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22041. which seems to be undefined. Please make sure it is defined" >&5
  22042. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22043. which seems to be undefined. Please make sure it is defined" >&2;}
  22044. rm -f "$ac_tmp/stdin"
  22045. case $ac_file in
  22046. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  22047. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22048. esac \
  22049. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22050. ;;
  22051. :H)
  22052. #
  22053. # CONFIG_HEADER
  22054. #
  22055. if test x"$ac_file" != x-; then
  22056. {
  22057. $as_echo "/* $configure_input */" \
  22058. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22059. } >"$ac_tmp/config.h" \
  22060. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22061. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22062. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22063. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22064. else
  22065. rm -f "$ac_file"
  22066. mv "$ac_tmp/config.h" "$ac_file" \
  22067. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22068. fi
  22069. else
  22070. $as_echo "/* $configure_input */" \
  22071. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22072. || as_fn_error $? "could not create -" "$LINENO" 5
  22073. fi
  22074. ;;
  22075. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22076. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22077. ;;
  22078. esac
  22079. case $ac_file$ac_mode in
  22080. "libtool":C)
  22081. # See if we are running on zsh, and set the options which allow our
  22082. # commands through without removal of \ escapes.
  22083. if test -n "${ZSH_VERSION+set}" ; then
  22084. setopt NO_GLOB_SUBST
  22085. fi
  22086. cfgfile="${ofile}T"
  22087. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22088. $RM "$cfgfile"
  22089. cat <<_LT_EOF >> "$cfgfile"
  22090. #! $SHELL
  22091. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22092. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22093. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22094. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22095. #
  22096. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22097. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22098. # Foundation, Inc.
  22099. # Written by Gordon Matzigkeit, 1996
  22100. #
  22101. # This file is part of GNU Libtool.
  22102. #
  22103. # GNU Libtool is free software; you can redistribute it and/or
  22104. # modify it under the terms of the GNU General Public License as
  22105. # published by the Free Software Foundation; either version 2 of
  22106. # the License, or (at your option) any later version.
  22107. #
  22108. # As a special exception to the GNU General Public License,
  22109. # if you distribute this file as part of a program or library that
  22110. # is built using GNU Libtool, you may include this file under the
  22111. # same distribution terms that you use for the rest of that program.
  22112. #
  22113. # GNU Libtool is distributed in the hope that it will be useful,
  22114. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22115. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22116. # GNU General Public License for more details.
  22117. #
  22118. # You should have received a copy of the GNU General Public License
  22119. # along with GNU Libtool; see the file COPYING. If not, a copy
  22120. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22121. # obtained by writing to the Free Software Foundation, Inc.,
  22122. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22123. # The names of the tagged configurations supported by this script.
  22124. available_tags="CXX "
  22125. # ### BEGIN LIBTOOL CONFIG
  22126. # Which release of libtool.m4 was used?
  22127. macro_version=$macro_version
  22128. macro_revision=$macro_revision
  22129. # Assembler program.
  22130. AS=$lt_AS
  22131. # DLL creation program.
  22132. DLLTOOL=$lt_DLLTOOL
  22133. # Object dumper program.
  22134. OBJDUMP=$lt_OBJDUMP
  22135. # Whether or not to build shared libraries.
  22136. build_libtool_libs=$enable_shared
  22137. # Whether or not to build static libraries.
  22138. build_old_libs=$enable_static
  22139. # What type of objects to build.
  22140. pic_mode=$pic_mode
  22141. # Whether or not to optimize for fast installation.
  22142. fast_install=$enable_fast_install
  22143. # Shell to use when invoking shell scripts.
  22144. SHELL=$lt_SHELL
  22145. # An echo program that protects backslashes.
  22146. ECHO=$lt_ECHO
  22147. # The PATH separator for the build system.
  22148. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22149. # The host system.
  22150. host_alias=$host_alias
  22151. host=$host
  22152. host_os=$host_os
  22153. # The build system.
  22154. build_alias=$build_alias
  22155. build=$build
  22156. build_os=$build_os
  22157. # A sed program that does not truncate output.
  22158. SED=$lt_SED
  22159. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22160. Xsed="\$SED -e 1s/^X//"
  22161. # A grep program that handles long lines.
  22162. GREP=$lt_GREP
  22163. # An ERE matcher.
  22164. EGREP=$lt_EGREP
  22165. # A literal string matcher.
  22166. FGREP=$lt_FGREP
  22167. # A BSD- or MS-compatible name lister.
  22168. NM=$lt_NM
  22169. # Whether we need soft or hard links.
  22170. LN_S=$lt_LN_S
  22171. # What is the maximum length of a command?
  22172. max_cmd_len=$max_cmd_len
  22173. # Object file suffix (normally "o").
  22174. objext=$ac_objext
  22175. # Executable file suffix (normally "").
  22176. exeext=$exeext
  22177. # whether the shell understands "unset".
  22178. lt_unset=$lt_unset
  22179. # turn spaces into newlines.
  22180. SP2NL=$lt_lt_SP2NL
  22181. # turn newlines into spaces.
  22182. NL2SP=$lt_lt_NL2SP
  22183. # convert \$build file names to \$host format.
  22184. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22185. # convert \$build files to toolchain format.
  22186. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22187. # Method to check whether dependent libraries are shared objects.
  22188. deplibs_check_method=$lt_deplibs_check_method
  22189. # Command to use when deplibs_check_method = "file_magic".
  22190. file_magic_cmd=$lt_file_magic_cmd
  22191. # How to find potential files when deplibs_check_method = "file_magic".
  22192. file_magic_glob=$lt_file_magic_glob
  22193. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22194. want_nocaseglob=$lt_want_nocaseglob
  22195. # Command to associate shared and link libraries.
  22196. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22197. # The archiver.
  22198. AR=$lt_AR
  22199. # Flags to create an archive.
  22200. AR_FLAGS=$lt_AR_FLAGS
  22201. # How to feed a file listing to the archiver.
  22202. archiver_list_spec=$lt_archiver_list_spec
  22203. # A symbol stripping program.
  22204. STRIP=$lt_STRIP
  22205. # Commands used to install an old-style archive.
  22206. RANLIB=$lt_RANLIB
  22207. old_postinstall_cmds=$lt_old_postinstall_cmds
  22208. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22209. # Whether to use a lock for old archive extraction.
  22210. lock_old_archive_extraction=$lock_old_archive_extraction
  22211. # A C compiler.
  22212. LTCC=$lt_CC
  22213. # LTCC compiler flags.
  22214. LTCFLAGS=$lt_CFLAGS
  22215. # Take the output of nm and produce a listing of raw symbols and C names.
  22216. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22217. # Transform the output of nm in a proper C declaration.
  22218. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22219. # Transform the output of nm in a C name address pair.
  22220. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22221. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22222. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22223. # Specify filename containing input files for \$NM.
  22224. nm_file_list_spec=$lt_nm_file_list_spec
  22225. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22226. lt_sysroot=$lt_sysroot
  22227. # The name of the directory that contains temporary libtool files.
  22228. objdir=$objdir
  22229. # Used to examine libraries when file_magic_cmd begins with "file".
  22230. MAGIC_CMD=$MAGIC_CMD
  22231. # Must we lock files when doing compilation?
  22232. need_locks=$lt_need_locks
  22233. # Manifest tool.
  22234. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22235. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22236. DSYMUTIL=$lt_DSYMUTIL
  22237. # Tool to change global to local symbols on Mac OS X.
  22238. NMEDIT=$lt_NMEDIT
  22239. # Tool to manipulate fat objects and archives on Mac OS X.
  22240. LIPO=$lt_LIPO
  22241. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22242. OTOOL=$lt_OTOOL
  22243. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22244. OTOOL64=$lt_OTOOL64
  22245. # Old archive suffix (normally "a").
  22246. libext=$libext
  22247. # Shared library suffix (normally ".so").
  22248. shrext_cmds=$lt_shrext_cmds
  22249. # The commands to extract the exported symbol list from a shared archive.
  22250. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22251. # Variables whose values should be saved in libtool wrapper scripts and
  22252. # restored at link time.
  22253. variables_saved_for_relink=$lt_variables_saved_for_relink
  22254. # Do we need the "lib" prefix for modules?
  22255. need_lib_prefix=$need_lib_prefix
  22256. # Do we need a version for libraries?
  22257. need_version=$need_version
  22258. # Library versioning type.
  22259. version_type=$version_type
  22260. # Shared library runtime path variable.
  22261. runpath_var=$runpath_var
  22262. # Shared library path variable.
  22263. shlibpath_var=$shlibpath_var
  22264. # Is shlibpath searched before the hard-coded library search path?
  22265. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22266. # Format of library name prefix.
  22267. libname_spec=$lt_libname_spec
  22268. # List of archive names. First name is the real one, the rest are links.
  22269. # The last name is the one that the linker finds with -lNAME
  22270. library_names_spec=$lt_library_names_spec
  22271. # The coded name of the library, if different from the real name.
  22272. soname_spec=$lt_soname_spec
  22273. # Permission mode override for installation of shared libraries.
  22274. install_override_mode=$lt_install_override_mode
  22275. # Command to use after installation of a shared archive.
  22276. postinstall_cmds=$lt_postinstall_cmds
  22277. # Command to use after uninstallation of a shared archive.
  22278. postuninstall_cmds=$lt_postuninstall_cmds
  22279. # Commands used to finish a libtool library installation in a directory.
  22280. finish_cmds=$lt_finish_cmds
  22281. # As "finish_cmds", except a single script fragment to be evaled but
  22282. # not shown.
  22283. finish_eval=$lt_finish_eval
  22284. # Whether we should hardcode library paths into libraries.
  22285. hardcode_into_libs=$hardcode_into_libs
  22286. # Compile-time system search path for libraries.
  22287. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22288. # Run-time system search path for libraries.
  22289. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22290. # Whether dlopen is supported.
  22291. dlopen_support=$enable_dlopen
  22292. # Whether dlopen of programs is supported.
  22293. dlopen_self=$enable_dlopen_self
  22294. # Whether dlopen of statically linked programs is supported.
  22295. dlopen_self_static=$enable_dlopen_self_static
  22296. # Commands to strip libraries.
  22297. old_striplib=$lt_old_striplib
  22298. striplib=$lt_striplib
  22299. # The linker used to build libraries.
  22300. LD=$lt_LD
  22301. # How to create reloadable object files.
  22302. reload_flag=$lt_reload_flag
  22303. reload_cmds=$lt_reload_cmds
  22304. # Commands used to build an old-style archive.
  22305. old_archive_cmds=$lt_old_archive_cmds
  22306. # A language specific compiler.
  22307. CC=$lt_compiler
  22308. # Is the compiler the GNU compiler?
  22309. with_gcc=$GCC
  22310. # Compiler flag to turn off builtin functions.
  22311. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22312. # Additional compiler flags for building library objects.
  22313. pic_flag=$lt_lt_prog_compiler_pic
  22314. # How to pass a linker flag through the compiler.
  22315. wl=$lt_lt_prog_compiler_wl
  22316. # Compiler flag to prevent dynamic linking.
  22317. link_static_flag=$lt_lt_prog_compiler_static
  22318. # Does compiler simultaneously support -c and -o options?
  22319. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22320. # Whether or not to add -lc for building shared libraries.
  22321. build_libtool_need_lc=$archive_cmds_need_lc
  22322. # Whether or not to disallow shared libs when runtime libs are static.
  22323. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22324. # Compiler flag to allow reflexive dlopens.
  22325. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22326. # Compiler flag to generate shared objects directly from archives.
  22327. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22328. # Whether the compiler copes with passing no objects directly.
  22329. compiler_needs_object=$lt_compiler_needs_object
  22330. # Create an old-style archive from a shared archive.
  22331. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22332. # Create a temporary old-style archive to link instead of a shared archive.
  22333. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22334. # Commands used to build a shared archive.
  22335. archive_cmds=$lt_archive_cmds
  22336. archive_expsym_cmds=$lt_archive_expsym_cmds
  22337. # Commands used to build a loadable module if different from building
  22338. # a shared archive.
  22339. module_cmds=$lt_module_cmds
  22340. module_expsym_cmds=$lt_module_expsym_cmds
  22341. # Whether we are building with GNU ld or not.
  22342. with_gnu_ld=$lt_with_gnu_ld
  22343. # Flag that allows shared libraries with undefined symbols to be built.
  22344. allow_undefined_flag=$lt_allow_undefined_flag
  22345. # Flag that enforces no undefined symbols.
  22346. no_undefined_flag=$lt_no_undefined_flag
  22347. # Flag to hardcode \$libdir into a binary during linking.
  22348. # This must work even if \$libdir does not exist
  22349. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22350. # Whether we need a single "-rpath" flag with a separated argument.
  22351. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22352. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22353. # DIR into the resulting binary.
  22354. hardcode_direct=$hardcode_direct
  22355. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22356. # DIR into the resulting binary and the resulting library dependency is
  22357. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22358. # library is relocated.
  22359. hardcode_direct_absolute=$hardcode_direct_absolute
  22360. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22361. # into the resulting binary.
  22362. hardcode_minus_L=$hardcode_minus_L
  22363. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22364. # into the resulting binary.
  22365. hardcode_shlibpath_var=$hardcode_shlibpath_var
  22366. # Set to "yes" if building a shared library automatically hardcodes DIR
  22367. # into the library and all subsequent libraries and executables linked
  22368. # against it.
  22369. hardcode_automatic=$hardcode_automatic
  22370. # Set to yes if linker adds runtime paths of dependent libraries
  22371. # to runtime path list.
  22372. inherit_rpath=$inherit_rpath
  22373. # Whether libtool must link a program against all its dependency libraries.
  22374. link_all_deplibs=$link_all_deplibs
  22375. # Set to "yes" if exported symbols are required.
  22376. always_export_symbols=$always_export_symbols
  22377. # The commands to list exported symbols.
  22378. export_symbols_cmds=$lt_export_symbols_cmds
  22379. # Symbols that should not be listed in the preloaded symbols.
  22380. exclude_expsyms=$lt_exclude_expsyms
  22381. # Symbols that must always be exported.
  22382. include_expsyms=$lt_include_expsyms
  22383. # Commands necessary for linking programs (against libraries) with templates.
  22384. prelink_cmds=$lt_prelink_cmds
  22385. # Commands necessary for finishing linking programs.
  22386. postlink_cmds=$lt_postlink_cmds
  22387. # Specify filename containing input files.
  22388. file_list_spec=$lt_file_list_spec
  22389. # How to hardcode a shared library path into an executable.
  22390. hardcode_action=$hardcode_action
  22391. # The directories searched by this compiler when creating a shared library.
  22392. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22393. # Dependencies to place before and after the objects being linked to
  22394. # create a shared library.
  22395. predep_objects=$lt_predep_objects
  22396. postdep_objects=$lt_postdep_objects
  22397. predeps=$lt_predeps
  22398. postdeps=$lt_postdeps
  22399. # The library search path used internally by the compiler when linking
  22400. # a shared library.
  22401. compiler_lib_search_path=$lt_compiler_lib_search_path
  22402. # ### END LIBTOOL CONFIG
  22403. _LT_EOF
  22404. case $host_os in
  22405. aix3*)
  22406. cat <<\_LT_EOF >> "$cfgfile"
  22407. # AIX sometimes has problems with the GCC collect2 program. For some
  22408. # reason, if we set the COLLECT_NAMES environment variable, the problems
  22409. # vanish in a puff of smoke.
  22410. if test "X${COLLECT_NAMES+set}" != Xset; then
  22411. COLLECT_NAMES=
  22412. export COLLECT_NAMES
  22413. fi
  22414. _LT_EOF
  22415. ;;
  22416. esac
  22417. ltmain="$ac_aux_dir/ltmain.sh"
  22418. # We use sed instead of cat because bash on DJGPP gets confused if
  22419. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  22420. # text mode, it properly converts lines to CR/LF. This bash problem
  22421. # is reportedly fixed, but why not run on old versions too?
  22422. sed '$q' "$ltmain" >> "$cfgfile" \
  22423. || (rm -f "$cfgfile"; exit 1)
  22424. if test x"$xsi_shell" = xyes; then
  22425. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  22426. func_dirname ()\
  22427. {\
  22428. \ case ${1} in\
  22429. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22430. \ * ) func_dirname_result="${3}" ;;\
  22431. \ esac\
  22432. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  22433. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22434. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22435. test 0 -eq $? || _lt_function_replace_fail=:
  22436. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  22437. func_basename ()\
  22438. {\
  22439. \ func_basename_result="${1##*/}"\
  22440. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22441. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22442. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22443. test 0 -eq $? || _lt_function_replace_fail=:
  22444. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  22445. func_dirname_and_basename ()\
  22446. {\
  22447. \ case ${1} in\
  22448. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22449. \ * ) func_dirname_result="${3}" ;;\
  22450. \ esac\
  22451. \ func_basename_result="${1##*/}"\
  22452. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22453. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22454. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22455. test 0 -eq $? || _lt_function_replace_fail=:
  22456. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  22457. func_stripname ()\
  22458. {\
  22459. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  22460. \ # positional parameters, so assign one to ordinary parameter first.\
  22461. \ func_stripname_result=${3}\
  22462. \ func_stripname_result=${func_stripname_result#"${1}"}\
  22463. \ func_stripname_result=${func_stripname_result%"${2}"}\
  22464. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  22465. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22466. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22467. test 0 -eq $? || _lt_function_replace_fail=:
  22468. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  22469. func_split_long_opt ()\
  22470. {\
  22471. \ func_split_long_opt_name=${1%%=*}\
  22472. \ func_split_long_opt_arg=${1#*=}\
  22473. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22474. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22475. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22476. test 0 -eq $? || _lt_function_replace_fail=:
  22477. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  22478. func_split_short_opt ()\
  22479. {\
  22480. \ func_split_short_opt_arg=${1#??}\
  22481. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  22482. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22483. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22484. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22485. test 0 -eq $? || _lt_function_replace_fail=:
  22486. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  22487. func_lo2o ()\
  22488. {\
  22489. \ case ${1} in\
  22490. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  22491. \ *) func_lo2o_result=${1} ;;\
  22492. \ esac\
  22493. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  22494. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22495. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22496. test 0 -eq $? || _lt_function_replace_fail=:
  22497. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  22498. func_xform ()\
  22499. {\
  22500. func_xform_result=${1%.*}.lo\
  22501. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  22502. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22503. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22504. test 0 -eq $? || _lt_function_replace_fail=:
  22505. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  22506. func_arith ()\
  22507. {\
  22508. func_arith_result=$(( $* ))\
  22509. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  22510. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22511. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22512. test 0 -eq $? || _lt_function_replace_fail=:
  22513. sed -e '/^func_len ()$/,/^} # func_len /c\
  22514. func_len ()\
  22515. {\
  22516. func_len_result=${#1}\
  22517. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  22518. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22519. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22520. test 0 -eq $? || _lt_function_replace_fail=:
  22521. fi
  22522. if test x"$lt_shell_append" = xyes; then
  22523. sed -e '/^func_append ()$/,/^} # func_append /c\
  22524. func_append ()\
  22525. {\
  22526. eval "${1}+=\\${2}"\
  22527. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  22528. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22529. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22530. test 0 -eq $? || _lt_function_replace_fail=:
  22531. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  22532. func_append_quoted ()\
  22533. {\
  22534. \ func_quote_for_eval "${2}"\
  22535. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  22536. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  22537. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22538. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22539. test 0 -eq $? || _lt_function_replace_fail=:
  22540. # Save a `func_append' function call where possible by direct use of '+='
  22541. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  22542. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22543. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22544. test 0 -eq $? || _lt_function_replace_fail=:
  22545. else
  22546. # Save a `func_append' function call even when '+=' is not available
  22547. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  22548. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22549. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22550. test 0 -eq $? || _lt_function_replace_fail=:
  22551. fi
  22552. if test x"$_lt_function_replace_fail" = x":"; then
  22553. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  22554. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  22555. fi
  22556. mv -f "$cfgfile" "$ofile" ||
  22557. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  22558. chmod +x "$ofile"
  22559. cat <<_LT_EOF >> "$ofile"
  22560. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  22561. # The linker used to build libraries.
  22562. LD=$lt_LD_CXX
  22563. # How to create reloadable object files.
  22564. reload_flag=$lt_reload_flag_CXX
  22565. reload_cmds=$lt_reload_cmds_CXX
  22566. # Commands used to build an old-style archive.
  22567. old_archive_cmds=$lt_old_archive_cmds_CXX
  22568. # A language specific compiler.
  22569. CC=$lt_compiler_CXX
  22570. # Is the compiler the GNU compiler?
  22571. with_gcc=$GCC_CXX
  22572. # Compiler flag to turn off builtin functions.
  22573. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  22574. # Additional compiler flags for building library objects.
  22575. pic_flag=$lt_lt_prog_compiler_pic_CXX
  22576. # How to pass a linker flag through the compiler.
  22577. wl=$lt_lt_prog_compiler_wl_CXX
  22578. # Compiler flag to prevent dynamic linking.
  22579. link_static_flag=$lt_lt_prog_compiler_static_CXX
  22580. # Does compiler simultaneously support -c and -o options?
  22581. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  22582. # Whether or not to add -lc for building shared libraries.
  22583. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  22584. # Whether or not to disallow shared libs when runtime libs are static.
  22585. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  22586. # Compiler flag to allow reflexive dlopens.
  22587. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  22588. # Compiler flag to generate shared objects directly from archives.
  22589. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  22590. # Whether the compiler copes with passing no objects directly.
  22591. compiler_needs_object=$lt_compiler_needs_object_CXX
  22592. # Create an old-style archive from a shared archive.
  22593. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  22594. # Create a temporary old-style archive to link instead of a shared archive.
  22595. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  22596. # Commands used to build a shared archive.
  22597. archive_cmds=$lt_archive_cmds_CXX
  22598. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  22599. # Commands used to build a loadable module if different from building
  22600. # a shared archive.
  22601. module_cmds=$lt_module_cmds_CXX
  22602. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  22603. # Whether we are building with GNU ld or not.
  22604. with_gnu_ld=$lt_with_gnu_ld_CXX
  22605. # Flag that allows shared libraries with undefined symbols to be built.
  22606. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  22607. # Flag that enforces no undefined symbols.
  22608. no_undefined_flag=$lt_no_undefined_flag_CXX
  22609. # Flag to hardcode \$libdir into a binary during linking.
  22610. # This must work even if \$libdir does not exist
  22611. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  22612. # Whether we need a single "-rpath" flag with a separated argument.
  22613. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  22614. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22615. # DIR into the resulting binary.
  22616. hardcode_direct=$hardcode_direct_CXX
  22617. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22618. # DIR into the resulting binary and the resulting library dependency is
  22619. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22620. # library is relocated.
  22621. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  22622. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22623. # into the resulting binary.
  22624. hardcode_minus_L=$hardcode_minus_L_CXX
  22625. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22626. # into the resulting binary.
  22627. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  22628. # Set to "yes" if building a shared library automatically hardcodes DIR
  22629. # into the library and all subsequent libraries and executables linked
  22630. # against it.
  22631. hardcode_automatic=$hardcode_automatic_CXX
  22632. # Set to yes if linker adds runtime paths of dependent libraries
  22633. # to runtime path list.
  22634. inherit_rpath=$inherit_rpath_CXX
  22635. # Whether libtool must link a program against all its dependency libraries.
  22636. link_all_deplibs=$link_all_deplibs_CXX
  22637. # Set to "yes" if exported symbols are required.
  22638. always_export_symbols=$always_export_symbols_CXX
  22639. # The commands to list exported symbols.
  22640. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  22641. # Symbols that should not be listed in the preloaded symbols.
  22642. exclude_expsyms=$lt_exclude_expsyms_CXX
  22643. # Symbols that must always be exported.
  22644. include_expsyms=$lt_include_expsyms_CXX
  22645. # Commands necessary for linking programs (against libraries) with templates.
  22646. prelink_cmds=$lt_prelink_cmds_CXX
  22647. # Commands necessary for finishing linking programs.
  22648. postlink_cmds=$lt_postlink_cmds_CXX
  22649. # Specify filename containing input files.
  22650. file_list_spec=$lt_file_list_spec_CXX
  22651. # How to hardcode a shared library path into an executable.
  22652. hardcode_action=$hardcode_action_CXX
  22653. # The directories searched by this compiler when creating a shared library.
  22654. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  22655. # Dependencies to place before and after the objects being linked to
  22656. # create a shared library.
  22657. predep_objects=$lt_predep_objects_CXX
  22658. postdep_objects=$lt_postdep_objects_CXX
  22659. predeps=$lt_predeps_CXX
  22660. postdeps=$lt_postdeps_CXX
  22661. # The library search path used internally by the compiler when linking
  22662. # a shared library.
  22663. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  22664. # ### END LIBTOOL TAG CONFIG: CXX
  22665. _LT_EOF
  22666. ;;
  22667. "sdl2_config":C) chmod a+x sdl2-config ;;
  22668. "summary":C) echo -en "$SUMMARY" ;;
  22669. esac
  22670. done # for ac_tag
  22671. as_fn_exit 0
  22672. _ACEOF
  22673. ac_clean_files=$ac_clean_files_save
  22674. test $ac_write_fail = 0 ||
  22675. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  22676. # configure is writing to config.log, and then calls config.status.
  22677. # config.status does its own redirection, appending to config.log.
  22678. # Unfortunately, on DOS this fails, as config.log is still kept open
  22679. # by configure, so config.status won't be able to write to it; its
  22680. # output is simply discarded. So we exec the FD to /dev/null,
  22681. # effectively closing config.log, so it can be properly (re)opened and
  22682. # appended to by config.status. When coming back to configure, we
  22683. # need to make the FD available again.
  22684. if test "$no_create" != yes; then
  22685. ac_cs_success=:
  22686. ac_config_status_args=
  22687. test "$silent" = yes &&
  22688. ac_config_status_args="$ac_config_status_args --quiet"
  22689. exec 5>/dev/null
  22690. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22691. exec 5>>config.log
  22692. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22693. # would make configure fail if this is the last instruction.
  22694. $ac_cs_success || as_fn_exit 1
  22695. fi
  22696. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22697. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22698. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22699. fi