configure 778 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="README.txt"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER
  582. EXTRA_LDFLAGS
  583. BUILD_LDFLAGS
  584. EXTRA_CFLAGS
  585. BUILD_CFLAGS
  586. SDLTEST_OBJECTS
  587. SDLMAIN_OBJECTS
  588. VERSION_OBJECTS
  589. GEN_OBJECTS
  590. GEN_HEADERS
  591. OBJECTS
  592. INCLUDE
  593. ac_aux_dir
  594. ENABLE_STATIC_FALSE
  595. ENABLE_STATIC_TRUE
  596. ENABLE_SHARED_FALSE
  597. ENABLE_SHARED_TRUE
  598. SDL_RLD_FLAGS
  599. SDL_STATIC_LIBS
  600. SDL_LIBS
  601. SDL_CFLAGS
  602. DIRECTFBCONFIG
  603. X_EXTRA_LIBS
  604. X_LIBS
  605. X_PRE_LIBS
  606. X_CFLAGS
  607. XMKMF
  608. ARTSCONFIG
  609. PKG_CONFIG
  610. ESD_LIBS
  611. ESD_CFLAGS
  612. ESD_CONFIG
  613. ALSA_LIBS
  614. ALSA_CFLAGS
  615. POW_LIB
  616. LIBOBJS
  617. ALLOCA
  618. WINDRES
  619. SET_MAKE
  620. INSTALL_DATA
  621. INSTALL_SCRIPT
  622. INSTALL_PROGRAM
  623. CXXCPP
  624. ac_ct_CXX
  625. CXXFLAGS
  626. CXX
  627. LT_AGE
  628. LT_REVISION
  629. LT_CURRENT
  630. LT_RELEASE
  631. CPP
  632. OTOOL64
  633. OTOOL
  634. LIPO
  635. NMEDIT
  636. DSYMUTIL
  637. MANIFEST_TOOL
  638. AWK
  639. RANLIB
  640. STRIP
  641. ac_ct_AR
  642. AR
  643. LN_S
  644. NM
  645. ac_ct_DUMPBIN
  646. DUMPBIN
  647. LD
  648. FGREP
  649. EGREP
  650. GREP
  651. SED
  652. OBJEXT
  653. EXEEXT
  654. ac_ct_CC
  655. CPPFLAGS
  656. LDFLAGS
  657. CFLAGS
  658. CC
  659. host_os
  660. host_vendor
  661. host_cpu
  662. host
  663. build_os
  664. build_vendor
  665. build_cpu
  666. build
  667. LIBTOOL
  668. OBJDUMP
  669. DLLTOOL
  670. AS
  671. SDL_VERSION
  672. SDL_BINARY_AGE
  673. SDL_INTERFACE_AGE
  674. SDL_MICRO_VERSION
  675. SDL_MINOR_VERSION
  676. SDL_MAJOR_VERSION
  677. target_alias
  678. host_alias
  679. build_alias
  680. LIBS
  681. ECHO_T
  682. ECHO_N
  683. ECHO_C
  684. DEFS
  685. mandir
  686. localedir
  687. libdir
  688. psdir
  689. pdfdir
  690. dvidir
  691. htmldir
  692. infodir
  693. docdir
  694. oldincludedir
  695. includedir
  696. localstatedir
  697. sharedstatedir
  698. sysconfdir
  699. datadir
  700. datarootdir
  701. libexecdir
  702. sbindir
  703. bindir
  704. program_transform_name
  705. prefix
  706. exec_prefix
  707. PACKAGE_URL
  708. PACKAGE_BUGREPORT
  709. PACKAGE_STRING
  710. PACKAGE_VERSION
  711. PACKAGE_TARNAME
  712. PACKAGE_NAME
  713. PATH_SEPARATOR
  714. SHELL'
  715. ac_subst_files=''
  716. ac_user_opts='
  717. enable_option_checking
  718. enable_shared
  719. enable_static
  720. with_pic
  721. enable_fast_install
  722. with_gnu_ld
  723. with_sysroot
  724. enable_libtool_lock
  725. enable_assertions
  726. enable_dependency_tracking
  727. enable_libc
  728. enable_gcc_atomics
  729. enable_atomic
  730. enable_audio
  731. enable_video
  732. enable_render
  733. enable_events
  734. enable_joystick
  735. enable_haptic
  736. enable_power
  737. enable_filesystem
  738. enable_threads
  739. enable_timers
  740. enable_file
  741. enable_loadso
  742. enable_cpuinfo
  743. enable_assembly
  744. enable_ssemath
  745. enable_mmx
  746. enable_3dnow
  747. enable_sse
  748. enable_sse2
  749. enable_altivec
  750. enable_oss
  751. enable_alsa
  752. with_alsa_prefix
  753. with_alsa_inc_prefix
  754. enable_alsatest
  755. enable_alsa_shared
  756. enable_esd
  757. with_esd_prefix
  758. with_esd_exec_prefix
  759. enable_esdtest
  760. enable_esd_shared
  761. enable_pulseaudio
  762. enable_pulseaudio_shared
  763. enable_arts
  764. enable_arts_shared
  765. enable_nas
  766. enable_nas_shared
  767. enable_sndio
  768. enable_sndio_shared
  769. enable_diskaudio
  770. enable_dummyaudio
  771. enable_video_wayland
  772. enable_video_wayland_qt_touch
  773. enable_wayland_shared
  774. enable_video_mir
  775. enable_mir_shared
  776. enable_video_x11
  777. with_x
  778. enable_x11_shared
  779. enable_video_x11_xcursor
  780. enable_video_x11_xdbe
  781. enable_video_x11_xinerama
  782. enable_video_x11_xinput
  783. enable_video_x11_xrandr
  784. enable_video_x11_scrnsaver
  785. enable_video_x11_xshape
  786. enable_video_x11_vm
  787. enable_video_vivante
  788. enable_video_cocoa
  789. enable_video_directfb
  790. enable_directfb_shared
  791. enable_fusionsound
  792. enable_fusionsound_shared
  793. enable_video_dummy
  794. enable_video_opengl
  795. enable_video_opengles
  796. enable_video_opengles1
  797. enable_video_opengles2
  798. enable_libudev
  799. enable_dbus
  800. enable_ime
  801. enable_ibus
  802. enable_fcitx
  803. enable_input_tslib
  804. enable_pthreads
  805. enable_pthread_sem
  806. enable_directx
  807. enable_sdl_dlopen
  808. enable_clock_gettime
  809. enable_rpath
  810. enable_render_d3d
  811. '
  812. ac_precious_vars='build_alias
  813. host_alias
  814. target_alias
  815. CC
  816. CFLAGS
  817. LDFLAGS
  818. LIBS
  819. CPPFLAGS
  820. CPP
  821. CXX
  822. CXXFLAGS
  823. CCC
  824. CXXCPP
  825. XMKMF'
  826. # Initialize some variables set by options.
  827. ac_init_help=
  828. ac_init_version=false
  829. ac_unrecognized_opts=
  830. ac_unrecognized_sep=
  831. # The variables have the same names as the options, with
  832. # dashes changed to underlines.
  833. cache_file=/dev/null
  834. exec_prefix=NONE
  835. no_create=
  836. no_recursion=
  837. prefix=NONE
  838. program_prefix=NONE
  839. program_suffix=NONE
  840. program_transform_name=s,x,x,
  841. silent=
  842. site=
  843. srcdir=
  844. verbose=
  845. x_includes=NONE
  846. x_libraries=NONE
  847. # Installation directory options.
  848. # These are left unexpanded so users can "make install exec_prefix=/foo"
  849. # and all the variables that are supposed to be based on exec_prefix
  850. # by default will actually change.
  851. # Use braces instead of parens because sh, perl, etc. also accept them.
  852. # (The list follows the same order as the GNU Coding Standards.)
  853. bindir='${exec_prefix}/bin'
  854. sbindir='${exec_prefix}/sbin'
  855. libexecdir='${exec_prefix}/libexec'
  856. datarootdir='${prefix}/share'
  857. datadir='${datarootdir}'
  858. sysconfdir='${prefix}/etc'
  859. sharedstatedir='${prefix}/com'
  860. localstatedir='${prefix}/var'
  861. includedir='${prefix}/include'
  862. oldincludedir='/usr/include'
  863. docdir='${datarootdir}/doc/${PACKAGE}'
  864. infodir='${datarootdir}/info'
  865. htmldir='${docdir}'
  866. dvidir='${docdir}'
  867. pdfdir='${docdir}'
  868. psdir='${docdir}'
  869. libdir='${exec_prefix}/lib'
  870. localedir='${datarootdir}/locale'
  871. mandir='${datarootdir}/man'
  872. ac_prev=
  873. ac_dashdash=
  874. for ac_option
  875. do
  876. # If the previous option needs an argument, assign it.
  877. if test -n "$ac_prev"; then
  878. eval $ac_prev=\$ac_option
  879. ac_prev=
  880. continue
  881. fi
  882. case $ac_option in
  883. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  884. *=) ac_optarg= ;;
  885. *) ac_optarg=yes ;;
  886. esac
  887. # Accept the important Cygnus configure options, so we can diagnose typos.
  888. case $ac_dashdash$ac_option in
  889. --)
  890. ac_dashdash=yes ;;
  891. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  892. ac_prev=bindir ;;
  893. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  894. bindir=$ac_optarg ;;
  895. -build | --build | --buil | --bui | --bu)
  896. ac_prev=build_alias ;;
  897. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  898. build_alias=$ac_optarg ;;
  899. -cache-file | --cache-file | --cache-fil | --cache-fi \
  900. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  901. ac_prev=cache_file ;;
  902. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  903. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  904. cache_file=$ac_optarg ;;
  905. --config-cache | -C)
  906. cache_file=config.cache ;;
  907. -datadir | --datadir | --datadi | --datad)
  908. ac_prev=datadir ;;
  909. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  910. datadir=$ac_optarg ;;
  911. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  912. | --dataroo | --dataro | --datar)
  913. ac_prev=datarootdir ;;
  914. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  915. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  916. datarootdir=$ac_optarg ;;
  917. -disable-* | --disable-*)
  918. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  919. # Reject names that are not valid shell variable names.
  920. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  921. as_fn_error $? "invalid feature name: $ac_useropt"
  922. ac_useropt_orig=$ac_useropt
  923. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  924. case $ac_user_opts in
  925. *"
  926. "enable_$ac_useropt"
  927. "*) ;;
  928. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  929. ac_unrecognized_sep=', ';;
  930. esac
  931. eval enable_$ac_useropt=no ;;
  932. -docdir | --docdir | --docdi | --doc | --do)
  933. ac_prev=docdir ;;
  934. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  935. docdir=$ac_optarg ;;
  936. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  937. ac_prev=dvidir ;;
  938. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  939. dvidir=$ac_optarg ;;
  940. -enable-* | --enable-*)
  941. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  942. # Reject names that are not valid shell variable names.
  943. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  944. as_fn_error $? "invalid feature name: $ac_useropt"
  945. ac_useropt_orig=$ac_useropt
  946. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  947. case $ac_user_opts in
  948. *"
  949. "enable_$ac_useropt"
  950. "*) ;;
  951. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  952. ac_unrecognized_sep=', ';;
  953. esac
  954. eval enable_$ac_useropt=\$ac_optarg ;;
  955. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  956. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  957. | --exec | --exe | --ex)
  958. ac_prev=exec_prefix ;;
  959. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  960. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  961. | --exec=* | --exe=* | --ex=*)
  962. exec_prefix=$ac_optarg ;;
  963. -gas | --gas | --ga | --g)
  964. # Obsolete; use --with-gas.
  965. with_gas=yes ;;
  966. -help | --help | --hel | --he | -h)
  967. ac_init_help=long ;;
  968. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  969. ac_init_help=recursive ;;
  970. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  971. ac_init_help=short ;;
  972. -host | --host | --hos | --ho)
  973. ac_prev=host_alias ;;
  974. -host=* | --host=* | --hos=* | --ho=*)
  975. host_alias=$ac_optarg ;;
  976. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  977. ac_prev=htmldir ;;
  978. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  979. | --ht=*)
  980. htmldir=$ac_optarg ;;
  981. -includedir | --includedir | --includedi | --included | --include \
  982. | --includ | --inclu | --incl | --inc)
  983. ac_prev=includedir ;;
  984. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  985. | --includ=* | --inclu=* | --incl=* | --inc=*)
  986. includedir=$ac_optarg ;;
  987. -infodir | --infodir | --infodi | --infod | --info | --inf)
  988. ac_prev=infodir ;;
  989. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  990. infodir=$ac_optarg ;;
  991. -libdir | --libdir | --libdi | --libd)
  992. ac_prev=libdir ;;
  993. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  994. libdir=$ac_optarg ;;
  995. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  996. | --libexe | --libex | --libe)
  997. ac_prev=libexecdir ;;
  998. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  999. | --libexe=* | --libex=* | --libe=*)
  1000. libexecdir=$ac_optarg ;;
  1001. -localedir | --localedir | --localedi | --localed | --locale)
  1002. ac_prev=localedir ;;
  1003. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1004. localedir=$ac_optarg ;;
  1005. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1006. | --localstate | --localstat | --localsta | --localst | --locals)
  1007. ac_prev=localstatedir ;;
  1008. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1009. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1010. localstatedir=$ac_optarg ;;
  1011. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1012. ac_prev=mandir ;;
  1013. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1014. mandir=$ac_optarg ;;
  1015. -nfp | --nfp | --nf)
  1016. # Obsolete; use --without-fp.
  1017. with_fp=no ;;
  1018. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1019. | --no-cr | --no-c | -n)
  1020. no_create=yes ;;
  1021. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1022. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1023. no_recursion=yes ;;
  1024. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1025. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1026. | --oldin | --oldi | --old | --ol | --o)
  1027. ac_prev=oldincludedir ;;
  1028. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1029. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1030. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1031. oldincludedir=$ac_optarg ;;
  1032. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1033. ac_prev=prefix ;;
  1034. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1035. prefix=$ac_optarg ;;
  1036. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1037. | --program-pre | --program-pr | --program-p)
  1038. ac_prev=program_prefix ;;
  1039. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1040. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1041. program_prefix=$ac_optarg ;;
  1042. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1043. | --program-suf | --program-su | --program-s)
  1044. ac_prev=program_suffix ;;
  1045. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1046. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1047. program_suffix=$ac_optarg ;;
  1048. -program-transform-name | --program-transform-name \
  1049. | --program-transform-nam | --program-transform-na \
  1050. | --program-transform-n | --program-transform- \
  1051. | --program-transform | --program-transfor \
  1052. | --program-transfo | --program-transf \
  1053. | --program-trans | --program-tran \
  1054. | --progr-tra | --program-tr | --program-t)
  1055. ac_prev=program_transform_name ;;
  1056. -program-transform-name=* | --program-transform-name=* \
  1057. | --program-transform-nam=* | --program-transform-na=* \
  1058. | --program-transform-n=* | --program-transform-=* \
  1059. | --program-transform=* | --program-transfor=* \
  1060. | --program-transfo=* | --program-transf=* \
  1061. | --program-trans=* | --program-tran=* \
  1062. | --progr-tra=* | --program-tr=* | --program-t=*)
  1063. program_transform_name=$ac_optarg ;;
  1064. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1065. ac_prev=pdfdir ;;
  1066. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1067. pdfdir=$ac_optarg ;;
  1068. -psdir | --psdir | --psdi | --psd | --ps)
  1069. ac_prev=psdir ;;
  1070. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1071. psdir=$ac_optarg ;;
  1072. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1073. | -silent | --silent | --silen | --sile | --sil)
  1074. silent=yes ;;
  1075. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1076. ac_prev=sbindir ;;
  1077. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1078. | --sbi=* | --sb=*)
  1079. sbindir=$ac_optarg ;;
  1080. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1081. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1082. | --sharedst | --shareds | --shared | --share | --shar \
  1083. | --sha | --sh)
  1084. ac_prev=sharedstatedir ;;
  1085. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1086. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1087. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1088. | --sha=* | --sh=*)
  1089. sharedstatedir=$ac_optarg ;;
  1090. -site | --site | --sit)
  1091. ac_prev=site ;;
  1092. -site=* | --site=* | --sit=*)
  1093. site=$ac_optarg ;;
  1094. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1095. ac_prev=srcdir ;;
  1096. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1097. srcdir=$ac_optarg ;;
  1098. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1099. | --syscon | --sysco | --sysc | --sys | --sy)
  1100. ac_prev=sysconfdir ;;
  1101. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1102. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1103. sysconfdir=$ac_optarg ;;
  1104. -target | --target | --targe | --targ | --tar | --ta | --t)
  1105. ac_prev=target_alias ;;
  1106. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1107. target_alias=$ac_optarg ;;
  1108. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1109. verbose=yes ;;
  1110. -version | --version | --versio | --versi | --vers | -V)
  1111. ac_init_version=: ;;
  1112. -with-* | --with-*)
  1113. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1114. # Reject names that are not valid shell variable names.
  1115. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1116. as_fn_error $? "invalid package name: $ac_useropt"
  1117. ac_useropt_orig=$ac_useropt
  1118. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1119. case $ac_user_opts in
  1120. *"
  1121. "with_$ac_useropt"
  1122. "*) ;;
  1123. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1124. ac_unrecognized_sep=', ';;
  1125. esac
  1126. eval with_$ac_useropt=\$ac_optarg ;;
  1127. -without-* | --without-*)
  1128. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1129. # Reject names that are not valid shell variable names.
  1130. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1131. as_fn_error $? "invalid package name: $ac_useropt"
  1132. ac_useropt_orig=$ac_useropt
  1133. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1134. case $ac_user_opts in
  1135. *"
  1136. "with_$ac_useropt"
  1137. "*) ;;
  1138. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1139. ac_unrecognized_sep=', ';;
  1140. esac
  1141. eval with_$ac_useropt=no ;;
  1142. --x)
  1143. # Obsolete; use --with-x.
  1144. with_x=yes ;;
  1145. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1146. | --x-incl | --x-inc | --x-in | --x-i)
  1147. ac_prev=x_includes ;;
  1148. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1149. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1150. x_includes=$ac_optarg ;;
  1151. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1152. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1153. ac_prev=x_libraries ;;
  1154. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1155. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1156. x_libraries=$ac_optarg ;;
  1157. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1158. Try \`$0 --help' for more information"
  1159. ;;
  1160. *=*)
  1161. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1162. # Reject names that are not valid shell variable names.
  1163. case $ac_envvar in #(
  1164. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1165. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1166. esac
  1167. eval $ac_envvar=\$ac_optarg
  1168. export $ac_envvar ;;
  1169. *)
  1170. # FIXME: should be removed in autoconf 3.0.
  1171. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1172. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1173. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1174. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1175. ;;
  1176. esac
  1177. done
  1178. if test -n "$ac_prev"; then
  1179. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1180. as_fn_error $? "missing argument to $ac_option"
  1181. fi
  1182. if test -n "$ac_unrecognized_opts"; then
  1183. case $enable_option_checking in
  1184. no) ;;
  1185. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1186. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1187. esac
  1188. fi
  1189. # Check all directory arguments for consistency.
  1190. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1191. datadir sysconfdir sharedstatedir localstatedir includedir \
  1192. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1193. libdir localedir mandir
  1194. do
  1195. eval ac_val=\$$ac_var
  1196. # Remove trailing slashes.
  1197. case $ac_val in
  1198. */ )
  1199. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1200. eval $ac_var=\$ac_val;;
  1201. esac
  1202. # Be sure to have absolute directory names.
  1203. case $ac_val in
  1204. [\\/$]* | ?:[\\/]* ) continue;;
  1205. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1206. esac
  1207. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1208. done
  1209. # There might be people who depend on the old broken behavior: `$host'
  1210. # used to hold the argument of --host etc.
  1211. # FIXME: To remove some day.
  1212. build=$build_alias
  1213. host=$host_alias
  1214. target=$target_alias
  1215. # FIXME: To remove some day.
  1216. if test "x$host_alias" != x; then
  1217. if test "x$build_alias" = x; then
  1218. cross_compiling=maybe
  1219. elif test "x$build_alias" != "x$host_alias"; then
  1220. cross_compiling=yes
  1221. fi
  1222. fi
  1223. ac_tool_prefix=
  1224. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1225. test "$silent" = yes && exec 6>/dev/null
  1226. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1227. ac_ls_di=`ls -di .` &&
  1228. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1229. as_fn_error $? "working directory cannot be determined"
  1230. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1231. as_fn_error $? "pwd does not report name of working directory"
  1232. # Find the source files, if location was not specified.
  1233. if test -z "$srcdir"; then
  1234. ac_srcdir_defaulted=yes
  1235. # Try the directory containing this script, then the parent directory.
  1236. ac_confdir=`$as_dirname -- "$as_myself" ||
  1237. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1238. X"$as_myself" : 'X\(//\)[^/]' \| \
  1239. X"$as_myself" : 'X\(//\)$' \| \
  1240. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1241. $as_echo X"$as_myself" |
  1242. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1243. s//\1/
  1244. q
  1245. }
  1246. /^X\(\/\/\)[^/].*/{
  1247. s//\1/
  1248. q
  1249. }
  1250. /^X\(\/\/\)$/{
  1251. s//\1/
  1252. q
  1253. }
  1254. /^X\(\/\).*/{
  1255. s//\1/
  1256. q
  1257. }
  1258. s/.*/./; q'`
  1259. srcdir=$ac_confdir
  1260. if test ! -r "$srcdir/$ac_unique_file"; then
  1261. srcdir=..
  1262. fi
  1263. else
  1264. ac_srcdir_defaulted=no
  1265. fi
  1266. if test ! -r "$srcdir/$ac_unique_file"; then
  1267. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1268. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1269. fi
  1270. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1271. ac_abs_confdir=`(
  1272. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1273. pwd)`
  1274. # When building in place, set srcdir=.
  1275. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1276. srcdir=.
  1277. fi
  1278. # Remove unnecessary trailing slashes from srcdir.
  1279. # Double slashes in file names in object file debugging info
  1280. # mess up M-x gdb in Emacs.
  1281. case $srcdir in
  1282. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1283. esac
  1284. for ac_var in $ac_precious_vars; do
  1285. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1286. eval ac_env_${ac_var}_value=\$${ac_var}
  1287. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1288. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1289. done
  1290. #
  1291. # Report the --help message.
  1292. #
  1293. if test "$ac_init_help" = "long"; then
  1294. # Omit some internal or obsolete options to make the list less imposing.
  1295. # This message is too long to be a string in the A/UX 3.1 sh.
  1296. cat <<_ACEOF
  1297. \`configure' configures this package to adapt to many kinds of systems.
  1298. Usage: $0 [OPTION]... [VAR=VALUE]...
  1299. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1300. VAR=VALUE. See below for descriptions of some of the useful variables.
  1301. Defaults for the options are specified in brackets.
  1302. Configuration:
  1303. -h, --help display this help and exit
  1304. --help=short display options specific to this package
  1305. --help=recursive display the short help of all the included packages
  1306. -V, --version display version information and exit
  1307. -q, --quiet, --silent do not print \`checking ...' messages
  1308. --cache-file=FILE cache test results in FILE [disabled]
  1309. -C, --config-cache alias for \`--cache-file=config.cache'
  1310. -n, --no-create do not create output files
  1311. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1312. Installation directories:
  1313. --prefix=PREFIX install architecture-independent files in PREFIX
  1314. [$ac_default_prefix]
  1315. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1316. [PREFIX]
  1317. By default, \`make install' will install all the files in
  1318. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1319. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1320. for instance \`--prefix=\$HOME'.
  1321. For better control, use the options below.
  1322. Fine tuning of the installation directories:
  1323. --bindir=DIR user executables [EPREFIX/bin]
  1324. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1325. --libexecdir=DIR program executables [EPREFIX/libexec]
  1326. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1327. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1328. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1329. --libdir=DIR object code libraries [EPREFIX/lib]
  1330. --includedir=DIR C header files [PREFIX/include]
  1331. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1332. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1333. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1334. --infodir=DIR info documentation [DATAROOTDIR/info]
  1335. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1336. --mandir=DIR man documentation [DATAROOTDIR/man]
  1337. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1338. --htmldir=DIR html documentation [DOCDIR]
  1339. --dvidir=DIR dvi documentation [DOCDIR]
  1340. --pdfdir=DIR pdf documentation [DOCDIR]
  1341. --psdir=DIR ps documentation [DOCDIR]
  1342. _ACEOF
  1343. cat <<\_ACEOF
  1344. X features:
  1345. --x-includes=DIR X include files are in DIR
  1346. --x-libraries=DIR X library files are in DIR
  1347. System types:
  1348. --build=BUILD configure for building on BUILD [guessed]
  1349. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1350. _ACEOF
  1351. fi
  1352. if test -n "$ac_init_help"; then
  1353. cat <<\_ACEOF
  1354. Optional Features:
  1355. --disable-option-checking ignore unrecognized --enable/--with options
  1356. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1357. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1358. --enable-shared[=PKGS] build shared libraries [default=yes]
  1359. --enable-static[=PKGS] build static libraries [default=yes]
  1360. --enable-fast-install[=PKGS]
  1361. optimize for fast installation [default=yes]
  1362. --disable-libtool-lock avoid locking (might break parallel builds)
  1363. --enable-assertions Enable internal sanity checks
  1364. (auto/disabled/release/enabled/paranoid)
  1365. [[default=auto]]
  1366. --enable-dependency-tracking
  1367. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1368. --enable-libc Use the system C library [[default=yes]]
  1369. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1370. --enable-atomic Enable the atomic operations subsystem
  1371. [[default=yes]]
  1372. --enable-audio Enable the audio subsystem [[default=yes]]
  1373. --enable-video Enable the video subsystem [[default=yes]]
  1374. --enable-render Enable the render subsystem [[default=yes]]
  1375. --enable-events Enable the events subsystem [[default=yes]]
  1376. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1377. --enable-haptic Enable the haptic (force feedback) subsystem
  1378. [[default=yes]]
  1379. --enable-power Enable the power subsystem [[default=yes]]
  1380. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1381. --enable-threads Enable the threading subsystem [[default=yes]]
  1382. --enable-timers Enable the timer subsystem [[default=yes]]
  1383. --enable-file Enable the file subsystem [[default=yes]]
  1384. --enable-loadso Enable the shared object loading subsystem
  1385. [[default=yes]]
  1386. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1387. --enable-assembly Enable assembly routines [[default=yes]]
  1388. --enable-ssemath Allow GCC to use SSE floating point math
  1389. [[default=no]]
  1390. --enable-mmx use MMX assembly routines [[default=yes]]
  1391. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1392. --enable-sse use SSE assembly routines [[default=yes]]
  1393. --enable-sse2 use SSE2 assembly routines [[default=no]]
  1394. --enable-altivec use Altivec assembly routines [[default=yes]]
  1395. --enable-oss support the OSS audio API [[default=maybe]]
  1396. --enable-alsa support the ALSA audio API [[default=yes]]
  1397. --disable-alsatest Do not try to compile and run a test Alsa program
  1398. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1399. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1400. --disable-esdtest Do not try to compile and run a test ESD program
  1401. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1402. --enable-pulseaudio use PulseAudio [[default=yes]]
  1403. --enable-pulseaudio-shared
  1404. dynamically load PulseAudio support [[default=yes]]
  1405. --enable-arts support the Analog Real Time Synthesizer
  1406. [[default=yes]]
  1407. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1408. --enable-nas support the NAS audio API [[default=yes]]
  1409. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1410. --enable-sndio support the sndio audio API [[default=yes]]
  1411. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1412. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1413. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1414. --enable-video-wayland use Wayland video driver [[default=yes]]
  1415. --enable-video-wayland-qt-touch
  1416. QtWayland server support for Wayland video driver
  1417. [[default=yes]]
  1418. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1419. --enable-video-mir use Mir video driver [[default=yes]]
  1420. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1421. --enable-video-x11 use X11 video driver [[default=yes]]
  1422. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1423. --enable-video-x11-xcursor
  1424. enable X11 Xcursor support [[default=yes]]
  1425. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1426. --enable-video-x11-xinerama
  1427. enable X11 Xinerama support [[default=yes]]
  1428. --enable-video-x11-xinput
  1429. enable X11 XInput extension for manymouse, tablets,
  1430. etc [[default=yes]]
  1431. --enable-video-x11-xrandr
  1432. enable X11 Xrandr extension for fullscreen
  1433. [[default=yes]]
  1434. --enable-video-x11-scrnsaver
  1435. enable X11 screensaver extension [[default=yes]]
  1436. --enable-video-x11-xshape
  1437. enable X11 XShape support [[default=yes]]
  1438. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1439. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1440. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1441. --enable-video-directfb use DirectFB video driver [[default=no]]
  1442. --enable-directfb-shared
  1443. dynamically load directfb support [[default=yes]]
  1444. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1445. --enable-fusionsound-shared
  1446. dynamically load fusionsound audio support
  1447. [[default=yes]]
  1448. --enable-video-dummy use dummy video driver [[default=yes]]
  1449. --enable-video-opengl include OpenGL support [[default=yes]]
  1450. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1451. --enable-video-opengles1
  1452. include OpenGL ES 1.1 support [[default=yes]]
  1453. --enable-video-opengles2
  1454. include OpenGL ES 2.0 support [[default=yes]]
  1455. --enable-libudev enable libudev support [[default=yes]]
  1456. --enable-dbus enable D-Bus support [[default=yes]]
  1457. --enable-ime enable IME support [[default=yes]]
  1458. --enable-ibus enable IBus support [[default=yes]]
  1459. --enable-fcitx enable fcitx support [[default=yes]]
  1460. --enable-input-tslib use the Touchscreen library for input
  1461. [[default=yes]]
  1462. --enable-pthreads use POSIX threads for multi-threading
  1463. [[default=yes]]
  1464. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1465. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1466. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1467. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1468. UNIX [[default=yes]]
  1469. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1470. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1471. Optional Packages:
  1472. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1473. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1474. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1475. both]
  1476. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1477. --with-sysroot=DIR Search for dependent libraries within DIR
  1478. (or the compiler's sysroot if not specified).
  1479. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1480. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1481. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1482. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1483. --with-x use the X Window System
  1484. Some influential environment variables:
  1485. CC C compiler command
  1486. CFLAGS C compiler flags
  1487. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1488. nonstandard directory <lib dir>
  1489. LIBS libraries to pass to the linker, e.g. -l<library>
  1490. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1491. you have headers in a nonstandard directory <include dir>
  1492. CPP C preprocessor
  1493. CXX C++ compiler command
  1494. CXXFLAGS C++ compiler flags
  1495. CXXCPP C++ preprocessor
  1496. XMKMF Path to xmkmf, Makefile generator for X Window System
  1497. Use these variables to override the choices made by `configure' or to help
  1498. it to find libraries and programs with nonstandard names/locations.
  1499. Report bugs to the package provider.
  1500. _ACEOF
  1501. ac_status=$?
  1502. fi
  1503. if test "$ac_init_help" = "recursive"; then
  1504. # If there are subdirs, report their specific --help.
  1505. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1506. test -d "$ac_dir" ||
  1507. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1508. continue
  1509. ac_builddir=.
  1510. case "$ac_dir" in
  1511. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1512. *)
  1513. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1514. # A ".." for each directory in $ac_dir_suffix.
  1515. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1516. case $ac_top_builddir_sub in
  1517. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1518. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1519. esac ;;
  1520. esac
  1521. ac_abs_top_builddir=$ac_pwd
  1522. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1523. # for backward compatibility:
  1524. ac_top_builddir=$ac_top_build_prefix
  1525. case $srcdir in
  1526. .) # We are building in place.
  1527. ac_srcdir=.
  1528. ac_top_srcdir=$ac_top_builddir_sub
  1529. ac_abs_top_srcdir=$ac_pwd ;;
  1530. [\\/]* | ?:[\\/]* ) # Absolute name.
  1531. ac_srcdir=$srcdir$ac_dir_suffix;
  1532. ac_top_srcdir=$srcdir
  1533. ac_abs_top_srcdir=$srcdir ;;
  1534. *) # Relative name.
  1535. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1536. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1537. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1538. esac
  1539. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1540. cd "$ac_dir" || { ac_status=$?; continue; }
  1541. # Check for guested configure.
  1542. if test -f "$ac_srcdir/configure.gnu"; then
  1543. echo &&
  1544. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1545. elif test -f "$ac_srcdir/configure"; then
  1546. echo &&
  1547. $SHELL "$ac_srcdir/configure" --help=recursive
  1548. else
  1549. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1550. fi || ac_status=$?
  1551. cd "$ac_pwd" || { ac_status=$?; break; }
  1552. done
  1553. fi
  1554. test -n "$ac_init_help" && exit $ac_status
  1555. if $ac_init_version; then
  1556. cat <<\_ACEOF
  1557. configure
  1558. generated by GNU Autoconf 2.69
  1559. Copyright (C) 2012 Free Software Foundation, Inc.
  1560. This configure script is free software; the Free Software Foundation
  1561. gives unlimited permission to copy, distribute and modify it.
  1562. _ACEOF
  1563. exit
  1564. fi
  1565. ## ------------------------ ##
  1566. ## Autoconf initialization. ##
  1567. ## ------------------------ ##
  1568. # ac_fn_c_try_compile LINENO
  1569. # --------------------------
  1570. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1571. ac_fn_c_try_compile ()
  1572. {
  1573. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1574. rm -f conftest.$ac_objext
  1575. if { { ac_try="$ac_compile"
  1576. case "(($ac_try" in
  1577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1578. *) ac_try_echo=$ac_try;;
  1579. esac
  1580. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1581. $as_echo "$ac_try_echo"; } >&5
  1582. (eval "$ac_compile") 2>conftest.err
  1583. ac_status=$?
  1584. if test -s conftest.err; then
  1585. grep -v '^ *+' conftest.err >conftest.er1
  1586. cat conftest.er1 >&5
  1587. mv -f conftest.er1 conftest.err
  1588. fi
  1589. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1590. test $ac_status = 0; } && {
  1591. test -z "$ac_c_werror_flag" ||
  1592. test ! -s conftest.err
  1593. } && test -s conftest.$ac_objext; then :
  1594. ac_retval=0
  1595. else
  1596. $as_echo "$as_me: failed program was:" >&5
  1597. sed 's/^/| /' conftest.$ac_ext >&5
  1598. ac_retval=1
  1599. fi
  1600. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1601. as_fn_set_status $ac_retval
  1602. } # ac_fn_c_try_compile
  1603. # ac_fn_c_try_link LINENO
  1604. # -----------------------
  1605. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1606. ac_fn_c_try_link ()
  1607. {
  1608. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1609. rm -f conftest.$ac_objext conftest$ac_exeext
  1610. if { { ac_try="$ac_link"
  1611. case "(($ac_try" in
  1612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1613. *) ac_try_echo=$ac_try;;
  1614. esac
  1615. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1616. $as_echo "$ac_try_echo"; } >&5
  1617. (eval "$ac_link") 2>conftest.err
  1618. ac_status=$?
  1619. if test -s conftest.err; then
  1620. grep -v '^ *+' conftest.err >conftest.er1
  1621. cat conftest.er1 >&5
  1622. mv -f conftest.er1 conftest.err
  1623. fi
  1624. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1625. test $ac_status = 0; } && {
  1626. test -z "$ac_c_werror_flag" ||
  1627. test ! -s conftest.err
  1628. } && test -s conftest$ac_exeext && {
  1629. test "$cross_compiling" = yes ||
  1630. test -x conftest$ac_exeext
  1631. }; then :
  1632. ac_retval=0
  1633. else
  1634. $as_echo "$as_me: failed program was:" >&5
  1635. sed 's/^/| /' conftest.$ac_ext >&5
  1636. ac_retval=1
  1637. fi
  1638. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1639. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1640. # interfere with the next link command; also delete a directory that is
  1641. # left behind by Apple's compiler. We do this before executing the actions.
  1642. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1643. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1644. as_fn_set_status $ac_retval
  1645. } # ac_fn_c_try_link
  1646. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1647. # -------------------------------------------------------
  1648. # Tests whether HEADER exists and can be compiled using the include files in
  1649. # INCLUDES, setting the cache variable VAR accordingly.
  1650. ac_fn_c_check_header_compile ()
  1651. {
  1652. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1654. $as_echo_n "checking for $2... " >&6; }
  1655. if eval \${$3+:} false; then :
  1656. $as_echo_n "(cached) " >&6
  1657. else
  1658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1659. /* end confdefs.h. */
  1660. $4
  1661. #include <$2>
  1662. _ACEOF
  1663. if ac_fn_c_try_compile "$LINENO"; then :
  1664. eval "$3=yes"
  1665. else
  1666. eval "$3=no"
  1667. fi
  1668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1669. fi
  1670. eval ac_res=\$$3
  1671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1672. $as_echo "$ac_res" >&6; }
  1673. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1674. } # ac_fn_c_check_header_compile
  1675. # ac_fn_c_try_cpp LINENO
  1676. # ----------------------
  1677. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1678. ac_fn_c_try_cpp ()
  1679. {
  1680. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1681. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1682. case "(($ac_try" in
  1683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1684. *) ac_try_echo=$ac_try;;
  1685. esac
  1686. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1687. $as_echo "$ac_try_echo"; } >&5
  1688. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1689. ac_status=$?
  1690. if test -s conftest.err; then
  1691. grep -v '^ *+' conftest.err >conftest.er1
  1692. cat conftest.er1 >&5
  1693. mv -f conftest.er1 conftest.err
  1694. fi
  1695. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1696. test $ac_status = 0; } > conftest.i && {
  1697. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1698. test ! -s conftest.err
  1699. }; then :
  1700. ac_retval=0
  1701. else
  1702. $as_echo "$as_me: failed program was:" >&5
  1703. sed 's/^/| /' conftest.$ac_ext >&5
  1704. ac_retval=1
  1705. fi
  1706. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1707. as_fn_set_status $ac_retval
  1708. } # ac_fn_c_try_cpp
  1709. # ac_fn_c_try_run LINENO
  1710. # ----------------------
  1711. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1712. # that executables *can* be run.
  1713. ac_fn_c_try_run ()
  1714. {
  1715. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1716. if { { ac_try="$ac_link"
  1717. case "(($ac_try" in
  1718. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1719. *) ac_try_echo=$ac_try;;
  1720. esac
  1721. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1722. $as_echo "$ac_try_echo"; } >&5
  1723. (eval "$ac_link") 2>&5
  1724. ac_status=$?
  1725. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1726. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1727. { { case "(($ac_try" in
  1728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1729. *) ac_try_echo=$ac_try;;
  1730. esac
  1731. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1732. $as_echo "$ac_try_echo"; } >&5
  1733. (eval "$ac_try") 2>&5
  1734. ac_status=$?
  1735. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1736. test $ac_status = 0; }; }; then :
  1737. ac_retval=0
  1738. else
  1739. $as_echo "$as_me: program exited with status $ac_status" >&5
  1740. $as_echo "$as_me: failed program was:" >&5
  1741. sed 's/^/| /' conftest.$ac_ext >&5
  1742. ac_retval=$ac_status
  1743. fi
  1744. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1745. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1746. as_fn_set_status $ac_retval
  1747. } # ac_fn_c_try_run
  1748. # ac_fn_c_check_func LINENO FUNC VAR
  1749. # ----------------------------------
  1750. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1751. ac_fn_c_check_func ()
  1752. {
  1753. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1755. $as_echo_n "checking for $2... " >&6; }
  1756. if eval \${$3+:} false; then :
  1757. $as_echo_n "(cached) " >&6
  1758. else
  1759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1760. /* end confdefs.h. */
  1761. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1762. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1763. #define $2 innocuous_$2
  1764. /* System header to define __stub macros and hopefully few prototypes,
  1765. which can conflict with char $2 (); below.
  1766. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1767. <limits.h> exists even on freestanding compilers. */
  1768. #ifdef __STDC__
  1769. # include <limits.h>
  1770. #else
  1771. # include <assert.h>
  1772. #endif
  1773. #undef $2
  1774. /* Override any GCC internal prototype to avoid an error.
  1775. Use char because int might match the return type of a GCC
  1776. builtin and then its argument prototype would still apply. */
  1777. #ifdef __cplusplus
  1778. extern "C"
  1779. #endif
  1780. char $2 ();
  1781. /* The GNU C library defines this for functions which it implements
  1782. to always fail with ENOSYS. Some functions are actually named
  1783. something starting with __ and the normal name is an alias. */
  1784. #if defined __stub_$2 || defined __stub___$2
  1785. choke me
  1786. #endif
  1787. int
  1788. main ()
  1789. {
  1790. return $2 ();
  1791. ;
  1792. return 0;
  1793. }
  1794. _ACEOF
  1795. if ac_fn_c_try_link "$LINENO"; then :
  1796. eval "$3=yes"
  1797. else
  1798. eval "$3=no"
  1799. fi
  1800. rm -f core conftest.err conftest.$ac_objext \
  1801. conftest$ac_exeext conftest.$ac_ext
  1802. fi
  1803. eval ac_res=\$$3
  1804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1805. $as_echo "$ac_res" >&6; }
  1806. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1807. } # ac_fn_c_check_func
  1808. # ac_fn_cxx_try_compile LINENO
  1809. # ----------------------------
  1810. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1811. ac_fn_cxx_try_compile ()
  1812. {
  1813. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1814. rm -f conftest.$ac_objext
  1815. if { { ac_try="$ac_compile"
  1816. case "(($ac_try" in
  1817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1818. *) ac_try_echo=$ac_try;;
  1819. esac
  1820. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1821. $as_echo "$ac_try_echo"; } >&5
  1822. (eval "$ac_compile") 2>conftest.err
  1823. ac_status=$?
  1824. if test -s conftest.err; then
  1825. grep -v '^ *+' conftest.err >conftest.er1
  1826. cat conftest.er1 >&5
  1827. mv -f conftest.er1 conftest.err
  1828. fi
  1829. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1830. test $ac_status = 0; } && {
  1831. test -z "$ac_cxx_werror_flag" ||
  1832. test ! -s conftest.err
  1833. } && test -s conftest.$ac_objext; then :
  1834. ac_retval=0
  1835. else
  1836. $as_echo "$as_me: failed program was:" >&5
  1837. sed 's/^/| /' conftest.$ac_ext >&5
  1838. ac_retval=1
  1839. fi
  1840. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1841. as_fn_set_status $ac_retval
  1842. } # ac_fn_cxx_try_compile
  1843. # ac_fn_cxx_try_cpp LINENO
  1844. # ------------------------
  1845. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1846. ac_fn_cxx_try_cpp ()
  1847. {
  1848. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1849. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1850. case "(($ac_try" in
  1851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1852. *) ac_try_echo=$ac_try;;
  1853. esac
  1854. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1855. $as_echo "$ac_try_echo"; } >&5
  1856. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1857. ac_status=$?
  1858. if test -s conftest.err; then
  1859. grep -v '^ *+' conftest.err >conftest.er1
  1860. cat conftest.er1 >&5
  1861. mv -f conftest.er1 conftest.err
  1862. fi
  1863. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1864. test $ac_status = 0; } > conftest.i && {
  1865. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1866. test ! -s conftest.err
  1867. }; then :
  1868. ac_retval=0
  1869. else
  1870. $as_echo "$as_me: failed program was:" >&5
  1871. sed 's/^/| /' conftest.$ac_ext >&5
  1872. ac_retval=1
  1873. fi
  1874. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1875. as_fn_set_status $ac_retval
  1876. } # ac_fn_cxx_try_cpp
  1877. # ac_fn_cxx_try_link LINENO
  1878. # -------------------------
  1879. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1880. ac_fn_cxx_try_link ()
  1881. {
  1882. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1883. rm -f conftest.$ac_objext conftest$ac_exeext
  1884. if { { ac_try="$ac_link"
  1885. case "(($ac_try" in
  1886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1887. *) ac_try_echo=$ac_try;;
  1888. esac
  1889. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1890. $as_echo "$ac_try_echo"; } >&5
  1891. (eval "$ac_link") 2>conftest.err
  1892. ac_status=$?
  1893. if test -s conftest.err; then
  1894. grep -v '^ *+' conftest.err >conftest.er1
  1895. cat conftest.er1 >&5
  1896. mv -f conftest.er1 conftest.err
  1897. fi
  1898. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1899. test $ac_status = 0; } && {
  1900. test -z "$ac_cxx_werror_flag" ||
  1901. test ! -s conftest.err
  1902. } && test -s conftest$ac_exeext && {
  1903. test "$cross_compiling" = yes ||
  1904. test -x conftest$ac_exeext
  1905. }; then :
  1906. ac_retval=0
  1907. else
  1908. $as_echo "$as_me: failed program was:" >&5
  1909. sed 's/^/| /' conftest.$ac_ext >&5
  1910. ac_retval=1
  1911. fi
  1912. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1913. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1914. # interfere with the next link command; also delete a directory that is
  1915. # left behind by Apple's compiler. We do this before executing the actions.
  1916. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1917. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1918. as_fn_set_status $ac_retval
  1919. } # ac_fn_cxx_try_link
  1920. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1921. # -------------------------------------------------------
  1922. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1923. # the include files in INCLUDES and setting the cache variable VAR
  1924. # accordingly.
  1925. ac_fn_c_check_header_mongrel ()
  1926. {
  1927. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1928. if eval \${$3+:} false; then :
  1929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1930. $as_echo_n "checking for $2... " >&6; }
  1931. if eval \${$3+:} false; then :
  1932. $as_echo_n "(cached) " >&6
  1933. fi
  1934. eval ac_res=\$$3
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1936. $as_echo "$ac_res" >&6; }
  1937. else
  1938. # Is the header compilable?
  1939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1940. $as_echo_n "checking $2 usability... " >&6; }
  1941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1942. /* end confdefs.h. */
  1943. $4
  1944. #include <$2>
  1945. _ACEOF
  1946. if ac_fn_c_try_compile "$LINENO"; then :
  1947. ac_header_compiler=yes
  1948. else
  1949. ac_header_compiler=no
  1950. fi
  1951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1953. $as_echo "$ac_header_compiler" >&6; }
  1954. # Is the header present?
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1956. $as_echo_n "checking $2 presence... " >&6; }
  1957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1958. /* end confdefs.h. */
  1959. #include <$2>
  1960. _ACEOF
  1961. if ac_fn_c_try_cpp "$LINENO"; then :
  1962. ac_header_preproc=yes
  1963. else
  1964. ac_header_preproc=no
  1965. fi
  1966. rm -f conftest.err conftest.i conftest.$ac_ext
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1968. $as_echo "$ac_header_preproc" >&6; }
  1969. # So? What about this header?
  1970. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1971. yes:no: )
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1973. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1975. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1976. ;;
  1977. no:yes:* )
  1978. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1979. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1980. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1981. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1982. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1983. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1984. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1985. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1987. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1988. ;;
  1989. esac
  1990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1991. $as_echo_n "checking for $2... " >&6; }
  1992. if eval \${$3+:} false; then :
  1993. $as_echo_n "(cached) " >&6
  1994. else
  1995. eval "$3=\$ac_header_compiler"
  1996. fi
  1997. eval ac_res=\$$3
  1998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1999. $as_echo "$ac_res" >&6; }
  2000. fi
  2001. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2002. } # ac_fn_c_check_header_mongrel
  2003. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2004. # -------------------------------------------
  2005. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2006. # variable VAR accordingly.
  2007. ac_fn_c_check_type ()
  2008. {
  2009. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2011. $as_echo_n "checking for $2... " >&6; }
  2012. if eval \${$3+:} false; then :
  2013. $as_echo_n "(cached) " >&6
  2014. else
  2015. eval "$3=no"
  2016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2017. /* end confdefs.h. */
  2018. $4
  2019. int
  2020. main ()
  2021. {
  2022. if (sizeof ($2))
  2023. return 0;
  2024. ;
  2025. return 0;
  2026. }
  2027. _ACEOF
  2028. if ac_fn_c_try_compile "$LINENO"; then :
  2029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2030. /* end confdefs.h. */
  2031. $4
  2032. int
  2033. main ()
  2034. {
  2035. if (sizeof (($2)))
  2036. return 0;
  2037. ;
  2038. return 0;
  2039. }
  2040. _ACEOF
  2041. if ac_fn_c_try_compile "$LINENO"; then :
  2042. else
  2043. eval "$3=yes"
  2044. fi
  2045. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2046. fi
  2047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2048. fi
  2049. eval ac_res=\$$3
  2050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2051. $as_echo "$ac_res" >&6; }
  2052. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2053. } # ac_fn_c_check_type
  2054. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2055. # ----------------------------------------------------
  2056. # Tries to find if the field MEMBER exists in type AGGR, after including
  2057. # INCLUDES, setting cache variable VAR accordingly.
  2058. ac_fn_c_check_member ()
  2059. {
  2060. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2062. $as_echo_n "checking for $2.$3... " >&6; }
  2063. if eval \${$4+:} false; then :
  2064. $as_echo_n "(cached) " >&6
  2065. else
  2066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2067. /* end confdefs.h. */
  2068. $5
  2069. int
  2070. main ()
  2071. {
  2072. static $2 ac_aggr;
  2073. if (ac_aggr.$3)
  2074. return 0;
  2075. ;
  2076. return 0;
  2077. }
  2078. _ACEOF
  2079. if ac_fn_c_try_compile "$LINENO"; then :
  2080. eval "$4=yes"
  2081. else
  2082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2083. /* end confdefs.h. */
  2084. $5
  2085. int
  2086. main ()
  2087. {
  2088. static $2 ac_aggr;
  2089. if (sizeof ac_aggr.$3)
  2090. return 0;
  2091. ;
  2092. return 0;
  2093. }
  2094. _ACEOF
  2095. if ac_fn_c_try_compile "$LINENO"; then :
  2096. eval "$4=yes"
  2097. else
  2098. eval "$4=no"
  2099. fi
  2100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2101. fi
  2102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2103. fi
  2104. eval ac_res=\$$4
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2106. $as_echo "$ac_res" >&6; }
  2107. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2108. } # ac_fn_c_check_member
  2109. cat >config.log <<_ACEOF
  2110. This file contains any messages produced by compilers while
  2111. running configure, to aid debugging if configure makes a mistake.
  2112. It was created by $as_me, which was
  2113. generated by GNU Autoconf 2.69. Invocation command line was
  2114. $ $0 $@
  2115. _ACEOF
  2116. exec 5>>config.log
  2117. {
  2118. cat <<_ASUNAME
  2119. ## --------- ##
  2120. ## Platform. ##
  2121. ## --------- ##
  2122. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2123. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2124. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2125. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2126. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2127. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2128. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2129. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2130. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2131. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2132. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2133. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2134. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2135. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2136. _ASUNAME
  2137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2138. for as_dir in $PATH
  2139. do
  2140. IFS=$as_save_IFS
  2141. test -z "$as_dir" && as_dir=.
  2142. $as_echo "PATH: $as_dir"
  2143. done
  2144. IFS=$as_save_IFS
  2145. } >&5
  2146. cat >&5 <<_ACEOF
  2147. ## ----------- ##
  2148. ## Core tests. ##
  2149. ## ----------- ##
  2150. _ACEOF
  2151. # Keep a trace of the command line.
  2152. # Strip out --no-create and --no-recursion so they do not pile up.
  2153. # Strip out --silent because we don't want to record it for future runs.
  2154. # Also quote any args containing shell meta-characters.
  2155. # Make two passes to allow for proper duplicate-argument suppression.
  2156. ac_configure_args=
  2157. ac_configure_args0=
  2158. ac_configure_args1=
  2159. ac_must_keep_next=false
  2160. for ac_pass in 1 2
  2161. do
  2162. for ac_arg
  2163. do
  2164. case $ac_arg in
  2165. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2166. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2167. | -silent | --silent | --silen | --sile | --sil)
  2168. continue ;;
  2169. *\'*)
  2170. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2171. esac
  2172. case $ac_pass in
  2173. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2174. 2)
  2175. as_fn_append ac_configure_args1 " '$ac_arg'"
  2176. if test $ac_must_keep_next = true; then
  2177. ac_must_keep_next=false # Got value, back to normal.
  2178. else
  2179. case $ac_arg in
  2180. *=* | --config-cache | -C | -disable-* | --disable-* \
  2181. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2182. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2183. | -with-* | --with-* | -without-* | --without-* | --x)
  2184. case "$ac_configure_args0 " in
  2185. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2186. esac
  2187. ;;
  2188. -* ) ac_must_keep_next=true ;;
  2189. esac
  2190. fi
  2191. as_fn_append ac_configure_args " '$ac_arg'"
  2192. ;;
  2193. esac
  2194. done
  2195. done
  2196. { ac_configure_args0=; unset ac_configure_args0;}
  2197. { ac_configure_args1=; unset ac_configure_args1;}
  2198. # When interrupted or exit'd, cleanup temporary files, and complete
  2199. # config.log. We remove comments because anyway the quotes in there
  2200. # would cause problems or look ugly.
  2201. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2202. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2203. trap 'exit_status=$?
  2204. # Save into config.log some information that might help in debugging.
  2205. {
  2206. echo
  2207. $as_echo "## ---------------- ##
  2208. ## Cache variables. ##
  2209. ## ---------------- ##"
  2210. echo
  2211. # The following way of writing the cache mishandles newlines in values,
  2212. (
  2213. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2214. eval ac_val=\$$ac_var
  2215. case $ac_val in #(
  2216. *${as_nl}*)
  2217. case $ac_var in #(
  2218. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2219. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2220. esac
  2221. case $ac_var in #(
  2222. _ | IFS | as_nl) ;; #(
  2223. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2224. *) { eval $ac_var=; unset $ac_var;} ;;
  2225. esac ;;
  2226. esac
  2227. done
  2228. (set) 2>&1 |
  2229. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2230. *${as_nl}ac_space=\ *)
  2231. sed -n \
  2232. "s/'\''/'\''\\\\'\'''\''/g;
  2233. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2234. ;; #(
  2235. *)
  2236. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2237. ;;
  2238. esac |
  2239. sort
  2240. )
  2241. echo
  2242. $as_echo "## ----------------- ##
  2243. ## Output variables. ##
  2244. ## ----------------- ##"
  2245. echo
  2246. for ac_var in $ac_subst_vars
  2247. do
  2248. eval ac_val=\$$ac_var
  2249. case $ac_val in
  2250. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2251. esac
  2252. $as_echo "$ac_var='\''$ac_val'\''"
  2253. done | sort
  2254. echo
  2255. if test -n "$ac_subst_files"; then
  2256. $as_echo "## ------------------- ##
  2257. ## File substitutions. ##
  2258. ## ------------------- ##"
  2259. echo
  2260. for ac_var in $ac_subst_files
  2261. do
  2262. eval ac_val=\$$ac_var
  2263. case $ac_val in
  2264. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2265. esac
  2266. $as_echo "$ac_var='\''$ac_val'\''"
  2267. done | sort
  2268. echo
  2269. fi
  2270. if test -s confdefs.h; then
  2271. $as_echo "## ----------- ##
  2272. ## confdefs.h. ##
  2273. ## ----------- ##"
  2274. echo
  2275. cat confdefs.h
  2276. echo
  2277. fi
  2278. test "$ac_signal" != 0 &&
  2279. $as_echo "$as_me: caught signal $ac_signal"
  2280. $as_echo "$as_me: exit $exit_status"
  2281. } >&5
  2282. rm -f core *.core core.conftest.* &&
  2283. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2284. exit $exit_status
  2285. ' 0
  2286. for ac_signal in 1 2 13 15; do
  2287. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2288. done
  2289. ac_signal=0
  2290. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2291. rm -f -r conftest* confdefs.h
  2292. $as_echo "/* confdefs.h */" > confdefs.h
  2293. # Predefined preprocessor variables.
  2294. cat >>confdefs.h <<_ACEOF
  2295. #define PACKAGE_NAME "$PACKAGE_NAME"
  2296. _ACEOF
  2297. cat >>confdefs.h <<_ACEOF
  2298. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2299. _ACEOF
  2300. cat >>confdefs.h <<_ACEOF
  2301. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2302. _ACEOF
  2303. cat >>confdefs.h <<_ACEOF
  2304. #define PACKAGE_STRING "$PACKAGE_STRING"
  2305. _ACEOF
  2306. cat >>confdefs.h <<_ACEOF
  2307. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2308. _ACEOF
  2309. cat >>confdefs.h <<_ACEOF
  2310. #define PACKAGE_URL "$PACKAGE_URL"
  2311. _ACEOF
  2312. # Let the site file select an alternate cache file if it wants to.
  2313. # Prefer an explicitly selected file to automatically selected ones.
  2314. ac_site_file1=NONE
  2315. ac_site_file2=NONE
  2316. if test -n "$CONFIG_SITE"; then
  2317. # We do not want a PATH search for config.site.
  2318. case $CONFIG_SITE in #((
  2319. -*) ac_site_file1=./$CONFIG_SITE;;
  2320. */*) ac_site_file1=$CONFIG_SITE;;
  2321. *) ac_site_file1=./$CONFIG_SITE;;
  2322. esac
  2323. elif test "x$prefix" != xNONE; then
  2324. ac_site_file1=$prefix/share/config.site
  2325. ac_site_file2=$prefix/etc/config.site
  2326. else
  2327. ac_site_file1=$ac_default_prefix/share/config.site
  2328. ac_site_file2=$ac_default_prefix/etc/config.site
  2329. fi
  2330. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2331. do
  2332. test "x$ac_site_file" = xNONE && continue
  2333. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2335. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2336. sed 's/^/| /' "$ac_site_file" >&5
  2337. . "$ac_site_file" \
  2338. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2339. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2340. as_fn_error $? "failed to load site script $ac_site_file
  2341. See \`config.log' for more details" "$LINENO" 5; }
  2342. fi
  2343. done
  2344. if test -r "$cache_file"; then
  2345. # Some versions of bash will fail to source /dev/null (special files
  2346. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2347. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2348. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2349. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2350. case $cache_file in
  2351. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2352. *) . "./$cache_file";;
  2353. esac
  2354. fi
  2355. else
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2357. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2358. >$cache_file
  2359. fi
  2360. # Check that the precious variables saved in the cache have kept the same
  2361. # value.
  2362. ac_cache_corrupted=false
  2363. for ac_var in $ac_precious_vars; do
  2364. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2365. eval ac_new_set=\$ac_env_${ac_var}_set
  2366. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2367. eval ac_new_val=\$ac_env_${ac_var}_value
  2368. case $ac_old_set,$ac_new_set in
  2369. set,)
  2370. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2371. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2372. ac_cache_corrupted=: ;;
  2373. ,set)
  2374. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2375. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2376. ac_cache_corrupted=: ;;
  2377. ,);;
  2378. *)
  2379. if test "x$ac_old_val" != "x$ac_new_val"; then
  2380. # differences in whitespace do not lead to failure.
  2381. ac_old_val_w=`echo x $ac_old_val`
  2382. ac_new_val_w=`echo x $ac_new_val`
  2383. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2384. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2385. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2386. ac_cache_corrupted=:
  2387. else
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2389. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2390. eval $ac_var=\$ac_old_val
  2391. fi
  2392. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2393. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2395. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2396. fi;;
  2397. esac
  2398. # Pass precious variables to config.status.
  2399. if test "$ac_new_set" = set; then
  2400. case $ac_new_val in
  2401. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2402. *) ac_arg=$ac_var=$ac_new_val ;;
  2403. esac
  2404. case " $ac_configure_args " in
  2405. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2406. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2407. esac
  2408. fi
  2409. done
  2410. if $ac_cache_corrupted; then
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2412. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2414. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2415. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2416. fi
  2417. ## -------------------- ##
  2418. ## Main body of script. ##
  2419. ## -------------------- ##
  2420. ac_ext=c
  2421. ac_cpp='$CPP $CPPFLAGS'
  2422. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2423. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2424. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2425. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2426. ac_aux_dir=
  2427. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2428. if test -f "$ac_dir/install-sh"; then
  2429. ac_aux_dir=$ac_dir
  2430. ac_install_sh="$ac_aux_dir/install-sh -c"
  2431. break
  2432. elif test -f "$ac_dir/install.sh"; then
  2433. ac_aux_dir=$ac_dir
  2434. ac_install_sh="$ac_aux_dir/install.sh -c"
  2435. break
  2436. elif test -f "$ac_dir/shtool"; then
  2437. ac_aux_dir=$ac_dir
  2438. ac_install_sh="$ac_aux_dir/shtool install -c"
  2439. break
  2440. fi
  2441. done
  2442. if test -z "$ac_aux_dir"; then
  2443. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2444. fi
  2445. # These three variables are undocumented and unsupported,
  2446. # and are intended to be withdrawn in a future Autoconf release.
  2447. # They can cause serious problems if a builder's source tree is in a directory
  2448. # whose full name contains unusual characters.
  2449. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2450. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2451. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2452. orig_CFLAGS="$CFLAGS"
  2453. #
  2454. # Making releases:
  2455. # Edit include/SDL_version.h and change the version, then:
  2456. # SDL_MICRO_VERSION += 1;
  2457. # SDL_INTERFACE_AGE += 1;
  2458. # SDL_BINARY_AGE += 1;
  2459. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2460. # if backwards compatibility has been broken,
  2461. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2462. #
  2463. SDL_MAJOR_VERSION=2
  2464. SDL_MINOR_VERSION=0
  2465. SDL_MICRO_VERSION=5
  2466. SDL_INTERFACE_AGE=0
  2467. SDL_BINARY_AGE=5
  2468. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2469. # libtool versioning
  2470. case `pwd` in
  2471. *\ * | *\ *)
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2473. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2474. esac
  2475. macro_version='2.4.2'
  2476. macro_revision='1.3337'
  2477. ltmain="$ac_aux_dir/ltmain.sh"
  2478. # Make sure we can run config.sub.
  2479. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2480. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2482. $as_echo_n "checking build system type... " >&6; }
  2483. if ${ac_cv_build+:} false; then :
  2484. $as_echo_n "(cached) " >&6
  2485. else
  2486. ac_build_alias=$build_alias
  2487. test "x$ac_build_alias" = x &&
  2488. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2489. test "x$ac_build_alias" = x &&
  2490. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2491. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2492. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2493. fi
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2495. $as_echo "$ac_cv_build" >&6; }
  2496. case $ac_cv_build in
  2497. *-*-*) ;;
  2498. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2499. esac
  2500. build=$ac_cv_build
  2501. ac_save_IFS=$IFS; IFS='-'
  2502. set x $ac_cv_build
  2503. shift
  2504. build_cpu=$1
  2505. build_vendor=$2
  2506. shift; shift
  2507. # Remember, the first character of IFS is used to create $*,
  2508. # except with old shells:
  2509. build_os=$*
  2510. IFS=$ac_save_IFS
  2511. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2513. $as_echo_n "checking host system type... " >&6; }
  2514. if ${ac_cv_host+:} false; then :
  2515. $as_echo_n "(cached) " >&6
  2516. else
  2517. if test "x$host_alias" = x; then
  2518. ac_cv_host=$ac_cv_build
  2519. else
  2520. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2521. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2522. fi
  2523. fi
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2525. $as_echo "$ac_cv_host" >&6; }
  2526. case $ac_cv_host in
  2527. *-*-*) ;;
  2528. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2529. esac
  2530. host=$ac_cv_host
  2531. ac_save_IFS=$IFS; IFS='-'
  2532. set x $ac_cv_host
  2533. shift
  2534. host_cpu=$1
  2535. host_vendor=$2
  2536. shift; shift
  2537. # Remember, the first character of IFS is used to create $*,
  2538. # except with old shells:
  2539. host_os=$*
  2540. IFS=$ac_save_IFS
  2541. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2542. # Backslashify metacharacters that are still active within
  2543. # double-quoted strings.
  2544. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2545. # Same as above, but do not quote variable references.
  2546. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2547. # Sed substitution to delay expansion of an escaped shell variable in a
  2548. # double_quote_subst'ed string.
  2549. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2550. # Sed substitution to delay expansion of an escaped single quote.
  2551. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2552. # Sed substitution to avoid accidental globbing in evaled expressions
  2553. no_glob_subst='s/\*/\\\*/g'
  2554. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2555. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2556. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2558. $as_echo_n "checking how to print strings... " >&6; }
  2559. # Test print first, because it will be a builtin if present.
  2560. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2561. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2562. ECHO='print -r --'
  2563. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2564. ECHO='printf %s\n'
  2565. else
  2566. # Use this function as a fallback that always works.
  2567. func_fallback_echo ()
  2568. {
  2569. eval 'cat <<_LTECHO_EOF
  2570. $1
  2571. _LTECHO_EOF'
  2572. }
  2573. ECHO='func_fallback_echo'
  2574. fi
  2575. # func_echo_all arg...
  2576. # Invoke $ECHO with all args, space-separated.
  2577. func_echo_all ()
  2578. {
  2579. $ECHO ""
  2580. }
  2581. case "$ECHO" in
  2582. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2583. $as_echo "printf" >&6; } ;;
  2584. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2585. $as_echo "print -r" >&6; } ;;
  2586. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2587. $as_echo "cat" >&6; } ;;
  2588. esac
  2589. ac_ext=c
  2590. ac_cpp='$CPP $CPPFLAGS'
  2591. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2592. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2593. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2594. if test -n "$ac_tool_prefix"; then
  2595. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2596. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2598. $as_echo_n "checking for $ac_word... " >&6; }
  2599. if ${ac_cv_prog_CC+:} false; then :
  2600. $as_echo_n "(cached) " >&6
  2601. else
  2602. if test -n "$CC"; then
  2603. ac_cv_prog_CC="$CC" # Let the user override the test.
  2604. else
  2605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2606. for as_dir in $PATH
  2607. do
  2608. IFS=$as_save_IFS
  2609. test -z "$as_dir" && as_dir=.
  2610. for ac_exec_ext in '' $ac_executable_extensions; do
  2611. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2612. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2613. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2614. break 2
  2615. fi
  2616. done
  2617. done
  2618. IFS=$as_save_IFS
  2619. fi
  2620. fi
  2621. CC=$ac_cv_prog_CC
  2622. if test -n "$CC"; then
  2623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2624. $as_echo "$CC" >&6; }
  2625. else
  2626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2627. $as_echo "no" >&6; }
  2628. fi
  2629. fi
  2630. if test -z "$ac_cv_prog_CC"; then
  2631. ac_ct_CC=$CC
  2632. # Extract the first word of "gcc", so it can be a program name with args.
  2633. set dummy gcc; ac_word=$2
  2634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2635. $as_echo_n "checking for $ac_word... " >&6; }
  2636. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2637. $as_echo_n "(cached) " >&6
  2638. else
  2639. if test -n "$ac_ct_CC"; then
  2640. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2641. else
  2642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2643. for as_dir in $PATH
  2644. do
  2645. IFS=$as_save_IFS
  2646. test -z "$as_dir" && as_dir=.
  2647. for ac_exec_ext in '' $ac_executable_extensions; do
  2648. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2649. ac_cv_prog_ac_ct_CC="gcc"
  2650. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2651. break 2
  2652. fi
  2653. done
  2654. done
  2655. IFS=$as_save_IFS
  2656. fi
  2657. fi
  2658. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2659. if test -n "$ac_ct_CC"; then
  2660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2661. $as_echo "$ac_ct_CC" >&6; }
  2662. else
  2663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2664. $as_echo "no" >&6; }
  2665. fi
  2666. if test "x$ac_ct_CC" = x; then
  2667. CC=""
  2668. else
  2669. case $cross_compiling:$ac_tool_warned in
  2670. yes:)
  2671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2672. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2673. ac_tool_warned=yes ;;
  2674. esac
  2675. CC=$ac_ct_CC
  2676. fi
  2677. else
  2678. CC="$ac_cv_prog_CC"
  2679. fi
  2680. if test -z "$CC"; then
  2681. if test -n "$ac_tool_prefix"; then
  2682. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2683. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2685. $as_echo_n "checking for $ac_word... " >&6; }
  2686. if ${ac_cv_prog_CC+:} false; then :
  2687. $as_echo_n "(cached) " >&6
  2688. else
  2689. if test -n "$CC"; then
  2690. ac_cv_prog_CC="$CC" # Let the user override the test.
  2691. else
  2692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2693. for as_dir in $PATH
  2694. do
  2695. IFS=$as_save_IFS
  2696. test -z "$as_dir" && as_dir=.
  2697. for ac_exec_ext in '' $ac_executable_extensions; do
  2698. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2699. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2701. break 2
  2702. fi
  2703. done
  2704. done
  2705. IFS=$as_save_IFS
  2706. fi
  2707. fi
  2708. CC=$ac_cv_prog_CC
  2709. if test -n "$CC"; then
  2710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2711. $as_echo "$CC" >&6; }
  2712. else
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2714. $as_echo "no" >&6; }
  2715. fi
  2716. fi
  2717. fi
  2718. if test -z "$CC"; then
  2719. # Extract the first word of "cc", so it can be a program name with args.
  2720. set dummy cc; ac_word=$2
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2722. $as_echo_n "checking for $ac_word... " >&6; }
  2723. if ${ac_cv_prog_CC+:} false; then :
  2724. $as_echo_n "(cached) " >&6
  2725. else
  2726. if test -n "$CC"; then
  2727. ac_cv_prog_CC="$CC" # Let the user override the test.
  2728. else
  2729. ac_prog_rejected=no
  2730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2731. for as_dir in $PATH
  2732. do
  2733. IFS=$as_save_IFS
  2734. test -z "$as_dir" && as_dir=.
  2735. for ac_exec_ext in '' $ac_executable_extensions; do
  2736. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2737. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2738. ac_prog_rejected=yes
  2739. continue
  2740. fi
  2741. ac_cv_prog_CC="cc"
  2742. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2743. break 2
  2744. fi
  2745. done
  2746. done
  2747. IFS=$as_save_IFS
  2748. if test $ac_prog_rejected = yes; then
  2749. # We found a bogon in the path, so make sure we never use it.
  2750. set dummy $ac_cv_prog_CC
  2751. shift
  2752. if test $# != 0; then
  2753. # We chose a different compiler from the bogus one.
  2754. # However, it has the same basename, so the bogon will be chosen
  2755. # first if we set CC to just the basename; use the full file name.
  2756. shift
  2757. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2758. fi
  2759. fi
  2760. fi
  2761. fi
  2762. CC=$ac_cv_prog_CC
  2763. if test -n "$CC"; then
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2765. $as_echo "$CC" >&6; }
  2766. else
  2767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2768. $as_echo "no" >&6; }
  2769. fi
  2770. fi
  2771. if test -z "$CC"; then
  2772. if test -n "$ac_tool_prefix"; then
  2773. for ac_prog in cl.exe
  2774. do
  2775. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2776. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2778. $as_echo_n "checking for $ac_word... " >&6; }
  2779. if ${ac_cv_prog_CC+:} false; then :
  2780. $as_echo_n "(cached) " >&6
  2781. else
  2782. if test -n "$CC"; then
  2783. ac_cv_prog_CC="$CC" # Let the user override the test.
  2784. else
  2785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2786. for as_dir in $PATH
  2787. do
  2788. IFS=$as_save_IFS
  2789. test -z "$as_dir" && as_dir=.
  2790. for ac_exec_ext in '' $ac_executable_extensions; do
  2791. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2792. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2794. break 2
  2795. fi
  2796. done
  2797. done
  2798. IFS=$as_save_IFS
  2799. fi
  2800. fi
  2801. CC=$ac_cv_prog_CC
  2802. if test -n "$CC"; then
  2803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2804. $as_echo "$CC" >&6; }
  2805. else
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2807. $as_echo "no" >&6; }
  2808. fi
  2809. test -n "$CC" && break
  2810. done
  2811. fi
  2812. if test -z "$CC"; then
  2813. ac_ct_CC=$CC
  2814. for ac_prog in cl.exe
  2815. do
  2816. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2817. set dummy $ac_prog; ac_word=$2
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2819. $as_echo_n "checking for $ac_word... " >&6; }
  2820. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2821. $as_echo_n "(cached) " >&6
  2822. else
  2823. if test -n "$ac_ct_CC"; then
  2824. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2825. else
  2826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2827. for as_dir in $PATH
  2828. do
  2829. IFS=$as_save_IFS
  2830. test -z "$as_dir" && as_dir=.
  2831. for ac_exec_ext in '' $ac_executable_extensions; do
  2832. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2833. ac_cv_prog_ac_ct_CC="$ac_prog"
  2834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2835. break 2
  2836. fi
  2837. done
  2838. done
  2839. IFS=$as_save_IFS
  2840. fi
  2841. fi
  2842. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2843. if test -n "$ac_ct_CC"; then
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2845. $as_echo "$ac_ct_CC" >&6; }
  2846. else
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2848. $as_echo "no" >&6; }
  2849. fi
  2850. test -n "$ac_ct_CC" && break
  2851. done
  2852. if test "x$ac_ct_CC" = x; then
  2853. CC=""
  2854. else
  2855. case $cross_compiling:$ac_tool_warned in
  2856. yes:)
  2857. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2858. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2859. ac_tool_warned=yes ;;
  2860. esac
  2861. CC=$ac_ct_CC
  2862. fi
  2863. fi
  2864. fi
  2865. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2866. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2867. as_fn_error $? "no acceptable C compiler found in \$PATH
  2868. See \`config.log' for more details" "$LINENO" 5; }
  2869. # Provide some information about the compiler.
  2870. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2871. set X $ac_compile
  2872. ac_compiler=$2
  2873. for ac_option in --version -v -V -qversion; do
  2874. { { ac_try="$ac_compiler $ac_option >&5"
  2875. case "(($ac_try" in
  2876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2877. *) ac_try_echo=$ac_try;;
  2878. esac
  2879. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2880. $as_echo "$ac_try_echo"; } >&5
  2881. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2882. ac_status=$?
  2883. if test -s conftest.err; then
  2884. sed '10a\
  2885. ... rest of stderr output deleted ...
  2886. 10q' conftest.err >conftest.er1
  2887. cat conftest.er1 >&5
  2888. fi
  2889. rm -f conftest.er1 conftest.err
  2890. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2891. test $ac_status = 0; }
  2892. done
  2893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2894. /* end confdefs.h. */
  2895. int
  2896. main ()
  2897. {
  2898. ;
  2899. return 0;
  2900. }
  2901. _ACEOF
  2902. ac_clean_files_save=$ac_clean_files
  2903. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2904. # Try to create an executable without -o first, disregard a.out.
  2905. # It will help us diagnose broken compilers, and finding out an intuition
  2906. # of exeext.
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2908. $as_echo_n "checking whether the C compiler works... " >&6; }
  2909. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2910. # The possible output files:
  2911. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2912. ac_rmfiles=
  2913. for ac_file in $ac_files
  2914. do
  2915. case $ac_file in
  2916. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2917. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2918. esac
  2919. done
  2920. rm -f $ac_rmfiles
  2921. if { { ac_try="$ac_link_default"
  2922. case "(($ac_try" in
  2923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2924. *) ac_try_echo=$ac_try;;
  2925. esac
  2926. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2927. $as_echo "$ac_try_echo"; } >&5
  2928. (eval "$ac_link_default") 2>&5
  2929. ac_status=$?
  2930. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2931. test $ac_status = 0; }; then :
  2932. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2933. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2934. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2935. # so that the user can short-circuit this test for compilers unknown to
  2936. # Autoconf.
  2937. for ac_file in $ac_files ''
  2938. do
  2939. test -f "$ac_file" || continue
  2940. case $ac_file in
  2941. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2942. ;;
  2943. [ab].out )
  2944. # We found the default executable, but exeext='' is most
  2945. # certainly right.
  2946. break;;
  2947. *.* )
  2948. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2949. then :; else
  2950. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2951. fi
  2952. # We set ac_cv_exeext here because the later test for it is not
  2953. # safe: cross compilers may not add the suffix if given an `-o'
  2954. # argument, so we may need to know it at that point already.
  2955. # Even if this section looks crufty: it has the advantage of
  2956. # actually working.
  2957. break;;
  2958. * )
  2959. break;;
  2960. esac
  2961. done
  2962. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2963. else
  2964. ac_file=''
  2965. fi
  2966. if test -z "$ac_file"; then :
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2968. $as_echo "no" >&6; }
  2969. $as_echo "$as_me: failed program was:" >&5
  2970. sed 's/^/| /' conftest.$ac_ext >&5
  2971. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2972. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2973. as_fn_error 77 "C compiler cannot create executables
  2974. See \`config.log' for more details" "$LINENO" 5; }
  2975. else
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2977. $as_echo "yes" >&6; }
  2978. fi
  2979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2980. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2982. $as_echo "$ac_file" >&6; }
  2983. ac_exeext=$ac_cv_exeext
  2984. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2985. ac_clean_files=$ac_clean_files_save
  2986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2987. $as_echo_n "checking for suffix of executables... " >&6; }
  2988. if { { ac_try="$ac_link"
  2989. case "(($ac_try" in
  2990. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2991. *) ac_try_echo=$ac_try;;
  2992. esac
  2993. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2994. $as_echo "$ac_try_echo"; } >&5
  2995. (eval "$ac_link") 2>&5
  2996. ac_status=$?
  2997. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2998. test $ac_status = 0; }; then :
  2999. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3000. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3001. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3002. # `rm'.
  3003. for ac_file in conftest.exe conftest conftest.*; do
  3004. test -f "$ac_file" || continue
  3005. case $ac_file in
  3006. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3007. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3008. break;;
  3009. * ) break;;
  3010. esac
  3011. done
  3012. else
  3013. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3014. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3015. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3016. See \`config.log' for more details" "$LINENO" 5; }
  3017. fi
  3018. rm -f conftest conftest$ac_cv_exeext
  3019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3020. $as_echo "$ac_cv_exeext" >&6; }
  3021. rm -f conftest.$ac_ext
  3022. EXEEXT=$ac_cv_exeext
  3023. ac_exeext=$EXEEXT
  3024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3025. /* end confdefs.h. */
  3026. #include <stdio.h>
  3027. int
  3028. main ()
  3029. {
  3030. FILE *f = fopen ("conftest.out", "w");
  3031. return ferror (f) || fclose (f) != 0;
  3032. ;
  3033. return 0;
  3034. }
  3035. _ACEOF
  3036. ac_clean_files="$ac_clean_files conftest.out"
  3037. # Check that the compiler produces executables we can run. If not, either
  3038. # the compiler is broken, or we cross compile.
  3039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3040. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3041. if test "$cross_compiling" != yes; then
  3042. { { ac_try="$ac_link"
  3043. case "(($ac_try" in
  3044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3045. *) ac_try_echo=$ac_try;;
  3046. esac
  3047. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3048. $as_echo "$ac_try_echo"; } >&5
  3049. (eval "$ac_link") 2>&5
  3050. ac_status=$?
  3051. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3052. test $ac_status = 0; }
  3053. if { ac_try='./conftest$ac_cv_exeext'
  3054. { { case "(($ac_try" in
  3055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3056. *) ac_try_echo=$ac_try;;
  3057. esac
  3058. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3059. $as_echo "$ac_try_echo"; } >&5
  3060. (eval "$ac_try") 2>&5
  3061. ac_status=$?
  3062. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3063. test $ac_status = 0; }; }; then
  3064. cross_compiling=no
  3065. else
  3066. if test "$cross_compiling" = maybe; then
  3067. cross_compiling=yes
  3068. else
  3069. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3070. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3071. as_fn_error $? "cannot run C compiled programs.
  3072. If you meant to cross compile, use \`--host'.
  3073. See \`config.log' for more details" "$LINENO" 5; }
  3074. fi
  3075. fi
  3076. fi
  3077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3078. $as_echo "$cross_compiling" >&6; }
  3079. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3080. ac_clean_files=$ac_clean_files_save
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3082. $as_echo_n "checking for suffix of object files... " >&6; }
  3083. if ${ac_cv_objext+:} false; then :
  3084. $as_echo_n "(cached) " >&6
  3085. else
  3086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3087. /* end confdefs.h. */
  3088. int
  3089. main ()
  3090. {
  3091. ;
  3092. return 0;
  3093. }
  3094. _ACEOF
  3095. rm -f conftest.o conftest.obj
  3096. if { { ac_try="$ac_compile"
  3097. case "(($ac_try" in
  3098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3099. *) ac_try_echo=$ac_try;;
  3100. esac
  3101. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3102. $as_echo "$ac_try_echo"; } >&5
  3103. (eval "$ac_compile") 2>&5
  3104. ac_status=$?
  3105. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3106. test $ac_status = 0; }; then :
  3107. for ac_file in conftest.o conftest.obj conftest.*; do
  3108. test -f "$ac_file" || continue;
  3109. case $ac_file in
  3110. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3111. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3112. break;;
  3113. esac
  3114. done
  3115. else
  3116. $as_echo "$as_me: failed program was:" >&5
  3117. sed 's/^/| /' conftest.$ac_ext >&5
  3118. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3119. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3120. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3121. See \`config.log' for more details" "$LINENO" 5; }
  3122. fi
  3123. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3124. fi
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3126. $as_echo "$ac_cv_objext" >&6; }
  3127. OBJEXT=$ac_cv_objext
  3128. ac_objext=$OBJEXT
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3130. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3131. if ${ac_cv_c_compiler_gnu+:} false; then :
  3132. $as_echo_n "(cached) " >&6
  3133. else
  3134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3135. /* end confdefs.h. */
  3136. int
  3137. main ()
  3138. {
  3139. #ifndef __GNUC__
  3140. choke me
  3141. #endif
  3142. ;
  3143. return 0;
  3144. }
  3145. _ACEOF
  3146. if ac_fn_c_try_compile "$LINENO"; then :
  3147. ac_compiler_gnu=yes
  3148. else
  3149. ac_compiler_gnu=no
  3150. fi
  3151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3152. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3153. fi
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3155. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3156. if test $ac_compiler_gnu = yes; then
  3157. GCC=yes
  3158. else
  3159. GCC=
  3160. fi
  3161. ac_test_CFLAGS=${CFLAGS+set}
  3162. ac_save_CFLAGS=$CFLAGS
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3164. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3165. if ${ac_cv_prog_cc_g+:} false; then :
  3166. $as_echo_n "(cached) " >&6
  3167. else
  3168. ac_save_c_werror_flag=$ac_c_werror_flag
  3169. ac_c_werror_flag=yes
  3170. ac_cv_prog_cc_g=no
  3171. CFLAGS="-g"
  3172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3173. /* end confdefs.h. */
  3174. int
  3175. main ()
  3176. {
  3177. ;
  3178. return 0;
  3179. }
  3180. _ACEOF
  3181. if ac_fn_c_try_compile "$LINENO"; then :
  3182. ac_cv_prog_cc_g=yes
  3183. else
  3184. CFLAGS=""
  3185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3186. /* end confdefs.h. */
  3187. int
  3188. main ()
  3189. {
  3190. ;
  3191. return 0;
  3192. }
  3193. _ACEOF
  3194. if ac_fn_c_try_compile "$LINENO"; then :
  3195. else
  3196. ac_c_werror_flag=$ac_save_c_werror_flag
  3197. CFLAGS="-g"
  3198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3199. /* end confdefs.h. */
  3200. int
  3201. main ()
  3202. {
  3203. ;
  3204. return 0;
  3205. }
  3206. _ACEOF
  3207. if ac_fn_c_try_compile "$LINENO"; then :
  3208. ac_cv_prog_cc_g=yes
  3209. fi
  3210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3211. fi
  3212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3213. fi
  3214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3215. ac_c_werror_flag=$ac_save_c_werror_flag
  3216. fi
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3218. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3219. if test "$ac_test_CFLAGS" = set; then
  3220. CFLAGS=$ac_save_CFLAGS
  3221. elif test $ac_cv_prog_cc_g = yes; then
  3222. if test "$GCC" = yes; then
  3223. CFLAGS="-g -O2"
  3224. else
  3225. CFLAGS="-g"
  3226. fi
  3227. else
  3228. if test "$GCC" = yes; then
  3229. CFLAGS="-O2"
  3230. else
  3231. CFLAGS=
  3232. fi
  3233. fi
  3234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3235. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3236. if ${ac_cv_prog_cc_c89+:} false; then :
  3237. $as_echo_n "(cached) " >&6
  3238. else
  3239. ac_cv_prog_cc_c89=no
  3240. ac_save_CC=$CC
  3241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3242. /* end confdefs.h. */
  3243. #include <stdarg.h>
  3244. #include <stdio.h>
  3245. struct stat;
  3246. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3247. struct buf { int x; };
  3248. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3249. static char *e (p, i)
  3250. char **p;
  3251. int i;
  3252. {
  3253. return p[i];
  3254. }
  3255. static char *f (char * (*g) (char **, int), char **p, ...)
  3256. {
  3257. char *s;
  3258. va_list v;
  3259. va_start (v,p);
  3260. s = g (p, va_arg (v,int));
  3261. va_end (v);
  3262. return s;
  3263. }
  3264. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3265. function prototypes and stuff, but not '\xHH' hex character constants.
  3266. These don't provoke an error unfortunately, instead are silently treated
  3267. as 'x'. The following induces an error, until -std is added to get
  3268. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3269. array size at least. It's necessary to write '\x00'==0 to get something
  3270. that's true only with -std. */
  3271. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3272. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3273. inside strings and character constants. */
  3274. #define FOO(x) 'x'
  3275. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3276. int test (int i, double x);
  3277. struct s1 {int (*f) (int a);};
  3278. struct s2 {int (*f) (double a);};
  3279. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3280. int argc;
  3281. char **argv;
  3282. int
  3283. main ()
  3284. {
  3285. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3286. ;
  3287. return 0;
  3288. }
  3289. _ACEOF
  3290. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3291. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3292. do
  3293. CC="$ac_save_CC $ac_arg"
  3294. if ac_fn_c_try_compile "$LINENO"; then :
  3295. ac_cv_prog_cc_c89=$ac_arg
  3296. fi
  3297. rm -f core conftest.err conftest.$ac_objext
  3298. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3299. done
  3300. rm -f conftest.$ac_ext
  3301. CC=$ac_save_CC
  3302. fi
  3303. # AC_CACHE_VAL
  3304. case "x$ac_cv_prog_cc_c89" in
  3305. x)
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3307. $as_echo "none needed" >&6; } ;;
  3308. xno)
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3310. $as_echo "unsupported" >&6; } ;;
  3311. *)
  3312. CC="$CC $ac_cv_prog_cc_c89"
  3313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3314. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3315. esac
  3316. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3317. fi
  3318. ac_ext=c
  3319. ac_cpp='$CPP $CPPFLAGS'
  3320. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3321. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3322. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3324. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3325. if ${ac_cv_path_SED+:} false; then :
  3326. $as_echo_n "(cached) " >&6
  3327. else
  3328. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3329. for ac_i in 1 2 3 4 5 6 7; do
  3330. ac_script="$ac_script$as_nl$ac_script"
  3331. done
  3332. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3333. { ac_script=; unset ac_script;}
  3334. if test -z "$SED"; then
  3335. ac_path_SED_found=false
  3336. # Loop through the user's path and test for each of PROGNAME-LIST
  3337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3338. for as_dir in $PATH
  3339. do
  3340. IFS=$as_save_IFS
  3341. test -z "$as_dir" && as_dir=.
  3342. for ac_prog in sed gsed; do
  3343. for ac_exec_ext in '' $ac_executable_extensions; do
  3344. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3345. as_fn_executable_p "$ac_path_SED" || continue
  3346. # Check for GNU ac_path_SED and select it if it is found.
  3347. # Check for GNU $ac_path_SED
  3348. case `"$ac_path_SED" --version 2>&1` in
  3349. *GNU*)
  3350. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3351. *)
  3352. ac_count=0
  3353. $as_echo_n 0123456789 >"conftest.in"
  3354. while :
  3355. do
  3356. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3357. mv "conftest.tmp" "conftest.in"
  3358. cp "conftest.in" "conftest.nl"
  3359. $as_echo '' >> "conftest.nl"
  3360. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3361. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3362. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3363. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3364. # Best one so far, save it but keep looking for a better one
  3365. ac_cv_path_SED="$ac_path_SED"
  3366. ac_path_SED_max=$ac_count
  3367. fi
  3368. # 10*(2^10) chars as input seems more than enough
  3369. test $ac_count -gt 10 && break
  3370. done
  3371. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3372. esac
  3373. $ac_path_SED_found && break 3
  3374. done
  3375. done
  3376. done
  3377. IFS=$as_save_IFS
  3378. if test -z "$ac_cv_path_SED"; then
  3379. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3380. fi
  3381. else
  3382. ac_cv_path_SED=$SED
  3383. fi
  3384. fi
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3386. $as_echo "$ac_cv_path_SED" >&6; }
  3387. SED="$ac_cv_path_SED"
  3388. rm -f conftest.sed
  3389. test -z "$SED" && SED=sed
  3390. Xsed="$SED -e 1s/^X//"
  3391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3392. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3393. if ${ac_cv_path_GREP+:} false; then :
  3394. $as_echo_n "(cached) " >&6
  3395. else
  3396. if test -z "$GREP"; then
  3397. ac_path_GREP_found=false
  3398. # Loop through the user's path and test for each of PROGNAME-LIST
  3399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3400. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3401. do
  3402. IFS=$as_save_IFS
  3403. test -z "$as_dir" && as_dir=.
  3404. for ac_prog in grep ggrep; do
  3405. for ac_exec_ext in '' $ac_executable_extensions; do
  3406. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3407. as_fn_executable_p "$ac_path_GREP" || continue
  3408. # Check for GNU ac_path_GREP and select it if it is found.
  3409. # Check for GNU $ac_path_GREP
  3410. case `"$ac_path_GREP" --version 2>&1` in
  3411. *GNU*)
  3412. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3413. *)
  3414. ac_count=0
  3415. $as_echo_n 0123456789 >"conftest.in"
  3416. while :
  3417. do
  3418. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3419. mv "conftest.tmp" "conftest.in"
  3420. cp "conftest.in" "conftest.nl"
  3421. $as_echo 'GREP' >> "conftest.nl"
  3422. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3423. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3424. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3425. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3426. # Best one so far, save it but keep looking for a better one
  3427. ac_cv_path_GREP="$ac_path_GREP"
  3428. ac_path_GREP_max=$ac_count
  3429. fi
  3430. # 10*(2^10) chars as input seems more than enough
  3431. test $ac_count -gt 10 && break
  3432. done
  3433. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3434. esac
  3435. $ac_path_GREP_found && break 3
  3436. done
  3437. done
  3438. done
  3439. IFS=$as_save_IFS
  3440. if test -z "$ac_cv_path_GREP"; then
  3441. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3442. fi
  3443. else
  3444. ac_cv_path_GREP=$GREP
  3445. fi
  3446. fi
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3448. $as_echo "$ac_cv_path_GREP" >&6; }
  3449. GREP="$ac_cv_path_GREP"
  3450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3451. $as_echo_n "checking for egrep... " >&6; }
  3452. if ${ac_cv_path_EGREP+:} false; then :
  3453. $as_echo_n "(cached) " >&6
  3454. else
  3455. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3456. then ac_cv_path_EGREP="$GREP -E"
  3457. else
  3458. if test -z "$EGREP"; then
  3459. ac_path_EGREP_found=false
  3460. # Loop through the user's path and test for each of PROGNAME-LIST
  3461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3462. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3463. do
  3464. IFS=$as_save_IFS
  3465. test -z "$as_dir" && as_dir=.
  3466. for ac_prog in egrep; do
  3467. for ac_exec_ext in '' $ac_executable_extensions; do
  3468. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3469. as_fn_executable_p "$ac_path_EGREP" || continue
  3470. # Check for GNU ac_path_EGREP and select it if it is found.
  3471. # Check for GNU $ac_path_EGREP
  3472. case `"$ac_path_EGREP" --version 2>&1` in
  3473. *GNU*)
  3474. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3475. *)
  3476. ac_count=0
  3477. $as_echo_n 0123456789 >"conftest.in"
  3478. while :
  3479. do
  3480. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3481. mv "conftest.tmp" "conftest.in"
  3482. cp "conftest.in" "conftest.nl"
  3483. $as_echo 'EGREP' >> "conftest.nl"
  3484. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3485. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3486. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3487. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3488. # Best one so far, save it but keep looking for a better one
  3489. ac_cv_path_EGREP="$ac_path_EGREP"
  3490. ac_path_EGREP_max=$ac_count
  3491. fi
  3492. # 10*(2^10) chars as input seems more than enough
  3493. test $ac_count -gt 10 && break
  3494. done
  3495. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3496. esac
  3497. $ac_path_EGREP_found && break 3
  3498. done
  3499. done
  3500. done
  3501. IFS=$as_save_IFS
  3502. if test -z "$ac_cv_path_EGREP"; then
  3503. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3504. fi
  3505. else
  3506. ac_cv_path_EGREP=$EGREP
  3507. fi
  3508. fi
  3509. fi
  3510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3511. $as_echo "$ac_cv_path_EGREP" >&6; }
  3512. EGREP="$ac_cv_path_EGREP"
  3513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3514. $as_echo_n "checking for fgrep... " >&6; }
  3515. if ${ac_cv_path_FGREP+:} false; then :
  3516. $as_echo_n "(cached) " >&6
  3517. else
  3518. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3519. then ac_cv_path_FGREP="$GREP -F"
  3520. else
  3521. if test -z "$FGREP"; then
  3522. ac_path_FGREP_found=false
  3523. # Loop through the user's path and test for each of PROGNAME-LIST
  3524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3525. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3526. do
  3527. IFS=$as_save_IFS
  3528. test -z "$as_dir" && as_dir=.
  3529. for ac_prog in fgrep; do
  3530. for ac_exec_ext in '' $ac_executable_extensions; do
  3531. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3532. as_fn_executable_p "$ac_path_FGREP" || continue
  3533. # Check for GNU ac_path_FGREP and select it if it is found.
  3534. # Check for GNU $ac_path_FGREP
  3535. case `"$ac_path_FGREP" --version 2>&1` in
  3536. *GNU*)
  3537. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3538. *)
  3539. ac_count=0
  3540. $as_echo_n 0123456789 >"conftest.in"
  3541. while :
  3542. do
  3543. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3544. mv "conftest.tmp" "conftest.in"
  3545. cp "conftest.in" "conftest.nl"
  3546. $as_echo 'FGREP' >> "conftest.nl"
  3547. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3548. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3549. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3550. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3551. # Best one so far, save it but keep looking for a better one
  3552. ac_cv_path_FGREP="$ac_path_FGREP"
  3553. ac_path_FGREP_max=$ac_count
  3554. fi
  3555. # 10*(2^10) chars as input seems more than enough
  3556. test $ac_count -gt 10 && break
  3557. done
  3558. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3559. esac
  3560. $ac_path_FGREP_found && break 3
  3561. done
  3562. done
  3563. done
  3564. IFS=$as_save_IFS
  3565. if test -z "$ac_cv_path_FGREP"; then
  3566. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3567. fi
  3568. else
  3569. ac_cv_path_FGREP=$FGREP
  3570. fi
  3571. fi
  3572. fi
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3574. $as_echo "$ac_cv_path_FGREP" >&6; }
  3575. FGREP="$ac_cv_path_FGREP"
  3576. test -z "$GREP" && GREP=grep
  3577. # Check whether --with-gnu-ld was given.
  3578. if test "${with_gnu_ld+set}" = set; then :
  3579. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3580. else
  3581. with_gnu_ld=no
  3582. fi
  3583. ac_prog=ld
  3584. if test "$GCC" = yes; then
  3585. # Check if gcc -print-prog-name=ld gives a path.
  3586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3587. $as_echo_n "checking for ld used by $CC... " >&6; }
  3588. case $host in
  3589. *-*-mingw*)
  3590. # gcc leaves a trailing carriage return which upsets mingw
  3591. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3592. *)
  3593. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3594. esac
  3595. case $ac_prog in
  3596. # Accept absolute paths.
  3597. [\\/]* | ?:[\\/]*)
  3598. re_direlt='/[^/][^/]*/\.\./'
  3599. # Canonicalize the pathname of ld
  3600. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3601. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3602. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3603. done
  3604. test -z "$LD" && LD="$ac_prog"
  3605. ;;
  3606. "")
  3607. # If it fails, then pretend we aren't using GCC.
  3608. ac_prog=ld
  3609. ;;
  3610. *)
  3611. # If it is relative, then search for the first ld in PATH.
  3612. with_gnu_ld=unknown
  3613. ;;
  3614. esac
  3615. elif test "$with_gnu_ld" = yes; then
  3616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3617. $as_echo_n "checking for GNU ld... " >&6; }
  3618. else
  3619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3620. $as_echo_n "checking for non-GNU ld... " >&6; }
  3621. fi
  3622. if ${lt_cv_path_LD+:} false; then :
  3623. $as_echo_n "(cached) " >&6
  3624. else
  3625. if test -z "$LD"; then
  3626. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3627. for ac_dir in $PATH; do
  3628. IFS="$lt_save_ifs"
  3629. test -z "$ac_dir" && ac_dir=.
  3630. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3631. lt_cv_path_LD="$ac_dir/$ac_prog"
  3632. # Check to see if the program is GNU ld. I'd rather use --version,
  3633. # but apparently some variants of GNU ld only accept -v.
  3634. # Break only if it was the GNU/non-GNU ld that we prefer.
  3635. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3636. *GNU* | *'with BFD'*)
  3637. test "$with_gnu_ld" != no && break
  3638. ;;
  3639. *)
  3640. test "$with_gnu_ld" != yes && break
  3641. ;;
  3642. esac
  3643. fi
  3644. done
  3645. IFS="$lt_save_ifs"
  3646. else
  3647. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3648. fi
  3649. fi
  3650. LD="$lt_cv_path_LD"
  3651. if test -n "$LD"; then
  3652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3653. $as_echo "$LD" >&6; }
  3654. else
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3656. $as_echo "no" >&6; }
  3657. fi
  3658. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3660. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3661. if ${lt_cv_prog_gnu_ld+:} false; then :
  3662. $as_echo_n "(cached) " >&6
  3663. else
  3664. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3665. case `$LD -v 2>&1 </dev/null` in
  3666. *GNU* | *'with BFD'*)
  3667. lt_cv_prog_gnu_ld=yes
  3668. ;;
  3669. *)
  3670. lt_cv_prog_gnu_ld=no
  3671. ;;
  3672. esac
  3673. fi
  3674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3675. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3676. with_gnu_ld=$lt_cv_prog_gnu_ld
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3678. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3679. if ${lt_cv_path_NM+:} false; then :
  3680. $as_echo_n "(cached) " >&6
  3681. else
  3682. if test -n "$NM"; then
  3683. # Let the user override the test.
  3684. lt_cv_path_NM="$NM"
  3685. else
  3686. lt_nm_to_check="${ac_tool_prefix}nm"
  3687. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3688. lt_nm_to_check="$lt_nm_to_check nm"
  3689. fi
  3690. for lt_tmp_nm in $lt_nm_to_check; do
  3691. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3692. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3693. IFS="$lt_save_ifs"
  3694. test -z "$ac_dir" && ac_dir=.
  3695. tmp_nm="$ac_dir/$lt_tmp_nm"
  3696. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3697. # Check to see if the nm accepts a BSD-compat flag.
  3698. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3699. # nm: unknown option "B" ignored
  3700. # Tru64's nm complains that /dev/null is an invalid object file
  3701. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3702. */dev/null* | *'Invalid file or object type'*)
  3703. lt_cv_path_NM="$tmp_nm -B"
  3704. break
  3705. ;;
  3706. *)
  3707. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3708. */dev/null*)
  3709. lt_cv_path_NM="$tmp_nm -p"
  3710. break
  3711. ;;
  3712. *)
  3713. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3714. continue # so that we can try to find one that supports BSD flags
  3715. ;;
  3716. esac
  3717. ;;
  3718. esac
  3719. fi
  3720. done
  3721. IFS="$lt_save_ifs"
  3722. done
  3723. : ${lt_cv_path_NM=no}
  3724. fi
  3725. fi
  3726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3727. $as_echo "$lt_cv_path_NM" >&6; }
  3728. if test "$lt_cv_path_NM" != "no"; then
  3729. NM="$lt_cv_path_NM"
  3730. else
  3731. # Didn't find any BSD compatible name lister, look for dumpbin.
  3732. if test -n "$DUMPBIN"; then :
  3733. # Let the user override the test.
  3734. else
  3735. if test -n "$ac_tool_prefix"; then
  3736. for ac_prog in dumpbin "link -dump"
  3737. do
  3738. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3739. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3741. $as_echo_n "checking for $ac_word... " >&6; }
  3742. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3743. $as_echo_n "(cached) " >&6
  3744. else
  3745. if test -n "$DUMPBIN"; then
  3746. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3747. else
  3748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3749. for as_dir in $PATH
  3750. do
  3751. IFS=$as_save_IFS
  3752. test -z "$as_dir" && as_dir=.
  3753. for ac_exec_ext in '' $ac_executable_extensions; do
  3754. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3755. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3756. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3757. break 2
  3758. fi
  3759. done
  3760. done
  3761. IFS=$as_save_IFS
  3762. fi
  3763. fi
  3764. DUMPBIN=$ac_cv_prog_DUMPBIN
  3765. if test -n "$DUMPBIN"; then
  3766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3767. $as_echo "$DUMPBIN" >&6; }
  3768. else
  3769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3770. $as_echo "no" >&6; }
  3771. fi
  3772. test -n "$DUMPBIN" && break
  3773. done
  3774. fi
  3775. if test -z "$DUMPBIN"; then
  3776. ac_ct_DUMPBIN=$DUMPBIN
  3777. for ac_prog in dumpbin "link -dump"
  3778. do
  3779. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3780. set dummy $ac_prog; ac_word=$2
  3781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3782. $as_echo_n "checking for $ac_word... " >&6; }
  3783. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3784. $as_echo_n "(cached) " >&6
  3785. else
  3786. if test -n "$ac_ct_DUMPBIN"; then
  3787. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3788. else
  3789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3790. for as_dir in $PATH
  3791. do
  3792. IFS=$as_save_IFS
  3793. test -z "$as_dir" && as_dir=.
  3794. for ac_exec_ext in '' $ac_executable_extensions; do
  3795. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3796. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3798. break 2
  3799. fi
  3800. done
  3801. done
  3802. IFS=$as_save_IFS
  3803. fi
  3804. fi
  3805. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3806. if test -n "$ac_ct_DUMPBIN"; then
  3807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3808. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3809. else
  3810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3811. $as_echo "no" >&6; }
  3812. fi
  3813. test -n "$ac_ct_DUMPBIN" && break
  3814. done
  3815. if test "x$ac_ct_DUMPBIN" = x; then
  3816. DUMPBIN=":"
  3817. else
  3818. case $cross_compiling:$ac_tool_warned in
  3819. yes:)
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3821. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3822. ac_tool_warned=yes ;;
  3823. esac
  3824. DUMPBIN=$ac_ct_DUMPBIN
  3825. fi
  3826. fi
  3827. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3828. *COFF*)
  3829. DUMPBIN="$DUMPBIN -symbols"
  3830. ;;
  3831. *)
  3832. DUMPBIN=:
  3833. ;;
  3834. esac
  3835. fi
  3836. if test "$DUMPBIN" != ":"; then
  3837. NM="$DUMPBIN"
  3838. fi
  3839. fi
  3840. test -z "$NM" && NM=nm
  3841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3842. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3843. if ${lt_cv_nm_interface+:} false; then :
  3844. $as_echo_n "(cached) " >&6
  3845. else
  3846. lt_cv_nm_interface="BSD nm"
  3847. echo "int some_variable = 0;" > conftest.$ac_ext
  3848. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3849. (eval "$ac_compile" 2>conftest.err)
  3850. cat conftest.err >&5
  3851. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3852. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3853. cat conftest.err >&5
  3854. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3855. cat conftest.out >&5
  3856. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3857. lt_cv_nm_interface="MS dumpbin"
  3858. fi
  3859. rm -f conftest*
  3860. fi
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3862. $as_echo "$lt_cv_nm_interface" >&6; }
  3863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3864. $as_echo_n "checking whether ln -s works... " >&6; }
  3865. LN_S=$as_ln_s
  3866. if test "$LN_S" = "ln -s"; then
  3867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3868. $as_echo "yes" >&6; }
  3869. else
  3870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3871. $as_echo "no, using $LN_S" >&6; }
  3872. fi
  3873. # find the maximum length of command line arguments
  3874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3875. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3876. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3877. $as_echo_n "(cached) " >&6
  3878. else
  3879. i=0
  3880. teststring="ABCD"
  3881. case $build_os in
  3882. msdosdjgpp*)
  3883. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3884. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3885. # during glob expansion). Even if it were fixed, the result of this
  3886. # check would be larger than it should be.
  3887. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3888. ;;
  3889. gnu*)
  3890. # Under GNU Hurd, this test is not required because there is
  3891. # no limit to the length of command line arguments.
  3892. # Libtool will interpret -1 as no limit whatsoever
  3893. lt_cv_sys_max_cmd_len=-1;
  3894. ;;
  3895. cygwin* | mingw* | cegcc*)
  3896. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3897. # about 5 minutes as the teststring grows exponentially.
  3898. # Worse, since 9x/ME are not pre-emptively multitasking,
  3899. # you end up with a "frozen" computer, even though with patience
  3900. # the test eventually succeeds (with a max line length of 256k).
  3901. # Instead, let's just punt: use the minimum linelength reported by
  3902. # all of the supported platforms: 8192 (on NT/2K/XP).
  3903. lt_cv_sys_max_cmd_len=8192;
  3904. ;;
  3905. mint*)
  3906. # On MiNT this can take a long time and run out of memory.
  3907. lt_cv_sys_max_cmd_len=8192;
  3908. ;;
  3909. amigaos*)
  3910. # On AmigaOS with pdksh, this test takes hours, literally.
  3911. # So we just punt and use a minimum line length of 8192.
  3912. lt_cv_sys_max_cmd_len=8192;
  3913. ;;
  3914. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3915. # This has been around since 386BSD, at least. Likely further.
  3916. if test -x /sbin/sysctl; then
  3917. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3918. elif test -x /usr/sbin/sysctl; then
  3919. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3920. else
  3921. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3922. fi
  3923. # And add a safety zone
  3924. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3925. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3926. ;;
  3927. interix*)
  3928. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3929. lt_cv_sys_max_cmd_len=196608
  3930. ;;
  3931. os2*)
  3932. # The test takes a long time on OS/2.
  3933. lt_cv_sys_max_cmd_len=8192
  3934. ;;
  3935. osf*)
  3936. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3937. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3938. # nice to cause kernel panics so lets avoid the loop below.
  3939. # First set a reasonable default.
  3940. lt_cv_sys_max_cmd_len=16384
  3941. #
  3942. if test -x /sbin/sysconfig; then
  3943. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3944. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3945. esac
  3946. fi
  3947. ;;
  3948. sco3.2v5*)
  3949. lt_cv_sys_max_cmd_len=102400
  3950. ;;
  3951. sysv5* | sco5v6* | sysv4.2uw2*)
  3952. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3953. if test -n "$kargmax"; then
  3954. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3955. else
  3956. lt_cv_sys_max_cmd_len=32768
  3957. fi
  3958. ;;
  3959. *)
  3960. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3961. if test -n "$lt_cv_sys_max_cmd_len"; then
  3962. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3963. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3964. else
  3965. # Make teststring a little bigger before we do anything with it.
  3966. # a 1K string should be a reasonable start.
  3967. for i in 1 2 3 4 5 6 7 8 ; do
  3968. teststring=$teststring$teststring
  3969. done
  3970. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3971. # If test is not a shell built-in, we'll probably end up computing a
  3972. # maximum length that is only half of the actual maximum length, but
  3973. # we can't tell.
  3974. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3975. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3976. test $i != 17 # 1/2 MB should be enough
  3977. do
  3978. i=`expr $i + 1`
  3979. teststring=$teststring$teststring
  3980. done
  3981. # Only check the string length outside the loop.
  3982. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3983. teststring=
  3984. # Add a significant safety factor because C++ compilers can tack on
  3985. # massive amounts of additional arguments before passing them to the
  3986. # linker. It appears as though 1/2 is a usable value.
  3987. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3988. fi
  3989. ;;
  3990. esac
  3991. fi
  3992. if test -n $lt_cv_sys_max_cmd_len ; then
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3994. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3995. else
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3997. $as_echo "none" >&6; }
  3998. fi
  3999. max_cmd_len=$lt_cv_sys_max_cmd_len
  4000. : ${CP="cp -f"}
  4001. : ${MV="mv -f"}
  4002. : ${RM="rm -f"}
  4003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4004. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4005. # Try some XSI features
  4006. xsi_shell=no
  4007. ( _lt_dummy="a/b/c"
  4008. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4009. = c,a/b,b/c, \
  4010. && eval 'test $(( 1 + 1 )) -eq 2 \
  4011. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4012. && xsi_shell=yes
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4014. $as_echo "$xsi_shell" >&6; }
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4016. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4017. lt_shell_append=no
  4018. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4019. >/dev/null 2>&1 \
  4020. && lt_shell_append=yes
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4022. $as_echo "$lt_shell_append" >&6; }
  4023. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4024. lt_unset=unset
  4025. else
  4026. lt_unset=false
  4027. fi
  4028. # test EBCDIC or ASCII
  4029. case `echo X|tr X '\101'` in
  4030. A) # ASCII based system
  4031. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4032. lt_SP2NL='tr \040 \012'
  4033. lt_NL2SP='tr \015\012 \040\040'
  4034. ;;
  4035. *) # EBCDIC based system
  4036. lt_SP2NL='tr \100 \n'
  4037. lt_NL2SP='tr \r\n \100\100'
  4038. ;;
  4039. esac
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4041. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4042. if ${lt_cv_to_host_file_cmd+:} false; then :
  4043. $as_echo_n "(cached) " >&6
  4044. else
  4045. case $host in
  4046. *-*-mingw* )
  4047. case $build in
  4048. *-*-mingw* ) # actually msys
  4049. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4050. ;;
  4051. *-*-cygwin* )
  4052. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4053. ;;
  4054. * ) # otherwise, assume *nix
  4055. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4056. ;;
  4057. esac
  4058. ;;
  4059. *-*-cygwin* )
  4060. case $build in
  4061. *-*-mingw* ) # actually msys
  4062. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4063. ;;
  4064. *-*-cygwin* )
  4065. lt_cv_to_host_file_cmd=func_convert_file_noop
  4066. ;;
  4067. * ) # otherwise, assume *nix
  4068. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4069. ;;
  4070. esac
  4071. ;;
  4072. * ) # unhandled hosts (and "normal" native builds)
  4073. lt_cv_to_host_file_cmd=func_convert_file_noop
  4074. ;;
  4075. esac
  4076. fi
  4077. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4079. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4081. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4082. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4083. $as_echo_n "(cached) " >&6
  4084. else
  4085. #assume ordinary cross tools, or native build.
  4086. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4087. case $host in
  4088. *-*-mingw* )
  4089. case $build in
  4090. *-*-mingw* ) # actually msys
  4091. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4092. ;;
  4093. esac
  4094. ;;
  4095. esac
  4096. fi
  4097. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4099. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4101. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4102. if ${lt_cv_ld_reload_flag+:} false; then :
  4103. $as_echo_n "(cached) " >&6
  4104. else
  4105. lt_cv_ld_reload_flag='-r'
  4106. fi
  4107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4108. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4109. reload_flag=$lt_cv_ld_reload_flag
  4110. case $reload_flag in
  4111. "" | " "*) ;;
  4112. *) reload_flag=" $reload_flag" ;;
  4113. esac
  4114. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4115. case $host_os in
  4116. cygwin* | mingw* | pw32* | cegcc*)
  4117. if test "$GCC" != yes; then
  4118. reload_cmds=false
  4119. fi
  4120. ;;
  4121. darwin*)
  4122. if test "$GCC" = yes; then
  4123. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4124. else
  4125. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4126. fi
  4127. ;;
  4128. esac
  4129. if test -n "$ac_tool_prefix"; then
  4130. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4131. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4133. $as_echo_n "checking for $ac_word... " >&6; }
  4134. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4135. $as_echo_n "(cached) " >&6
  4136. else
  4137. if test -n "$OBJDUMP"; then
  4138. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4139. else
  4140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4141. for as_dir in $PATH
  4142. do
  4143. IFS=$as_save_IFS
  4144. test -z "$as_dir" && as_dir=.
  4145. for ac_exec_ext in '' $ac_executable_extensions; do
  4146. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4147. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4148. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4149. break 2
  4150. fi
  4151. done
  4152. done
  4153. IFS=$as_save_IFS
  4154. fi
  4155. fi
  4156. OBJDUMP=$ac_cv_prog_OBJDUMP
  4157. if test -n "$OBJDUMP"; then
  4158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4159. $as_echo "$OBJDUMP" >&6; }
  4160. else
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4162. $as_echo "no" >&6; }
  4163. fi
  4164. fi
  4165. if test -z "$ac_cv_prog_OBJDUMP"; then
  4166. ac_ct_OBJDUMP=$OBJDUMP
  4167. # Extract the first word of "objdump", so it can be a program name with args.
  4168. set dummy objdump; ac_word=$2
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4170. $as_echo_n "checking for $ac_word... " >&6; }
  4171. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4172. $as_echo_n "(cached) " >&6
  4173. else
  4174. if test -n "$ac_ct_OBJDUMP"; then
  4175. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4176. else
  4177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4178. for as_dir in $PATH
  4179. do
  4180. IFS=$as_save_IFS
  4181. test -z "$as_dir" && as_dir=.
  4182. for ac_exec_ext in '' $ac_executable_extensions; do
  4183. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4184. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4185. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4186. break 2
  4187. fi
  4188. done
  4189. done
  4190. IFS=$as_save_IFS
  4191. fi
  4192. fi
  4193. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4194. if test -n "$ac_ct_OBJDUMP"; then
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4196. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4197. else
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4199. $as_echo "no" >&6; }
  4200. fi
  4201. if test "x$ac_ct_OBJDUMP" = x; then
  4202. OBJDUMP="false"
  4203. else
  4204. case $cross_compiling:$ac_tool_warned in
  4205. yes:)
  4206. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4207. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4208. ac_tool_warned=yes ;;
  4209. esac
  4210. OBJDUMP=$ac_ct_OBJDUMP
  4211. fi
  4212. else
  4213. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4214. fi
  4215. test -z "$OBJDUMP" && OBJDUMP=objdump
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4217. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4218. if ${lt_cv_deplibs_check_method+:} false; then :
  4219. $as_echo_n "(cached) " >&6
  4220. else
  4221. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4222. lt_cv_file_magic_test_file=
  4223. lt_cv_deplibs_check_method='unknown'
  4224. # Need to set the preceding variable on all platforms that support
  4225. # interlibrary dependencies.
  4226. # 'none' -- dependencies not supported.
  4227. # `unknown' -- same as none, but documents that we really don't know.
  4228. # 'pass_all' -- all dependencies passed with no checks.
  4229. # 'test_compile' -- check by making test program.
  4230. # 'file_magic [[regex]]' -- check by looking for files in library path
  4231. # which responds to the $file_magic_cmd with a given extended regex.
  4232. # If you have `file' or equivalent on your system and you're not sure
  4233. # whether `pass_all' will *always* work, you probably want this one.
  4234. case $host_os in
  4235. aix[4-9]*)
  4236. lt_cv_deplibs_check_method=pass_all
  4237. ;;
  4238. beos*)
  4239. lt_cv_deplibs_check_method=pass_all
  4240. ;;
  4241. bsdi[45]*)
  4242. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4243. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4244. lt_cv_file_magic_test_file=/shlib/libc.so
  4245. ;;
  4246. cygwin*)
  4247. # func_win32_libid is a shell function defined in ltmain.sh
  4248. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4249. lt_cv_file_magic_cmd='func_win32_libid'
  4250. lt_cv_deplibs_check_method=pass_all
  4251. ;;
  4252. mingw* | pw32*)
  4253. # Base MSYS/MinGW do not provide the 'file' command needed by
  4254. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4255. # unless we find 'file', for example because we are cross-compiling.
  4256. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4257. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4258. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4259. lt_cv_file_magic_cmd='func_win32_libid'
  4260. else
  4261. # Keep this pattern in sync with the one in func_win32_libid.
  4262. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4263. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4264. fi
  4265. lt_cv_deplibs_check_method=pass_all
  4266. ;;
  4267. cegcc*)
  4268. # use the weaker test based on 'objdump'. See mingw*.
  4269. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4270. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4271. ;;
  4272. darwin* | rhapsody*)
  4273. lt_cv_deplibs_check_method=pass_all
  4274. ;;
  4275. freebsd* | dragonfly*)
  4276. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4277. case $host_cpu in
  4278. i*86 )
  4279. # Not sure whether the presence of OpenBSD here was a mistake.
  4280. # Let's accept both of them until this is cleared up.
  4281. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4282. lt_cv_file_magic_cmd=/usr/bin/file
  4283. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4284. ;;
  4285. esac
  4286. else
  4287. lt_cv_deplibs_check_method=pass_all
  4288. fi
  4289. ;;
  4290. gnu*)
  4291. lt_cv_deplibs_check_method=pass_all
  4292. ;;
  4293. haiku*)
  4294. lt_cv_deplibs_check_method=pass_all
  4295. ;;
  4296. hpux10.20* | hpux11*)
  4297. lt_cv_file_magic_cmd=/usr/bin/file
  4298. case $host_cpu in
  4299. ia64*)
  4300. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4301. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4302. ;;
  4303. hppa*64*)
  4304. 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]'
  4305. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4306. ;;
  4307. *)
  4308. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4309. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4310. ;;
  4311. esac
  4312. ;;
  4313. interix[3-9]*)
  4314. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4315. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4316. ;;
  4317. irix5* | irix6* | nonstopux*)
  4318. case $LD in
  4319. *-32|*"-32 ") libmagic=32-bit;;
  4320. *-n32|*"-n32 ") libmagic=N32;;
  4321. *-64|*"-64 ") libmagic=64-bit;;
  4322. *) libmagic=never-match;;
  4323. esac
  4324. lt_cv_deplibs_check_method=pass_all
  4325. ;;
  4326. # This must be glibc/ELF.
  4327. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4328. lt_cv_deplibs_check_method=pass_all
  4329. ;;
  4330. netbsd*)
  4331. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4332. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4333. else
  4334. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4335. fi
  4336. ;;
  4337. newos6*)
  4338. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4339. lt_cv_file_magic_cmd=/usr/bin/file
  4340. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4341. ;;
  4342. *nto* | *qnx*)
  4343. lt_cv_deplibs_check_method=pass_all
  4344. ;;
  4345. openbsd*)
  4346. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4347. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4348. else
  4349. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4350. fi
  4351. ;;
  4352. osf3* | osf4* | osf5*)
  4353. lt_cv_deplibs_check_method=pass_all
  4354. ;;
  4355. rdos*)
  4356. lt_cv_deplibs_check_method=pass_all
  4357. ;;
  4358. solaris*)
  4359. lt_cv_deplibs_check_method=pass_all
  4360. ;;
  4361. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4362. lt_cv_deplibs_check_method=pass_all
  4363. ;;
  4364. sysv4 | sysv4.3*)
  4365. case $host_vendor in
  4366. motorola)
  4367. 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]'
  4368. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4369. ;;
  4370. ncr)
  4371. lt_cv_deplibs_check_method=pass_all
  4372. ;;
  4373. sequent)
  4374. lt_cv_file_magic_cmd='/bin/file'
  4375. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4376. ;;
  4377. sni)
  4378. lt_cv_file_magic_cmd='/bin/file'
  4379. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4380. lt_cv_file_magic_test_file=/lib/libc.so
  4381. ;;
  4382. siemens)
  4383. lt_cv_deplibs_check_method=pass_all
  4384. ;;
  4385. pc)
  4386. lt_cv_deplibs_check_method=pass_all
  4387. ;;
  4388. esac
  4389. ;;
  4390. tpf*)
  4391. lt_cv_deplibs_check_method=pass_all
  4392. ;;
  4393. esac
  4394. fi
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4396. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4397. file_magic_glob=
  4398. want_nocaseglob=no
  4399. if test "$build" = "$host"; then
  4400. case $host_os in
  4401. mingw* | pw32*)
  4402. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4403. want_nocaseglob=yes
  4404. else
  4405. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4406. fi
  4407. ;;
  4408. esac
  4409. fi
  4410. file_magic_cmd=$lt_cv_file_magic_cmd
  4411. deplibs_check_method=$lt_cv_deplibs_check_method
  4412. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4413. if test -n "$ac_tool_prefix"; then
  4414. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4415. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4417. $as_echo_n "checking for $ac_word... " >&6; }
  4418. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4419. $as_echo_n "(cached) " >&6
  4420. else
  4421. if test -n "$DLLTOOL"; then
  4422. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4423. else
  4424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4425. for as_dir in $PATH
  4426. do
  4427. IFS=$as_save_IFS
  4428. test -z "$as_dir" && as_dir=.
  4429. for ac_exec_ext in '' $ac_executable_extensions; do
  4430. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4431. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4432. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4433. break 2
  4434. fi
  4435. done
  4436. done
  4437. IFS=$as_save_IFS
  4438. fi
  4439. fi
  4440. DLLTOOL=$ac_cv_prog_DLLTOOL
  4441. if test -n "$DLLTOOL"; then
  4442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4443. $as_echo "$DLLTOOL" >&6; }
  4444. else
  4445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4446. $as_echo "no" >&6; }
  4447. fi
  4448. fi
  4449. if test -z "$ac_cv_prog_DLLTOOL"; then
  4450. ac_ct_DLLTOOL=$DLLTOOL
  4451. # Extract the first word of "dlltool", so it can be a program name with args.
  4452. set dummy dlltool; ac_word=$2
  4453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4454. $as_echo_n "checking for $ac_word... " >&6; }
  4455. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4456. $as_echo_n "(cached) " >&6
  4457. else
  4458. if test -n "$ac_ct_DLLTOOL"; then
  4459. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4460. else
  4461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4462. for as_dir in $PATH
  4463. do
  4464. IFS=$as_save_IFS
  4465. test -z "$as_dir" && as_dir=.
  4466. for ac_exec_ext in '' $ac_executable_extensions; do
  4467. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4468. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4469. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4470. break 2
  4471. fi
  4472. done
  4473. done
  4474. IFS=$as_save_IFS
  4475. fi
  4476. fi
  4477. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4478. if test -n "$ac_ct_DLLTOOL"; then
  4479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4480. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4481. else
  4482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4483. $as_echo "no" >&6; }
  4484. fi
  4485. if test "x$ac_ct_DLLTOOL" = x; then
  4486. DLLTOOL="false"
  4487. else
  4488. case $cross_compiling:$ac_tool_warned in
  4489. yes:)
  4490. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4491. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4492. ac_tool_warned=yes ;;
  4493. esac
  4494. DLLTOOL=$ac_ct_DLLTOOL
  4495. fi
  4496. else
  4497. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4498. fi
  4499. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4501. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4502. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4503. $as_echo_n "(cached) " >&6
  4504. else
  4505. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4506. case $host_os in
  4507. cygwin* | mingw* | pw32* | cegcc*)
  4508. # two different shell functions defined in ltmain.sh
  4509. # decide which to use based on capabilities of $DLLTOOL
  4510. case `$DLLTOOL --help 2>&1` in
  4511. *--identify-strict*)
  4512. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4513. ;;
  4514. *)
  4515. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4516. ;;
  4517. esac
  4518. ;;
  4519. *)
  4520. # fallback: assume linklib IS sharedlib
  4521. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4522. ;;
  4523. esac
  4524. fi
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4526. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4527. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4528. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4529. if test -n "$ac_tool_prefix"; then
  4530. for ac_prog in ar
  4531. do
  4532. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4533. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4535. $as_echo_n "checking for $ac_word... " >&6; }
  4536. if ${ac_cv_prog_AR+:} false; then :
  4537. $as_echo_n "(cached) " >&6
  4538. else
  4539. if test -n "$AR"; then
  4540. ac_cv_prog_AR="$AR" # Let the user override the test.
  4541. else
  4542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4543. for as_dir in $PATH
  4544. do
  4545. IFS=$as_save_IFS
  4546. test -z "$as_dir" && as_dir=.
  4547. for ac_exec_ext in '' $ac_executable_extensions; do
  4548. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4549. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4550. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4551. break 2
  4552. fi
  4553. done
  4554. done
  4555. IFS=$as_save_IFS
  4556. fi
  4557. fi
  4558. AR=$ac_cv_prog_AR
  4559. if test -n "$AR"; then
  4560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4561. $as_echo "$AR" >&6; }
  4562. else
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4564. $as_echo "no" >&6; }
  4565. fi
  4566. test -n "$AR" && break
  4567. done
  4568. fi
  4569. if test -z "$AR"; then
  4570. ac_ct_AR=$AR
  4571. for ac_prog in ar
  4572. do
  4573. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4574. set dummy $ac_prog; ac_word=$2
  4575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4576. $as_echo_n "checking for $ac_word... " >&6; }
  4577. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4578. $as_echo_n "(cached) " >&6
  4579. else
  4580. if test -n "$ac_ct_AR"; then
  4581. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4582. else
  4583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4584. for as_dir in $PATH
  4585. do
  4586. IFS=$as_save_IFS
  4587. test -z "$as_dir" && as_dir=.
  4588. for ac_exec_ext in '' $ac_executable_extensions; do
  4589. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4590. ac_cv_prog_ac_ct_AR="$ac_prog"
  4591. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4592. break 2
  4593. fi
  4594. done
  4595. done
  4596. IFS=$as_save_IFS
  4597. fi
  4598. fi
  4599. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4600. if test -n "$ac_ct_AR"; then
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4602. $as_echo "$ac_ct_AR" >&6; }
  4603. else
  4604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4605. $as_echo "no" >&6; }
  4606. fi
  4607. test -n "$ac_ct_AR" && break
  4608. done
  4609. if test "x$ac_ct_AR" = x; then
  4610. AR="false"
  4611. else
  4612. case $cross_compiling:$ac_tool_warned in
  4613. yes:)
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4615. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4616. ac_tool_warned=yes ;;
  4617. esac
  4618. AR=$ac_ct_AR
  4619. fi
  4620. fi
  4621. : ${AR=ar}
  4622. : ${AR_FLAGS=cru}
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4624. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4625. if ${lt_cv_ar_at_file+:} false; then :
  4626. $as_echo_n "(cached) " >&6
  4627. else
  4628. lt_cv_ar_at_file=no
  4629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4630. /* end confdefs.h. */
  4631. int
  4632. main ()
  4633. {
  4634. ;
  4635. return 0;
  4636. }
  4637. _ACEOF
  4638. if ac_fn_c_try_compile "$LINENO"; then :
  4639. echo conftest.$ac_objext > conftest.lst
  4640. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4641. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4642. (eval $lt_ar_try) 2>&5
  4643. ac_status=$?
  4644. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4645. test $ac_status = 0; }
  4646. if test "$ac_status" -eq 0; then
  4647. # Ensure the archiver fails upon bogus file names.
  4648. rm -f conftest.$ac_objext libconftest.a
  4649. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4650. (eval $lt_ar_try) 2>&5
  4651. ac_status=$?
  4652. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4653. test $ac_status = 0; }
  4654. if test "$ac_status" -ne 0; then
  4655. lt_cv_ar_at_file=@
  4656. fi
  4657. fi
  4658. rm -f conftest.* libconftest.a
  4659. fi
  4660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4661. fi
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4663. $as_echo "$lt_cv_ar_at_file" >&6; }
  4664. if test "x$lt_cv_ar_at_file" = xno; then
  4665. archiver_list_spec=
  4666. else
  4667. archiver_list_spec=$lt_cv_ar_at_file
  4668. fi
  4669. if test -n "$ac_tool_prefix"; then
  4670. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4671. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4673. $as_echo_n "checking for $ac_word... " >&6; }
  4674. if ${ac_cv_prog_STRIP+:} false; then :
  4675. $as_echo_n "(cached) " >&6
  4676. else
  4677. if test -n "$STRIP"; then
  4678. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4679. else
  4680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4681. for as_dir in $PATH
  4682. do
  4683. IFS=$as_save_IFS
  4684. test -z "$as_dir" && as_dir=.
  4685. for ac_exec_ext in '' $ac_executable_extensions; do
  4686. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4687. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4688. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4689. break 2
  4690. fi
  4691. done
  4692. done
  4693. IFS=$as_save_IFS
  4694. fi
  4695. fi
  4696. STRIP=$ac_cv_prog_STRIP
  4697. if test -n "$STRIP"; then
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4699. $as_echo "$STRIP" >&6; }
  4700. else
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4702. $as_echo "no" >&6; }
  4703. fi
  4704. fi
  4705. if test -z "$ac_cv_prog_STRIP"; then
  4706. ac_ct_STRIP=$STRIP
  4707. # Extract the first word of "strip", so it can be a program name with args.
  4708. set dummy strip; ac_word=$2
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4710. $as_echo_n "checking for $ac_word... " >&6; }
  4711. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4712. $as_echo_n "(cached) " >&6
  4713. else
  4714. if test -n "$ac_ct_STRIP"; then
  4715. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4716. else
  4717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4718. for as_dir in $PATH
  4719. do
  4720. IFS=$as_save_IFS
  4721. test -z "$as_dir" && as_dir=.
  4722. for ac_exec_ext in '' $ac_executable_extensions; do
  4723. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4724. ac_cv_prog_ac_ct_STRIP="strip"
  4725. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4726. break 2
  4727. fi
  4728. done
  4729. done
  4730. IFS=$as_save_IFS
  4731. fi
  4732. fi
  4733. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4734. if test -n "$ac_ct_STRIP"; then
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4736. $as_echo "$ac_ct_STRIP" >&6; }
  4737. else
  4738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4739. $as_echo "no" >&6; }
  4740. fi
  4741. if test "x$ac_ct_STRIP" = x; then
  4742. STRIP=":"
  4743. else
  4744. case $cross_compiling:$ac_tool_warned in
  4745. yes:)
  4746. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4747. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4748. ac_tool_warned=yes ;;
  4749. esac
  4750. STRIP=$ac_ct_STRIP
  4751. fi
  4752. else
  4753. STRIP="$ac_cv_prog_STRIP"
  4754. fi
  4755. test -z "$STRIP" && STRIP=:
  4756. if test -n "$ac_tool_prefix"; then
  4757. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4758. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4760. $as_echo_n "checking for $ac_word... " >&6; }
  4761. if ${ac_cv_prog_RANLIB+:} false; then :
  4762. $as_echo_n "(cached) " >&6
  4763. else
  4764. if test -n "$RANLIB"; then
  4765. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4766. else
  4767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4768. for as_dir in $PATH
  4769. do
  4770. IFS=$as_save_IFS
  4771. test -z "$as_dir" && as_dir=.
  4772. for ac_exec_ext in '' $ac_executable_extensions; do
  4773. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4774. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4776. break 2
  4777. fi
  4778. done
  4779. done
  4780. IFS=$as_save_IFS
  4781. fi
  4782. fi
  4783. RANLIB=$ac_cv_prog_RANLIB
  4784. if test -n "$RANLIB"; then
  4785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4786. $as_echo "$RANLIB" >&6; }
  4787. else
  4788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4789. $as_echo "no" >&6; }
  4790. fi
  4791. fi
  4792. if test -z "$ac_cv_prog_RANLIB"; then
  4793. ac_ct_RANLIB=$RANLIB
  4794. # Extract the first word of "ranlib", so it can be a program name with args.
  4795. set dummy ranlib; ac_word=$2
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4797. $as_echo_n "checking for $ac_word... " >&6; }
  4798. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4799. $as_echo_n "(cached) " >&6
  4800. else
  4801. if test -n "$ac_ct_RANLIB"; then
  4802. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4803. else
  4804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4805. for as_dir in $PATH
  4806. do
  4807. IFS=$as_save_IFS
  4808. test -z "$as_dir" && as_dir=.
  4809. for ac_exec_ext in '' $ac_executable_extensions; do
  4810. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4811. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4812. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4813. break 2
  4814. fi
  4815. done
  4816. done
  4817. IFS=$as_save_IFS
  4818. fi
  4819. fi
  4820. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4821. if test -n "$ac_ct_RANLIB"; then
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4823. $as_echo "$ac_ct_RANLIB" >&6; }
  4824. else
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4826. $as_echo "no" >&6; }
  4827. fi
  4828. if test "x$ac_ct_RANLIB" = x; then
  4829. RANLIB=":"
  4830. else
  4831. case $cross_compiling:$ac_tool_warned in
  4832. yes:)
  4833. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4834. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4835. ac_tool_warned=yes ;;
  4836. esac
  4837. RANLIB=$ac_ct_RANLIB
  4838. fi
  4839. else
  4840. RANLIB="$ac_cv_prog_RANLIB"
  4841. fi
  4842. test -z "$RANLIB" && RANLIB=:
  4843. # Determine commands to create old-style static archives.
  4844. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4845. old_postinstall_cmds='chmod 644 $oldlib'
  4846. old_postuninstall_cmds=
  4847. if test -n "$RANLIB"; then
  4848. case $host_os in
  4849. openbsd*)
  4850. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4851. ;;
  4852. *)
  4853. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4854. ;;
  4855. esac
  4856. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4857. fi
  4858. case $host_os in
  4859. darwin*)
  4860. lock_old_archive_extraction=yes ;;
  4861. *)
  4862. lock_old_archive_extraction=no ;;
  4863. esac
  4864. for ac_prog in gawk mawk nawk awk
  4865. do
  4866. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4867. set dummy $ac_prog; ac_word=$2
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4869. $as_echo_n "checking for $ac_word... " >&6; }
  4870. if ${ac_cv_prog_AWK+:} false; then :
  4871. $as_echo_n "(cached) " >&6
  4872. else
  4873. if test -n "$AWK"; then
  4874. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4875. else
  4876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4877. for as_dir in $PATH
  4878. do
  4879. IFS=$as_save_IFS
  4880. test -z "$as_dir" && as_dir=.
  4881. for ac_exec_ext in '' $ac_executable_extensions; do
  4882. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4883. ac_cv_prog_AWK="$ac_prog"
  4884. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4885. break 2
  4886. fi
  4887. done
  4888. done
  4889. IFS=$as_save_IFS
  4890. fi
  4891. fi
  4892. AWK=$ac_cv_prog_AWK
  4893. if test -n "$AWK"; then
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4895. $as_echo "$AWK" >&6; }
  4896. else
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4898. $as_echo "no" >&6; }
  4899. fi
  4900. test -n "$AWK" && break
  4901. done
  4902. # If no C compiler was specified, use CC.
  4903. LTCC=${LTCC-"$CC"}
  4904. # If no C compiler flags were specified, use CFLAGS.
  4905. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4906. # Allow CC to be a program name with arguments.
  4907. compiler=$CC
  4908. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4910. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4911. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4912. $as_echo_n "(cached) " >&6
  4913. else
  4914. # These are sane defaults that work on at least a few old systems.
  4915. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4916. # Character class describing NM global symbol codes.
  4917. symcode='[BCDEGRST]'
  4918. # Regexp to match symbols that can be accessed directly from C.
  4919. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4920. # Define system-specific variables.
  4921. case $host_os in
  4922. aix*)
  4923. symcode='[BCDT]'
  4924. ;;
  4925. cygwin* | mingw* | pw32* | cegcc*)
  4926. symcode='[ABCDGISTW]'
  4927. ;;
  4928. hpux*)
  4929. if test "$host_cpu" = ia64; then
  4930. symcode='[ABCDEGRST]'
  4931. fi
  4932. ;;
  4933. irix* | nonstopux*)
  4934. symcode='[BCDEGRST]'
  4935. ;;
  4936. osf*)
  4937. symcode='[BCDEGQRST]'
  4938. ;;
  4939. solaris*)
  4940. symcode='[BDRT]'
  4941. ;;
  4942. sco3.2v5*)
  4943. symcode='[DT]'
  4944. ;;
  4945. sysv4.2uw2*)
  4946. symcode='[DT]'
  4947. ;;
  4948. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4949. symcode='[ABDT]'
  4950. ;;
  4951. sysv4)
  4952. symcode='[DFNSTU]'
  4953. ;;
  4954. esac
  4955. # If we're using GNU nm, then use its standard symbol codes.
  4956. case `$NM -V 2>&1` in
  4957. *GNU* | *'with BFD'*)
  4958. symcode='[ABCDGIRSTW]' ;;
  4959. esac
  4960. # Transform an extracted symbol line into a proper C declaration.
  4961. # Some systems (esp. on ia64) link data and code symbols differently,
  4962. # so use this general approach.
  4963. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4964. # Transform an extracted symbol line into symbol name and symbol address
  4965. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4966. 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'"
  4967. # Handle CRLF in mingw tool chain
  4968. opt_cr=
  4969. case $build_os in
  4970. mingw*)
  4971. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4972. ;;
  4973. esac
  4974. # Try without a prefix underscore, then with it.
  4975. for ac_symprfx in "" "_"; do
  4976. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4977. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4978. # Write the raw and C identifiers.
  4979. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4980. # Fake it for dumpbin and say T for any non-static function
  4981. # and D for any global variable.
  4982. # Also find C++ and __fastcall symbols from MSVC++,
  4983. # which start with @ or ?.
  4984. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4985. " {last_section=section; section=\$ 3};"\
  4986. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4987. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4988. " \$ 0!~/External *\|/{next};"\
  4989. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4990. " {if(hide[section]) next};"\
  4991. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4992. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4993. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4994. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4995. " ' prfx=^$ac_symprfx"
  4996. else
  4997. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4998. fi
  4999. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5000. # Check to see that the pipe works correctly.
  5001. pipe_works=no
  5002. rm -f conftest*
  5003. cat > conftest.$ac_ext <<_LT_EOF
  5004. #ifdef __cplusplus
  5005. extern "C" {
  5006. #endif
  5007. char nm_test_var;
  5008. void nm_test_func(void);
  5009. void nm_test_func(void){}
  5010. #ifdef __cplusplus
  5011. }
  5012. #endif
  5013. int main(){nm_test_var='a';nm_test_func();return(0);}
  5014. _LT_EOF
  5015. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5016. (eval $ac_compile) 2>&5
  5017. ac_status=$?
  5018. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5019. test $ac_status = 0; }; then
  5020. # Now try to grab the symbols.
  5021. nlist=conftest.nm
  5022. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5023. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5024. ac_status=$?
  5025. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5026. test $ac_status = 0; } && test -s "$nlist"; then
  5027. # Try sorting and uniquifying the output.
  5028. if sort "$nlist" | uniq > "$nlist"T; then
  5029. mv -f "$nlist"T "$nlist"
  5030. else
  5031. rm -f "$nlist"T
  5032. fi
  5033. # Make sure that we snagged all the symbols we need.
  5034. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5035. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5036. cat <<_LT_EOF > conftest.$ac_ext
  5037. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5038. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5039. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5040. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5041. # define LT_DLSYM_CONST
  5042. #elif defined(__osf__)
  5043. /* This system does not cope well with relocations in const data. */
  5044. # define LT_DLSYM_CONST
  5045. #else
  5046. # define LT_DLSYM_CONST const
  5047. #endif
  5048. #ifdef __cplusplus
  5049. extern "C" {
  5050. #endif
  5051. _LT_EOF
  5052. # Now generate the symbol file.
  5053. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5054. cat <<_LT_EOF >> conftest.$ac_ext
  5055. /* The mapping between symbol names and symbols. */
  5056. LT_DLSYM_CONST struct {
  5057. const char *name;
  5058. void *address;
  5059. }
  5060. lt__PROGRAM__LTX_preloaded_symbols[] =
  5061. {
  5062. { "@PROGRAM@", (void *) 0 },
  5063. _LT_EOF
  5064. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5065. cat <<\_LT_EOF >> conftest.$ac_ext
  5066. {0, (void *) 0}
  5067. };
  5068. /* This works around a problem in FreeBSD linker */
  5069. #ifdef FREEBSD_WORKAROUND
  5070. static const void *lt_preloaded_setup() {
  5071. return lt__PROGRAM__LTX_preloaded_symbols;
  5072. }
  5073. #endif
  5074. #ifdef __cplusplus
  5075. }
  5076. #endif
  5077. _LT_EOF
  5078. # Now try linking the two files.
  5079. mv conftest.$ac_objext conftstm.$ac_objext
  5080. lt_globsym_save_LIBS=$LIBS
  5081. lt_globsym_save_CFLAGS=$CFLAGS
  5082. LIBS="conftstm.$ac_objext"
  5083. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5084. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5085. (eval $ac_link) 2>&5
  5086. ac_status=$?
  5087. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5088. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5089. pipe_works=yes
  5090. fi
  5091. LIBS=$lt_globsym_save_LIBS
  5092. CFLAGS=$lt_globsym_save_CFLAGS
  5093. else
  5094. echo "cannot find nm_test_func in $nlist" >&5
  5095. fi
  5096. else
  5097. echo "cannot find nm_test_var in $nlist" >&5
  5098. fi
  5099. else
  5100. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5101. fi
  5102. else
  5103. echo "$progname: failed program was:" >&5
  5104. cat conftest.$ac_ext >&5
  5105. fi
  5106. rm -rf conftest* conftst*
  5107. # Do not use the global_symbol_pipe unless it works.
  5108. if test "$pipe_works" = yes; then
  5109. break
  5110. else
  5111. lt_cv_sys_global_symbol_pipe=
  5112. fi
  5113. done
  5114. fi
  5115. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5116. lt_cv_sys_global_symbol_to_cdecl=
  5117. fi
  5118. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5120. $as_echo "failed" >&6; }
  5121. else
  5122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5123. $as_echo "ok" >&6; }
  5124. fi
  5125. # Response file support.
  5126. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5127. nm_file_list_spec='@'
  5128. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5129. nm_file_list_spec='@'
  5130. fi
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5132. $as_echo_n "checking for sysroot... " >&6; }
  5133. # Check whether --with-sysroot was given.
  5134. if test "${with_sysroot+set}" = set; then :
  5135. withval=$with_sysroot;
  5136. else
  5137. with_sysroot=no
  5138. fi
  5139. lt_sysroot=
  5140. case ${with_sysroot} in #(
  5141. yes)
  5142. if test "$GCC" = yes; then
  5143. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5144. fi
  5145. ;; #(
  5146. /*)
  5147. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5148. ;; #(
  5149. no|'')
  5150. ;; #(
  5151. *)
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5153. $as_echo "${with_sysroot}" >&6; }
  5154. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5155. ;;
  5156. esac
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5158. $as_echo "${lt_sysroot:-no}" >&6; }
  5159. # Check whether --enable-libtool-lock was given.
  5160. if test "${enable_libtool_lock+set}" = set; then :
  5161. enableval=$enable_libtool_lock;
  5162. fi
  5163. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5164. # Some flags need to be propagated to the compiler or linker for good
  5165. # libtool support.
  5166. case $host in
  5167. ia64-*-hpux*)
  5168. # Find out which ABI we are using.
  5169. echo 'int i;' > conftest.$ac_ext
  5170. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5171. (eval $ac_compile) 2>&5
  5172. ac_status=$?
  5173. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5174. test $ac_status = 0; }; then
  5175. case `/usr/bin/file conftest.$ac_objext` in
  5176. *ELF-32*)
  5177. HPUX_IA64_MODE="32"
  5178. ;;
  5179. *ELF-64*)
  5180. HPUX_IA64_MODE="64"
  5181. ;;
  5182. esac
  5183. fi
  5184. rm -rf conftest*
  5185. ;;
  5186. *-*-irix6*)
  5187. # Find out which ABI we are using.
  5188. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5189. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5190. (eval $ac_compile) 2>&5
  5191. ac_status=$?
  5192. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5193. test $ac_status = 0; }; then
  5194. if test "$lt_cv_prog_gnu_ld" = yes; then
  5195. case `/usr/bin/file conftest.$ac_objext` in
  5196. *32-bit*)
  5197. LD="${LD-ld} -melf32bsmip"
  5198. ;;
  5199. *N32*)
  5200. LD="${LD-ld} -melf32bmipn32"
  5201. ;;
  5202. *64-bit*)
  5203. LD="${LD-ld} -melf64bmip"
  5204. ;;
  5205. esac
  5206. else
  5207. case `/usr/bin/file conftest.$ac_objext` in
  5208. *32-bit*)
  5209. LD="${LD-ld} -32"
  5210. ;;
  5211. *N32*)
  5212. LD="${LD-ld} -n32"
  5213. ;;
  5214. *64-bit*)
  5215. LD="${LD-ld} -64"
  5216. ;;
  5217. esac
  5218. fi
  5219. fi
  5220. rm -rf conftest*
  5221. ;;
  5222. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5223. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5224. # Find out which ABI we are using.
  5225. echo 'int i;' > conftest.$ac_ext
  5226. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5227. (eval $ac_compile) 2>&5
  5228. ac_status=$?
  5229. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5230. test $ac_status = 0; }; then
  5231. case `/usr/bin/file conftest.o` in
  5232. *32-bit*)
  5233. case $host in
  5234. x86_64-*kfreebsd*-gnu)
  5235. LD="${LD-ld} -m elf_i386_fbsd"
  5236. ;;
  5237. x86_64-*linux*)
  5238. LD="${LD-ld} -m elf_i386"
  5239. ;;
  5240. ppc64-*linux*|powerpc64-*linux*)
  5241. LD="${LD-ld} -m elf32ppclinux"
  5242. ;;
  5243. s390x-*linux*)
  5244. LD="${LD-ld} -m elf_s390"
  5245. ;;
  5246. sparc64-*linux*)
  5247. LD="${LD-ld} -m elf32_sparc"
  5248. ;;
  5249. esac
  5250. ;;
  5251. *64-bit*)
  5252. case $host in
  5253. x86_64-*kfreebsd*-gnu)
  5254. LD="${LD-ld} -m elf_x86_64_fbsd"
  5255. ;;
  5256. x86_64-*linux*)
  5257. LD="${LD-ld} -m elf_x86_64"
  5258. ;;
  5259. powerpc64le-*linux*)
  5260. LD="${LD-ld} -m elf64lppc"
  5261. ;;
  5262. powerpc64-*linux*)
  5263. LD="${LD-ld} -m elf64ppc"
  5264. ;;
  5265. s390*-*linux*|s390*-*tpf*)
  5266. LD="${LD-ld} -m elf64_s390"
  5267. ;;
  5268. sparc*-*linux*)
  5269. LD="${LD-ld} -m elf64_sparc"
  5270. ;;
  5271. esac
  5272. ;;
  5273. esac
  5274. fi
  5275. rm -rf conftest*
  5276. ;;
  5277. *-*-sco3.2v5*)
  5278. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5279. SAVE_CFLAGS="$CFLAGS"
  5280. CFLAGS="$CFLAGS -belf"
  5281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5282. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5283. if ${lt_cv_cc_needs_belf+:} false; then :
  5284. $as_echo_n "(cached) " >&6
  5285. else
  5286. ac_ext=c
  5287. ac_cpp='$CPP $CPPFLAGS'
  5288. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5289. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5290. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5292. /* end confdefs.h. */
  5293. int
  5294. main ()
  5295. {
  5296. ;
  5297. return 0;
  5298. }
  5299. _ACEOF
  5300. if ac_fn_c_try_link "$LINENO"; then :
  5301. lt_cv_cc_needs_belf=yes
  5302. else
  5303. lt_cv_cc_needs_belf=no
  5304. fi
  5305. rm -f core conftest.err conftest.$ac_objext \
  5306. conftest$ac_exeext conftest.$ac_ext
  5307. ac_ext=c
  5308. ac_cpp='$CPP $CPPFLAGS'
  5309. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5310. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5311. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5312. fi
  5313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5314. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5315. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5316. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5317. CFLAGS="$SAVE_CFLAGS"
  5318. fi
  5319. ;;
  5320. *-*solaris*)
  5321. # Find out which ABI we are using.
  5322. echo 'int i;' > conftest.$ac_ext
  5323. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5324. (eval $ac_compile) 2>&5
  5325. ac_status=$?
  5326. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5327. test $ac_status = 0; }; then
  5328. case `/usr/bin/file conftest.o` in
  5329. *64-bit*)
  5330. case $lt_cv_prog_gnu_ld in
  5331. yes*)
  5332. case $host in
  5333. i?86-*-solaris*)
  5334. LD="${LD-ld} -m elf_x86_64"
  5335. ;;
  5336. sparc*-*-solaris*)
  5337. LD="${LD-ld} -m elf64_sparc"
  5338. ;;
  5339. esac
  5340. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5341. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5342. LD="${LD-ld}_sol2"
  5343. fi
  5344. ;;
  5345. *)
  5346. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5347. LD="${LD-ld} -64"
  5348. fi
  5349. ;;
  5350. esac
  5351. ;;
  5352. esac
  5353. fi
  5354. rm -rf conftest*
  5355. ;;
  5356. esac
  5357. need_locks="$enable_libtool_lock"
  5358. if test -n "$ac_tool_prefix"; then
  5359. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5360. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5362. $as_echo_n "checking for $ac_word... " >&6; }
  5363. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5364. $as_echo_n "(cached) " >&6
  5365. else
  5366. if test -n "$MANIFEST_TOOL"; then
  5367. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5368. else
  5369. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5370. for as_dir in $PATH
  5371. do
  5372. IFS=$as_save_IFS
  5373. test -z "$as_dir" && as_dir=.
  5374. for ac_exec_ext in '' $ac_executable_extensions; do
  5375. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5376. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5377. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5378. break 2
  5379. fi
  5380. done
  5381. done
  5382. IFS=$as_save_IFS
  5383. fi
  5384. fi
  5385. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5386. if test -n "$MANIFEST_TOOL"; then
  5387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5388. $as_echo "$MANIFEST_TOOL" >&6; }
  5389. else
  5390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5391. $as_echo "no" >&6; }
  5392. fi
  5393. fi
  5394. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5395. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5396. # Extract the first word of "mt", so it can be a program name with args.
  5397. set dummy mt; ac_word=$2
  5398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5399. $as_echo_n "checking for $ac_word... " >&6; }
  5400. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5401. $as_echo_n "(cached) " >&6
  5402. else
  5403. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5404. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5405. else
  5406. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5407. for as_dir in $PATH
  5408. do
  5409. IFS=$as_save_IFS
  5410. test -z "$as_dir" && as_dir=.
  5411. for ac_exec_ext in '' $ac_executable_extensions; do
  5412. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5413. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5414. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5415. break 2
  5416. fi
  5417. done
  5418. done
  5419. IFS=$as_save_IFS
  5420. fi
  5421. fi
  5422. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5423. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5425. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5426. else
  5427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5428. $as_echo "no" >&6; }
  5429. fi
  5430. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5431. MANIFEST_TOOL=":"
  5432. else
  5433. case $cross_compiling:$ac_tool_warned in
  5434. yes:)
  5435. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5436. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5437. ac_tool_warned=yes ;;
  5438. esac
  5439. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5440. fi
  5441. else
  5442. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5443. fi
  5444. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5446. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5447. if ${lt_cv_path_mainfest_tool+:} false; then :
  5448. $as_echo_n "(cached) " >&6
  5449. else
  5450. lt_cv_path_mainfest_tool=no
  5451. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5452. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5453. cat conftest.err >&5
  5454. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5455. lt_cv_path_mainfest_tool=yes
  5456. fi
  5457. rm -f conftest*
  5458. fi
  5459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5460. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5461. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5462. MANIFEST_TOOL=:
  5463. fi
  5464. case $host_os in
  5465. rhapsody* | darwin*)
  5466. if test -n "$ac_tool_prefix"; then
  5467. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5468. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5470. $as_echo_n "checking for $ac_word... " >&6; }
  5471. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5472. $as_echo_n "(cached) " >&6
  5473. else
  5474. if test -n "$DSYMUTIL"; then
  5475. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5476. else
  5477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5478. for as_dir in $PATH
  5479. do
  5480. IFS=$as_save_IFS
  5481. test -z "$as_dir" && as_dir=.
  5482. for ac_exec_ext in '' $ac_executable_extensions; do
  5483. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5484. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5486. break 2
  5487. fi
  5488. done
  5489. done
  5490. IFS=$as_save_IFS
  5491. fi
  5492. fi
  5493. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5494. if test -n "$DSYMUTIL"; then
  5495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5496. $as_echo "$DSYMUTIL" >&6; }
  5497. else
  5498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5499. $as_echo "no" >&6; }
  5500. fi
  5501. fi
  5502. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5503. ac_ct_DSYMUTIL=$DSYMUTIL
  5504. # Extract the first word of "dsymutil", so it can be a program name with args.
  5505. set dummy dsymutil; ac_word=$2
  5506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5507. $as_echo_n "checking for $ac_word... " >&6; }
  5508. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5509. $as_echo_n "(cached) " >&6
  5510. else
  5511. if test -n "$ac_ct_DSYMUTIL"; then
  5512. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5513. else
  5514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5515. for as_dir in $PATH
  5516. do
  5517. IFS=$as_save_IFS
  5518. test -z "$as_dir" && as_dir=.
  5519. for ac_exec_ext in '' $ac_executable_extensions; do
  5520. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5521. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5523. break 2
  5524. fi
  5525. done
  5526. done
  5527. IFS=$as_save_IFS
  5528. fi
  5529. fi
  5530. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5531. if test -n "$ac_ct_DSYMUTIL"; then
  5532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5533. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5534. else
  5535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5536. $as_echo "no" >&6; }
  5537. fi
  5538. if test "x$ac_ct_DSYMUTIL" = x; then
  5539. DSYMUTIL=":"
  5540. else
  5541. case $cross_compiling:$ac_tool_warned in
  5542. yes:)
  5543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5544. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5545. ac_tool_warned=yes ;;
  5546. esac
  5547. DSYMUTIL=$ac_ct_DSYMUTIL
  5548. fi
  5549. else
  5550. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5551. fi
  5552. if test -n "$ac_tool_prefix"; then
  5553. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5554. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5556. $as_echo_n "checking for $ac_word... " >&6; }
  5557. if ${ac_cv_prog_NMEDIT+:} false; then :
  5558. $as_echo_n "(cached) " >&6
  5559. else
  5560. if test -n "$NMEDIT"; then
  5561. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5562. else
  5563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5564. for as_dir in $PATH
  5565. do
  5566. IFS=$as_save_IFS
  5567. test -z "$as_dir" && as_dir=.
  5568. for ac_exec_ext in '' $ac_executable_extensions; do
  5569. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5570. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5571. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5572. break 2
  5573. fi
  5574. done
  5575. done
  5576. IFS=$as_save_IFS
  5577. fi
  5578. fi
  5579. NMEDIT=$ac_cv_prog_NMEDIT
  5580. if test -n "$NMEDIT"; then
  5581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5582. $as_echo "$NMEDIT" >&6; }
  5583. else
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5585. $as_echo "no" >&6; }
  5586. fi
  5587. fi
  5588. if test -z "$ac_cv_prog_NMEDIT"; then
  5589. ac_ct_NMEDIT=$NMEDIT
  5590. # Extract the first word of "nmedit", so it can be a program name with args.
  5591. set dummy nmedit; ac_word=$2
  5592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5593. $as_echo_n "checking for $ac_word... " >&6; }
  5594. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5595. $as_echo_n "(cached) " >&6
  5596. else
  5597. if test -n "$ac_ct_NMEDIT"; then
  5598. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5599. else
  5600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5601. for as_dir in $PATH
  5602. do
  5603. IFS=$as_save_IFS
  5604. test -z "$as_dir" && as_dir=.
  5605. for ac_exec_ext in '' $ac_executable_extensions; do
  5606. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5607. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5608. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5609. break 2
  5610. fi
  5611. done
  5612. done
  5613. IFS=$as_save_IFS
  5614. fi
  5615. fi
  5616. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5617. if test -n "$ac_ct_NMEDIT"; then
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5619. $as_echo "$ac_ct_NMEDIT" >&6; }
  5620. else
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5622. $as_echo "no" >&6; }
  5623. fi
  5624. if test "x$ac_ct_NMEDIT" = x; then
  5625. NMEDIT=":"
  5626. else
  5627. case $cross_compiling:$ac_tool_warned in
  5628. yes:)
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5630. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5631. ac_tool_warned=yes ;;
  5632. esac
  5633. NMEDIT=$ac_ct_NMEDIT
  5634. fi
  5635. else
  5636. NMEDIT="$ac_cv_prog_NMEDIT"
  5637. fi
  5638. if test -n "$ac_tool_prefix"; then
  5639. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5640. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5642. $as_echo_n "checking for $ac_word... " >&6; }
  5643. if ${ac_cv_prog_LIPO+:} false; then :
  5644. $as_echo_n "(cached) " >&6
  5645. else
  5646. if test -n "$LIPO"; then
  5647. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5648. else
  5649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5650. for as_dir in $PATH
  5651. do
  5652. IFS=$as_save_IFS
  5653. test -z "$as_dir" && as_dir=.
  5654. for ac_exec_ext in '' $ac_executable_extensions; do
  5655. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5656. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5657. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5658. break 2
  5659. fi
  5660. done
  5661. done
  5662. IFS=$as_save_IFS
  5663. fi
  5664. fi
  5665. LIPO=$ac_cv_prog_LIPO
  5666. if test -n "$LIPO"; then
  5667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5668. $as_echo "$LIPO" >&6; }
  5669. else
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5671. $as_echo "no" >&6; }
  5672. fi
  5673. fi
  5674. if test -z "$ac_cv_prog_LIPO"; then
  5675. ac_ct_LIPO=$LIPO
  5676. # Extract the first word of "lipo", so it can be a program name with args.
  5677. set dummy lipo; ac_word=$2
  5678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5679. $as_echo_n "checking for $ac_word... " >&6; }
  5680. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5681. $as_echo_n "(cached) " >&6
  5682. else
  5683. if test -n "$ac_ct_LIPO"; then
  5684. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5685. else
  5686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5687. for as_dir in $PATH
  5688. do
  5689. IFS=$as_save_IFS
  5690. test -z "$as_dir" && as_dir=.
  5691. for ac_exec_ext in '' $ac_executable_extensions; do
  5692. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5693. ac_cv_prog_ac_ct_LIPO="lipo"
  5694. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5695. break 2
  5696. fi
  5697. done
  5698. done
  5699. IFS=$as_save_IFS
  5700. fi
  5701. fi
  5702. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5703. if test -n "$ac_ct_LIPO"; then
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5705. $as_echo "$ac_ct_LIPO" >&6; }
  5706. else
  5707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5708. $as_echo "no" >&6; }
  5709. fi
  5710. if test "x$ac_ct_LIPO" = x; then
  5711. LIPO=":"
  5712. else
  5713. case $cross_compiling:$ac_tool_warned in
  5714. yes:)
  5715. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5716. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5717. ac_tool_warned=yes ;;
  5718. esac
  5719. LIPO=$ac_ct_LIPO
  5720. fi
  5721. else
  5722. LIPO="$ac_cv_prog_LIPO"
  5723. fi
  5724. if test -n "$ac_tool_prefix"; then
  5725. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5726. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5728. $as_echo_n "checking for $ac_word... " >&6; }
  5729. if ${ac_cv_prog_OTOOL+:} false; then :
  5730. $as_echo_n "(cached) " >&6
  5731. else
  5732. if test -n "$OTOOL"; then
  5733. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5734. else
  5735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5736. for as_dir in $PATH
  5737. do
  5738. IFS=$as_save_IFS
  5739. test -z "$as_dir" && as_dir=.
  5740. for ac_exec_ext in '' $ac_executable_extensions; do
  5741. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5742. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5744. break 2
  5745. fi
  5746. done
  5747. done
  5748. IFS=$as_save_IFS
  5749. fi
  5750. fi
  5751. OTOOL=$ac_cv_prog_OTOOL
  5752. if test -n "$OTOOL"; then
  5753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5754. $as_echo "$OTOOL" >&6; }
  5755. else
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5757. $as_echo "no" >&6; }
  5758. fi
  5759. fi
  5760. if test -z "$ac_cv_prog_OTOOL"; then
  5761. ac_ct_OTOOL=$OTOOL
  5762. # Extract the first word of "otool", so it can be a program name with args.
  5763. set dummy otool; ac_word=$2
  5764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5765. $as_echo_n "checking for $ac_word... " >&6; }
  5766. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5767. $as_echo_n "(cached) " >&6
  5768. else
  5769. if test -n "$ac_ct_OTOOL"; then
  5770. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5771. else
  5772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5773. for as_dir in $PATH
  5774. do
  5775. IFS=$as_save_IFS
  5776. test -z "$as_dir" && as_dir=.
  5777. for ac_exec_ext in '' $ac_executable_extensions; do
  5778. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5779. ac_cv_prog_ac_ct_OTOOL="otool"
  5780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5781. break 2
  5782. fi
  5783. done
  5784. done
  5785. IFS=$as_save_IFS
  5786. fi
  5787. fi
  5788. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5789. if test -n "$ac_ct_OTOOL"; then
  5790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5791. $as_echo "$ac_ct_OTOOL" >&6; }
  5792. else
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5794. $as_echo "no" >&6; }
  5795. fi
  5796. if test "x$ac_ct_OTOOL" = x; then
  5797. OTOOL=":"
  5798. else
  5799. case $cross_compiling:$ac_tool_warned in
  5800. yes:)
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5802. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5803. ac_tool_warned=yes ;;
  5804. esac
  5805. OTOOL=$ac_ct_OTOOL
  5806. fi
  5807. else
  5808. OTOOL="$ac_cv_prog_OTOOL"
  5809. fi
  5810. if test -n "$ac_tool_prefix"; then
  5811. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5812. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5814. $as_echo_n "checking for $ac_word... " >&6; }
  5815. if ${ac_cv_prog_OTOOL64+:} false; then :
  5816. $as_echo_n "(cached) " >&6
  5817. else
  5818. if test -n "$OTOOL64"; then
  5819. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5820. else
  5821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5822. for as_dir in $PATH
  5823. do
  5824. IFS=$as_save_IFS
  5825. test -z "$as_dir" && as_dir=.
  5826. for ac_exec_ext in '' $ac_executable_extensions; do
  5827. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5828. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5830. break 2
  5831. fi
  5832. done
  5833. done
  5834. IFS=$as_save_IFS
  5835. fi
  5836. fi
  5837. OTOOL64=$ac_cv_prog_OTOOL64
  5838. if test -n "$OTOOL64"; then
  5839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5840. $as_echo "$OTOOL64" >&6; }
  5841. else
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5843. $as_echo "no" >&6; }
  5844. fi
  5845. fi
  5846. if test -z "$ac_cv_prog_OTOOL64"; then
  5847. ac_ct_OTOOL64=$OTOOL64
  5848. # Extract the first word of "otool64", so it can be a program name with args.
  5849. set dummy otool64; ac_word=$2
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5851. $as_echo_n "checking for $ac_word... " >&6; }
  5852. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5853. $as_echo_n "(cached) " >&6
  5854. else
  5855. if test -n "$ac_ct_OTOOL64"; then
  5856. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5857. else
  5858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5859. for as_dir in $PATH
  5860. do
  5861. IFS=$as_save_IFS
  5862. test -z "$as_dir" && as_dir=.
  5863. for ac_exec_ext in '' $ac_executable_extensions; do
  5864. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5865. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5867. break 2
  5868. fi
  5869. done
  5870. done
  5871. IFS=$as_save_IFS
  5872. fi
  5873. fi
  5874. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5875. if test -n "$ac_ct_OTOOL64"; then
  5876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5877. $as_echo "$ac_ct_OTOOL64" >&6; }
  5878. else
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5880. $as_echo "no" >&6; }
  5881. fi
  5882. if test "x$ac_ct_OTOOL64" = x; then
  5883. OTOOL64=":"
  5884. else
  5885. case $cross_compiling:$ac_tool_warned in
  5886. yes:)
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5888. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5889. ac_tool_warned=yes ;;
  5890. esac
  5891. OTOOL64=$ac_ct_OTOOL64
  5892. fi
  5893. else
  5894. OTOOL64="$ac_cv_prog_OTOOL64"
  5895. fi
  5896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5897. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5898. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5899. $as_echo_n "(cached) " >&6
  5900. else
  5901. lt_cv_apple_cc_single_mod=no
  5902. if test -z "${LT_MULTI_MODULE}"; then
  5903. # By default we will add the -single_module flag. You can override
  5904. # by either setting the environment variable LT_MULTI_MODULE
  5905. # non-empty at configure time, or by adding -multi_module to the
  5906. # link flags.
  5907. rm -rf libconftest.dylib*
  5908. echo "int foo(void){return 1;}" > conftest.c
  5909. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5910. -dynamiclib -Wl,-single_module conftest.c" >&5
  5911. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5912. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5913. _lt_result=$?
  5914. # If there is a non-empty error log, and "single_module"
  5915. # appears in it, assume the flag caused a linker warning
  5916. if test -s conftest.err && $GREP single_module conftest.err; then
  5917. cat conftest.err >&5
  5918. # Otherwise, if the output was created with a 0 exit code from
  5919. # the compiler, it worked.
  5920. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5921. lt_cv_apple_cc_single_mod=yes
  5922. else
  5923. cat conftest.err >&5
  5924. fi
  5925. rm -rf libconftest.dylib*
  5926. rm -f conftest.*
  5927. fi
  5928. fi
  5929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5930. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5932. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5933. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5934. $as_echo_n "(cached) " >&6
  5935. else
  5936. lt_cv_ld_exported_symbols_list=no
  5937. save_LDFLAGS=$LDFLAGS
  5938. echo "_main" > conftest.sym
  5939. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5941. /* end confdefs.h. */
  5942. int
  5943. main ()
  5944. {
  5945. ;
  5946. return 0;
  5947. }
  5948. _ACEOF
  5949. if ac_fn_c_try_link "$LINENO"; then :
  5950. lt_cv_ld_exported_symbols_list=yes
  5951. else
  5952. lt_cv_ld_exported_symbols_list=no
  5953. fi
  5954. rm -f core conftest.err conftest.$ac_objext \
  5955. conftest$ac_exeext conftest.$ac_ext
  5956. LDFLAGS="$save_LDFLAGS"
  5957. fi
  5958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5959. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5961. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5962. if ${lt_cv_ld_force_load+:} false; then :
  5963. $as_echo_n "(cached) " >&6
  5964. else
  5965. lt_cv_ld_force_load=no
  5966. cat > conftest.c << _LT_EOF
  5967. int forced_loaded() { return 2;}
  5968. _LT_EOF
  5969. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5970. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5971. echo "$AR cru libconftest.a conftest.o" >&5
  5972. $AR cru libconftest.a conftest.o 2>&5
  5973. echo "$RANLIB libconftest.a" >&5
  5974. $RANLIB libconftest.a 2>&5
  5975. cat > conftest.c << _LT_EOF
  5976. int main() { return 0;}
  5977. _LT_EOF
  5978. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5979. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5980. _lt_result=$?
  5981. if test -s conftest.err && $GREP force_load conftest.err; then
  5982. cat conftest.err >&5
  5983. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  5984. lt_cv_ld_force_load=yes
  5985. else
  5986. cat conftest.err >&5
  5987. fi
  5988. rm -f conftest.err libconftest.a conftest conftest.c
  5989. rm -rf conftest.dSYM
  5990. fi
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5992. $as_echo "$lt_cv_ld_force_load" >&6; }
  5993. case $host_os in
  5994. rhapsody* | darwin1.[012])
  5995. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5996. darwin1.*)
  5997. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5998. darwin*) # darwin 5.x on
  5999. # if running on 10.5 or later, the deployment target defaults
  6000. # to the OS version, if on x86, and 10.4, the deployment
  6001. # target defaults to 10.4. Don't you love it?
  6002. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6003. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6004. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6005. 10.[012]*)
  6006. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6007. 10.*)
  6008. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6009. esac
  6010. ;;
  6011. esac
  6012. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6013. _lt_dar_single_mod='$single_module'
  6014. fi
  6015. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6016. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6017. else
  6018. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6019. fi
  6020. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6021. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6022. else
  6023. _lt_dsymutil=
  6024. fi
  6025. ;;
  6026. esac
  6027. ac_ext=c
  6028. ac_cpp='$CPP $CPPFLAGS'
  6029. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6030. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6031. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6033. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6034. # On Suns, sometimes $CPP names a directory.
  6035. if test -n "$CPP" && test -d "$CPP"; then
  6036. CPP=
  6037. fi
  6038. if test -z "$CPP"; then
  6039. if ${ac_cv_prog_CPP+:} false; then :
  6040. $as_echo_n "(cached) " >&6
  6041. else
  6042. # Double quotes because CPP needs to be expanded
  6043. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6044. do
  6045. ac_preproc_ok=false
  6046. for ac_c_preproc_warn_flag in '' yes
  6047. do
  6048. # Use a header file that comes with gcc, so configuring glibc
  6049. # with a fresh cross-compiler works.
  6050. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6051. # <limits.h> exists even on freestanding compilers.
  6052. # On the NeXT, cc -E runs the code through the compiler's parser,
  6053. # not just through cpp. "Syntax error" is here to catch this case.
  6054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6055. /* end confdefs.h. */
  6056. #ifdef __STDC__
  6057. # include <limits.h>
  6058. #else
  6059. # include <assert.h>
  6060. #endif
  6061. Syntax error
  6062. _ACEOF
  6063. if ac_fn_c_try_cpp "$LINENO"; then :
  6064. else
  6065. # Broken: fails on valid input.
  6066. continue
  6067. fi
  6068. rm -f conftest.err conftest.i conftest.$ac_ext
  6069. # OK, works on sane cases. Now check whether nonexistent headers
  6070. # can be detected and how.
  6071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6072. /* end confdefs.h. */
  6073. #include <ac_nonexistent.h>
  6074. _ACEOF
  6075. if ac_fn_c_try_cpp "$LINENO"; then :
  6076. # Broken: success on invalid input.
  6077. continue
  6078. else
  6079. # Passes both tests.
  6080. ac_preproc_ok=:
  6081. break
  6082. fi
  6083. rm -f conftest.err conftest.i conftest.$ac_ext
  6084. done
  6085. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6086. rm -f conftest.i conftest.err conftest.$ac_ext
  6087. if $ac_preproc_ok; then :
  6088. break
  6089. fi
  6090. done
  6091. ac_cv_prog_CPP=$CPP
  6092. fi
  6093. CPP=$ac_cv_prog_CPP
  6094. else
  6095. ac_cv_prog_CPP=$CPP
  6096. fi
  6097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6098. $as_echo "$CPP" >&6; }
  6099. ac_preproc_ok=false
  6100. for ac_c_preproc_warn_flag in '' yes
  6101. do
  6102. # Use a header file that comes with gcc, so configuring glibc
  6103. # with a fresh cross-compiler works.
  6104. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6105. # <limits.h> exists even on freestanding compilers.
  6106. # On the NeXT, cc -E runs the code through the compiler's parser,
  6107. # not just through cpp. "Syntax error" is here to catch this case.
  6108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6109. /* end confdefs.h. */
  6110. #ifdef __STDC__
  6111. # include <limits.h>
  6112. #else
  6113. # include <assert.h>
  6114. #endif
  6115. Syntax error
  6116. _ACEOF
  6117. if ac_fn_c_try_cpp "$LINENO"; then :
  6118. else
  6119. # Broken: fails on valid input.
  6120. continue
  6121. fi
  6122. rm -f conftest.err conftest.i conftest.$ac_ext
  6123. # OK, works on sane cases. Now check whether nonexistent headers
  6124. # can be detected and how.
  6125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6126. /* end confdefs.h. */
  6127. #include <ac_nonexistent.h>
  6128. _ACEOF
  6129. if ac_fn_c_try_cpp "$LINENO"; then :
  6130. # Broken: success on invalid input.
  6131. continue
  6132. else
  6133. # Passes both tests.
  6134. ac_preproc_ok=:
  6135. break
  6136. fi
  6137. rm -f conftest.err conftest.i conftest.$ac_ext
  6138. done
  6139. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6140. rm -f conftest.i conftest.err conftest.$ac_ext
  6141. if $ac_preproc_ok; then :
  6142. else
  6143. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6144. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6145. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6146. See \`config.log' for more details" "$LINENO" 5; }
  6147. fi
  6148. ac_ext=c
  6149. ac_cpp='$CPP $CPPFLAGS'
  6150. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6151. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6152. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6154. $as_echo_n "checking for ANSI C header files... " >&6; }
  6155. if ${ac_cv_header_stdc+:} false; then :
  6156. $as_echo_n "(cached) " >&6
  6157. else
  6158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6159. /* end confdefs.h. */
  6160. #include <stdlib.h>
  6161. #include <stdarg.h>
  6162. #include <string.h>
  6163. #include <float.h>
  6164. int
  6165. main ()
  6166. {
  6167. ;
  6168. return 0;
  6169. }
  6170. _ACEOF
  6171. if ac_fn_c_try_compile "$LINENO"; then :
  6172. ac_cv_header_stdc=yes
  6173. else
  6174. ac_cv_header_stdc=no
  6175. fi
  6176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6177. if test $ac_cv_header_stdc = yes; then
  6178. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6180. /* end confdefs.h. */
  6181. #include <string.h>
  6182. _ACEOF
  6183. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6184. $EGREP "memchr" >/dev/null 2>&1; then :
  6185. else
  6186. ac_cv_header_stdc=no
  6187. fi
  6188. rm -f conftest*
  6189. fi
  6190. if test $ac_cv_header_stdc = yes; then
  6191. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6193. /* end confdefs.h. */
  6194. #include <stdlib.h>
  6195. _ACEOF
  6196. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6197. $EGREP "free" >/dev/null 2>&1; then :
  6198. else
  6199. ac_cv_header_stdc=no
  6200. fi
  6201. rm -f conftest*
  6202. fi
  6203. if test $ac_cv_header_stdc = yes; then
  6204. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6205. if test "$cross_compiling" = yes; then :
  6206. :
  6207. else
  6208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6209. /* end confdefs.h. */
  6210. #include <ctype.h>
  6211. #include <stdlib.h>
  6212. #if ((' ' & 0x0FF) == 0x020)
  6213. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6214. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6215. #else
  6216. # define ISLOWER(c) \
  6217. (('a' <= (c) && (c) <= 'i') \
  6218. || ('j' <= (c) && (c) <= 'r') \
  6219. || ('s' <= (c) && (c) <= 'z'))
  6220. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6221. #endif
  6222. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6223. int
  6224. main ()
  6225. {
  6226. int i;
  6227. for (i = 0; i < 256; i++)
  6228. if (XOR (islower (i), ISLOWER (i))
  6229. || toupper (i) != TOUPPER (i))
  6230. return 2;
  6231. return 0;
  6232. }
  6233. _ACEOF
  6234. if ac_fn_c_try_run "$LINENO"; then :
  6235. else
  6236. ac_cv_header_stdc=no
  6237. fi
  6238. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6239. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6240. fi
  6241. fi
  6242. fi
  6243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6244. $as_echo "$ac_cv_header_stdc" >&6; }
  6245. if test $ac_cv_header_stdc = yes; then
  6246. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6247. fi
  6248. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6249. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6250. inttypes.h stdint.h unistd.h
  6251. do :
  6252. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6253. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6254. "
  6255. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6256. cat >>confdefs.h <<_ACEOF
  6257. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6258. _ACEOF
  6259. fi
  6260. done
  6261. for ac_header in dlfcn.h
  6262. do :
  6263. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6264. "
  6265. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6266. cat >>confdefs.h <<_ACEOF
  6267. #define HAVE_DLFCN_H 1
  6268. _ACEOF
  6269. fi
  6270. done
  6271. # Set options
  6272. enable_win32_dll=yes
  6273. case $host in
  6274. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6275. if test -n "$ac_tool_prefix"; then
  6276. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6277. set dummy ${ac_tool_prefix}as; ac_word=$2
  6278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6279. $as_echo_n "checking for $ac_word... " >&6; }
  6280. if ${ac_cv_prog_AS+:} false; then :
  6281. $as_echo_n "(cached) " >&6
  6282. else
  6283. if test -n "$AS"; then
  6284. ac_cv_prog_AS="$AS" # Let the user override the test.
  6285. else
  6286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6287. for as_dir in $PATH
  6288. do
  6289. IFS=$as_save_IFS
  6290. test -z "$as_dir" && as_dir=.
  6291. for ac_exec_ext in '' $ac_executable_extensions; do
  6292. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6293. ac_cv_prog_AS="${ac_tool_prefix}as"
  6294. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6295. break 2
  6296. fi
  6297. done
  6298. done
  6299. IFS=$as_save_IFS
  6300. fi
  6301. fi
  6302. AS=$ac_cv_prog_AS
  6303. if test -n "$AS"; then
  6304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6305. $as_echo "$AS" >&6; }
  6306. else
  6307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6308. $as_echo "no" >&6; }
  6309. fi
  6310. fi
  6311. if test -z "$ac_cv_prog_AS"; then
  6312. ac_ct_AS=$AS
  6313. # Extract the first word of "as", so it can be a program name with args.
  6314. set dummy as; ac_word=$2
  6315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6316. $as_echo_n "checking for $ac_word... " >&6; }
  6317. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6318. $as_echo_n "(cached) " >&6
  6319. else
  6320. if test -n "$ac_ct_AS"; then
  6321. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6322. else
  6323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6324. for as_dir in $PATH
  6325. do
  6326. IFS=$as_save_IFS
  6327. test -z "$as_dir" && as_dir=.
  6328. for ac_exec_ext in '' $ac_executable_extensions; do
  6329. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6330. ac_cv_prog_ac_ct_AS="as"
  6331. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6332. break 2
  6333. fi
  6334. done
  6335. done
  6336. IFS=$as_save_IFS
  6337. fi
  6338. fi
  6339. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6340. if test -n "$ac_ct_AS"; then
  6341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6342. $as_echo "$ac_ct_AS" >&6; }
  6343. else
  6344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6345. $as_echo "no" >&6; }
  6346. fi
  6347. if test "x$ac_ct_AS" = x; then
  6348. AS="false"
  6349. else
  6350. case $cross_compiling:$ac_tool_warned in
  6351. yes:)
  6352. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6353. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6354. ac_tool_warned=yes ;;
  6355. esac
  6356. AS=$ac_ct_AS
  6357. fi
  6358. else
  6359. AS="$ac_cv_prog_AS"
  6360. fi
  6361. if test -n "$ac_tool_prefix"; then
  6362. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6363. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6365. $as_echo_n "checking for $ac_word... " >&6; }
  6366. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6367. $as_echo_n "(cached) " >&6
  6368. else
  6369. if test -n "$DLLTOOL"; then
  6370. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6371. else
  6372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6373. for as_dir in $PATH
  6374. do
  6375. IFS=$as_save_IFS
  6376. test -z "$as_dir" && as_dir=.
  6377. for ac_exec_ext in '' $ac_executable_extensions; do
  6378. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6379. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6380. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6381. break 2
  6382. fi
  6383. done
  6384. done
  6385. IFS=$as_save_IFS
  6386. fi
  6387. fi
  6388. DLLTOOL=$ac_cv_prog_DLLTOOL
  6389. if test -n "$DLLTOOL"; then
  6390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6391. $as_echo "$DLLTOOL" >&6; }
  6392. else
  6393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6394. $as_echo "no" >&6; }
  6395. fi
  6396. fi
  6397. if test -z "$ac_cv_prog_DLLTOOL"; then
  6398. ac_ct_DLLTOOL=$DLLTOOL
  6399. # Extract the first word of "dlltool", so it can be a program name with args.
  6400. set dummy dlltool; ac_word=$2
  6401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6402. $as_echo_n "checking for $ac_word... " >&6; }
  6403. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6404. $as_echo_n "(cached) " >&6
  6405. else
  6406. if test -n "$ac_ct_DLLTOOL"; then
  6407. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6408. else
  6409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6410. for as_dir in $PATH
  6411. do
  6412. IFS=$as_save_IFS
  6413. test -z "$as_dir" && as_dir=.
  6414. for ac_exec_ext in '' $ac_executable_extensions; do
  6415. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6416. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6417. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6418. break 2
  6419. fi
  6420. done
  6421. done
  6422. IFS=$as_save_IFS
  6423. fi
  6424. fi
  6425. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6426. if test -n "$ac_ct_DLLTOOL"; then
  6427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6428. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6429. else
  6430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6431. $as_echo "no" >&6; }
  6432. fi
  6433. if test "x$ac_ct_DLLTOOL" = x; then
  6434. DLLTOOL="false"
  6435. else
  6436. case $cross_compiling:$ac_tool_warned in
  6437. yes:)
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6439. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6440. ac_tool_warned=yes ;;
  6441. esac
  6442. DLLTOOL=$ac_ct_DLLTOOL
  6443. fi
  6444. else
  6445. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6446. fi
  6447. if test -n "$ac_tool_prefix"; then
  6448. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6449. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6451. $as_echo_n "checking for $ac_word... " >&6; }
  6452. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6453. $as_echo_n "(cached) " >&6
  6454. else
  6455. if test -n "$OBJDUMP"; then
  6456. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6457. else
  6458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6459. for as_dir in $PATH
  6460. do
  6461. IFS=$as_save_IFS
  6462. test -z "$as_dir" && as_dir=.
  6463. for ac_exec_ext in '' $ac_executable_extensions; do
  6464. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6465. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6466. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6467. break 2
  6468. fi
  6469. done
  6470. done
  6471. IFS=$as_save_IFS
  6472. fi
  6473. fi
  6474. OBJDUMP=$ac_cv_prog_OBJDUMP
  6475. if test -n "$OBJDUMP"; then
  6476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6477. $as_echo "$OBJDUMP" >&6; }
  6478. else
  6479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6480. $as_echo "no" >&6; }
  6481. fi
  6482. fi
  6483. if test -z "$ac_cv_prog_OBJDUMP"; then
  6484. ac_ct_OBJDUMP=$OBJDUMP
  6485. # Extract the first word of "objdump", so it can be a program name with args.
  6486. set dummy objdump; ac_word=$2
  6487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6488. $as_echo_n "checking for $ac_word... " >&6; }
  6489. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6490. $as_echo_n "(cached) " >&6
  6491. else
  6492. if test -n "$ac_ct_OBJDUMP"; then
  6493. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6494. else
  6495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6496. for as_dir in $PATH
  6497. do
  6498. IFS=$as_save_IFS
  6499. test -z "$as_dir" && as_dir=.
  6500. for ac_exec_ext in '' $ac_executable_extensions; do
  6501. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6502. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6503. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6504. break 2
  6505. fi
  6506. done
  6507. done
  6508. IFS=$as_save_IFS
  6509. fi
  6510. fi
  6511. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6512. if test -n "$ac_ct_OBJDUMP"; then
  6513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6514. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6515. else
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6517. $as_echo "no" >&6; }
  6518. fi
  6519. if test "x$ac_ct_OBJDUMP" = x; then
  6520. OBJDUMP="false"
  6521. else
  6522. case $cross_compiling:$ac_tool_warned in
  6523. yes:)
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6525. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6526. ac_tool_warned=yes ;;
  6527. esac
  6528. OBJDUMP=$ac_ct_OBJDUMP
  6529. fi
  6530. else
  6531. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6532. fi
  6533. ;;
  6534. esac
  6535. test -z "$AS" && AS=as
  6536. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6537. test -z "$OBJDUMP" && OBJDUMP=objdump
  6538. enable_dlopen=no
  6539. # Check whether --enable-shared was given.
  6540. if test "${enable_shared+set}" = set; then :
  6541. enableval=$enable_shared; p=${PACKAGE-default}
  6542. case $enableval in
  6543. yes) enable_shared=yes ;;
  6544. no) enable_shared=no ;;
  6545. *)
  6546. enable_shared=no
  6547. # Look at the argument we got. We use all the common list separators.
  6548. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6549. for pkg in $enableval; do
  6550. IFS="$lt_save_ifs"
  6551. if test "X$pkg" = "X$p"; then
  6552. enable_shared=yes
  6553. fi
  6554. done
  6555. IFS="$lt_save_ifs"
  6556. ;;
  6557. esac
  6558. else
  6559. enable_shared=yes
  6560. fi
  6561. # Check whether --enable-static was given.
  6562. if test "${enable_static+set}" = set; then :
  6563. enableval=$enable_static; p=${PACKAGE-default}
  6564. case $enableval in
  6565. yes) enable_static=yes ;;
  6566. no) enable_static=no ;;
  6567. *)
  6568. enable_static=no
  6569. # Look at the argument we got. We use all the common list separators.
  6570. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6571. for pkg in $enableval; do
  6572. IFS="$lt_save_ifs"
  6573. if test "X$pkg" = "X$p"; then
  6574. enable_static=yes
  6575. fi
  6576. done
  6577. IFS="$lt_save_ifs"
  6578. ;;
  6579. esac
  6580. else
  6581. enable_static=yes
  6582. fi
  6583. # Check whether --with-pic was given.
  6584. if test "${with_pic+set}" = set; then :
  6585. withval=$with_pic; lt_p=${PACKAGE-default}
  6586. case $withval in
  6587. yes|no) pic_mode=$withval ;;
  6588. *)
  6589. pic_mode=default
  6590. # Look at the argument we got. We use all the common list separators.
  6591. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6592. for lt_pkg in $withval; do
  6593. IFS="$lt_save_ifs"
  6594. if test "X$lt_pkg" = "X$lt_p"; then
  6595. pic_mode=yes
  6596. fi
  6597. done
  6598. IFS="$lt_save_ifs"
  6599. ;;
  6600. esac
  6601. else
  6602. pic_mode=default
  6603. fi
  6604. test -z "$pic_mode" && pic_mode=default
  6605. # Check whether --enable-fast-install was given.
  6606. if test "${enable_fast_install+set}" = set; then :
  6607. enableval=$enable_fast_install; p=${PACKAGE-default}
  6608. case $enableval in
  6609. yes) enable_fast_install=yes ;;
  6610. no) enable_fast_install=no ;;
  6611. *)
  6612. enable_fast_install=no
  6613. # Look at the argument we got. We use all the common list separators.
  6614. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6615. for pkg in $enableval; do
  6616. IFS="$lt_save_ifs"
  6617. if test "X$pkg" = "X$p"; then
  6618. enable_fast_install=yes
  6619. fi
  6620. done
  6621. IFS="$lt_save_ifs"
  6622. ;;
  6623. esac
  6624. else
  6625. enable_fast_install=yes
  6626. fi
  6627. # This can be used to rebuild libtool when needed
  6628. LIBTOOL_DEPS="$ltmain"
  6629. # Always use our own libtool.
  6630. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6631. test -z "$LN_S" && LN_S="ln -s"
  6632. if test -n "${ZSH_VERSION+set}" ; then
  6633. setopt NO_GLOB_SUBST
  6634. fi
  6635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6636. $as_echo_n "checking for objdir... " >&6; }
  6637. if ${lt_cv_objdir+:} false; then :
  6638. $as_echo_n "(cached) " >&6
  6639. else
  6640. rm -f .libs 2>/dev/null
  6641. mkdir .libs 2>/dev/null
  6642. if test -d .libs; then
  6643. lt_cv_objdir=.libs
  6644. else
  6645. # MS-DOS does not allow filenames that begin with a dot.
  6646. lt_cv_objdir=_libs
  6647. fi
  6648. rmdir .libs 2>/dev/null
  6649. fi
  6650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6651. $as_echo "$lt_cv_objdir" >&6; }
  6652. objdir=$lt_cv_objdir
  6653. cat >>confdefs.h <<_ACEOF
  6654. #define LT_OBJDIR "$lt_cv_objdir/"
  6655. _ACEOF
  6656. case $host_os in
  6657. aix3*)
  6658. # AIX sometimes has problems with the GCC collect2 program. For some
  6659. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6660. # vanish in a puff of smoke.
  6661. if test "X${COLLECT_NAMES+set}" != Xset; then
  6662. COLLECT_NAMES=
  6663. export COLLECT_NAMES
  6664. fi
  6665. ;;
  6666. esac
  6667. # Global variables:
  6668. ofile=libtool
  6669. can_build_shared=yes
  6670. # All known linkers require a `.a' archive for static linking (except MSVC,
  6671. # which needs '.lib').
  6672. libext=a
  6673. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6674. old_CC="$CC"
  6675. old_CFLAGS="$CFLAGS"
  6676. # Set sane defaults for various variables
  6677. test -z "$CC" && CC=cc
  6678. test -z "$LTCC" && LTCC=$CC
  6679. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6680. test -z "$LD" && LD=ld
  6681. test -z "$ac_objext" && ac_objext=o
  6682. for cc_temp in $compiler""; do
  6683. case $cc_temp in
  6684. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6685. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6686. \-*) ;;
  6687. *) break;;
  6688. esac
  6689. done
  6690. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6691. # Only perform the check for file, if the check method requires it
  6692. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6693. case $deplibs_check_method in
  6694. file_magic*)
  6695. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6697. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6698. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6699. $as_echo_n "(cached) " >&6
  6700. else
  6701. case $MAGIC_CMD in
  6702. [\\/*] | ?:[\\/]*)
  6703. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6704. ;;
  6705. *)
  6706. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6707. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6708. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6709. for ac_dir in $ac_dummy; do
  6710. IFS="$lt_save_ifs"
  6711. test -z "$ac_dir" && ac_dir=.
  6712. if test -f $ac_dir/${ac_tool_prefix}file; then
  6713. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6714. if test -n "$file_magic_test_file"; then
  6715. case $deplibs_check_method in
  6716. "file_magic "*)
  6717. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6718. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6719. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6720. $EGREP "$file_magic_regex" > /dev/null; then
  6721. :
  6722. else
  6723. cat <<_LT_EOF 1>&2
  6724. *** Warning: the command libtool uses to detect shared libraries,
  6725. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6726. *** The result is that libtool may fail to recognize shared libraries
  6727. *** as such. This will affect the creation of libtool libraries that
  6728. *** depend on shared libraries, but programs linked with such libtool
  6729. *** libraries will work regardless of this problem. Nevertheless, you
  6730. *** may want to report the problem to your system manager and/or to
  6731. *** bug-libtool@gnu.org
  6732. _LT_EOF
  6733. fi ;;
  6734. esac
  6735. fi
  6736. break
  6737. fi
  6738. done
  6739. IFS="$lt_save_ifs"
  6740. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6741. ;;
  6742. esac
  6743. fi
  6744. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6745. if test -n "$MAGIC_CMD"; then
  6746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6747. $as_echo "$MAGIC_CMD" >&6; }
  6748. else
  6749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6750. $as_echo "no" >&6; }
  6751. fi
  6752. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6753. if test -n "$ac_tool_prefix"; then
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6755. $as_echo_n "checking for file... " >&6; }
  6756. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6757. $as_echo_n "(cached) " >&6
  6758. else
  6759. case $MAGIC_CMD in
  6760. [\\/*] | ?:[\\/]*)
  6761. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6762. ;;
  6763. *)
  6764. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6765. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6766. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6767. for ac_dir in $ac_dummy; do
  6768. IFS="$lt_save_ifs"
  6769. test -z "$ac_dir" && ac_dir=.
  6770. if test -f $ac_dir/file; then
  6771. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6772. if test -n "$file_magic_test_file"; then
  6773. case $deplibs_check_method in
  6774. "file_magic "*)
  6775. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6776. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6777. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6778. $EGREP "$file_magic_regex" > /dev/null; then
  6779. :
  6780. else
  6781. cat <<_LT_EOF 1>&2
  6782. *** Warning: the command libtool uses to detect shared libraries,
  6783. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6784. *** The result is that libtool may fail to recognize shared libraries
  6785. *** as such. This will affect the creation of libtool libraries that
  6786. *** depend on shared libraries, but programs linked with such libtool
  6787. *** libraries will work regardless of this problem. Nevertheless, you
  6788. *** may want to report the problem to your system manager and/or to
  6789. *** bug-libtool@gnu.org
  6790. _LT_EOF
  6791. fi ;;
  6792. esac
  6793. fi
  6794. break
  6795. fi
  6796. done
  6797. IFS="$lt_save_ifs"
  6798. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6799. ;;
  6800. esac
  6801. fi
  6802. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6803. if test -n "$MAGIC_CMD"; then
  6804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6805. $as_echo "$MAGIC_CMD" >&6; }
  6806. else
  6807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6808. $as_echo "no" >&6; }
  6809. fi
  6810. else
  6811. MAGIC_CMD=:
  6812. fi
  6813. fi
  6814. fi
  6815. ;;
  6816. esac
  6817. # Use C for the default configuration in the libtool script
  6818. lt_save_CC="$CC"
  6819. ac_ext=c
  6820. ac_cpp='$CPP $CPPFLAGS'
  6821. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6822. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6823. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6824. # Source file extension for C test sources.
  6825. ac_ext=c
  6826. # Object file extension for compiled C test sources.
  6827. objext=o
  6828. objext=$objext
  6829. # Code to be used in simple compile tests
  6830. lt_simple_compile_test_code="int some_variable = 0;"
  6831. # Code to be used in simple link tests
  6832. lt_simple_link_test_code='int main(){return(0);}'
  6833. # If no C compiler was specified, use CC.
  6834. LTCC=${LTCC-"$CC"}
  6835. # If no C compiler flags were specified, use CFLAGS.
  6836. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6837. # Allow CC to be a program name with arguments.
  6838. compiler=$CC
  6839. # Save the default compiler, since it gets overwritten when the other
  6840. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6841. compiler_DEFAULT=$CC
  6842. # save warnings/boilerplate of simple test code
  6843. ac_outfile=conftest.$ac_objext
  6844. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6845. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6846. _lt_compiler_boilerplate=`cat conftest.err`
  6847. $RM conftest*
  6848. ac_outfile=conftest.$ac_objext
  6849. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6850. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6851. _lt_linker_boilerplate=`cat conftest.err`
  6852. $RM -r conftest*
  6853. ## CAVEAT EMPTOR:
  6854. ## There is no encapsulation within the following macros, do not change
  6855. ## the running order or otherwise move them around unless you know exactly
  6856. ## what you are doing...
  6857. if test -n "$compiler"; then
  6858. lt_prog_compiler_no_builtin_flag=
  6859. if test "$GCC" = yes; then
  6860. case $cc_basename in
  6861. nvcc*)
  6862. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6863. *)
  6864. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6865. esac
  6866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6867. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6868. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6869. $as_echo_n "(cached) " >&6
  6870. else
  6871. lt_cv_prog_compiler_rtti_exceptions=no
  6872. ac_outfile=conftest.$ac_objext
  6873. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6874. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6875. # Insert the option either (1) after the last *FLAGS variable, or
  6876. # (2) before a word containing "conftest.", or (3) at the end.
  6877. # Note that $ac_compile itself does not contain backslashes and begins
  6878. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6879. # The option is referenced via a variable to avoid confusing sed.
  6880. lt_compile=`echo "$ac_compile" | $SED \
  6881. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6882. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6883. -e 's:$: $lt_compiler_flag:'`
  6884. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6885. (eval "$lt_compile" 2>conftest.err)
  6886. ac_status=$?
  6887. cat conftest.err >&5
  6888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6889. if (exit $ac_status) && test -s "$ac_outfile"; then
  6890. # The compiler can only warn and ignore the option if not recognized
  6891. # So say no if there are warnings other than the usual output.
  6892. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6893. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6894. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6895. lt_cv_prog_compiler_rtti_exceptions=yes
  6896. fi
  6897. fi
  6898. $RM conftest*
  6899. fi
  6900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6901. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6902. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6903. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6904. else
  6905. :
  6906. fi
  6907. fi
  6908. lt_prog_compiler_wl=
  6909. lt_prog_compiler_pic=
  6910. lt_prog_compiler_static=
  6911. if test "$GCC" = yes; then
  6912. lt_prog_compiler_wl='-Wl,'
  6913. lt_prog_compiler_static='-static'
  6914. case $host_os in
  6915. aix*)
  6916. # All AIX code is PIC.
  6917. if test "$host_cpu" = ia64; then
  6918. # AIX 5 now supports IA64 processor
  6919. lt_prog_compiler_static='-Bstatic'
  6920. fi
  6921. ;;
  6922. amigaos*)
  6923. case $host_cpu in
  6924. powerpc)
  6925. # see comment about AmigaOS4 .so support
  6926. lt_prog_compiler_pic='-fPIC'
  6927. ;;
  6928. m68k)
  6929. # FIXME: we need at least 68020 code to build shared libraries, but
  6930. # adding the `-m68020' flag to GCC prevents building anything better,
  6931. # like `-m68040'.
  6932. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6933. ;;
  6934. esac
  6935. ;;
  6936. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6937. # PIC is the default for these OSes.
  6938. ;;
  6939. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6940. # This hack is so that the source file can tell whether it is being
  6941. # built for inclusion in a dll (and should export symbols for example).
  6942. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6943. # (--disable-auto-import) libraries
  6944. lt_prog_compiler_pic='-DDLL_EXPORT'
  6945. ;;
  6946. darwin* | rhapsody*)
  6947. # PIC is the default on this platform
  6948. # Common symbols not allowed in MH_DYLIB files
  6949. lt_prog_compiler_pic='-fno-common'
  6950. ;;
  6951. haiku*)
  6952. # PIC is the default for Haiku.
  6953. # The "-static" flag exists, but is broken.
  6954. lt_prog_compiler_static=
  6955. ;;
  6956. hpux*)
  6957. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6958. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6959. # sets the default TLS model and affects inlining.
  6960. case $host_cpu in
  6961. hppa*64*)
  6962. # +Z the default
  6963. ;;
  6964. *)
  6965. lt_prog_compiler_pic='-fPIC'
  6966. ;;
  6967. esac
  6968. ;;
  6969. interix[3-9]*)
  6970. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6971. # Instead, we relocate shared libraries at runtime.
  6972. ;;
  6973. msdosdjgpp*)
  6974. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6975. # on systems that don't support them.
  6976. lt_prog_compiler_can_build_shared=no
  6977. enable_shared=no
  6978. ;;
  6979. *nto* | *qnx*)
  6980. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6981. # it will coredump.
  6982. lt_prog_compiler_pic='-fPIC -shared'
  6983. ;;
  6984. sysv4*MP*)
  6985. if test -d /usr/nec; then
  6986. lt_prog_compiler_pic=-Kconform_pic
  6987. fi
  6988. ;;
  6989. *)
  6990. lt_prog_compiler_pic='-fPIC'
  6991. ;;
  6992. esac
  6993. case $cc_basename in
  6994. nvcc*) # Cuda Compiler Driver 2.2
  6995. lt_prog_compiler_wl='-Xlinker '
  6996. if test -n "$lt_prog_compiler_pic"; then
  6997. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6998. fi
  6999. ;;
  7000. esac
  7001. else
  7002. # PORTME Check for flag to pass linker flags through the system compiler.
  7003. case $host_os in
  7004. aix*)
  7005. lt_prog_compiler_wl='-Wl,'
  7006. if test "$host_cpu" = ia64; then
  7007. # AIX 5 now supports IA64 processor
  7008. lt_prog_compiler_static='-Bstatic'
  7009. else
  7010. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7011. fi
  7012. ;;
  7013. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7014. # This hack is so that the source file can tell whether it is being
  7015. # built for inclusion in a dll (and should export symbols for example).
  7016. lt_prog_compiler_pic='-DDLL_EXPORT'
  7017. ;;
  7018. hpux9* | hpux10* | hpux11*)
  7019. lt_prog_compiler_wl='-Wl,'
  7020. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7021. # not for PA HP-UX.
  7022. case $host_cpu in
  7023. hppa*64*|ia64*)
  7024. # +Z the default
  7025. ;;
  7026. *)
  7027. lt_prog_compiler_pic='+Z'
  7028. ;;
  7029. esac
  7030. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7031. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7032. ;;
  7033. irix5* | irix6* | nonstopux*)
  7034. lt_prog_compiler_wl='-Wl,'
  7035. # PIC (with -KPIC) is the default.
  7036. lt_prog_compiler_static='-non_shared'
  7037. ;;
  7038. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7039. case $cc_basename in
  7040. # old Intel for x86_64 which still supported -KPIC.
  7041. ecc*)
  7042. lt_prog_compiler_wl='-Wl,'
  7043. lt_prog_compiler_pic='-KPIC'
  7044. lt_prog_compiler_static='-static'
  7045. ;;
  7046. # icc used to be incompatible with GCC.
  7047. # ICC 10 doesn't accept -KPIC any more.
  7048. icc* | ifort*)
  7049. lt_prog_compiler_wl='-Wl,'
  7050. lt_prog_compiler_pic='-fPIC'
  7051. lt_prog_compiler_static='-static'
  7052. ;;
  7053. # Lahey Fortran 8.1.
  7054. lf95*)
  7055. lt_prog_compiler_wl='-Wl,'
  7056. lt_prog_compiler_pic='--shared'
  7057. lt_prog_compiler_static='--static'
  7058. ;;
  7059. nagfor*)
  7060. # NAG Fortran compiler
  7061. lt_prog_compiler_wl='-Wl,-Wl,,'
  7062. lt_prog_compiler_pic='-PIC'
  7063. lt_prog_compiler_static='-Bstatic'
  7064. ;;
  7065. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7066. # Portland Group compilers (*not* the Pentium gcc compiler,
  7067. # which looks to be a dead project)
  7068. lt_prog_compiler_wl='-Wl,'
  7069. lt_prog_compiler_pic='-fpic'
  7070. lt_prog_compiler_static='-Bstatic'
  7071. ;;
  7072. ccc*)
  7073. lt_prog_compiler_wl='-Wl,'
  7074. # All Alpha code is PIC.
  7075. lt_prog_compiler_static='-non_shared'
  7076. ;;
  7077. xl* | bgxl* | bgf* | mpixl*)
  7078. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7079. lt_prog_compiler_wl='-Wl,'
  7080. lt_prog_compiler_pic='-qpic'
  7081. lt_prog_compiler_static='-qstaticlink'
  7082. ;;
  7083. *)
  7084. case `$CC -V 2>&1 | sed 5q` in
  7085. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7086. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7087. lt_prog_compiler_pic='-KPIC'
  7088. lt_prog_compiler_static='-Bstatic'
  7089. lt_prog_compiler_wl=''
  7090. ;;
  7091. *Sun\ F* | *Sun*Fortran*)
  7092. lt_prog_compiler_pic='-KPIC'
  7093. lt_prog_compiler_static='-Bstatic'
  7094. lt_prog_compiler_wl='-Qoption ld '
  7095. ;;
  7096. *Sun\ C*)
  7097. # Sun C 5.9
  7098. lt_prog_compiler_pic='-KPIC'
  7099. lt_prog_compiler_static='-Bstatic'
  7100. lt_prog_compiler_wl='-Wl,'
  7101. ;;
  7102. *Intel*\ [CF]*Compiler*)
  7103. lt_prog_compiler_wl='-Wl,'
  7104. lt_prog_compiler_pic='-fPIC'
  7105. lt_prog_compiler_static='-static'
  7106. ;;
  7107. *Portland\ Group*)
  7108. lt_prog_compiler_wl='-Wl,'
  7109. lt_prog_compiler_pic='-fpic'
  7110. lt_prog_compiler_static='-Bstatic'
  7111. ;;
  7112. esac
  7113. ;;
  7114. esac
  7115. ;;
  7116. newsos6)
  7117. lt_prog_compiler_pic='-KPIC'
  7118. lt_prog_compiler_static='-Bstatic'
  7119. ;;
  7120. *nto* | *qnx*)
  7121. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7122. # it will coredump.
  7123. lt_prog_compiler_pic='-fPIC -shared'
  7124. ;;
  7125. osf3* | osf4* | osf5*)
  7126. lt_prog_compiler_wl='-Wl,'
  7127. # All OSF/1 code is PIC.
  7128. lt_prog_compiler_static='-non_shared'
  7129. ;;
  7130. rdos*)
  7131. lt_prog_compiler_static='-non_shared'
  7132. ;;
  7133. solaris*)
  7134. lt_prog_compiler_pic='-KPIC'
  7135. lt_prog_compiler_static='-Bstatic'
  7136. case $cc_basename in
  7137. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7138. lt_prog_compiler_wl='-Qoption ld ';;
  7139. *)
  7140. lt_prog_compiler_wl='-Wl,';;
  7141. esac
  7142. ;;
  7143. sunos4*)
  7144. lt_prog_compiler_wl='-Qoption ld '
  7145. lt_prog_compiler_pic='-PIC'
  7146. lt_prog_compiler_static='-Bstatic'
  7147. ;;
  7148. sysv4 | sysv4.2uw2* | sysv4.3*)
  7149. lt_prog_compiler_wl='-Wl,'
  7150. lt_prog_compiler_pic='-KPIC'
  7151. lt_prog_compiler_static='-Bstatic'
  7152. ;;
  7153. sysv4*MP*)
  7154. if test -d /usr/nec ;then
  7155. lt_prog_compiler_pic='-Kconform_pic'
  7156. lt_prog_compiler_static='-Bstatic'
  7157. fi
  7158. ;;
  7159. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7160. lt_prog_compiler_wl='-Wl,'
  7161. lt_prog_compiler_pic='-KPIC'
  7162. lt_prog_compiler_static='-Bstatic'
  7163. ;;
  7164. unicos*)
  7165. lt_prog_compiler_wl='-Wl,'
  7166. lt_prog_compiler_can_build_shared=no
  7167. ;;
  7168. uts4*)
  7169. lt_prog_compiler_pic='-pic'
  7170. lt_prog_compiler_static='-Bstatic'
  7171. ;;
  7172. *)
  7173. lt_prog_compiler_can_build_shared=no
  7174. ;;
  7175. esac
  7176. fi
  7177. case $host_os in
  7178. # For platforms which do not support PIC, -DPIC is meaningless:
  7179. *djgpp*)
  7180. lt_prog_compiler_pic=
  7181. ;;
  7182. *)
  7183. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7184. ;;
  7185. esac
  7186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7187. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7188. if ${lt_cv_prog_compiler_pic+:} false; then :
  7189. $as_echo_n "(cached) " >&6
  7190. else
  7191. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7192. fi
  7193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7194. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7195. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7196. #
  7197. # Check to make sure the PIC flag actually works.
  7198. #
  7199. if test -n "$lt_prog_compiler_pic"; then
  7200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7201. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7202. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7203. $as_echo_n "(cached) " >&6
  7204. else
  7205. lt_cv_prog_compiler_pic_works=no
  7206. ac_outfile=conftest.$ac_objext
  7207. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7208. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7209. # Insert the option either (1) after the last *FLAGS variable, or
  7210. # (2) before a word containing "conftest.", or (3) at the end.
  7211. # Note that $ac_compile itself does not contain backslashes and begins
  7212. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7213. # The option is referenced via a variable to avoid confusing sed.
  7214. lt_compile=`echo "$ac_compile" | $SED \
  7215. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7216. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7217. -e 's:$: $lt_compiler_flag:'`
  7218. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7219. (eval "$lt_compile" 2>conftest.err)
  7220. ac_status=$?
  7221. cat conftest.err >&5
  7222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7223. if (exit $ac_status) && test -s "$ac_outfile"; then
  7224. # The compiler can only warn and ignore the option if not recognized
  7225. # So say no if there are warnings other than the usual output.
  7226. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7227. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7228. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7229. lt_cv_prog_compiler_pic_works=yes
  7230. fi
  7231. fi
  7232. $RM conftest*
  7233. fi
  7234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7235. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7236. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7237. case $lt_prog_compiler_pic in
  7238. "" | " "*) ;;
  7239. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7240. esac
  7241. else
  7242. lt_prog_compiler_pic=
  7243. lt_prog_compiler_can_build_shared=no
  7244. fi
  7245. fi
  7246. #
  7247. # Check to make sure the static flag actually works.
  7248. #
  7249. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7251. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7252. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7253. $as_echo_n "(cached) " >&6
  7254. else
  7255. lt_cv_prog_compiler_static_works=no
  7256. save_LDFLAGS="$LDFLAGS"
  7257. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7258. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7259. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7260. # The linker can only warn and ignore the option if not recognized
  7261. # So say no if there are warnings
  7262. if test -s conftest.err; then
  7263. # Append any errors to the config.log.
  7264. cat conftest.err 1>&5
  7265. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7266. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7267. if diff conftest.exp conftest.er2 >/dev/null; then
  7268. lt_cv_prog_compiler_static_works=yes
  7269. fi
  7270. else
  7271. lt_cv_prog_compiler_static_works=yes
  7272. fi
  7273. fi
  7274. $RM -r conftest*
  7275. LDFLAGS="$save_LDFLAGS"
  7276. fi
  7277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7278. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7279. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7280. :
  7281. else
  7282. lt_prog_compiler_static=
  7283. fi
  7284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7285. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7286. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7287. $as_echo_n "(cached) " >&6
  7288. else
  7289. lt_cv_prog_compiler_c_o=no
  7290. $RM -r conftest 2>/dev/null
  7291. mkdir conftest
  7292. cd conftest
  7293. mkdir out
  7294. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7295. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7296. # Insert the option either (1) after the last *FLAGS variable, or
  7297. # (2) before a word containing "conftest.", or (3) at the end.
  7298. # Note that $ac_compile itself does not contain backslashes and begins
  7299. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7300. lt_compile=`echo "$ac_compile" | $SED \
  7301. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7302. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7303. -e 's:$: $lt_compiler_flag:'`
  7304. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7305. (eval "$lt_compile" 2>out/conftest.err)
  7306. ac_status=$?
  7307. cat out/conftest.err >&5
  7308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7309. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7310. then
  7311. # The compiler can only warn and ignore the option if not recognized
  7312. # So say no if there are warnings
  7313. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7314. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7315. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7316. lt_cv_prog_compiler_c_o=yes
  7317. fi
  7318. fi
  7319. chmod u+w . 2>&5
  7320. $RM conftest*
  7321. # SGI C++ compiler will create directory out/ii_files/ for
  7322. # template instantiation
  7323. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7324. $RM out/* && rmdir out
  7325. cd ..
  7326. $RM -r conftest
  7327. $RM conftest*
  7328. fi
  7329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7330. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7332. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7333. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7334. $as_echo_n "(cached) " >&6
  7335. else
  7336. lt_cv_prog_compiler_c_o=no
  7337. $RM -r conftest 2>/dev/null
  7338. mkdir conftest
  7339. cd conftest
  7340. mkdir out
  7341. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7342. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7343. # Insert the option either (1) after the last *FLAGS variable, or
  7344. # (2) before a word containing "conftest.", or (3) at the end.
  7345. # Note that $ac_compile itself does not contain backslashes and begins
  7346. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7347. lt_compile=`echo "$ac_compile" | $SED \
  7348. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7349. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7350. -e 's:$: $lt_compiler_flag:'`
  7351. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7352. (eval "$lt_compile" 2>out/conftest.err)
  7353. ac_status=$?
  7354. cat out/conftest.err >&5
  7355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7356. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7357. then
  7358. # The compiler can only warn and ignore the option if not recognized
  7359. # So say no if there are warnings
  7360. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7361. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7362. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7363. lt_cv_prog_compiler_c_o=yes
  7364. fi
  7365. fi
  7366. chmod u+w . 2>&5
  7367. $RM conftest*
  7368. # SGI C++ compiler will create directory out/ii_files/ for
  7369. # template instantiation
  7370. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7371. $RM out/* && rmdir out
  7372. cd ..
  7373. $RM -r conftest
  7374. $RM conftest*
  7375. fi
  7376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7377. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7378. hard_links="nottested"
  7379. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7380. # do not overwrite the value of need_locks provided by the user
  7381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7382. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7383. hard_links=yes
  7384. $RM conftest*
  7385. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7386. touch conftest.a
  7387. ln conftest.a conftest.b 2>&5 || hard_links=no
  7388. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7390. $as_echo "$hard_links" >&6; }
  7391. if test "$hard_links" = no; then
  7392. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7393. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7394. need_locks=warn
  7395. fi
  7396. else
  7397. need_locks=no
  7398. fi
  7399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7400. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7401. runpath_var=
  7402. allow_undefined_flag=
  7403. always_export_symbols=no
  7404. archive_cmds=
  7405. archive_expsym_cmds=
  7406. compiler_needs_object=no
  7407. enable_shared_with_static_runtimes=no
  7408. export_dynamic_flag_spec=
  7409. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7410. hardcode_automatic=no
  7411. hardcode_direct=no
  7412. hardcode_direct_absolute=no
  7413. hardcode_libdir_flag_spec=
  7414. hardcode_libdir_separator=
  7415. hardcode_minus_L=no
  7416. hardcode_shlibpath_var=unsupported
  7417. inherit_rpath=no
  7418. link_all_deplibs=unknown
  7419. module_cmds=
  7420. module_expsym_cmds=
  7421. old_archive_from_new_cmds=
  7422. old_archive_from_expsyms_cmds=
  7423. thread_safe_flag_spec=
  7424. whole_archive_flag_spec=
  7425. # include_expsyms should be a list of space-separated symbols to be *always*
  7426. # included in the symbol list
  7427. include_expsyms=
  7428. # exclude_expsyms can be an extended regexp of symbols to exclude
  7429. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7430. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7431. # as well as any symbol that contains `d'.
  7432. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7433. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7434. # platforms (ab)use it in PIC code, but their linkers get confused if
  7435. # the symbol is explicitly referenced. Since portable code cannot
  7436. # rely on this symbol name, it's probably fine to never include it in
  7437. # preloaded symbol tables.
  7438. # Exclude shared library initialization/finalization symbols.
  7439. extract_expsyms_cmds=
  7440. case $host_os in
  7441. cygwin* | mingw* | pw32* | cegcc*)
  7442. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7443. # When not using gcc, we currently assume that we are using
  7444. # Microsoft Visual C++.
  7445. if test "$GCC" != yes; then
  7446. with_gnu_ld=no
  7447. fi
  7448. ;;
  7449. interix*)
  7450. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7451. with_gnu_ld=yes
  7452. ;;
  7453. openbsd*)
  7454. with_gnu_ld=no
  7455. ;;
  7456. esac
  7457. ld_shlibs=yes
  7458. # On some targets, GNU ld is compatible enough with the native linker
  7459. # that we're better off using the native interface for both.
  7460. lt_use_gnu_ld_interface=no
  7461. if test "$with_gnu_ld" = yes; then
  7462. case $host_os in
  7463. aix*)
  7464. # The AIX port of GNU ld has always aspired to compatibility
  7465. # with the native linker. However, as the warning in the GNU ld
  7466. # block says, versions before 2.19.5* couldn't really create working
  7467. # shared libraries, regardless of the interface used.
  7468. case `$LD -v 2>&1` in
  7469. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7470. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7471. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7472. *)
  7473. lt_use_gnu_ld_interface=yes
  7474. ;;
  7475. esac
  7476. ;;
  7477. *)
  7478. lt_use_gnu_ld_interface=yes
  7479. ;;
  7480. esac
  7481. fi
  7482. if test "$lt_use_gnu_ld_interface" = yes; then
  7483. # If archive_cmds runs LD, not CC, wlarc should be empty
  7484. wlarc='${wl}'
  7485. # Set some defaults for GNU ld with shared library support. These
  7486. # are reset later if shared libraries are not supported. Putting them
  7487. # here allows them to be overridden if necessary.
  7488. runpath_var=LD_RUN_PATH
  7489. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7490. export_dynamic_flag_spec='${wl}--export-dynamic'
  7491. # ancient GNU ld didn't support --whole-archive et. al.
  7492. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7493. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7494. else
  7495. whole_archive_flag_spec=
  7496. fi
  7497. supports_anon_versioning=no
  7498. case `$LD -v 2>&1` in
  7499. *GNU\ gold*) supports_anon_versioning=yes ;;
  7500. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7501. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7502. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7503. *\ 2.11.*) ;; # other 2.11 versions
  7504. *) supports_anon_versioning=yes ;;
  7505. esac
  7506. # See if GNU ld supports shared libraries.
  7507. case $host_os in
  7508. aix[3-9]*)
  7509. # On AIX/PPC, the GNU linker is very broken
  7510. if test "$host_cpu" != ia64; then
  7511. ld_shlibs=no
  7512. cat <<_LT_EOF 1>&2
  7513. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7514. *** to be unable to reliably create shared libraries on AIX.
  7515. *** Therefore, libtool is disabling shared libraries support. If you
  7516. *** really care for shared libraries, you may want to install binutils
  7517. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7518. *** You will then need to restart the configuration process.
  7519. _LT_EOF
  7520. fi
  7521. ;;
  7522. amigaos*)
  7523. case $host_cpu in
  7524. powerpc)
  7525. # see comment about AmigaOS4 .so support
  7526. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7527. archive_expsym_cmds=''
  7528. ;;
  7529. m68k)
  7530. 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)'
  7531. hardcode_libdir_flag_spec='-L$libdir'
  7532. hardcode_minus_L=yes
  7533. ;;
  7534. esac
  7535. ;;
  7536. beos*)
  7537. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7538. allow_undefined_flag=unsupported
  7539. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7540. # support --undefined. This deserves some investigation. FIXME
  7541. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7542. else
  7543. ld_shlibs=no
  7544. fi
  7545. ;;
  7546. cygwin* | mingw* | pw32* | cegcc*)
  7547. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7548. # as there is no search path for DLLs.
  7549. hardcode_libdir_flag_spec='-L$libdir'
  7550. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7551. allow_undefined_flag=unsupported
  7552. always_export_symbols=no
  7553. enable_shared_with_static_runtimes=yes
  7554. 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'
  7555. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7556. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7557. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7558. # If the export-symbols file already is a .def file (1st line
  7559. # is EXPORTS), use it as is; otherwise, prepend...
  7560. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7561. cp $export_symbols $output_objdir/$soname.def;
  7562. else
  7563. echo EXPORTS > $output_objdir/$soname.def;
  7564. cat $export_symbols >> $output_objdir/$soname.def;
  7565. fi~
  7566. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7567. else
  7568. ld_shlibs=no
  7569. fi
  7570. ;;
  7571. haiku*)
  7572. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7573. link_all_deplibs=yes
  7574. ;;
  7575. interix[3-9]*)
  7576. hardcode_direct=no
  7577. hardcode_shlibpath_var=no
  7578. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7579. export_dynamic_flag_spec='${wl}-E'
  7580. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7581. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7582. # default) and relocated if they conflict, which is a slow very memory
  7583. # consuming and fragmenting process. To avoid this, we pick a random,
  7584. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7585. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7586. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7587. 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'
  7588. ;;
  7589. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7590. tmp_diet=no
  7591. if test "$host_os" = linux-dietlibc; then
  7592. case $cc_basename in
  7593. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7594. esac
  7595. fi
  7596. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7597. && test "$tmp_diet" = no
  7598. then
  7599. tmp_addflag=' $pic_flag'
  7600. tmp_sharedflag='-shared'
  7601. case $cc_basename,$host_cpu in
  7602. pgcc*) # Portland Group C compiler
  7603. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7604. tmp_addflag=' $pic_flag'
  7605. ;;
  7606. pgf77* | pgf90* | pgf95* | pgfortran*)
  7607. # Portland Group f77 and f90 compilers
  7608. 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'
  7609. tmp_addflag=' $pic_flag -Mnomain' ;;
  7610. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7611. tmp_addflag=' -i_dynamic' ;;
  7612. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7613. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7614. ifc* | ifort*) # Intel Fortran compiler
  7615. tmp_addflag=' -nofor_main' ;;
  7616. lf95*) # Lahey Fortran 8.1
  7617. whole_archive_flag_spec=
  7618. tmp_sharedflag='--shared' ;;
  7619. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7620. tmp_sharedflag='-qmkshrobj'
  7621. tmp_addflag= ;;
  7622. nvcc*) # Cuda Compiler Driver 2.2
  7623. 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'
  7624. compiler_needs_object=yes
  7625. ;;
  7626. esac
  7627. case `$CC -V 2>&1 | sed 5q` in
  7628. *Sun\ C*) # Sun C 5.9
  7629. 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'
  7630. compiler_needs_object=yes
  7631. tmp_sharedflag='-G' ;;
  7632. *Sun\ F*) # Sun Fortran 8.3
  7633. tmp_sharedflag='-G' ;;
  7634. esac
  7635. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7636. if test "x$supports_anon_versioning" = xyes; then
  7637. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7638. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7639. echo "local: *; };" >> $output_objdir/$libname.ver~
  7640. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7641. fi
  7642. case $cc_basename in
  7643. xlf* | bgf* | bgxlf* | mpixlf*)
  7644. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7645. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7646. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7647. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7648. if test "x$supports_anon_versioning" = xyes; then
  7649. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7650. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7651. echo "local: *; };" >> $output_objdir/$libname.ver~
  7652. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7653. fi
  7654. ;;
  7655. esac
  7656. else
  7657. ld_shlibs=no
  7658. fi
  7659. ;;
  7660. netbsd*)
  7661. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7662. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7663. wlarc=
  7664. else
  7665. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7666. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7667. fi
  7668. ;;
  7669. solaris*)
  7670. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7671. ld_shlibs=no
  7672. cat <<_LT_EOF 1>&2
  7673. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7674. *** create shared libraries on Solaris systems. Therefore, libtool
  7675. *** is disabling shared libraries support. We urge you to upgrade GNU
  7676. *** binutils to release 2.9.1 or newer. Another option is to modify
  7677. *** your PATH or compiler configuration so that the native linker is
  7678. *** used, and then restart.
  7679. _LT_EOF
  7680. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7681. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7682. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7683. else
  7684. ld_shlibs=no
  7685. fi
  7686. ;;
  7687. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7688. case `$LD -v 2>&1` in
  7689. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7690. ld_shlibs=no
  7691. cat <<_LT_EOF 1>&2
  7692. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7693. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7694. *** is disabling shared libraries support. We urge you to upgrade GNU
  7695. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7696. *** your PATH or compiler configuration so that the native linker is
  7697. *** used, and then restart.
  7698. _LT_EOF
  7699. ;;
  7700. *)
  7701. # For security reasons, it is highly recommended that you always
  7702. # use absolute paths for naming shared libraries, and exclude the
  7703. # DT_RUNPATH tag from executables and libraries. But doing so
  7704. # requires that you compile everything twice, which is a pain.
  7705. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7706. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7707. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7708. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7709. else
  7710. ld_shlibs=no
  7711. fi
  7712. ;;
  7713. esac
  7714. ;;
  7715. sunos4*)
  7716. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7717. wlarc=
  7718. hardcode_direct=yes
  7719. hardcode_shlibpath_var=no
  7720. ;;
  7721. *)
  7722. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7723. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7724. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7725. else
  7726. ld_shlibs=no
  7727. fi
  7728. ;;
  7729. esac
  7730. if test "$ld_shlibs" = no; then
  7731. runpath_var=
  7732. hardcode_libdir_flag_spec=
  7733. export_dynamic_flag_spec=
  7734. whole_archive_flag_spec=
  7735. fi
  7736. else
  7737. # PORTME fill in a description of your system's linker (not GNU ld)
  7738. case $host_os in
  7739. aix3*)
  7740. allow_undefined_flag=unsupported
  7741. always_export_symbols=yes
  7742. 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'
  7743. # Note: this linker hardcodes the directories in LIBPATH if there
  7744. # are no directories specified by -L.
  7745. hardcode_minus_L=yes
  7746. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7747. # Neither direct hardcoding nor static linking is supported with a
  7748. # broken collect2.
  7749. hardcode_direct=unsupported
  7750. fi
  7751. ;;
  7752. aix[4-9]*)
  7753. if test "$host_cpu" = ia64; then
  7754. # On IA64, the linker does run time linking by default, so we don't
  7755. # have to do anything special.
  7756. aix_use_runtimelinking=no
  7757. exp_sym_flag='-Bexport'
  7758. no_entry_flag=""
  7759. else
  7760. # If we're using GNU nm, then we don't want the "-C" option.
  7761. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7762. # Also, AIX nm treats weak defined symbols like other global
  7763. # defined symbols, whereas GNU nm marks them as "W".
  7764. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7765. 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'
  7766. else
  7767. 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'
  7768. fi
  7769. aix_use_runtimelinking=no
  7770. # Test if we are trying to use run time linking or normal
  7771. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7772. # need to do runtime linking.
  7773. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7774. for ld_flag in $LDFLAGS; do
  7775. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7776. aix_use_runtimelinking=yes
  7777. break
  7778. fi
  7779. done
  7780. ;;
  7781. esac
  7782. exp_sym_flag='-bexport'
  7783. no_entry_flag='-bnoentry'
  7784. fi
  7785. # When large executables or shared objects are built, AIX ld can
  7786. # have problems creating the table of contents. If linking a library
  7787. # or program results in "error TOC overflow" add -mminimal-toc to
  7788. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7789. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7790. archive_cmds=''
  7791. hardcode_direct=yes
  7792. hardcode_direct_absolute=yes
  7793. hardcode_libdir_separator=':'
  7794. link_all_deplibs=yes
  7795. file_list_spec='${wl}-f,'
  7796. if test "$GCC" = yes; then
  7797. case $host_os in aix4.[012]|aix4.[012].*)
  7798. # We only want to do this on AIX 4.2 and lower, the check
  7799. # below for broken collect2 doesn't work under 4.3+
  7800. collect2name=`${CC} -print-prog-name=collect2`
  7801. if test -f "$collect2name" &&
  7802. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7803. then
  7804. # We have reworked collect2
  7805. :
  7806. else
  7807. # We have old collect2
  7808. hardcode_direct=unsupported
  7809. # It fails to find uninstalled libraries when the uninstalled
  7810. # path is not listed in the libpath. Setting hardcode_minus_L
  7811. # to unsupported forces relinking
  7812. hardcode_minus_L=yes
  7813. hardcode_libdir_flag_spec='-L$libdir'
  7814. hardcode_libdir_separator=
  7815. fi
  7816. ;;
  7817. esac
  7818. shared_flag='-shared'
  7819. if test "$aix_use_runtimelinking" = yes; then
  7820. shared_flag="$shared_flag "'${wl}-G'
  7821. fi
  7822. else
  7823. # not using gcc
  7824. if test "$host_cpu" = ia64; then
  7825. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7826. # chokes on -Wl,-G. The following line is correct:
  7827. shared_flag='-G'
  7828. else
  7829. if test "$aix_use_runtimelinking" = yes; then
  7830. shared_flag='${wl}-G'
  7831. else
  7832. shared_flag='${wl}-bM:SRE'
  7833. fi
  7834. fi
  7835. fi
  7836. export_dynamic_flag_spec='${wl}-bexpall'
  7837. # It seems that -bexpall does not export symbols beginning with
  7838. # underscore (_), so it is better to generate a list of symbols to export.
  7839. always_export_symbols=yes
  7840. if test "$aix_use_runtimelinking" = yes; then
  7841. # Warning - without using the other runtime loading flags (-brtl),
  7842. # -berok will link without error, but may produce a broken library.
  7843. allow_undefined_flag='-berok'
  7844. # Determine the default libpath from the value encoded in an
  7845. # empty executable.
  7846. if test "${lt_cv_aix_libpath+set}" = set; then
  7847. aix_libpath=$lt_cv_aix_libpath
  7848. else
  7849. if ${lt_cv_aix_libpath_+:} false; then :
  7850. $as_echo_n "(cached) " >&6
  7851. else
  7852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7853. /* end confdefs.h. */
  7854. int
  7855. main ()
  7856. {
  7857. ;
  7858. return 0;
  7859. }
  7860. _ACEOF
  7861. if ac_fn_c_try_link "$LINENO"; then :
  7862. lt_aix_libpath_sed='
  7863. /Import File Strings/,/^$/ {
  7864. /^0/ {
  7865. s/^0 *\([^ ]*\) *$/\1/
  7866. p
  7867. }
  7868. }'
  7869. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7870. # Check for a 64-bit object if we didn't find anything.
  7871. if test -z "$lt_cv_aix_libpath_"; then
  7872. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7873. fi
  7874. fi
  7875. rm -f core conftest.err conftest.$ac_objext \
  7876. conftest$ac_exeext conftest.$ac_ext
  7877. if test -z "$lt_cv_aix_libpath_"; then
  7878. lt_cv_aix_libpath_="/usr/lib:/lib"
  7879. fi
  7880. fi
  7881. aix_libpath=$lt_cv_aix_libpath_
  7882. fi
  7883. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7884. 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"
  7885. else
  7886. if test "$host_cpu" = ia64; then
  7887. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7888. allow_undefined_flag="-z nodefs"
  7889. 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"
  7890. else
  7891. # Determine the default libpath from the value encoded in an
  7892. # empty executable.
  7893. if test "${lt_cv_aix_libpath+set}" = set; then
  7894. aix_libpath=$lt_cv_aix_libpath
  7895. else
  7896. if ${lt_cv_aix_libpath_+:} false; then :
  7897. $as_echo_n "(cached) " >&6
  7898. else
  7899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7900. /* end confdefs.h. */
  7901. int
  7902. main ()
  7903. {
  7904. ;
  7905. return 0;
  7906. }
  7907. _ACEOF
  7908. if ac_fn_c_try_link "$LINENO"; then :
  7909. lt_aix_libpath_sed='
  7910. /Import File Strings/,/^$/ {
  7911. /^0/ {
  7912. s/^0 *\([^ ]*\) *$/\1/
  7913. p
  7914. }
  7915. }'
  7916. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7917. # Check for a 64-bit object if we didn't find anything.
  7918. if test -z "$lt_cv_aix_libpath_"; then
  7919. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7920. fi
  7921. fi
  7922. rm -f core conftest.err conftest.$ac_objext \
  7923. conftest$ac_exeext conftest.$ac_ext
  7924. if test -z "$lt_cv_aix_libpath_"; then
  7925. lt_cv_aix_libpath_="/usr/lib:/lib"
  7926. fi
  7927. fi
  7928. aix_libpath=$lt_cv_aix_libpath_
  7929. fi
  7930. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7931. # Warning - without using the other run time loading flags,
  7932. # -berok will link without error, but may produce a broken library.
  7933. no_undefined_flag=' ${wl}-bernotok'
  7934. allow_undefined_flag=' ${wl}-berok'
  7935. if test "$with_gnu_ld" = yes; then
  7936. # We only use this code for GNU lds that support --whole-archive.
  7937. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7938. else
  7939. # Exported symbols can be pulled into shared objects from archives
  7940. whole_archive_flag_spec='$convenience'
  7941. fi
  7942. archive_cmds_need_lc=yes
  7943. # This is similar to how AIX traditionally builds its shared libraries.
  7944. 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'
  7945. fi
  7946. fi
  7947. ;;
  7948. amigaos*)
  7949. case $host_cpu in
  7950. powerpc)
  7951. # see comment about AmigaOS4 .so support
  7952. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7953. archive_expsym_cmds=''
  7954. ;;
  7955. m68k)
  7956. 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)'
  7957. hardcode_libdir_flag_spec='-L$libdir'
  7958. hardcode_minus_L=yes
  7959. ;;
  7960. esac
  7961. ;;
  7962. bsdi[45]*)
  7963. export_dynamic_flag_spec=-rdynamic
  7964. ;;
  7965. cygwin* | mingw* | pw32* | cegcc*)
  7966. # When not using gcc, we currently assume that we are using
  7967. # Microsoft Visual C++.
  7968. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7969. # no search path for DLLs.
  7970. case $cc_basename in
  7971. cl*)
  7972. # Native MSVC
  7973. hardcode_libdir_flag_spec=' '
  7974. allow_undefined_flag=unsupported
  7975. always_export_symbols=yes
  7976. file_list_spec='@'
  7977. # Tell ltmain to make .lib files, not .a files.
  7978. libext=lib
  7979. # Tell ltmain to make .dll files, not .so files.
  7980. shrext_cmds=".dll"
  7981. # FIXME: Setting linknames here is a bad hack.
  7982. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7983. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7984. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7985. else
  7986. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7987. fi~
  7988. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7989. linknames='
  7990. # The linker will not automatically build a static lib if we build a DLL.
  7991. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7992. enable_shared_with_static_runtimes=yes
  7993. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7994. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7995. # Don't use ranlib
  7996. old_postinstall_cmds='chmod 644 $oldlib'
  7997. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7998. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7999. case $lt_outputfile in
  8000. *.exe|*.EXE) ;;
  8001. *)
  8002. lt_outputfile="$lt_outputfile.exe"
  8003. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8004. ;;
  8005. esac~
  8006. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8007. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8008. $RM "$lt_outputfile.manifest";
  8009. fi'
  8010. ;;
  8011. *)
  8012. # Assume MSVC wrapper
  8013. hardcode_libdir_flag_spec=' '
  8014. allow_undefined_flag=unsupported
  8015. # Tell ltmain to make .lib files, not .a files.
  8016. libext=lib
  8017. # Tell ltmain to make .dll files, not .so files.
  8018. shrext_cmds=".dll"
  8019. # FIXME: Setting linknames here is a bad hack.
  8020. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8021. # The linker will automatically build a .lib file if we build a DLL.
  8022. old_archive_from_new_cmds='true'
  8023. # FIXME: Should let the user specify the lib program.
  8024. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8025. enable_shared_with_static_runtimes=yes
  8026. ;;
  8027. esac
  8028. ;;
  8029. darwin* | rhapsody*)
  8030. archive_cmds_need_lc=no
  8031. hardcode_direct=no
  8032. hardcode_automatic=yes
  8033. hardcode_shlibpath_var=unsupported
  8034. if test "$lt_cv_ld_force_load" = "yes"; then
  8035. 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\"`'
  8036. else
  8037. whole_archive_flag_spec=''
  8038. fi
  8039. link_all_deplibs=yes
  8040. allow_undefined_flag="$_lt_dar_allow_undefined"
  8041. case $cc_basename in
  8042. ifort*) _lt_dar_can_shared=yes ;;
  8043. *) _lt_dar_can_shared=$GCC ;;
  8044. esac
  8045. if test "$_lt_dar_can_shared" = "yes"; then
  8046. output_verbose_link_cmd=func_echo_all
  8047. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8048. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8049. 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}"
  8050. 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}"
  8051. else
  8052. ld_shlibs=no
  8053. fi
  8054. ;;
  8055. dgux*)
  8056. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8057. hardcode_libdir_flag_spec='-L$libdir'
  8058. hardcode_shlibpath_var=no
  8059. ;;
  8060. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8061. # support. Future versions do this automatically, but an explicit c++rt0.o
  8062. # does not break anything, and helps significantly (at the cost of a little
  8063. # extra space).
  8064. freebsd2.2*)
  8065. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8066. hardcode_libdir_flag_spec='-R$libdir'
  8067. hardcode_direct=yes
  8068. hardcode_shlibpath_var=no
  8069. ;;
  8070. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8071. freebsd2.*)
  8072. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8073. hardcode_direct=yes
  8074. hardcode_minus_L=yes
  8075. hardcode_shlibpath_var=no
  8076. ;;
  8077. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8078. freebsd* | dragonfly*)
  8079. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8080. hardcode_libdir_flag_spec='-R$libdir'
  8081. hardcode_direct=yes
  8082. hardcode_shlibpath_var=no
  8083. ;;
  8084. hpux9*)
  8085. if test "$GCC" = yes; then
  8086. 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'
  8087. else
  8088. 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'
  8089. fi
  8090. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8091. hardcode_libdir_separator=:
  8092. hardcode_direct=yes
  8093. # hardcode_minus_L: Not really in the search PATH,
  8094. # but as the default location of the library.
  8095. hardcode_minus_L=yes
  8096. export_dynamic_flag_spec='${wl}-E'
  8097. ;;
  8098. hpux10*)
  8099. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8100. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8101. else
  8102. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8103. fi
  8104. if test "$with_gnu_ld" = no; then
  8105. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8106. hardcode_libdir_separator=:
  8107. hardcode_direct=yes
  8108. hardcode_direct_absolute=yes
  8109. export_dynamic_flag_spec='${wl}-E'
  8110. # hardcode_minus_L: Not really in the search PATH,
  8111. # but as the default location of the library.
  8112. hardcode_minus_L=yes
  8113. fi
  8114. ;;
  8115. hpux11*)
  8116. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8117. case $host_cpu in
  8118. hppa*64*)
  8119. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8120. ;;
  8121. ia64*)
  8122. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8123. ;;
  8124. *)
  8125. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8126. ;;
  8127. esac
  8128. else
  8129. case $host_cpu in
  8130. hppa*64*)
  8131. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8132. ;;
  8133. ia64*)
  8134. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8135. ;;
  8136. *)
  8137. # Older versions of the 11.00 compiler do not understand -b yet
  8138. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8140. $as_echo_n "checking if $CC understands -b... " >&6; }
  8141. if ${lt_cv_prog_compiler__b+:} false; then :
  8142. $as_echo_n "(cached) " >&6
  8143. else
  8144. lt_cv_prog_compiler__b=no
  8145. save_LDFLAGS="$LDFLAGS"
  8146. LDFLAGS="$LDFLAGS -b"
  8147. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8148. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8149. # The linker can only warn and ignore the option if not recognized
  8150. # So say no if there are warnings
  8151. if test -s conftest.err; then
  8152. # Append any errors to the config.log.
  8153. cat conftest.err 1>&5
  8154. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8155. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8156. if diff conftest.exp conftest.er2 >/dev/null; then
  8157. lt_cv_prog_compiler__b=yes
  8158. fi
  8159. else
  8160. lt_cv_prog_compiler__b=yes
  8161. fi
  8162. fi
  8163. $RM -r conftest*
  8164. LDFLAGS="$save_LDFLAGS"
  8165. fi
  8166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8167. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8168. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8169. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8170. else
  8171. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8172. fi
  8173. ;;
  8174. esac
  8175. fi
  8176. if test "$with_gnu_ld" = no; then
  8177. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8178. hardcode_libdir_separator=:
  8179. case $host_cpu in
  8180. hppa*64*|ia64*)
  8181. hardcode_direct=no
  8182. hardcode_shlibpath_var=no
  8183. ;;
  8184. *)
  8185. hardcode_direct=yes
  8186. hardcode_direct_absolute=yes
  8187. export_dynamic_flag_spec='${wl}-E'
  8188. # hardcode_minus_L: Not really in the search PATH,
  8189. # but as the default location of the library.
  8190. hardcode_minus_L=yes
  8191. ;;
  8192. esac
  8193. fi
  8194. ;;
  8195. irix5* | irix6* | nonstopux*)
  8196. if test "$GCC" = yes; then
  8197. 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'
  8198. # Try to use the -exported_symbol ld option, if it does not
  8199. # work, assume that -exports_file does not work either and
  8200. # implicitly export all symbols.
  8201. # This should be the same for all languages, so no per-tag cache variable.
  8202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8203. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8204. if ${lt_cv_irix_exported_symbol+:} false; then :
  8205. $as_echo_n "(cached) " >&6
  8206. else
  8207. save_LDFLAGS="$LDFLAGS"
  8208. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8210. /* end confdefs.h. */
  8211. int foo (void) { return 0; }
  8212. _ACEOF
  8213. if ac_fn_c_try_link "$LINENO"; then :
  8214. lt_cv_irix_exported_symbol=yes
  8215. else
  8216. lt_cv_irix_exported_symbol=no
  8217. fi
  8218. rm -f core conftest.err conftest.$ac_objext \
  8219. conftest$ac_exeext conftest.$ac_ext
  8220. LDFLAGS="$save_LDFLAGS"
  8221. fi
  8222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8223. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8224. if test "$lt_cv_irix_exported_symbol" = yes; then
  8225. 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'
  8226. fi
  8227. else
  8228. 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'
  8229. 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'
  8230. fi
  8231. archive_cmds_need_lc='no'
  8232. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8233. hardcode_libdir_separator=:
  8234. inherit_rpath=yes
  8235. link_all_deplibs=yes
  8236. ;;
  8237. netbsd*)
  8238. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8239. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8240. else
  8241. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8242. fi
  8243. hardcode_libdir_flag_spec='-R$libdir'
  8244. hardcode_direct=yes
  8245. hardcode_shlibpath_var=no
  8246. ;;
  8247. newsos6)
  8248. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8249. hardcode_direct=yes
  8250. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8251. hardcode_libdir_separator=:
  8252. hardcode_shlibpath_var=no
  8253. ;;
  8254. *nto* | *qnx*)
  8255. ;;
  8256. openbsd*)
  8257. if test -f /usr/libexec/ld.so; then
  8258. hardcode_direct=yes
  8259. hardcode_shlibpath_var=no
  8260. hardcode_direct_absolute=yes
  8261. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8262. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8263. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8264. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8265. export_dynamic_flag_spec='${wl}-E'
  8266. else
  8267. case $host_os in
  8268. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8269. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8270. hardcode_libdir_flag_spec='-R$libdir'
  8271. ;;
  8272. *)
  8273. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8274. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8275. ;;
  8276. esac
  8277. fi
  8278. else
  8279. ld_shlibs=no
  8280. fi
  8281. ;;
  8282. os2*)
  8283. hardcode_libdir_flag_spec='-L$libdir'
  8284. hardcode_minus_L=yes
  8285. allow_undefined_flag=unsupported
  8286. 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'
  8287. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8288. ;;
  8289. osf3*)
  8290. if test "$GCC" = yes; then
  8291. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8292. 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'
  8293. else
  8294. allow_undefined_flag=' -expect_unresolved \*'
  8295. 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'
  8296. fi
  8297. archive_cmds_need_lc='no'
  8298. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8299. hardcode_libdir_separator=:
  8300. ;;
  8301. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8302. if test "$GCC" = yes; then
  8303. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8304. 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'
  8305. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8306. else
  8307. allow_undefined_flag=' -expect_unresolved \*'
  8308. 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'
  8309. 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~
  8310. $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'
  8311. # Both c and cxx compiler support -rpath directly
  8312. hardcode_libdir_flag_spec='-rpath $libdir'
  8313. fi
  8314. archive_cmds_need_lc='no'
  8315. hardcode_libdir_separator=:
  8316. ;;
  8317. solaris*)
  8318. no_undefined_flag=' -z defs'
  8319. if test "$GCC" = yes; then
  8320. wlarc='${wl}'
  8321. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8322. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8323. $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'
  8324. else
  8325. case `$CC -V 2>&1` in
  8326. *"Compilers 5.0"*)
  8327. wlarc=''
  8328. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8329. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8330. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8331. ;;
  8332. *)
  8333. wlarc='${wl}'
  8334. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8335. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8336. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8337. ;;
  8338. esac
  8339. fi
  8340. hardcode_libdir_flag_spec='-R$libdir'
  8341. hardcode_shlibpath_var=no
  8342. case $host_os in
  8343. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8344. *)
  8345. # The compiler driver will combine and reorder linker options,
  8346. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8347. # but is careful enough not to reorder.
  8348. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8349. if test "$GCC" = yes; then
  8350. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8351. else
  8352. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8353. fi
  8354. ;;
  8355. esac
  8356. link_all_deplibs=yes
  8357. ;;
  8358. sunos4*)
  8359. if test "x$host_vendor" = xsequent; then
  8360. # Use $CC to link under sequent, because it throws in some extra .o
  8361. # files that make .init and .fini sections work.
  8362. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8363. else
  8364. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8365. fi
  8366. hardcode_libdir_flag_spec='-L$libdir'
  8367. hardcode_direct=yes
  8368. hardcode_minus_L=yes
  8369. hardcode_shlibpath_var=no
  8370. ;;
  8371. sysv4)
  8372. case $host_vendor in
  8373. sni)
  8374. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8375. hardcode_direct=yes # is this really true???
  8376. ;;
  8377. siemens)
  8378. ## LD is ld it makes a PLAMLIB
  8379. ## CC just makes a GrossModule.
  8380. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8381. reload_cmds='$CC -r -o $output$reload_objs'
  8382. hardcode_direct=no
  8383. ;;
  8384. motorola)
  8385. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8386. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8387. ;;
  8388. esac
  8389. runpath_var='LD_RUN_PATH'
  8390. hardcode_shlibpath_var=no
  8391. ;;
  8392. sysv4.3*)
  8393. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8394. hardcode_shlibpath_var=no
  8395. export_dynamic_flag_spec='-Bexport'
  8396. ;;
  8397. sysv4*MP*)
  8398. if test -d /usr/nec; then
  8399. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8400. hardcode_shlibpath_var=no
  8401. runpath_var=LD_RUN_PATH
  8402. hardcode_runpath_var=yes
  8403. ld_shlibs=yes
  8404. fi
  8405. ;;
  8406. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8407. no_undefined_flag='${wl}-z,text'
  8408. archive_cmds_need_lc=no
  8409. hardcode_shlibpath_var=no
  8410. runpath_var='LD_RUN_PATH'
  8411. if test "$GCC" = yes; then
  8412. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8413. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8414. else
  8415. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8416. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8417. fi
  8418. ;;
  8419. sysv5* | sco3.2v5* | sco5v6*)
  8420. # Note: We can NOT use -z defs as we might desire, because we do not
  8421. # link with -lc, and that would cause any symbols used from libc to
  8422. # always be unresolved, which means just about no library would
  8423. # ever link correctly. If we're not using GNU ld we use -z text
  8424. # though, which does catch some bad symbols but isn't as heavy-handed
  8425. # as -z defs.
  8426. no_undefined_flag='${wl}-z,text'
  8427. allow_undefined_flag='${wl}-z,nodefs'
  8428. archive_cmds_need_lc=no
  8429. hardcode_shlibpath_var=no
  8430. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8431. hardcode_libdir_separator=':'
  8432. link_all_deplibs=yes
  8433. export_dynamic_flag_spec='${wl}-Bexport'
  8434. runpath_var='LD_RUN_PATH'
  8435. if test "$GCC" = yes; then
  8436. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8437. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8438. else
  8439. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8440. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8441. fi
  8442. ;;
  8443. uts4*)
  8444. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8445. hardcode_libdir_flag_spec='-L$libdir'
  8446. hardcode_shlibpath_var=no
  8447. ;;
  8448. *)
  8449. ld_shlibs=no
  8450. ;;
  8451. esac
  8452. if test x$host_vendor = xsni; then
  8453. case $host in
  8454. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8455. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8456. ;;
  8457. esac
  8458. fi
  8459. fi
  8460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8461. $as_echo "$ld_shlibs" >&6; }
  8462. test "$ld_shlibs" = no && can_build_shared=no
  8463. with_gnu_ld=$with_gnu_ld
  8464. #
  8465. # Do we need to explicitly link libc?
  8466. #
  8467. case "x$archive_cmds_need_lc" in
  8468. x|xyes)
  8469. # Assume -lc should be added
  8470. archive_cmds_need_lc=yes
  8471. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8472. case $archive_cmds in
  8473. *'~'*)
  8474. # FIXME: we may have to deal with multi-command sequences.
  8475. ;;
  8476. '$CC '*)
  8477. # Test whether the compiler implicitly links with -lc since on some
  8478. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8479. # to ld, don't add -lc before -lgcc.
  8480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8481. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8482. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8483. $as_echo_n "(cached) " >&6
  8484. else
  8485. $RM conftest*
  8486. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8487. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8488. (eval $ac_compile) 2>&5
  8489. ac_status=$?
  8490. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8491. test $ac_status = 0; } 2>conftest.err; then
  8492. soname=conftest
  8493. lib=conftest
  8494. libobjs=conftest.$ac_objext
  8495. deplibs=
  8496. wl=$lt_prog_compiler_wl
  8497. pic_flag=$lt_prog_compiler_pic
  8498. compiler_flags=-v
  8499. linker_flags=-v
  8500. verstring=
  8501. output_objdir=.
  8502. libname=conftest
  8503. lt_save_allow_undefined_flag=$allow_undefined_flag
  8504. allow_undefined_flag=
  8505. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8506. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8507. ac_status=$?
  8508. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8509. test $ac_status = 0; }
  8510. then
  8511. lt_cv_archive_cmds_need_lc=no
  8512. else
  8513. lt_cv_archive_cmds_need_lc=yes
  8514. fi
  8515. allow_undefined_flag=$lt_save_allow_undefined_flag
  8516. else
  8517. cat conftest.err 1>&5
  8518. fi
  8519. $RM conftest*
  8520. fi
  8521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8522. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8523. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8524. ;;
  8525. esac
  8526. fi
  8527. ;;
  8528. esac
  8529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8530. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8531. if test "$GCC" = yes; then
  8532. case $host_os in
  8533. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8534. *) lt_awk_arg="/^libraries:/" ;;
  8535. esac
  8536. case $host_os in
  8537. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8538. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8539. esac
  8540. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8541. case $lt_search_path_spec in
  8542. *\;*)
  8543. # if the path contains ";" then we assume it to be the separator
  8544. # otherwise default to the standard path separator (i.e. ":") - it is
  8545. # assumed that no part of a normal pathname contains ";" but that should
  8546. # okay in the real world where ";" in dirpaths is itself problematic.
  8547. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8548. ;;
  8549. *)
  8550. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8551. ;;
  8552. esac
  8553. # Ok, now we have the path, separated by spaces, we can step through it
  8554. # and add multilib dir if necessary...
  8555. lt_tmp_lt_search_path_spec=
  8556. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8557. # ...but if some path already ends with the multilib dir we assume
  8558. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8559. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8560. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8561. lt_multi_os_dir=
  8562. ;;
  8563. esac
  8564. for lt_sys_path in $lt_search_path_spec; do
  8565. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8566. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8567. elif test -n "$lt_multi_os_dir"; then
  8568. test -d "$lt_sys_path" && \
  8569. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8570. fi
  8571. done
  8572. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8573. BEGIN {RS=" "; FS="/|\n";} {
  8574. lt_foo="";
  8575. lt_count=0;
  8576. for (lt_i = NF; lt_i > 0; lt_i--) {
  8577. if ($lt_i != "" && $lt_i != ".") {
  8578. if ($lt_i == "..") {
  8579. lt_count++;
  8580. } else {
  8581. if (lt_count == 0) {
  8582. lt_foo="/" $lt_i lt_foo;
  8583. } else {
  8584. lt_count--;
  8585. }
  8586. }
  8587. }
  8588. }
  8589. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8590. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8591. }'`
  8592. # AWK program above erroneously prepends '/' to C:/dos/paths
  8593. # for these hosts.
  8594. case $host_os in
  8595. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8596. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8597. esac
  8598. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8599. else
  8600. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8601. fi
  8602. library_names_spec=
  8603. libname_spec='lib$name'
  8604. soname_spec=
  8605. shrext_cmds=".so"
  8606. postinstall_cmds=
  8607. postuninstall_cmds=
  8608. finish_cmds=
  8609. finish_eval=
  8610. shlibpath_var=
  8611. shlibpath_overrides_runpath=unknown
  8612. version_type=none
  8613. dynamic_linker="$host_os ld.so"
  8614. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8615. need_lib_prefix=unknown
  8616. hardcode_into_libs=no
  8617. # when you set need_version to no, make sure it does not cause -set_version
  8618. # flags to be left without arguments
  8619. need_version=unknown
  8620. case $host_os in
  8621. aix3*)
  8622. version_type=linux # correct to gnu/linux during the next big refactor
  8623. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8624. shlibpath_var=LIBPATH
  8625. # AIX 3 has no versioning support, so we append a major version to the name.
  8626. soname_spec='${libname}${release}${shared_ext}$major'
  8627. ;;
  8628. aix[4-9]*)
  8629. version_type=linux # correct to gnu/linux during the next big refactor
  8630. need_lib_prefix=no
  8631. need_version=no
  8632. hardcode_into_libs=yes
  8633. if test "$host_cpu" = ia64; then
  8634. # AIX 5 supports IA64
  8635. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8636. shlibpath_var=LD_LIBRARY_PATH
  8637. else
  8638. # With GCC up to 2.95.x, collect2 would create an import file
  8639. # for dependence libraries. The import file would start with
  8640. # the line `#! .'. This would cause the generated library to
  8641. # depend on `.', always an invalid library. This was fixed in
  8642. # development snapshots of GCC prior to 3.0.
  8643. case $host_os in
  8644. aix4 | aix4.[01] | aix4.[01].*)
  8645. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8646. echo ' yes '
  8647. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8648. :
  8649. else
  8650. can_build_shared=no
  8651. fi
  8652. ;;
  8653. esac
  8654. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8655. # soname into executable. Probably we can add versioning support to
  8656. # collect2, so additional links can be useful in future.
  8657. if test "$aix_use_runtimelinking" = yes; then
  8658. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8659. # instead of lib<name>.a to let people know that these are not
  8660. # typical AIX shared libraries.
  8661. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8662. else
  8663. # We preserve .a as extension for shared libraries through AIX4.2
  8664. # and later when we are not doing run time linking.
  8665. library_names_spec='${libname}${release}.a $libname.a'
  8666. soname_spec='${libname}${release}${shared_ext}$major'
  8667. fi
  8668. shlibpath_var=LIBPATH
  8669. fi
  8670. ;;
  8671. amigaos*)
  8672. case $host_cpu in
  8673. powerpc)
  8674. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8675. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8676. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8677. ;;
  8678. m68k)
  8679. library_names_spec='$libname.ixlibrary $libname.a'
  8680. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8681. 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'
  8682. ;;
  8683. esac
  8684. ;;
  8685. beos*)
  8686. library_names_spec='${libname}${shared_ext}'
  8687. dynamic_linker="$host_os ld.so"
  8688. shlibpath_var=LIBRARY_PATH
  8689. ;;
  8690. bsdi[45]*)
  8691. version_type=linux # correct to gnu/linux during the next big refactor
  8692. need_version=no
  8693. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8694. soname_spec='${libname}${release}${shared_ext}$major'
  8695. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8696. shlibpath_var=LD_LIBRARY_PATH
  8697. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8698. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8699. # the default ld.so.conf also contains /usr/contrib/lib and
  8700. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8701. # libtool to hard-code these into programs
  8702. ;;
  8703. cygwin* | mingw* | pw32* | cegcc*)
  8704. version_type=windows
  8705. shrext_cmds=".dll"
  8706. need_version=no
  8707. need_lib_prefix=no
  8708. case $GCC,$cc_basename in
  8709. yes,*)
  8710. # gcc
  8711. library_names_spec='$libname.dll.a'
  8712. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8713. postinstall_cmds='base_file=`basename \${file}`~
  8714. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8715. dldir=$destdir/`dirname \$dlpath`~
  8716. test -d \$dldir || mkdir -p \$dldir~
  8717. $install_prog $dir/$dlname \$dldir/$dlname~
  8718. chmod a+x \$dldir/$dlname~
  8719. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8720. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8721. fi'
  8722. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8723. dlpath=$dir/\$dldll~
  8724. $RM \$dlpath'
  8725. shlibpath_overrides_runpath=yes
  8726. case $host_os in
  8727. cygwin*)
  8728. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8729. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8730. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8731. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8732. ;;
  8733. mingw* | cegcc*)
  8734. # MinGW DLLs use traditional 'lib' prefix
  8735. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8736. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8737. ;;
  8738. pw32*)
  8739. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8740. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8741. ;;
  8742. esac
  8743. dynamic_linker='Win32 ld.exe'
  8744. ;;
  8745. *,cl*)
  8746. # Native MSVC
  8747. libname_spec='$name'
  8748. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8749. library_names_spec='${libname}.dll.lib'
  8750. case $build_os in
  8751. mingw*)
  8752. sys_lib_search_path_spec=
  8753. lt_save_ifs=$IFS
  8754. IFS=';'
  8755. for lt_path in $LIB
  8756. do
  8757. IFS=$lt_save_ifs
  8758. # Let DOS variable expansion print the short 8.3 style file name.
  8759. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8760. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8761. done
  8762. IFS=$lt_save_ifs
  8763. # Convert to MSYS style.
  8764. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8765. ;;
  8766. cygwin*)
  8767. # Convert to unix form, then to dos form, then back to unix form
  8768. # but this time dos style (no spaces!) so that the unix form looks
  8769. # like /cygdrive/c/PROGRA~1:/cygdr...
  8770. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8771. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8772. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8773. ;;
  8774. *)
  8775. sys_lib_search_path_spec="$LIB"
  8776. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8777. # It is most probably a Windows format PATH.
  8778. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8779. else
  8780. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8781. fi
  8782. # FIXME: find the short name or the path components, as spaces are
  8783. # common. (e.g. "Program Files" -> "PROGRA~1")
  8784. ;;
  8785. esac
  8786. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8787. postinstall_cmds='base_file=`basename \${file}`~
  8788. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8789. dldir=$destdir/`dirname \$dlpath`~
  8790. test -d \$dldir || mkdir -p \$dldir~
  8791. $install_prog $dir/$dlname \$dldir/$dlname'
  8792. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8793. dlpath=$dir/\$dldll~
  8794. $RM \$dlpath'
  8795. shlibpath_overrides_runpath=yes
  8796. dynamic_linker='Win32 link.exe'
  8797. ;;
  8798. *)
  8799. # Assume MSVC wrapper
  8800. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8801. dynamic_linker='Win32 ld.exe'
  8802. ;;
  8803. esac
  8804. # FIXME: first we should search . and the directory the executable is in
  8805. shlibpath_var=PATH
  8806. ;;
  8807. darwin* | rhapsody*)
  8808. dynamic_linker="$host_os dyld"
  8809. version_type=darwin
  8810. need_lib_prefix=no
  8811. need_version=no
  8812. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8813. soname_spec='${libname}${release}${major}$shared_ext'
  8814. shlibpath_overrides_runpath=yes
  8815. shlibpath_var=DYLD_LIBRARY_PATH
  8816. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8817. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8818. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8819. ;;
  8820. dgux*)
  8821. version_type=linux # correct to gnu/linux during the next big refactor
  8822. need_lib_prefix=no
  8823. need_version=no
  8824. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8825. soname_spec='${libname}${release}${shared_ext}$major'
  8826. shlibpath_var=LD_LIBRARY_PATH
  8827. ;;
  8828. freebsd* | dragonfly*)
  8829. # DragonFly does not have aout. When/if they implement a new
  8830. # versioning mechanism, adjust this.
  8831. if test -x /usr/bin/objformat; then
  8832. objformat=`/usr/bin/objformat`
  8833. else
  8834. case $host_os in
  8835. freebsd[23].*) objformat=aout ;;
  8836. *) objformat=elf ;;
  8837. esac
  8838. fi
  8839. version_type=freebsd-$objformat
  8840. case $version_type in
  8841. freebsd-elf*)
  8842. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8843. need_version=no
  8844. need_lib_prefix=no
  8845. ;;
  8846. freebsd-*)
  8847. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8848. need_version=yes
  8849. ;;
  8850. esac
  8851. shlibpath_var=LD_LIBRARY_PATH
  8852. case $host_os in
  8853. freebsd2.*)
  8854. shlibpath_overrides_runpath=yes
  8855. ;;
  8856. freebsd3.[01]* | freebsdelf3.[01]*)
  8857. shlibpath_overrides_runpath=yes
  8858. hardcode_into_libs=yes
  8859. ;;
  8860. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8861. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8862. shlibpath_overrides_runpath=no
  8863. hardcode_into_libs=yes
  8864. ;;
  8865. *) # from 4.6 on, and DragonFly
  8866. shlibpath_overrides_runpath=yes
  8867. hardcode_into_libs=yes
  8868. ;;
  8869. esac
  8870. ;;
  8871. gnu*)
  8872. version_type=linux # correct to gnu/linux during the next big refactor
  8873. need_lib_prefix=no
  8874. need_version=no
  8875. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8876. soname_spec='${libname}${release}${shared_ext}$major'
  8877. shlibpath_var=LD_LIBRARY_PATH
  8878. shlibpath_overrides_runpath=no
  8879. hardcode_into_libs=yes
  8880. ;;
  8881. haiku*)
  8882. version_type=linux # correct to gnu/linux during the next big refactor
  8883. need_lib_prefix=no
  8884. need_version=no
  8885. dynamic_linker="$host_os runtime_loader"
  8886. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8887. soname_spec='${libname}${release}${shared_ext}$major'
  8888. shlibpath_var=LIBRARY_PATH
  8889. shlibpath_overrides_runpath=yes
  8890. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8891. hardcode_into_libs=yes
  8892. ;;
  8893. hpux9* | hpux10* | hpux11*)
  8894. # Give a soname corresponding to the major version so that dld.sl refuses to
  8895. # link against other versions.
  8896. version_type=sunos
  8897. need_lib_prefix=no
  8898. need_version=no
  8899. case $host_cpu in
  8900. ia64*)
  8901. shrext_cmds='.so'
  8902. hardcode_into_libs=yes
  8903. dynamic_linker="$host_os dld.so"
  8904. shlibpath_var=LD_LIBRARY_PATH
  8905. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8907. soname_spec='${libname}${release}${shared_ext}$major'
  8908. if test "X$HPUX_IA64_MODE" = X32; then
  8909. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8910. else
  8911. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8912. fi
  8913. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8914. ;;
  8915. hppa*64*)
  8916. shrext_cmds='.sl'
  8917. hardcode_into_libs=yes
  8918. dynamic_linker="$host_os dld.sl"
  8919. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8920. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8921. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8922. soname_spec='${libname}${release}${shared_ext}$major'
  8923. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8924. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8925. ;;
  8926. *)
  8927. shrext_cmds='.sl'
  8928. dynamic_linker="$host_os dld.sl"
  8929. shlibpath_var=SHLIB_PATH
  8930. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8931. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8932. soname_spec='${libname}${release}${shared_ext}$major'
  8933. ;;
  8934. esac
  8935. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8936. postinstall_cmds='chmod 555 $lib'
  8937. # or fails outright, so override atomically:
  8938. install_override_mode=555
  8939. ;;
  8940. interix[3-9]*)
  8941. version_type=linux # correct to gnu/linux during the next big refactor
  8942. need_lib_prefix=no
  8943. need_version=no
  8944. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8945. soname_spec='${libname}${release}${shared_ext}$major'
  8946. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8947. shlibpath_var=LD_LIBRARY_PATH
  8948. shlibpath_overrides_runpath=no
  8949. hardcode_into_libs=yes
  8950. ;;
  8951. irix5* | irix6* | nonstopux*)
  8952. case $host_os in
  8953. nonstopux*) version_type=nonstopux ;;
  8954. *)
  8955. if test "$lt_cv_prog_gnu_ld" = yes; then
  8956. version_type=linux # correct to gnu/linux during the next big refactor
  8957. else
  8958. version_type=irix
  8959. fi ;;
  8960. esac
  8961. need_lib_prefix=no
  8962. need_version=no
  8963. soname_spec='${libname}${release}${shared_ext}$major'
  8964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8965. case $host_os in
  8966. irix5* | nonstopux*)
  8967. libsuff= shlibsuff=
  8968. ;;
  8969. *)
  8970. case $LD in # libtool.m4 will add one of these switches to LD
  8971. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8972. libsuff= shlibsuff= libmagic=32-bit;;
  8973. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8974. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8975. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8976. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8977. *) libsuff= shlibsuff= libmagic=never-match;;
  8978. esac
  8979. ;;
  8980. esac
  8981. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8982. shlibpath_overrides_runpath=no
  8983. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8984. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8985. hardcode_into_libs=yes
  8986. ;;
  8987. # No shared lib support for Linux oldld, aout, or coff.
  8988. linux*oldld* | linux*aout* | linux*coff*)
  8989. dynamic_linker=no
  8990. ;;
  8991. # This must be glibc/ELF.
  8992. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8993. version_type=linux # correct to gnu/linux during the next big refactor
  8994. need_lib_prefix=no
  8995. need_version=no
  8996. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8997. soname_spec='${libname}${release}${shared_ext}$major'
  8998. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8999. shlibpath_var=LD_LIBRARY_PATH
  9000. shlibpath_overrides_runpath=no
  9001. # Some binutils ld are patched to set DT_RUNPATH
  9002. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9003. $as_echo_n "(cached) " >&6
  9004. else
  9005. lt_cv_shlibpath_overrides_runpath=no
  9006. save_LDFLAGS=$LDFLAGS
  9007. save_libdir=$libdir
  9008. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9009. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9011. /* end confdefs.h. */
  9012. int
  9013. main ()
  9014. {
  9015. ;
  9016. return 0;
  9017. }
  9018. _ACEOF
  9019. if ac_fn_c_try_link "$LINENO"; then :
  9020. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9021. lt_cv_shlibpath_overrides_runpath=yes
  9022. fi
  9023. fi
  9024. rm -f core conftest.err conftest.$ac_objext \
  9025. conftest$ac_exeext conftest.$ac_ext
  9026. LDFLAGS=$save_LDFLAGS
  9027. libdir=$save_libdir
  9028. fi
  9029. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9030. # This implies no fast_install, which is unacceptable.
  9031. # Some rework will be needed to allow for fast_install
  9032. # before this can be enabled.
  9033. hardcode_into_libs=yes
  9034. # Append ld.so.conf contents to the search path
  9035. if test -f /etc/ld.so.conf; then
  9036. 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' ' '`
  9037. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9038. fi
  9039. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9040. # powerpc, because MkLinux only supported shared libraries with the
  9041. # GNU dynamic linker. Since this was broken with cross compilers,
  9042. # most powerpc-linux boxes support dynamic linking these days and
  9043. # people can always --disable-shared, the test was removed, and we
  9044. # assume the GNU/Linux dynamic linker is in use.
  9045. dynamic_linker='GNU/Linux ld.so'
  9046. ;;
  9047. netbsd*)
  9048. version_type=sunos
  9049. need_lib_prefix=no
  9050. need_version=no
  9051. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9053. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9054. dynamic_linker='NetBSD (a.out) ld.so'
  9055. else
  9056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9057. soname_spec='${libname}${release}${shared_ext}$major'
  9058. dynamic_linker='NetBSD ld.elf_so'
  9059. fi
  9060. shlibpath_var=LD_LIBRARY_PATH
  9061. shlibpath_overrides_runpath=yes
  9062. hardcode_into_libs=yes
  9063. ;;
  9064. newsos6)
  9065. version_type=linux # correct to gnu/linux during the next big refactor
  9066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9067. shlibpath_var=LD_LIBRARY_PATH
  9068. shlibpath_overrides_runpath=yes
  9069. ;;
  9070. *nto* | *qnx*)
  9071. version_type=qnx
  9072. need_lib_prefix=no
  9073. need_version=no
  9074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9075. soname_spec='${libname}${release}${shared_ext}$major'
  9076. shlibpath_var=LD_LIBRARY_PATH
  9077. shlibpath_overrides_runpath=no
  9078. hardcode_into_libs=yes
  9079. dynamic_linker='ldqnx.so'
  9080. ;;
  9081. openbsd*)
  9082. version_type=sunos
  9083. sys_lib_dlsearch_path_spec="/usr/lib"
  9084. need_lib_prefix=no
  9085. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9086. case $host_os in
  9087. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9088. *) need_version=no ;;
  9089. esac
  9090. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9091. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9092. shlibpath_var=LD_LIBRARY_PATH
  9093. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9094. case $host_os in
  9095. openbsd2.[89] | openbsd2.[89].*)
  9096. shlibpath_overrides_runpath=no
  9097. ;;
  9098. *)
  9099. shlibpath_overrides_runpath=yes
  9100. ;;
  9101. esac
  9102. else
  9103. shlibpath_overrides_runpath=yes
  9104. fi
  9105. ;;
  9106. os2*)
  9107. libname_spec='$name'
  9108. shrext_cmds=".dll"
  9109. need_lib_prefix=no
  9110. library_names_spec='$libname${shared_ext} $libname.a'
  9111. dynamic_linker='OS/2 ld.exe'
  9112. shlibpath_var=LIBPATH
  9113. ;;
  9114. osf3* | osf4* | osf5*)
  9115. version_type=osf
  9116. need_lib_prefix=no
  9117. need_version=no
  9118. soname_spec='${libname}${release}${shared_ext}$major'
  9119. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9120. shlibpath_var=LD_LIBRARY_PATH
  9121. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9122. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9123. ;;
  9124. rdos*)
  9125. dynamic_linker=no
  9126. ;;
  9127. solaris*)
  9128. version_type=linux # correct to gnu/linux during the next big refactor
  9129. need_lib_prefix=no
  9130. need_version=no
  9131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9132. soname_spec='${libname}${release}${shared_ext}$major'
  9133. shlibpath_var=LD_LIBRARY_PATH
  9134. shlibpath_overrides_runpath=yes
  9135. hardcode_into_libs=yes
  9136. # ldd complains unless libraries are executable
  9137. postinstall_cmds='chmod +x $lib'
  9138. ;;
  9139. sunos4*)
  9140. version_type=sunos
  9141. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9142. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9143. shlibpath_var=LD_LIBRARY_PATH
  9144. shlibpath_overrides_runpath=yes
  9145. if test "$with_gnu_ld" = yes; then
  9146. need_lib_prefix=no
  9147. fi
  9148. need_version=yes
  9149. ;;
  9150. sysv4 | sysv4.3*)
  9151. version_type=linux # correct to gnu/linux during the next big refactor
  9152. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9153. soname_spec='${libname}${release}${shared_ext}$major'
  9154. shlibpath_var=LD_LIBRARY_PATH
  9155. case $host_vendor in
  9156. sni)
  9157. shlibpath_overrides_runpath=no
  9158. need_lib_prefix=no
  9159. runpath_var=LD_RUN_PATH
  9160. ;;
  9161. siemens)
  9162. need_lib_prefix=no
  9163. ;;
  9164. motorola)
  9165. need_lib_prefix=no
  9166. need_version=no
  9167. shlibpath_overrides_runpath=no
  9168. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9169. ;;
  9170. esac
  9171. ;;
  9172. sysv4*MP*)
  9173. if test -d /usr/nec ;then
  9174. version_type=linux # correct to gnu/linux during the next big refactor
  9175. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9176. soname_spec='$libname${shared_ext}.$major'
  9177. shlibpath_var=LD_LIBRARY_PATH
  9178. fi
  9179. ;;
  9180. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9181. version_type=freebsd-elf
  9182. need_lib_prefix=no
  9183. need_version=no
  9184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9185. soname_spec='${libname}${release}${shared_ext}$major'
  9186. shlibpath_var=LD_LIBRARY_PATH
  9187. shlibpath_overrides_runpath=yes
  9188. hardcode_into_libs=yes
  9189. if test "$with_gnu_ld" = yes; then
  9190. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9191. else
  9192. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9193. case $host_os in
  9194. sco3.2v5*)
  9195. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9196. ;;
  9197. esac
  9198. fi
  9199. sys_lib_dlsearch_path_spec='/usr/lib'
  9200. ;;
  9201. tpf*)
  9202. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9203. version_type=linux # correct to gnu/linux during the next big refactor
  9204. need_lib_prefix=no
  9205. need_version=no
  9206. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9207. shlibpath_var=LD_LIBRARY_PATH
  9208. shlibpath_overrides_runpath=no
  9209. hardcode_into_libs=yes
  9210. ;;
  9211. uts4*)
  9212. version_type=linux # correct to gnu/linux during the next big refactor
  9213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9214. soname_spec='${libname}${release}${shared_ext}$major'
  9215. shlibpath_var=LD_LIBRARY_PATH
  9216. ;;
  9217. *)
  9218. dynamic_linker=no
  9219. ;;
  9220. esac
  9221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9222. $as_echo "$dynamic_linker" >&6; }
  9223. test "$dynamic_linker" = no && can_build_shared=no
  9224. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9225. if test "$GCC" = yes; then
  9226. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9227. fi
  9228. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9229. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9230. fi
  9231. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9232. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9233. fi
  9234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9235. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9236. hardcode_action=
  9237. if test -n "$hardcode_libdir_flag_spec" ||
  9238. test -n "$runpath_var" ||
  9239. test "X$hardcode_automatic" = "Xyes" ; then
  9240. # We can hardcode non-existent directories.
  9241. if test "$hardcode_direct" != no &&
  9242. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9243. # have to relink, otherwise we might link with an installed library
  9244. # when we should be linking with a yet-to-be-installed one
  9245. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9246. test "$hardcode_minus_L" != no; then
  9247. # Linking always hardcodes the temporary library directory.
  9248. hardcode_action=relink
  9249. else
  9250. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9251. hardcode_action=immediate
  9252. fi
  9253. else
  9254. # We cannot hardcode anything, or else we can only hardcode existing
  9255. # directories.
  9256. hardcode_action=unsupported
  9257. fi
  9258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9259. $as_echo "$hardcode_action" >&6; }
  9260. if test "$hardcode_action" = relink ||
  9261. test "$inherit_rpath" = yes; then
  9262. # Fast installation is not supported
  9263. enable_fast_install=no
  9264. elif test "$shlibpath_overrides_runpath" = yes ||
  9265. test "$enable_shared" = no; then
  9266. # Fast installation is not necessary
  9267. enable_fast_install=needless
  9268. fi
  9269. if test "x$enable_dlopen" != xyes; then
  9270. enable_dlopen=unknown
  9271. enable_dlopen_self=unknown
  9272. enable_dlopen_self_static=unknown
  9273. else
  9274. lt_cv_dlopen=no
  9275. lt_cv_dlopen_libs=
  9276. case $host_os in
  9277. beos*)
  9278. lt_cv_dlopen="load_add_on"
  9279. lt_cv_dlopen_libs=
  9280. lt_cv_dlopen_self=yes
  9281. ;;
  9282. mingw* | pw32* | cegcc*)
  9283. lt_cv_dlopen="LoadLibrary"
  9284. lt_cv_dlopen_libs=
  9285. ;;
  9286. cygwin*)
  9287. lt_cv_dlopen="dlopen"
  9288. lt_cv_dlopen_libs=
  9289. ;;
  9290. darwin*)
  9291. # if libdl is installed we need to link against it
  9292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9293. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9294. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9295. $as_echo_n "(cached) " >&6
  9296. else
  9297. ac_check_lib_save_LIBS=$LIBS
  9298. LIBS="-ldl $LIBS"
  9299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9300. /* end confdefs.h. */
  9301. /* Override any GCC internal prototype to avoid an error.
  9302. Use char because int might match the return type of a GCC
  9303. builtin and then its argument prototype would still apply. */
  9304. #ifdef __cplusplus
  9305. extern "C"
  9306. #endif
  9307. char dlopen ();
  9308. int
  9309. main ()
  9310. {
  9311. return dlopen ();
  9312. ;
  9313. return 0;
  9314. }
  9315. _ACEOF
  9316. if ac_fn_c_try_link "$LINENO"; then :
  9317. ac_cv_lib_dl_dlopen=yes
  9318. else
  9319. ac_cv_lib_dl_dlopen=no
  9320. fi
  9321. rm -f core conftest.err conftest.$ac_objext \
  9322. conftest$ac_exeext conftest.$ac_ext
  9323. LIBS=$ac_check_lib_save_LIBS
  9324. fi
  9325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9326. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9327. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9328. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9329. else
  9330. lt_cv_dlopen="dyld"
  9331. lt_cv_dlopen_libs=
  9332. lt_cv_dlopen_self=yes
  9333. fi
  9334. ;;
  9335. *)
  9336. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9337. if test "x$ac_cv_func_shl_load" = xyes; then :
  9338. lt_cv_dlopen="shl_load"
  9339. else
  9340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9341. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9342. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9343. $as_echo_n "(cached) " >&6
  9344. else
  9345. ac_check_lib_save_LIBS=$LIBS
  9346. LIBS="-ldld $LIBS"
  9347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9348. /* end confdefs.h. */
  9349. /* Override any GCC internal prototype to avoid an error.
  9350. Use char because int might match the return type of a GCC
  9351. builtin and then its argument prototype would still apply. */
  9352. #ifdef __cplusplus
  9353. extern "C"
  9354. #endif
  9355. char shl_load ();
  9356. int
  9357. main ()
  9358. {
  9359. return shl_load ();
  9360. ;
  9361. return 0;
  9362. }
  9363. _ACEOF
  9364. if ac_fn_c_try_link "$LINENO"; then :
  9365. ac_cv_lib_dld_shl_load=yes
  9366. else
  9367. ac_cv_lib_dld_shl_load=no
  9368. fi
  9369. rm -f core conftest.err conftest.$ac_objext \
  9370. conftest$ac_exeext conftest.$ac_ext
  9371. LIBS=$ac_check_lib_save_LIBS
  9372. fi
  9373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9374. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9375. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9376. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9377. else
  9378. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9379. if test "x$ac_cv_func_dlopen" = xyes; then :
  9380. lt_cv_dlopen="dlopen"
  9381. else
  9382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9383. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9384. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9385. $as_echo_n "(cached) " >&6
  9386. else
  9387. ac_check_lib_save_LIBS=$LIBS
  9388. LIBS="-ldl $LIBS"
  9389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9390. /* end confdefs.h. */
  9391. /* Override any GCC internal prototype to avoid an error.
  9392. Use char because int might match the return type of a GCC
  9393. builtin and then its argument prototype would still apply. */
  9394. #ifdef __cplusplus
  9395. extern "C"
  9396. #endif
  9397. char dlopen ();
  9398. int
  9399. main ()
  9400. {
  9401. return dlopen ();
  9402. ;
  9403. return 0;
  9404. }
  9405. _ACEOF
  9406. if ac_fn_c_try_link "$LINENO"; then :
  9407. ac_cv_lib_dl_dlopen=yes
  9408. else
  9409. ac_cv_lib_dl_dlopen=no
  9410. fi
  9411. rm -f core conftest.err conftest.$ac_objext \
  9412. conftest$ac_exeext conftest.$ac_ext
  9413. LIBS=$ac_check_lib_save_LIBS
  9414. fi
  9415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9416. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9417. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9418. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9419. else
  9420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9421. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9422. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9423. $as_echo_n "(cached) " >&6
  9424. else
  9425. ac_check_lib_save_LIBS=$LIBS
  9426. LIBS="-lsvld $LIBS"
  9427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9428. /* end confdefs.h. */
  9429. /* Override any GCC internal prototype to avoid an error.
  9430. Use char because int might match the return type of a GCC
  9431. builtin and then its argument prototype would still apply. */
  9432. #ifdef __cplusplus
  9433. extern "C"
  9434. #endif
  9435. char dlopen ();
  9436. int
  9437. main ()
  9438. {
  9439. return dlopen ();
  9440. ;
  9441. return 0;
  9442. }
  9443. _ACEOF
  9444. if ac_fn_c_try_link "$LINENO"; then :
  9445. ac_cv_lib_svld_dlopen=yes
  9446. else
  9447. ac_cv_lib_svld_dlopen=no
  9448. fi
  9449. rm -f core conftest.err conftest.$ac_objext \
  9450. conftest$ac_exeext conftest.$ac_ext
  9451. LIBS=$ac_check_lib_save_LIBS
  9452. fi
  9453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9454. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9455. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9456. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9457. else
  9458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9459. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9460. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9461. $as_echo_n "(cached) " >&6
  9462. else
  9463. ac_check_lib_save_LIBS=$LIBS
  9464. LIBS="-ldld $LIBS"
  9465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9466. /* end confdefs.h. */
  9467. /* Override any GCC internal prototype to avoid an error.
  9468. Use char because int might match the return type of a GCC
  9469. builtin and then its argument prototype would still apply. */
  9470. #ifdef __cplusplus
  9471. extern "C"
  9472. #endif
  9473. char dld_link ();
  9474. int
  9475. main ()
  9476. {
  9477. return dld_link ();
  9478. ;
  9479. return 0;
  9480. }
  9481. _ACEOF
  9482. if ac_fn_c_try_link "$LINENO"; then :
  9483. ac_cv_lib_dld_dld_link=yes
  9484. else
  9485. ac_cv_lib_dld_dld_link=no
  9486. fi
  9487. rm -f core conftest.err conftest.$ac_objext \
  9488. conftest$ac_exeext conftest.$ac_ext
  9489. LIBS=$ac_check_lib_save_LIBS
  9490. fi
  9491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9492. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9493. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9494. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9495. fi
  9496. fi
  9497. fi
  9498. fi
  9499. fi
  9500. fi
  9501. ;;
  9502. esac
  9503. if test "x$lt_cv_dlopen" != xno; then
  9504. enable_dlopen=yes
  9505. else
  9506. enable_dlopen=no
  9507. fi
  9508. case $lt_cv_dlopen in
  9509. dlopen)
  9510. save_CPPFLAGS="$CPPFLAGS"
  9511. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9512. save_LDFLAGS="$LDFLAGS"
  9513. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9514. save_LIBS="$LIBS"
  9515. LIBS="$lt_cv_dlopen_libs $LIBS"
  9516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9517. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9518. if ${lt_cv_dlopen_self+:} false; then :
  9519. $as_echo_n "(cached) " >&6
  9520. else
  9521. if test "$cross_compiling" = yes; then :
  9522. lt_cv_dlopen_self=cross
  9523. else
  9524. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9525. lt_status=$lt_dlunknown
  9526. cat > conftest.$ac_ext <<_LT_EOF
  9527. #line $LINENO "configure"
  9528. #include "confdefs.h"
  9529. #if HAVE_DLFCN_H
  9530. #include <dlfcn.h>
  9531. #endif
  9532. #include <stdio.h>
  9533. #ifdef RTLD_GLOBAL
  9534. # define LT_DLGLOBAL RTLD_GLOBAL
  9535. #else
  9536. # ifdef DL_GLOBAL
  9537. # define LT_DLGLOBAL DL_GLOBAL
  9538. # else
  9539. # define LT_DLGLOBAL 0
  9540. # endif
  9541. #endif
  9542. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9543. find out it does not work in some platform. */
  9544. #ifndef LT_DLLAZY_OR_NOW
  9545. # ifdef RTLD_LAZY
  9546. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9547. # else
  9548. # ifdef DL_LAZY
  9549. # define LT_DLLAZY_OR_NOW DL_LAZY
  9550. # else
  9551. # ifdef RTLD_NOW
  9552. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9553. # else
  9554. # ifdef DL_NOW
  9555. # define LT_DLLAZY_OR_NOW DL_NOW
  9556. # else
  9557. # define LT_DLLAZY_OR_NOW 0
  9558. # endif
  9559. # endif
  9560. # endif
  9561. # endif
  9562. #endif
  9563. /* When -fvisbility=hidden is used, assume the code has been annotated
  9564. correspondingly for the symbols needed. */
  9565. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9566. int fnord () __attribute__((visibility("default")));
  9567. #endif
  9568. int fnord () { return 42; }
  9569. int main ()
  9570. {
  9571. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9572. int status = $lt_dlunknown;
  9573. if (self)
  9574. {
  9575. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9576. else
  9577. {
  9578. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9579. else puts (dlerror ());
  9580. }
  9581. /* dlclose (self); */
  9582. }
  9583. else
  9584. puts (dlerror ());
  9585. return status;
  9586. }
  9587. _LT_EOF
  9588. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9589. (eval $ac_link) 2>&5
  9590. ac_status=$?
  9591. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9592. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9593. (./conftest; exit; ) >&5 2>/dev/null
  9594. lt_status=$?
  9595. case x$lt_status in
  9596. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9597. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9598. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9599. esac
  9600. else :
  9601. # compilation failed
  9602. lt_cv_dlopen_self=no
  9603. fi
  9604. fi
  9605. rm -fr conftest*
  9606. fi
  9607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9608. $as_echo "$lt_cv_dlopen_self" >&6; }
  9609. if test "x$lt_cv_dlopen_self" = xyes; then
  9610. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9612. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9613. if ${lt_cv_dlopen_self_static+:} false; then :
  9614. $as_echo_n "(cached) " >&6
  9615. else
  9616. if test "$cross_compiling" = yes; then :
  9617. lt_cv_dlopen_self_static=cross
  9618. else
  9619. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9620. lt_status=$lt_dlunknown
  9621. cat > conftest.$ac_ext <<_LT_EOF
  9622. #line $LINENO "configure"
  9623. #include "confdefs.h"
  9624. #if HAVE_DLFCN_H
  9625. #include <dlfcn.h>
  9626. #endif
  9627. #include <stdio.h>
  9628. #ifdef RTLD_GLOBAL
  9629. # define LT_DLGLOBAL RTLD_GLOBAL
  9630. #else
  9631. # ifdef DL_GLOBAL
  9632. # define LT_DLGLOBAL DL_GLOBAL
  9633. # else
  9634. # define LT_DLGLOBAL 0
  9635. # endif
  9636. #endif
  9637. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9638. find out it does not work in some platform. */
  9639. #ifndef LT_DLLAZY_OR_NOW
  9640. # ifdef RTLD_LAZY
  9641. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9642. # else
  9643. # ifdef DL_LAZY
  9644. # define LT_DLLAZY_OR_NOW DL_LAZY
  9645. # else
  9646. # ifdef RTLD_NOW
  9647. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9648. # else
  9649. # ifdef DL_NOW
  9650. # define LT_DLLAZY_OR_NOW DL_NOW
  9651. # else
  9652. # define LT_DLLAZY_OR_NOW 0
  9653. # endif
  9654. # endif
  9655. # endif
  9656. # endif
  9657. #endif
  9658. /* When -fvisbility=hidden is used, assume the code has been annotated
  9659. correspondingly for the symbols needed. */
  9660. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9661. int fnord () __attribute__((visibility("default")));
  9662. #endif
  9663. int fnord () { return 42; }
  9664. int main ()
  9665. {
  9666. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9667. int status = $lt_dlunknown;
  9668. if (self)
  9669. {
  9670. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9671. else
  9672. {
  9673. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9674. else puts (dlerror ());
  9675. }
  9676. /* dlclose (self); */
  9677. }
  9678. else
  9679. puts (dlerror ());
  9680. return status;
  9681. }
  9682. _LT_EOF
  9683. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9684. (eval $ac_link) 2>&5
  9685. ac_status=$?
  9686. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9687. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9688. (./conftest; exit; ) >&5 2>/dev/null
  9689. lt_status=$?
  9690. case x$lt_status in
  9691. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9692. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9693. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9694. esac
  9695. else :
  9696. # compilation failed
  9697. lt_cv_dlopen_self_static=no
  9698. fi
  9699. fi
  9700. rm -fr conftest*
  9701. fi
  9702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9703. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9704. fi
  9705. CPPFLAGS="$save_CPPFLAGS"
  9706. LDFLAGS="$save_LDFLAGS"
  9707. LIBS="$save_LIBS"
  9708. ;;
  9709. esac
  9710. case $lt_cv_dlopen_self in
  9711. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9712. *) enable_dlopen_self=unknown ;;
  9713. esac
  9714. case $lt_cv_dlopen_self_static in
  9715. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9716. *) enable_dlopen_self_static=unknown ;;
  9717. esac
  9718. fi
  9719. striplib=
  9720. old_striplib=
  9721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9722. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9723. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9724. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9725. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9727. $as_echo "yes" >&6; }
  9728. else
  9729. # FIXME - insert some real tests, host_os isn't really good enough
  9730. case $host_os in
  9731. darwin*)
  9732. if test -n "$STRIP" ; then
  9733. striplib="$STRIP -x"
  9734. old_striplib="$STRIP -S"
  9735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9736. $as_echo "yes" >&6; }
  9737. else
  9738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9739. $as_echo "no" >&6; }
  9740. fi
  9741. ;;
  9742. *)
  9743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9744. $as_echo "no" >&6; }
  9745. ;;
  9746. esac
  9747. fi
  9748. # Report which library types will actually be built
  9749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9750. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9752. $as_echo "$can_build_shared" >&6; }
  9753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9754. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9755. test "$can_build_shared" = "no" && enable_shared=no
  9756. # On AIX, shared libraries and static libraries use the same namespace, and
  9757. # are all built from PIC.
  9758. case $host_os in
  9759. aix3*)
  9760. test "$enable_shared" = yes && enable_static=no
  9761. if test -n "$RANLIB"; then
  9762. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9763. postinstall_cmds='$RANLIB $lib'
  9764. fi
  9765. ;;
  9766. aix[4-9]*)
  9767. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9768. test "$enable_shared" = yes && enable_static=no
  9769. fi
  9770. ;;
  9771. esac
  9772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9773. $as_echo "$enable_shared" >&6; }
  9774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9775. $as_echo_n "checking whether to build static libraries... " >&6; }
  9776. # Make sure either enable_shared or enable_static is yes.
  9777. test "$enable_shared" = yes || enable_static=yes
  9778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9779. $as_echo "$enable_static" >&6; }
  9780. fi
  9781. ac_ext=c
  9782. ac_cpp='$CPP $CPPFLAGS'
  9783. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9784. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9785. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9786. CC="$lt_save_CC"
  9787. ac_config_commands="$ac_config_commands libtool"
  9788. # Only expand once:
  9789. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9790. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9791. LT_REVISION=$SDL_INTERFACE_AGE
  9792. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9793. ac_ext=c
  9794. ac_cpp='$CPP $CPPFLAGS'
  9795. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9796. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9797. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9798. if test -n "$ac_tool_prefix"; then
  9799. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9800. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9802. $as_echo_n "checking for $ac_word... " >&6; }
  9803. if ${ac_cv_prog_CC+:} false; then :
  9804. $as_echo_n "(cached) " >&6
  9805. else
  9806. if test -n "$CC"; then
  9807. ac_cv_prog_CC="$CC" # Let the user override the test.
  9808. else
  9809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9810. for as_dir in $PATH
  9811. do
  9812. IFS=$as_save_IFS
  9813. test -z "$as_dir" && as_dir=.
  9814. for ac_exec_ext in '' $ac_executable_extensions; do
  9815. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9816. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9817. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9818. break 2
  9819. fi
  9820. done
  9821. done
  9822. IFS=$as_save_IFS
  9823. fi
  9824. fi
  9825. CC=$ac_cv_prog_CC
  9826. if test -n "$CC"; then
  9827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9828. $as_echo "$CC" >&6; }
  9829. else
  9830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9831. $as_echo "no" >&6; }
  9832. fi
  9833. fi
  9834. if test -z "$ac_cv_prog_CC"; then
  9835. ac_ct_CC=$CC
  9836. # Extract the first word of "gcc", so it can be a program name with args.
  9837. set dummy gcc; ac_word=$2
  9838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9839. $as_echo_n "checking for $ac_word... " >&6; }
  9840. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9841. $as_echo_n "(cached) " >&6
  9842. else
  9843. if test -n "$ac_ct_CC"; then
  9844. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9845. else
  9846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9847. for as_dir in $PATH
  9848. do
  9849. IFS=$as_save_IFS
  9850. test -z "$as_dir" && as_dir=.
  9851. for ac_exec_ext in '' $ac_executable_extensions; do
  9852. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9853. ac_cv_prog_ac_ct_CC="gcc"
  9854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9855. break 2
  9856. fi
  9857. done
  9858. done
  9859. IFS=$as_save_IFS
  9860. fi
  9861. fi
  9862. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9863. if test -n "$ac_ct_CC"; then
  9864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9865. $as_echo "$ac_ct_CC" >&6; }
  9866. else
  9867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9868. $as_echo "no" >&6; }
  9869. fi
  9870. if test "x$ac_ct_CC" = x; then
  9871. CC=""
  9872. else
  9873. case $cross_compiling:$ac_tool_warned in
  9874. yes:)
  9875. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9876. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9877. ac_tool_warned=yes ;;
  9878. esac
  9879. CC=$ac_ct_CC
  9880. fi
  9881. else
  9882. CC="$ac_cv_prog_CC"
  9883. fi
  9884. if test -z "$CC"; then
  9885. if test -n "$ac_tool_prefix"; then
  9886. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9887. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9889. $as_echo_n "checking for $ac_word... " >&6; }
  9890. if ${ac_cv_prog_CC+:} false; then :
  9891. $as_echo_n "(cached) " >&6
  9892. else
  9893. if test -n "$CC"; then
  9894. ac_cv_prog_CC="$CC" # Let the user override the test.
  9895. else
  9896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9897. for as_dir in $PATH
  9898. do
  9899. IFS=$as_save_IFS
  9900. test -z "$as_dir" && as_dir=.
  9901. for ac_exec_ext in '' $ac_executable_extensions; do
  9902. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9903. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9904. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9905. break 2
  9906. fi
  9907. done
  9908. done
  9909. IFS=$as_save_IFS
  9910. fi
  9911. fi
  9912. CC=$ac_cv_prog_CC
  9913. if test -n "$CC"; then
  9914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9915. $as_echo "$CC" >&6; }
  9916. else
  9917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9918. $as_echo "no" >&6; }
  9919. fi
  9920. fi
  9921. fi
  9922. if test -z "$CC"; then
  9923. # Extract the first word of "cc", so it can be a program name with args.
  9924. set dummy cc; ac_word=$2
  9925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9926. $as_echo_n "checking for $ac_word... " >&6; }
  9927. if ${ac_cv_prog_CC+:} false; then :
  9928. $as_echo_n "(cached) " >&6
  9929. else
  9930. if test -n "$CC"; then
  9931. ac_cv_prog_CC="$CC" # Let the user override the test.
  9932. else
  9933. ac_prog_rejected=no
  9934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9935. for as_dir in $PATH
  9936. do
  9937. IFS=$as_save_IFS
  9938. test -z "$as_dir" && as_dir=.
  9939. for ac_exec_ext in '' $ac_executable_extensions; do
  9940. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9941. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9942. ac_prog_rejected=yes
  9943. continue
  9944. fi
  9945. ac_cv_prog_CC="cc"
  9946. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9947. break 2
  9948. fi
  9949. done
  9950. done
  9951. IFS=$as_save_IFS
  9952. if test $ac_prog_rejected = yes; then
  9953. # We found a bogon in the path, so make sure we never use it.
  9954. set dummy $ac_cv_prog_CC
  9955. shift
  9956. if test $# != 0; then
  9957. # We chose a different compiler from the bogus one.
  9958. # However, it has the same basename, so the bogon will be chosen
  9959. # first if we set CC to just the basename; use the full file name.
  9960. shift
  9961. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9962. fi
  9963. fi
  9964. fi
  9965. fi
  9966. CC=$ac_cv_prog_CC
  9967. if test -n "$CC"; then
  9968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9969. $as_echo "$CC" >&6; }
  9970. else
  9971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9972. $as_echo "no" >&6; }
  9973. fi
  9974. fi
  9975. if test -z "$CC"; then
  9976. if test -n "$ac_tool_prefix"; then
  9977. for ac_prog in cl.exe
  9978. do
  9979. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9980. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9982. $as_echo_n "checking for $ac_word... " >&6; }
  9983. if ${ac_cv_prog_CC+:} false; then :
  9984. $as_echo_n "(cached) " >&6
  9985. else
  9986. if test -n "$CC"; then
  9987. ac_cv_prog_CC="$CC" # Let the user override the test.
  9988. else
  9989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9990. for as_dir in $PATH
  9991. do
  9992. IFS=$as_save_IFS
  9993. test -z "$as_dir" && as_dir=.
  9994. for ac_exec_ext in '' $ac_executable_extensions; do
  9995. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9996. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9997. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9998. break 2
  9999. fi
  10000. done
  10001. done
  10002. IFS=$as_save_IFS
  10003. fi
  10004. fi
  10005. CC=$ac_cv_prog_CC
  10006. if test -n "$CC"; then
  10007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10008. $as_echo "$CC" >&6; }
  10009. else
  10010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10011. $as_echo "no" >&6; }
  10012. fi
  10013. test -n "$CC" && break
  10014. done
  10015. fi
  10016. if test -z "$CC"; then
  10017. ac_ct_CC=$CC
  10018. for ac_prog in cl.exe
  10019. do
  10020. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10021. set dummy $ac_prog; ac_word=$2
  10022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10023. $as_echo_n "checking for $ac_word... " >&6; }
  10024. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10025. $as_echo_n "(cached) " >&6
  10026. else
  10027. if test -n "$ac_ct_CC"; then
  10028. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10029. else
  10030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10031. for as_dir in $PATH
  10032. do
  10033. IFS=$as_save_IFS
  10034. test -z "$as_dir" && as_dir=.
  10035. for ac_exec_ext in '' $ac_executable_extensions; do
  10036. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10037. ac_cv_prog_ac_ct_CC="$ac_prog"
  10038. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10039. break 2
  10040. fi
  10041. done
  10042. done
  10043. IFS=$as_save_IFS
  10044. fi
  10045. fi
  10046. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10047. if test -n "$ac_ct_CC"; then
  10048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10049. $as_echo "$ac_ct_CC" >&6; }
  10050. else
  10051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10052. $as_echo "no" >&6; }
  10053. fi
  10054. test -n "$ac_ct_CC" && break
  10055. done
  10056. if test "x$ac_ct_CC" = x; then
  10057. CC=""
  10058. else
  10059. case $cross_compiling:$ac_tool_warned in
  10060. yes:)
  10061. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10062. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10063. ac_tool_warned=yes ;;
  10064. esac
  10065. CC=$ac_ct_CC
  10066. fi
  10067. fi
  10068. fi
  10069. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10070. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10071. as_fn_error $? "no acceptable C compiler found in \$PATH
  10072. See \`config.log' for more details" "$LINENO" 5; }
  10073. # Provide some information about the compiler.
  10074. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10075. set X $ac_compile
  10076. ac_compiler=$2
  10077. for ac_option in --version -v -V -qversion; do
  10078. { { ac_try="$ac_compiler $ac_option >&5"
  10079. case "(($ac_try" in
  10080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10081. *) ac_try_echo=$ac_try;;
  10082. esac
  10083. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10084. $as_echo "$ac_try_echo"; } >&5
  10085. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10086. ac_status=$?
  10087. if test -s conftest.err; then
  10088. sed '10a\
  10089. ... rest of stderr output deleted ...
  10090. 10q' conftest.err >conftest.er1
  10091. cat conftest.er1 >&5
  10092. fi
  10093. rm -f conftest.er1 conftest.err
  10094. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10095. test $ac_status = 0; }
  10096. done
  10097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10098. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10099. if ${ac_cv_c_compiler_gnu+:} false; then :
  10100. $as_echo_n "(cached) " >&6
  10101. else
  10102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10103. /* end confdefs.h. */
  10104. int
  10105. main ()
  10106. {
  10107. #ifndef __GNUC__
  10108. choke me
  10109. #endif
  10110. ;
  10111. return 0;
  10112. }
  10113. _ACEOF
  10114. if ac_fn_c_try_compile "$LINENO"; then :
  10115. ac_compiler_gnu=yes
  10116. else
  10117. ac_compiler_gnu=no
  10118. fi
  10119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10120. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10121. fi
  10122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10123. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10124. if test $ac_compiler_gnu = yes; then
  10125. GCC=yes
  10126. else
  10127. GCC=
  10128. fi
  10129. ac_test_CFLAGS=${CFLAGS+set}
  10130. ac_save_CFLAGS=$CFLAGS
  10131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10132. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10133. if ${ac_cv_prog_cc_g+:} false; then :
  10134. $as_echo_n "(cached) " >&6
  10135. else
  10136. ac_save_c_werror_flag=$ac_c_werror_flag
  10137. ac_c_werror_flag=yes
  10138. ac_cv_prog_cc_g=no
  10139. CFLAGS="-g"
  10140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10141. /* end confdefs.h. */
  10142. int
  10143. main ()
  10144. {
  10145. ;
  10146. return 0;
  10147. }
  10148. _ACEOF
  10149. if ac_fn_c_try_compile "$LINENO"; then :
  10150. ac_cv_prog_cc_g=yes
  10151. else
  10152. CFLAGS=""
  10153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10154. /* end confdefs.h. */
  10155. int
  10156. main ()
  10157. {
  10158. ;
  10159. return 0;
  10160. }
  10161. _ACEOF
  10162. if ac_fn_c_try_compile "$LINENO"; then :
  10163. else
  10164. ac_c_werror_flag=$ac_save_c_werror_flag
  10165. CFLAGS="-g"
  10166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10167. /* end confdefs.h. */
  10168. int
  10169. main ()
  10170. {
  10171. ;
  10172. return 0;
  10173. }
  10174. _ACEOF
  10175. if ac_fn_c_try_compile "$LINENO"; then :
  10176. ac_cv_prog_cc_g=yes
  10177. fi
  10178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10179. fi
  10180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10181. fi
  10182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10183. ac_c_werror_flag=$ac_save_c_werror_flag
  10184. fi
  10185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10186. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10187. if test "$ac_test_CFLAGS" = set; then
  10188. CFLAGS=$ac_save_CFLAGS
  10189. elif test $ac_cv_prog_cc_g = yes; then
  10190. if test "$GCC" = yes; then
  10191. CFLAGS="-g -O2"
  10192. else
  10193. CFLAGS="-g"
  10194. fi
  10195. else
  10196. if test "$GCC" = yes; then
  10197. CFLAGS="-O2"
  10198. else
  10199. CFLAGS=
  10200. fi
  10201. fi
  10202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10203. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10204. if ${ac_cv_prog_cc_c89+:} false; then :
  10205. $as_echo_n "(cached) " >&6
  10206. else
  10207. ac_cv_prog_cc_c89=no
  10208. ac_save_CC=$CC
  10209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10210. /* end confdefs.h. */
  10211. #include <stdarg.h>
  10212. #include <stdio.h>
  10213. struct stat;
  10214. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10215. struct buf { int x; };
  10216. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10217. static char *e (p, i)
  10218. char **p;
  10219. int i;
  10220. {
  10221. return p[i];
  10222. }
  10223. static char *f (char * (*g) (char **, int), char **p, ...)
  10224. {
  10225. char *s;
  10226. va_list v;
  10227. va_start (v,p);
  10228. s = g (p, va_arg (v,int));
  10229. va_end (v);
  10230. return s;
  10231. }
  10232. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10233. function prototypes and stuff, but not '\xHH' hex character constants.
  10234. These don't provoke an error unfortunately, instead are silently treated
  10235. as 'x'. The following induces an error, until -std is added to get
  10236. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10237. array size at least. It's necessary to write '\x00'==0 to get something
  10238. that's true only with -std. */
  10239. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10240. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10241. inside strings and character constants. */
  10242. #define FOO(x) 'x'
  10243. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10244. int test (int i, double x);
  10245. struct s1 {int (*f) (int a);};
  10246. struct s2 {int (*f) (double a);};
  10247. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10248. int argc;
  10249. char **argv;
  10250. int
  10251. main ()
  10252. {
  10253. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10254. ;
  10255. return 0;
  10256. }
  10257. _ACEOF
  10258. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10259. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10260. do
  10261. CC="$ac_save_CC $ac_arg"
  10262. if ac_fn_c_try_compile "$LINENO"; then :
  10263. ac_cv_prog_cc_c89=$ac_arg
  10264. fi
  10265. rm -f core conftest.err conftest.$ac_objext
  10266. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10267. done
  10268. rm -f conftest.$ac_ext
  10269. CC=$ac_save_CC
  10270. fi
  10271. # AC_CACHE_VAL
  10272. case "x$ac_cv_prog_cc_c89" in
  10273. x)
  10274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10275. $as_echo "none needed" >&6; } ;;
  10276. xno)
  10277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10278. $as_echo "unsupported" >&6; } ;;
  10279. *)
  10280. CC="$CC $ac_cv_prog_cc_c89"
  10281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10282. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10283. esac
  10284. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10285. fi
  10286. ac_ext=c
  10287. ac_cpp='$CPP $CPPFLAGS'
  10288. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10289. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10290. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10291. ac_ext=cpp
  10292. ac_cpp='$CXXCPP $CPPFLAGS'
  10293. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10294. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10295. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10296. if test -z "$CXX"; then
  10297. if test -n "$CCC"; then
  10298. CXX=$CCC
  10299. else
  10300. if test -n "$ac_tool_prefix"; then
  10301. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10302. do
  10303. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10304. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10306. $as_echo_n "checking for $ac_word... " >&6; }
  10307. if ${ac_cv_prog_CXX+:} false; then :
  10308. $as_echo_n "(cached) " >&6
  10309. else
  10310. if test -n "$CXX"; then
  10311. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10312. else
  10313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10314. for as_dir in $PATH
  10315. do
  10316. IFS=$as_save_IFS
  10317. test -z "$as_dir" && as_dir=.
  10318. for ac_exec_ext in '' $ac_executable_extensions; do
  10319. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10320. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10321. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10322. break 2
  10323. fi
  10324. done
  10325. done
  10326. IFS=$as_save_IFS
  10327. fi
  10328. fi
  10329. CXX=$ac_cv_prog_CXX
  10330. if test -n "$CXX"; then
  10331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10332. $as_echo "$CXX" >&6; }
  10333. else
  10334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10335. $as_echo "no" >&6; }
  10336. fi
  10337. test -n "$CXX" && break
  10338. done
  10339. fi
  10340. if test -z "$CXX"; then
  10341. ac_ct_CXX=$CXX
  10342. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10343. do
  10344. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10345. set dummy $ac_prog; ac_word=$2
  10346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10347. $as_echo_n "checking for $ac_word... " >&6; }
  10348. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10349. $as_echo_n "(cached) " >&6
  10350. else
  10351. if test -n "$ac_ct_CXX"; then
  10352. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10353. else
  10354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10355. for as_dir in $PATH
  10356. do
  10357. IFS=$as_save_IFS
  10358. test -z "$as_dir" && as_dir=.
  10359. for ac_exec_ext in '' $ac_executable_extensions; do
  10360. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10361. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10362. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10363. break 2
  10364. fi
  10365. done
  10366. done
  10367. IFS=$as_save_IFS
  10368. fi
  10369. fi
  10370. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10371. if test -n "$ac_ct_CXX"; then
  10372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10373. $as_echo "$ac_ct_CXX" >&6; }
  10374. else
  10375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10376. $as_echo "no" >&6; }
  10377. fi
  10378. test -n "$ac_ct_CXX" && break
  10379. done
  10380. if test "x$ac_ct_CXX" = x; then
  10381. CXX="g++"
  10382. else
  10383. case $cross_compiling:$ac_tool_warned in
  10384. yes:)
  10385. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10386. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10387. ac_tool_warned=yes ;;
  10388. esac
  10389. CXX=$ac_ct_CXX
  10390. fi
  10391. fi
  10392. fi
  10393. fi
  10394. # Provide some information about the compiler.
  10395. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10396. set X $ac_compile
  10397. ac_compiler=$2
  10398. for ac_option in --version -v -V -qversion; do
  10399. { { ac_try="$ac_compiler $ac_option >&5"
  10400. case "(($ac_try" in
  10401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10402. *) ac_try_echo=$ac_try;;
  10403. esac
  10404. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10405. $as_echo "$ac_try_echo"; } >&5
  10406. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10407. ac_status=$?
  10408. if test -s conftest.err; then
  10409. sed '10a\
  10410. ... rest of stderr output deleted ...
  10411. 10q' conftest.err >conftest.er1
  10412. cat conftest.er1 >&5
  10413. fi
  10414. rm -f conftest.er1 conftest.err
  10415. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10416. test $ac_status = 0; }
  10417. done
  10418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10419. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10420. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10421. $as_echo_n "(cached) " >&6
  10422. else
  10423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10424. /* end confdefs.h. */
  10425. int
  10426. main ()
  10427. {
  10428. #ifndef __GNUC__
  10429. choke me
  10430. #endif
  10431. ;
  10432. return 0;
  10433. }
  10434. _ACEOF
  10435. if ac_fn_cxx_try_compile "$LINENO"; then :
  10436. ac_compiler_gnu=yes
  10437. else
  10438. ac_compiler_gnu=no
  10439. fi
  10440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10441. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10442. fi
  10443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10444. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10445. if test $ac_compiler_gnu = yes; then
  10446. GXX=yes
  10447. else
  10448. GXX=
  10449. fi
  10450. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10451. ac_save_CXXFLAGS=$CXXFLAGS
  10452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10453. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10454. if ${ac_cv_prog_cxx_g+:} false; then :
  10455. $as_echo_n "(cached) " >&6
  10456. else
  10457. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10458. ac_cxx_werror_flag=yes
  10459. ac_cv_prog_cxx_g=no
  10460. CXXFLAGS="-g"
  10461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10462. /* end confdefs.h. */
  10463. int
  10464. main ()
  10465. {
  10466. ;
  10467. return 0;
  10468. }
  10469. _ACEOF
  10470. if ac_fn_cxx_try_compile "$LINENO"; then :
  10471. ac_cv_prog_cxx_g=yes
  10472. else
  10473. CXXFLAGS=""
  10474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10475. /* end confdefs.h. */
  10476. int
  10477. main ()
  10478. {
  10479. ;
  10480. return 0;
  10481. }
  10482. _ACEOF
  10483. if ac_fn_cxx_try_compile "$LINENO"; then :
  10484. else
  10485. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10486. CXXFLAGS="-g"
  10487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10488. /* end confdefs.h. */
  10489. int
  10490. main ()
  10491. {
  10492. ;
  10493. return 0;
  10494. }
  10495. _ACEOF
  10496. if ac_fn_cxx_try_compile "$LINENO"; then :
  10497. ac_cv_prog_cxx_g=yes
  10498. fi
  10499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10500. fi
  10501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10502. fi
  10503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10504. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10505. fi
  10506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10507. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10508. if test "$ac_test_CXXFLAGS" = set; then
  10509. CXXFLAGS=$ac_save_CXXFLAGS
  10510. elif test $ac_cv_prog_cxx_g = yes; then
  10511. if test "$GXX" = yes; then
  10512. CXXFLAGS="-g -O2"
  10513. else
  10514. CXXFLAGS="-g"
  10515. fi
  10516. else
  10517. if test "$GXX" = yes; then
  10518. CXXFLAGS="-O2"
  10519. else
  10520. CXXFLAGS=
  10521. fi
  10522. fi
  10523. ac_ext=c
  10524. ac_cpp='$CPP $CPPFLAGS'
  10525. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10526. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10527. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10528. func_stripname_cnf ()
  10529. {
  10530. case ${2} in
  10531. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10532. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10533. esac
  10534. } # func_stripname_cnf
  10535. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10536. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10537. (test "X$CXX" != "Xg++"))) ; then
  10538. ac_ext=cpp
  10539. ac_cpp='$CXXCPP $CPPFLAGS'
  10540. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10541. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10542. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10544. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10545. if test -z "$CXXCPP"; then
  10546. if ${ac_cv_prog_CXXCPP+:} false; then :
  10547. $as_echo_n "(cached) " >&6
  10548. else
  10549. # Double quotes because CXXCPP needs to be expanded
  10550. for CXXCPP in "$CXX -E" "/lib/cpp"
  10551. do
  10552. ac_preproc_ok=false
  10553. for ac_cxx_preproc_warn_flag in '' yes
  10554. do
  10555. # Use a header file that comes with gcc, so configuring glibc
  10556. # with a fresh cross-compiler works.
  10557. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10558. # <limits.h> exists even on freestanding compilers.
  10559. # On the NeXT, cc -E runs the code through the compiler's parser,
  10560. # not just through cpp. "Syntax error" is here to catch this case.
  10561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10562. /* end confdefs.h. */
  10563. #ifdef __STDC__
  10564. # include <limits.h>
  10565. #else
  10566. # include <assert.h>
  10567. #endif
  10568. Syntax error
  10569. _ACEOF
  10570. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10571. else
  10572. # Broken: fails on valid input.
  10573. continue
  10574. fi
  10575. rm -f conftest.err conftest.i conftest.$ac_ext
  10576. # OK, works on sane cases. Now check whether nonexistent headers
  10577. # can be detected and how.
  10578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10579. /* end confdefs.h. */
  10580. #include <ac_nonexistent.h>
  10581. _ACEOF
  10582. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10583. # Broken: success on invalid input.
  10584. continue
  10585. else
  10586. # Passes both tests.
  10587. ac_preproc_ok=:
  10588. break
  10589. fi
  10590. rm -f conftest.err conftest.i conftest.$ac_ext
  10591. done
  10592. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10593. rm -f conftest.i conftest.err conftest.$ac_ext
  10594. if $ac_preproc_ok; then :
  10595. break
  10596. fi
  10597. done
  10598. ac_cv_prog_CXXCPP=$CXXCPP
  10599. fi
  10600. CXXCPP=$ac_cv_prog_CXXCPP
  10601. else
  10602. ac_cv_prog_CXXCPP=$CXXCPP
  10603. fi
  10604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10605. $as_echo "$CXXCPP" >&6; }
  10606. ac_preproc_ok=false
  10607. for ac_cxx_preproc_warn_flag in '' yes
  10608. do
  10609. # Use a header file that comes with gcc, so configuring glibc
  10610. # with a fresh cross-compiler works.
  10611. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10612. # <limits.h> exists even on freestanding compilers.
  10613. # On the NeXT, cc -E runs the code through the compiler's parser,
  10614. # not just through cpp. "Syntax error" is here to catch this case.
  10615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10616. /* end confdefs.h. */
  10617. #ifdef __STDC__
  10618. # include <limits.h>
  10619. #else
  10620. # include <assert.h>
  10621. #endif
  10622. Syntax error
  10623. _ACEOF
  10624. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10625. else
  10626. # Broken: fails on valid input.
  10627. continue
  10628. fi
  10629. rm -f conftest.err conftest.i conftest.$ac_ext
  10630. # OK, works on sane cases. Now check whether nonexistent headers
  10631. # can be detected and how.
  10632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10633. /* end confdefs.h. */
  10634. #include <ac_nonexistent.h>
  10635. _ACEOF
  10636. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10637. # Broken: success on invalid input.
  10638. continue
  10639. else
  10640. # Passes both tests.
  10641. ac_preproc_ok=:
  10642. break
  10643. fi
  10644. rm -f conftest.err conftest.i conftest.$ac_ext
  10645. done
  10646. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10647. rm -f conftest.i conftest.err conftest.$ac_ext
  10648. if $ac_preproc_ok; then :
  10649. else
  10650. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10651. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10652. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10653. See \`config.log' for more details" "$LINENO" 5; }
  10654. fi
  10655. ac_ext=c
  10656. ac_cpp='$CPP $CPPFLAGS'
  10657. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10658. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10659. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10660. else
  10661. _lt_caught_CXX_error=yes
  10662. fi
  10663. ac_ext=cpp
  10664. ac_cpp='$CXXCPP $CPPFLAGS'
  10665. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10666. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10667. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10668. archive_cmds_need_lc_CXX=no
  10669. allow_undefined_flag_CXX=
  10670. always_export_symbols_CXX=no
  10671. archive_expsym_cmds_CXX=
  10672. compiler_needs_object_CXX=no
  10673. export_dynamic_flag_spec_CXX=
  10674. hardcode_direct_CXX=no
  10675. hardcode_direct_absolute_CXX=no
  10676. hardcode_libdir_flag_spec_CXX=
  10677. hardcode_libdir_separator_CXX=
  10678. hardcode_minus_L_CXX=no
  10679. hardcode_shlibpath_var_CXX=unsupported
  10680. hardcode_automatic_CXX=no
  10681. inherit_rpath_CXX=no
  10682. module_cmds_CXX=
  10683. module_expsym_cmds_CXX=
  10684. link_all_deplibs_CXX=unknown
  10685. old_archive_cmds_CXX=$old_archive_cmds
  10686. reload_flag_CXX=$reload_flag
  10687. reload_cmds_CXX=$reload_cmds
  10688. no_undefined_flag_CXX=
  10689. whole_archive_flag_spec_CXX=
  10690. enable_shared_with_static_runtimes_CXX=no
  10691. # Source file extension for C++ test sources.
  10692. ac_ext=cpp
  10693. # Object file extension for compiled C++ test sources.
  10694. objext=o
  10695. objext_CXX=$objext
  10696. # No sense in running all these tests if we already determined that
  10697. # the CXX compiler isn't working. Some variables (like enable_shared)
  10698. # are currently assumed to apply to all compilers on this platform,
  10699. # and will be corrupted by setting them based on a non-working compiler.
  10700. if test "$_lt_caught_CXX_error" != yes; then
  10701. # Code to be used in simple compile tests
  10702. lt_simple_compile_test_code="int some_variable = 0;"
  10703. # Code to be used in simple link tests
  10704. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10705. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10706. # If no C compiler was specified, use CC.
  10707. LTCC=${LTCC-"$CC"}
  10708. # If no C compiler flags were specified, use CFLAGS.
  10709. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10710. # Allow CC to be a program name with arguments.
  10711. compiler=$CC
  10712. # save warnings/boilerplate of simple test code
  10713. ac_outfile=conftest.$ac_objext
  10714. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10715. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10716. _lt_compiler_boilerplate=`cat conftest.err`
  10717. $RM conftest*
  10718. ac_outfile=conftest.$ac_objext
  10719. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10720. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10721. _lt_linker_boilerplate=`cat conftest.err`
  10722. $RM -r conftest*
  10723. # Allow CC to be a program name with arguments.
  10724. lt_save_CC=$CC
  10725. lt_save_CFLAGS=$CFLAGS
  10726. lt_save_LD=$LD
  10727. lt_save_GCC=$GCC
  10728. GCC=$GXX
  10729. lt_save_with_gnu_ld=$with_gnu_ld
  10730. lt_save_path_LD=$lt_cv_path_LD
  10731. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10732. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10733. else
  10734. $as_unset lt_cv_prog_gnu_ld
  10735. fi
  10736. if test -n "${lt_cv_path_LDCXX+set}"; then
  10737. lt_cv_path_LD=$lt_cv_path_LDCXX
  10738. else
  10739. $as_unset lt_cv_path_LD
  10740. fi
  10741. test -z "${LDCXX+set}" || LD=$LDCXX
  10742. CC=${CXX-"c++"}
  10743. CFLAGS=$CXXFLAGS
  10744. compiler=$CC
  10745. compiler_CXX=$CC
  10746. for cc_temp in $compiler""; do
  10747. case $cc_temp in
  10748. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10749. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10750. \-*) ;;
  10751. *) break;;
  10752. esac
  10753. done
  10754. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10755. if test -n "$compiler"; then
  10756. # We don't want -fno-exception when compiling C++ code, so set the
  10757. # no_builtin_flag separately
  10758. if test "$GXX" = yes; then
  10759. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10760. else
  10761. lt_prog_compiler_no_builtin_flag_CXX=
  10762. fi
  10763. if test "$GXX" = yes; then
  10764. # Set up default GNU C++ configuration
  10765. # Check whether --with-gnu-ld was given.
  10766. if test "${with_gnu_ld+set}" = set; then :
  10767. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10768. else
  10769. with_gnu_ld=no
  10770. fi
  10771. ac_prog=ld
  10772. if test "$GCC" = yes; then
  10773. # Check if gcc -print-prog-name=ld gives a path.
  10774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10775. $as_echo_n "checking for ld used by $CC... " >&6; }
  10776. case $host in
  10777. *-*-mingw*)
  10778. # gcc leaves a trailing carriage return which upsets mingw
  10779. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10780. *)
  10781. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10782. esac
  10783. case $ac_prog in
  10784. # Accept absolute paths.
  10785. [\\/]* | ?:[\\/]*)
  10786. re_direlt='/[^/][^/]*/\.\./'
  10787. # Canonicalize the pathname of ld
  10788. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10789. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10790. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10791. done
  10792. test -z "$LD" && LD="$ac_prog"
  10793. ;;
  10794. "")
  10795. # If it fails, then pretend we aren't using GCC.
  10796. ac_prog=ld
  10797. ;;
  10798. *)
  10799. # If it is relative, then search for the first ld in PATH.
  10800. with_gnu_ld=unknown
  10801. ;;
  10802. esac
  10803. elif test "$with_gnu_ld" = yes; then
  10804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10805. $as_echo_n "checking for GNU ld... " >&6; }
  10806. else
  10807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10808. $as_echo_n "checking for non-GNU ld... " >&6; }
  10809. fi
  10810. if ${lt_cv_path_LD+:} false; then :
  10811. $as_echo_n "(cached) " >&6
  10812. else
  10813. if test -z "$LD"; then
  10814. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10815. for ac_dir in $PATH; do
  10816. IFS="$lt_save_ifs"
  10817. test -z "$ac_dir" && ac_dir=.
  10818. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10819. lt_cv_path_LD="$ac_dir/$ac_prog"
  10820. # Check to see if the program is GNU ld. I'd rather use --version,
  10821. # but apparently some variants of GNU ld only accept -v.
  10822. # Break only if it was the GNU/non-GNU ld that we prefer.
  10823. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10824. *GNU* | *'with BFD'*)
  10825. test "$with_gnu_ld" != no && break
  10826. ;;
  10827. *)
  10828. test "$with_gnu_ld" != yes && break
  10829. ;;
  10830. esac
  10831. fi
  10832. done
  10833. IFS="$lt_save_ifs"
  10834. else
  10835. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10836. fi
  10837. fi
  10838. LD="$lt_cv_path_LD"
  10839. if test -n "$LD"; then
  10840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10841. $as_echo "$LD" >&6; }
  10842. else
  10843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10844. $as_echo "no" >&6; }
  10845. fi
  10846. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10848. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10849. if ${lt_cv_prog_gnu_ld+:} false; then :
  10850. $as_echo_n "(cached) " >&6
  10851. else
  10852. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10853. case `$LD -v 2>&1 </dev/null` in
  10854. *GNU* | *'with BFD'*)
  10855. lt_cv_prog_gnu_ld=yes
  10856. ;;
  10857. *)
  10858. lt_cv_prog_gnu_ld=no
  10859. ;;
  10860. esac
  10861. fi
  10862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10863. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10864. with_gnu_ld=$lt_cv_prog_gnu_ld
  10865. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10866. # archiving commands below assume that GNU ld is being used.
  10867. if test "$with_gnu_ld" = yes; then
  10868. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10869. 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'
  10870. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10871. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10872. # If archive_cmds runs LD, not CC, wlarc should be empty
  10873. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10874. # investigate it a little bit more. (MM)
  10875. wlarc='${wl}'
  10876. # ancient GNU ld didn't support --whole-archive et. al.
  10877. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10878. $GREP 'no-whole-archive' > /dev/null; then
  10879. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10880. else
  10881. whole_archive_flag_spec_CXX=
  10882. fi
  10883. else
  10884. with_gnu_ld=no
  10885. wlarc=
  10886. # A generic and very simple default shared library creation
  10887. # command for GNU C++ for the case where it uses the native
  10888. # linker, instead of GNU ld. If possible, this setting should
  10889. # overridden to take advantage of the native linker features on
  10890. # the platform it is being used on.
  10891. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10892. fi
  10893. # Commands to make compiler produce verbose output that lists
  10894. # what "hidden" libraries, object files and flags are used when
  10895. # linking a shared library.
  10896. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10897. else
  10898. GXX=no
  10899. with_gnu_ld=no
  10900. wlarc=
  10901. fi
  10902. # PORTME: fill in a description of your system's C++ link characteristics
  10903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10904. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10905. ld_shlibs_CXX=yes
  10906. case $host_os in
  10907. aix3*)
  10908. # FIXME: insert proper C++ library support
  10909. ld_shlibs_CXX=no
  10910. ;;
  10911. aix[4-9]*)
  10912. if test "$host_cpu" = ia64; then
  10913. # On IA64, the linker does run time linking by default, so we don't
  10914. # have to do anything special.
  10915. aix_use_runtimelinking=no
  10916. exp_sym_flag='-Bexport'
  10917. no_entry_flag=""
  10918. else
  10919. aix_use_runtimelinking=no
  10920. # Test if we are trying to use run time linking or normal
  10921. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10922. # need to do runtime linking.
  10923. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10924. for ld_flag in $LDFLAGS; do
  10925. case $ld_flag in
  10926. *-brtl*)
  10927. aix_use_runtimelinking=yes
  10928. break
  10929. ;;
  10930. esac
  10931. done
  10932. ;;
  10933. esac
  10934. exp_sym_flag='-bexport'
  10935. no_entry_flag='-bnoentry'
  10936. fi
  10937. # When large executables or shared objects are built, AIX ld can
  10938. # have problems creating the table of contents. If linking a library
  10939. # or program results in "error TOC overflow" add -mminimal-toc to
  10940. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10941. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10942. archive_cmds_CXX=''
  10943. hardcode_direct_CXX=yes
  10944. hardcode_direct_absolute_CXX=yes
  10945. hardcode_libdir_separator_CXX=':'
  10946. link_all_deplibs_CXX=yes
  10947. file_list_spec_CXX='${wl}-f,'
  10948. if test "$GXX" = yes; then
  10949. case $host_os in aix4.[012]|aix4.[012].*)
  10950. # We only want to do this on AIX 4.2 and lower, the check
  10951. # below for broken collect2 doesn't work under 4.3+
  10952. collect2name=`${CC} -print-prog-name=collect2`
  10953. if test -f "$collect2name" &&
  10954. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10955. then
  10956. # We have reworked collect2
  10957. :
  10958. else
  10959. # We have old collect2
  10960. hardcode_direct_CXX=unsupported
  10961. # It fails to find uninstalled libraries when the uninstalled
  10962. # path is not listed in the libpath. Setting hardcode_minus_L
  10963. # to unsupported forces relinking
  10964. hardcode_minus_L_CXX=yes
  10965. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10966. hardcode_libdir_separator_CXX=
  10967. fi
  10968. esac
  10969. shared_flag='-shared'
  10970. if test "$aix_use_runtimelinking" = yes; then
  10971. shared_flag="$shared_flag "'${wl}-G'
  10972. fi
  10973. else
  10974. # not using gcc
  10975. if test "$host_cpu" = ia64; then
  10976. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10977. # chokes on -Wl,-G. The following line is correct:
  10978. shared_flag='-G'
  10979. else
  10980. if test "$aix_use_runtimelinking" = yes; then
  10981. shared_flag='${wl}-G'
  10982. else
  10983. shared_flag='${wl}-bM:SRE'
  10984. fi
  10985. fi
  10986. fi
  10987. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10988. # It seems that -bexpall does not export symbols beginning with
  10989. # underscore (_), so it is better to generate a list of symbols to
  10990. # export.
  10991. always_export_symbols_CXX=yes
  10992. if test "$aix_use_runtimelinking" = yes; then
  10993. # Warning - without using the other runtime loading flags (-brtl),
  10994. # -berok will link without error, but may produce a broken library.
  10995. allow_undefined_flag_CXX='-berok'
  10996. # Determine the default libpath from the value encoded in an empty
  10997. # executable.
  10998. if test "${lt_cv_aix_libpath+set}" = set; then
  10999. aix_libpath=$lt_cv_aix_libpath
  11000. else
  11001. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11002. $as_echo_n "(cached) " >&6
  11003. else
  11004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11005. /* end confdefs.h. */
  11006. int
  11007. main ()
  11008. {
  11009. ;
  11010. return 0;
  11011. }
  11012. _ACEOF
  11013. if ac_fn_cxx_try_link "$LINENO"; then :
  11014. lt_aix_libpath_sed='
  11015. /Import File Strings/,/^$/ {
  11016. /^0/ {
  11017. s/^0 *\([^ ]*\) *$/\1/
  11018. p
  11019. }
  11020. }'
  11021. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11022. # Check for a 64-bit object if we didn't find anything.
  11023. if test -z "$lt_cv_aix_libpath__CXX"; then
  11024. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11025. fi
  11026. fi
  11027. rm -f core conftest.err conftest.$ac_objext \
  11028. conftest$ac_exeext conftest.$ac_ext
  11029. if test -z "$lt_cv_aix_libpath__CXX"; then
  11030. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11031. fi
  11032. fi
  11033. aix_libpath=$lt_cv_aix_libpath__CXX
  11034. fi
  11035. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11036. 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"
  11037. else
  11038. if test "$host_cpu" = ia64; then
  11039. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11040. allow_undefined_flag_CXX="-z nodefs"
  11041. 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"
  11042. else
  11043. # Determine the default libpath from the value encoded in an
  11044. # empty executable.
  11045. if test "${lt_cv_aix_libpath+set}" = set; then
  11046. aix_libpath=$lt_cv_aix_libpath
  11047. else
  11048. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11049. $as_echo_n "(cached) " >&6
  11050. else
  11051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11052. /* end confdefs.h. */
  11053. int
  11054. main ()
  11055. {
  11056. ;
  11057. return 0;
  11058. }
  11059. _ACEOF
  11060. if ac_fn_cxx_try_link "$LINENO"; then :
  11061. lt_aix_libpath_sed='
  11062. /Import File Strings/,/^$/ {
  11063. /^0/ {
  11064. s/^0 *\([^ ]*\) *$/\1/
  11065. p
  11066. }
  11067. }'
  11068. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11069. # Check for a 64-bit object if we didn't find anything.
  11070. if test -z "$lt_cv_aix_libpath__CXX"; then
  11071. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11072. fi
  11073. fi
  11074. rm -f core conftest.err conftest.$ac_objext \
  11075. conftest$ac_exeext conftest.$ac_ext
  11076. if test -z "$lt_cv_aix_libpath__CXX"; then
  11077. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11078. fi
  11079. fi
  11080. aix_libpath=$lt_cv_aix_libpath__CXX
  11081. fi
  11082. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11083. # Warning - without using the other run time loading flags,
  11084. # -berok will link without error, but may produce a broken library.
  11085. no_undefined_flag_CXX=' ${wl}-bernotok'
  11086. allow_undefined_flag_CXX=' ${wl}-berok'
  11087. if test "$with_gnu_ld" = yes; then
  11088. # We only use this code for GNU lds that support --whole-archive.
  11089. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11090. else
  11091. # Exported symbols can be pulled into shared objects from archives
  11092. whole_archive_flag_spec_CXX='$convenience'
  11093. fi
  11094. archive_cmds_need_lc_CXX=yes
  11095. # This is similar to how AIX traditionally builds its shared
  11096. # libraries.
  11097. 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'
  11098. fi
  11099. fi
  11100. ;;
  11101. beos*)
  11102. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11103. allow_undefined_flag_CXX=unsupported
  11104. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11105. # support --undefined. This deserves some investigation. FIXME
  11106. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11107. else
  11108. ld_shlibs_CXX=no
  11109. fi
  11110. ;;
  11111. chorus*)
  11112. case $cc_basename in
  11113. *)
  11114. # FIXME: insert proper C++ library support
  11115. ld_shlibs_CXX=no
  11116. ;;
  11117. esac
  11118. ;;
  11119. cygwin* | mingw* | pw32* | cegcc*)
  11120. case $GXX,$cc_basename in
  11121. ,cl* | no,cl*)
  11122. # Native MSVC
  11123. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11124. # no search path for DLLs.
  11125. hardcode_libdir_flag_spec_CXX=' '
  11126. allow_undefined_flag_CXX=unsupported
  11127. always_export_symbols_CXX=yes
  11128. file_list_spec_CXX='@'
  11129. # Tell ltmain to make .lib files, not .a files.
  11130. libext=lib
  11131. # Tell ltmain to make .dll files, not .so files.
  11132. shrext_cmds=".dll"
  11133. # FIXME: Setting linknames here is a bad hack.
  11134. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11135. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11136. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11137. else
  11138. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11139. fi~
  11140. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11141. linknames='
  11142. # The linker will not automatically build a static lib if we build a DLL.
  11143. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11144. enable_shared_with_static_runtimes_CXX=yes
  11145. # Don't use ranlib
  11146. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11147. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11148. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11149. case $lt_outputfile in
  11150. *.exe|*.EXE) ;;
  11151. *)
  11152. lt_outputfile="$lt_outputfile.exe"
  11153. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11154. ;;
  11155. esac~
  11156. func_to_tool_file "$lt_outputfile"~
  11157. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11158. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11159. $RM "$lt_outputfile.manifest";
  11160. fi'
  11161. ;;
  11162. *)
  11163. # g++
  11164. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11165. # as there is no search path for DLLs.
  11166. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11167. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11168. allow_undefined_flag_CXX=unsupported
  11169. always_export_symbols_CXX=no
  11170. enable_shared_with_static_runtimes_CXX=yes
  11171. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11172. 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'
  11173. # If the export-symbols file already is a .def file (1st line
  11174. # is EXPORTS), use it as is; otherwise, prepend...
  11175. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11176. cp $export_symbols $output_objdir/$soname.def;
  11177. else
  11178. echo EXPORTS > $output_objdir/$soname.def;
  11179. cat $export_symbols >> $output_objdir/$soname.def;
  11180. fi~
  11181. $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'
  11182. else
  11183. ld_shlibs_CXX=no
  11184. fi
  11185. ;;
  11186. esac
  11187. ;;
  11188. darwin* | rhapsody*)
  11189. archive_cmds_need_lc_CXX=no
  11190. hardcode_direct_CXX=no
  11191. hardcode_automatic_CXX=yes
  11192. hardcode_shlibpath_var_CXX=unsupported
  11193. if test "$lt_cv_ld_force_load" = "yes"; then
  11194. 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\"`'
  11195. else
  11196. whole_archive_flag_spec_CXX=''
  11197. fi
  11198. link_all_deplibs_CXX=yes
  11199. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11200. case $cc_basename in
  11201. ifort*) _lt_dar_can_shared=yes ;;
  11202. *) _lt_dar_can_shared=$GCC ;;
  11203. esac
  11204. if test "$_lt_dar_can_shared" = "yes"; then
  11205. output_verbose_link_cmd=func_echo_all
  11206. 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}"
  11207. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11208. 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}"
  11209. 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}"
  11210. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11211. 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}"
  11212. 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}"
  11213. fi
  11214. else
  11215. ld_shlibs_CXX=no
  11216. fi
  11217. ;;
  11218. dgux*)
  11219. case $cc_basename in
  11220. ec++*)
  11221. # FIXME: insert proper C++ library support
  11222. ld_shlibs_CXX=no
  11223. ;;
  11224. ghcx*)
  11225. # Green Hills C++ Compiler
  11226. # FIXME: insert proper C++ library support
  11227. ld_shlibs_CXX=no
  11228. ;;
  11229. *)
  11230. # FIXME: insert proper C++ library support
  11231. ld_shlibs_CXX=no
  11232. ;;
  11233. esac
  11234. ;;
  11235. freebsd2.*)
  11236. # C++ shared libraries reported to be fairly broken before
  11237. # switch to ELF
  11238. ld_shlibs_CXX=no
  11239. ;;
  11240. freebsd-elf*)
  11241. archive_cmds_need_lc_CXX=no
  11242. ;;
  11243. freebsd* | dragonfly*)
  11244. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11245. # conventions
  11246. ld_shlibs_CXX=yes
  11247. ;;
  11248. gnu*)
  11249. ;;
  11250. haiku*)
  11251. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11252. link_all_deplibs_CXX=yes
  11253. ;;
  11254. hpux9*)
  11255. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11256. hardcode_libdir_separator_CXX=:
  11257. export_dynamic_flag_spec_CXX='${wl}-E'
  11258. hardcode_direct_CXX=yes
  11259. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11260. # but as the default
  11261. # location of the library.
  11262. case $cc_basename in
  11263. CC*)
  11264. # FIXME: insert proper C++ library support
  11265. ld_shlibs_CXX=no
  11266. ;;
  11267. aCC*)
  11268. 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'
  11269. # Commands to make compiler produce verbose output that lists
  11270. # what "hidden" libraries, object files and flags are used when
  11271. # linking a shared library.
  11272. #
  11273. # There doesn't appear to be a way to prevent this compiler from
  11274. # explicitly linking system object files so we need to strip them
  11275. # from the output so that they don't get included in the library
  11276. # dependencies.
  11277. 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"'
  11278. ;;
  11279. *)
  11280. if test "$GXX" = yes; then
  11281. 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'
  11282. else
  11283. # FIXME: insert proper C++ library support
  11284. ld_shlibs_CXX=no
  11285. fi
  11286. ;;
  11287. esac
  11288. ;;
  11289. hpux10*|hpux11*)
  11290. if test $with_gnu_ld = no; then
  11291. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11292. hardcode_libdir_separator_CXX=:
  11293. case $host_cpu in
  11294. hppa*64*|ia64*)
  11295. ;;
  11296. *)
  11297. export_dynamic_flag_spec_CXX='${wl}-E'
  11298. ;;
  11299. esac
  11300. fi
  11301. case $host_cpu in
  11302. hppa*64*|ia64*)
  11303. hardcode_direct_CXX=no
  11304. hardcode_shlibpath_var_CXX=no
  11305. ;;
  11306. *)
  11307. hardcode_direct_CXX=yes
  11308. hardcode_direct_absolute_CXX=yes
  11309. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11310. # but as the default
  11311. # location of the library.
  11312. ;;
  11313. esac
  11314. case $cc_basename in
  11315. CC*)
  11316. # FIXME: insert proper C++ library support
  11317. ld_shlibs_CXX=no
  11318. ;;
  11319. aCC*)
  11320. case $host_cpu in
  11321. hppa*64*)
  11322. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11323. ;;
  11324. ia64*)
  11325. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11326. ;;
  11327. *)
  11328. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11329. ;;
  11330. esac
  11331. # Commands to make compiler produce verbose output that lists
  11332. # what "hidden" libraries, object files and flags are used when
  11333. # linking a shared library.
  11334. #
  11335. # There doesn't appear to be a way to prevent this compiler from
  11336. # explicitly linking system object files so we need to strip them
  11337. # from the output so that they don't get included in the library
  11338. # dependencies.
  11339. 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"'
  11340. ;;
  11341. *)
  11342. if test "$GXX" = yes; then
  11343. if test $with_gnu_ld = no; then
  11344. case $host_cpu in
  11345. hppa*64*)
  11346. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11347. ;;
  11348. ia64*)
  11349. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11350. ;;
  11351. *)
  11352. 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'
  11353. ;;
  11354. esac
  11355. fi
  11356. else
  11357. # FIXME: insert proper C++ library support
  11358. ld_shlibs_CXX=no
  11359. fi
  11360. ;;
  11361. esac
  11362. ;;
  11363. interix[3-9]*)
  11364. hardcode_direct_CXX=no
  11365. hardcode_shlibpath_var_CXX=no
  11366. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11367. export_dynamic_flag_spec_CXX='${wl}-E'
  11368. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11369. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11370. # default) and relocated if they conflict, which is a slow very memory
  11371. # consuming and fragmenting process. To avoid this, we pick a random,
  11372. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11373. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11374. 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'
  11375. 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'
  11376. ;;
  11377. irix5* | irix6*)
  11378. case $cc_basename in
  11379. CC*)
  11380. # SGI C++
  11381. 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'
  11382. # Archives containing C++ object files must be created using
  11383. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11384. # necessary to make sure instantiated templates are included
  11385. # in the archive.
  11386. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11387. ;;
  11388. *)
  11389. if test "$GXX" = yes; then
  11390. if test "$with_gnu_ld" = no; then
  11391. 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'
  11392. else
  11393. 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'
  11394. fi
  11395. fi
  11396. link_all_deplibs_CXX=yes
  11397. ;;
  11398. esac
  11399. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11400. hardcode_libdir_separator_CXX=:
  11401. inherit_rpath_CXX=yes
  11402. ;;
  11403. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11404. case $cc_basename in
  11405. KCC*)
  11406. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11407. # KCC will only create a shared library if the output file
  11408. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11409. # to its proper name (with version) after linking.
  11410. 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'
  11411. 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'
  11412. # Commands to make compiler produce verbose output that lists
  11413. # what "hidden" libraries, object files and flags are used when
  11414. # linking a shared library.
  11415. #
  11416. # There doesn't appear to be a way to prevent this compiler from
  11417. # explicitly linking system object files so we need to strip them
  11418. # from the output so that they don't get included in the library
  11419. # dependencies.
  11420. 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"'
  11421. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11422. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11423. # Archives containing C++ object files must be created using
  11424. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11425. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11426. ;;
  11427. icpc* | ecpc* )
  11428. # Intel C++
  11429. with_gnu_ld=yes
  11430. # version 8.0 and above of icpc choke on multiply defined symbols
  11431. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11432. # earlier do not add the objects themselves.
  11433. case `$CC -V 2>&1` in
  11434. *"Version 7."*)
  11435. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11436. 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'
  11437. ;;
  11438. *) # Version 8.0 or newer
  11439. tmp_idyn=
  11440. case $host_cpu in
  11441. ia64*) tmp_idyn=' -i_dynamic';;
  11442. esac
  11443. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11444. 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'
  11445. ;;
  11446. esac
  11447. archive_cmds_need_lc_CXX=no
  11448. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11449. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11450. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11451. ;;
  11452. pgCC* | pgcpp*)
  11453. # Portland Group C++ compiler
  11454. case `$CC -V` in
  11455. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11456. prelink_cmds_CXX='tpldir=Template.dir~
  11457. rm -rf $tpldir~
  11458. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11459. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11460. old_archive_cmds_CXX='tpldir=Template.dir~
  11461. rm -rf $tpldir~
  11462. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11463. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11464. $RANLIB $oldlib'
  11465. archive_cmds_CXX='tpldir=Template.dir~
  11466. rm -rf $tpldir~
  11467. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11468. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11469. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11470. rm -rf $tpldir~
  11471. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11472. $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'
  11473. ;;
  11474. *) # Version 6 and above use weak symbols
  11475. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11476. 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'
  11477. ;;
  11478. esac
  11479. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11480. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11481. 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'
  11482. ;;
  11483. cxx*)
  11484. # Compaq C++
  11485. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11486. 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'
  11487. runpath_var=LD_RUN_PATH
  11488. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11489. hardcode_libdir_separator_CXX=:
  11490. # Commands to make compiler produce verbose output that lists
  11491. # what "hidden" libraries, object files and flags are used when
  11492. # linking a shared library.
  11493. #
  11494. # There doesn't appear to be a way to prevent this compiler from
  11495. # explicitly linking system object files so we need to strip them
  11496. # from the output so that they don't get included in the library
  11497. # dependencies.
  11498. 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'
  11499. ;;
  11500. xl* | mpixl* | bgxl*)
  11501. # IBM XL 8.0 on PPC, with GNU ld
  11502. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11503. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11504. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11505. if test "x$supports_anon_versioning" = xyes; then
  11506. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11507. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11508. echo "local: *; };" >> $output_objdir/$libname.ver~
  11509. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11510. fi
  11511. ;;
  11512. *)
  11513. case `$CC -V 2>&1 | sed 5q` in
  11514. *Sun\ C*)
  11515. # Sun C++ 5.9
  11516. no_undefined_flag_CXX=' -zdefs'
  11517. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11518. 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'
  11519. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11520. 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'
  11521. compiler_needs_object_CXX=yes
  11522. # Not sure whether something based on
  11523. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11524. # would be better.
  11525. output_verbose_link_cmd='func_echo_all'
  11526. # Archives containing C++ object files must be created using
  11527. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11528. # necessary to make sure instantiated templates are included
  11529. # in the archive.
  11530. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11531. ;;
  11532. esac
  11533. ;;
  11534. esac
  11535. ;;
  11536. lynxos*)
  11537. # FIXME: insert proper C++ library support
  11538. ld_shlibs_CXX=no
  11539. ;;
  11540. m88k*)
  11541. # FIXME: insert proper C++ library support
  11542. ld_shlibs_CXX=no
  11543. ;;
  11544. mvs*)
  11545. case $cc_basename in
  11546. cxx*)
  11547. # FIXME: insert proper C++ library support
  11548. ld_shlibs_CXX=no
  11549. ;;
  11550. *)
  11551. # FIXME: insert proper C++ library support
  11552. ld_shlibs_CXX=no
  11553. ;;
  11554. esac
  11555. ;;
  11556. netbsd*)
  11557. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11558. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11559. wlarc=
  11560. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11561. hardcode_direct_CXX=yes
  11562. hardcode_shlibpath_var_CXX=no
  11563. fi
  11564. # Workaround some broken pre-1.5 toolchains
  11565. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11566. ;;
  11567. *nto* | *qnx*)
  11568. ld_shlibs_CXX=yes
  11569. ;;
  11570. openbsd2*)
  11571. # C++ shared libraries are fairly broken
  11572. ld_shlibs_CXX=no
  11573. ;;
  11574. openbsd*)
  11575. if test -f /usr/libexec/ld.so; then
  11576. hardcode_direct_CXX=yes
  11577. hardcode_shlibpath_var_CXX=no
  11578. hardcode_direct_absolute_CXX=yes
  11579. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11580. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11581. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11582. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11583. export_dynamic_flag_spec_CXX='${wl}-E'
  11584. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11585. fi
  11586. output_verbose_link_cmd=func_echo_all
  11587. else
  11588. ld_shlibs_CXX=no
  11589. fi
  11590. ;;
  11591. osf3* | osf4* | osf5*)
  11592. case $cc_basename in
  11593. KCC*)
  11594. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11595. # KCC will only create a shared library if the output file
  11596. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11597. # to its proper name (with version) after linking.
  11598. 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'
  11599. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11600. hardcode_libdir_separator_CXX=:
  11601. # Archives containing C++ object files must be created using
  11602. # the KAI C++ compiler.
  11603. case $host in
  11604. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11605. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11606. esac
  11607. ;;
  11608. RCC*)
  11609. # Rational C++ 2.4.1
  11610. # FIXME: insert proper C++ library support
  11611. ld_shlibs_CXX=no
  11612. ;;
  11613. cxx*)
  11614. case $host in
  11615. osf3*)
  11616. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11617. 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'
  11618. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11619. ;;
  11620. *)
  11621. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11622. 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'
  11623. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11624. echo "-hidden">> $lib.exp~
  11625. $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~
  11626. $RM $lib.exp'
  11627. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11628. ;;
  11629. esac
  11630. hardcode_libdir_separator_CXX=:
  11631. # Commands to make compiler produce verbose output that lists
  11632. # what "hidden" libraries, object files and flags are used when
  11633. # linking a shared library.
  11634. #
  11635. # There doesn't appear to be a way to prevent this compiler from
  11636. # explicitly linking system object files so we need to strip them
  11637. # from the output so that they don't get included in the library
  11638. # dependencies.
  11639. 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"'
  11640. ;;
  11641. *)
  11642. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11643. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11644. case $host in
  11645. osf3*)
  11646. 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'
  11647. ;;
  11648. *)
  11649. 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'
  11650. ;;
  11651. esac
  11652. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11653. hardcode_libdir_separator_CXX=:
  11654. # Commands to make compiler produce verbose output that lists
  11655. # what "hidden" libraries, object files and flags are used when
  11656. # linking a shared library.
  11657. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11658. else
  11659. # FIXME: insert proper C++ library support
  11660. ld_shlibs_CXX=no
  11661. fi
  11662. ;;
  11663. esac
  11664. ;;
  11665. psos*)
  11666. # FIXME: insert proper C++ library support
  11667. ld_shlibs_CXX=no
  11668. ;;
  11669. sunos4*)
  11670. case $cc_basename in
  11671. CC*)
  11672. # Sun C++ 4.x
  11673. # FIXME: insert proper C++ library support
  11674. ld_shlibs_CXX=no
  11675. ;;
  11676. lcc*)
  11677. # Lucid
  11678. # FIXME: insert proper C++ library support
  11679. ld_shlibs_CXX=no
  11680. ;;
  11681. *)
  11682. # FIXME: insert proper C++ library support
  11683. ld_shlibs_CXX=no
  11684. ;;
  11685. esac
  11686. ;;
  11687. solaris*)
  11688. case $cc_basename in
  11689. CC* | sunCC*)
  11690. # Sun C++ 4.2, 5.x and Centerline C++
  11691. archive_cmds_need_lc_CXX=yes
  11692. no_undefined_flag_CXX=' -zdefs'
  11693. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11694. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11695. $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'
  11696. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11697. hardcode_shlibpath_var_CXX=no
  11698. case $host_os in
  11699. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11700. *)
  11701. # The compiler driver will combine and reorder linker options,
  11702. # but understands `-z linker_flag'.
  11703. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11704. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11705. ;;
  11706. esac
  11707. link_all_deplibs_CXX=yes
  11708. output_verbose_link_cmd='func_echo_all'
  11709. # Archives containing C++ object files must be created using
  11710. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11711. # necessary to make sure instantiated templates are included
  11712. # in the archive.
  11713. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11714. ;;
  11715. gcx*)
  11716. # Green Hills C++ Compiler
  11717. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11718. # The C++ compiler must be used to create the archive.
  11719. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11720. ;;
  11721. *)
  11722. # GNU C++ compiler with Solaris linker
  11723. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11724. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11725. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11726. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11727. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11728. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11729. # Commands to make compiler produce verbose output that lists
  11730. # what "hidden" libraries, object files and flags are used when
  11731. # linking a shared library.
  11732. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11733. else
  11734. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11735. # platform.
  11736. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11737. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11738. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11739. # Commands to make compiler produce verbose output that lists
  11740. # what "hidden" libraries, object files and flags are used when
  11741. # linking a shared library.
  11742. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11743. fi
  11744. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11745. case $host_os in
  11746. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11747. *)
  11748. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11749. ;;
  11750. esac
  11751. fi
  11752. ;;
  11753. esac
  11754. ;;
  11755. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11756. no_undefined_flag_CXX='${wl}-z,text'
  11757. archive_cmds_need_lc_CXX=no
  11758. hardcode_shlibpath_var_CXX=no
  11759. runpath_var='LD_RUN_PATH'
  11760. case $cc_basename in
  11761. CC*)
  11762. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11763. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11764. ;;
  11765. *)
  11766. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11767. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11768. ;;
  11769. esac
  11770. ;;
  11771. sysv5* | sco3.2v5* | sco5v6*)
  11772. # Note: We can NOT use -z defs as we might desire, because we do not
  11773. # link with -lc, and that would cause any symbols used from libc to
  11774. # always be unresolved, which means just about no library would
  11775. # ever link correctly. If we're not using GNU ld we use -z text
  11776. # though, which does catch some bad symbols but isn't as heavy-handed
  11777. # as -z defs.
  11778. no_undefined_flag_CXX='${wl}-z,text'
  11779. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11780. archive_cmds_need_lc_CXX=no
  11781. hardcode_shlibpath_var_CXX=no
  11782. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11783. hardcode_libdir_separator_CXX=':'
  11784. link_all_deplibs_CXX=yes
  11785. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11786. runpath_var='LD_RUN_PATH'
  11787. case $cc_basename in
  11788. CC*)
  11789. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11790. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11791. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11792. '"$old_archive_cmds_CXX"
  11793. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11794. '"$reload_cmds_CXX"
  11795. ;;
  11796. *)
  11797. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11798. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11799. ;;
  11800. esac
  11801. ;;
  11802. tandem*)
  11803. case $cc_basename in
  11804. NCC*)
  11805. # NonStop-UX NCC 3.20
  11806. # FIXME: insert proper C++ library support
  11807. ld_shlibs_CXX=no
  11808. ;;
  11809. *)
  11810. # FIXME: insert proper C++ library support
  11811. ld_shlibs_CXX=no
  11812. ;;
  11813. esac
  11814. ;;
  11815. vxworks*)
  11816. # FIXME: insert proper C++ library support
  11817. ld_shlibs_CXX=no
  11818. ;;
  11819. *)
  11820. # FIXME: insert proper C++ library support
  11821. ld_shlibs_CXX=no
  11822. ;;
  11823. esac
  11824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11825. $as_echo "$ld_shlibs_CXX" >&6; }
  11826. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11827. GCC_CXX="$GXX"
  11828. LD_CXX="$LD"
  11829. ## CAVEAT EMPTOR:
  11830. ## There is no encapsulation within the following macros, do not change
  11831. ## the running order or otherwise move them around unless you know exactly
  11832. ## what you are doing...
  11833. # Dependencies to place before and after the object being linked:
  11834. predep_objects_CXX=
  11835. postdep_objects_CXX=
  11836. predeps_CXX=
  11837. postdeps_CXX=
  11838. compiler_lib_search_path_CXX=
  11839. cat > conftest.$ac_ext <<_LT_EOF
  11840. class Foo
  11841. {
  11842. public:
  11843. Foo (void) { a = 0; }
  11844. private:
  11845. int a;
  11846. };
  11847. _LT_EOF
  11848. _lt_libdeps_save_CFLAGS=$CFLAGS
  11849. case "$CC $CFLAGS " in #(
  11850. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11851. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11852. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11853. esac
  11854. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11855. (eval $ac_compile) 2>&5
  11856. ac_status=$?
  11857. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11858. test $ac_status = 0; }; then
  11859. # Parse the compiler output and extract the necessary
  11860. # objects, libraries and library flags.
  11861. # Sentinel used to keep track of whether or not we are before
  11862. # the conftest object file.
  11863. pre_test_object_deps_done=no
  11864. for p in `eval "$output_verbose_link_cmd"`; do
  11865. case ${prev}${p} in
  11866. -L* | -R* | -l*)
  11867. # Some compilers place space between "-{L,R}" and the path.
  11868. # Remove the space.
  11869. if test $p = "-L" ||
  11870. test $p = "-R"; then
  11871. prev=$p
  11872. continue
  11873. fi
  11874. # Expand the sysroot to ease extracting the directories later.
  11875. if test -z "$prev"; then
  11876. case $p in
  11877. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11878. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11879. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11880. esac
  11881. fi
  11882. case $p in
  11883. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11884. esac
  11885. if test "$pre_test_object_deps_done" = no; then
  11886. case ${prev} in
  11887. -L | -R)
  11888. # Internal compiler library paths should come after those
  11889. # provided the user. The postdeps already come after the
  11890. # user supplied libs so there is no need to process them.
  11891. if test -z "$compiler_lib_search_path_CXX"; then
  11892. compiler_lib_search_path_CXX="${prev}${p}"
  11893. else
  11894. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11895. fi
  11896. ;;
  11897. # The "-l" case would never come before the object being
  11898. # linked, so don't bother handling this case.
  11899. esac
  11900. else
  11901. if test -z "$postdeps_CXX"; then
  11902. postdeps_CXX="${prev}${p}"
  11903. else
  11904. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11905. fi
  11906. fi
  11907. prev=
  11908. ;;
  11909. *.lto.$objext) ;; # Ignore GCC LTO objects
  11910. *.$objext)
  11911. # This assumes that the test object file only shows up
  11912. # once in the compiler output.
  11913. if test "$p" = "conftest.$objext"; then
  11914. pre_test_object_deps_done=yes
  11915. continue
  11916. fi
  11917. if test "$pre_test_object_deps_done" = no; then
  11918. if test -z "$predep_objects_CXX"; then
  11919. predep_objects_CXX="$p"
  11920. else
  11921. predep_objects_CXX="$predep_objects_CXX $p"
  11922. fi
  11923. else
  11924. if test -z "$postdep_objects_CXX"; then
  11925. postdep_objects_CXX="$p"
  11926. else
  11927. postdep_objects_CXX="$postdep_objects_CXX $p"
  11928. fi
  11929. fi
  11930. ;;
  11931. *) ;; # Ignore the rest.
  11932. esac
  11933. done
  11934. # Clean up.
  11935. rm -f a.out a.exe
  11936. else
  11937. echo "libtool.m4: error: problem compiling CXX test program"
  11938. fi
  11939. $RM -f confest.$objext
  11940. CFLAGS=$_lt_libdeps_save_CFLAGS
  11941. # PORTME: override above test on systems where it is broken
  11942. case $host_os in
  11943. interix[3-9]*)
  11944. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11945. # hack all around it, let's just trust "g++" to DTRT.
  11946. predep_objects_CXX=
  11947. postdep_objects_CXX=
  11948. postdeps_CXX=
  11949. ;;
  11950. linux*)
  11951. case `$CC -V 2>&1 | sed 5q` in
  11952. *Sun\ C*)
  11953. # Sun C++ 5.9
  11954. # The more standards-conforming stlport4 library is
  11955. # incompatible with the Cstd library. Avoid specifying
  11956. # it if it's in CXXFLAGS. Ignore libCrun as
  11957. # -library=stlport4 depends on it.
  11958. case " $CXX $CXXFLAGS " in
  11959. *" -library=stlport4 "*)
  11960. solaris_use_stlport4=yes
  11961. ;;
  11962. esac
  11963. if test "$solaris_use_stlport4" != yes; then
  11964. postdeps_CXX='-library=Cstd -library=Crun'
  11965. fi
  11966. ;;
  11967. esac
  11968. ;;
  11969. solaris*)
  11970. case $cc_basename in
  11971. CC* | sunCC*)
  11972. # The more standards-conforming stlport4 library is
  11973. # incompatible with the Cstd library. Avoid specifying
  11974. # it if it's in CXXFLAGS. Ignore libCrun as
  11975. # -library=stlport4 depends on it.
  11976. case " $CXX $CXXFLAGS " in
  11977. *" -library=stlport4 "*)
  11978. solaris_use_stlport4=yes
  11979. ;;
  11980. esac
  11981. # Adding this requires a known-good setup of shared libraries for
  11982. # Sun compiler versions before 5.6, else PIC objects from an old
  11983. # archive will be linked into the output, leading to subtle bugs.
  11984. if test "$solaris_use_stlport4" != yes; then
  11985. postdeps_CXX='-library=Cstd -library=Crun'
  11986. fi
  11987. ;;
  11988. esac
  11989. ;;
  11990. esac
  11991. case " $postdeps_CXX " in
  11992. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11993. esac
  11994. compiler_lib_search_dirs_CXX=
  11995. if test -n "${compiler_lib_search_path_CXX}"; then
  11996. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11997. fi
  11998. lt_prog_compiler_wl_CXX=
  11999. lt_prog_compiler_pic_CXX=
  12000. lt_prog_compiler_static_CXX=
  12001. # C++ specific cases for pic, static, wl, etc.
  12002. if test "$GXX" = yes; then
  12003. lt_prog_compiler_wl_CXX='-Wl,'
  12004. lt_prog_compiler_static_CXX='-static'
  12005. case $host_os in
  12006. aix*)
  12007. # All AIX code is PIC.
  12008. if test "$host_cpu" = ia64; then
  12009. # AIX 5 now supports IA64 processor
  12010. lt_prog_compiler_static_CXX='-Bstatic'
  12011. fi
  12012. ;;
  12013. amigaos*)
  12014. case $host_cpu in
  12015. powerpc)
  12016. # see comment about AmigaOS4 .so support
  12017. lt_prog_compiler_pic_CXX='-fPIC'
  12018. ;;
  12019. m68k)
  12020. # FIXME: we need at least 68020 code to build shared libraries, but
  12021. # adding the `-m68020' flag to GCC prevents building anything better,
  12022. # like `-m68040'.
  12023. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12024. ;;
  12025. esac
  12026. ;;
  12027. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12028. # PIC is the default for these OSes.
  12029. ;;
  12030. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12031. # This hack is so that the source file can tell whether it is being
  12032. # built for inclusion in a dll (and should export symbols for example).
  12033. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12034. # (--disable-auto-import) libraries
  12035. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12036. ;;
  12037. darwin* | rhapsody*)
  12038. # PIC is the default on this platform
  12039. # Common symbols not allowed in MH_DYLIB files
  12040. lt_prog_compiler_pic_CXX='-fno-common'
  12041. ;;
  12042. *djgpp*)
  12043. # DJGPP does not support shared libraries at all
  12044. lt_prog_compiler_pic_CXX=
  12045. ;;
  12046. haiku*)
  12047. # PIC is the default for Haiku.
  12048. # The "-static" flag exists, but is broken.
  12049. lt_prog_compiler_static_CXX=
  12050. ;;
  12051. interix[3-9]*)
  12052. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12053. # Instead, we relocate shared libraries at runtime.
  12054. ;;
  12055. sysv4*MP*)
  12056. if test -d /usr/nec; then
  12057. lt_prog_compiler_pic_CXX=-Kconform_pic
  12058. fi
  12059. ;;
  12060. hpux*)
  12061. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12062. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12063. # sets the default TLS model and affects inlining.
  12064. case $host_cpu in
  12065. hppa*64*)
  12066. ;;
  12067. *)
  12068. lt_prog_compiler_pic_CXX='-fPIC'
  12069. ;;
  12070. esac
  12071. ;;
  12072. *qnx* | *nto*)
  12073. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12074. # it will coredump.
  12075. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12076. ;;
  12077. *)
  12078. lt_prog_compiler_pic_CXX='-fPIC'
  12079. ;;
  12080. esac
  12081. else
  12082. case $host_os in
  12083. aix[4-9]*)
  12084. # All AIX code is PIC.
  12085. if test "$host_cpu" = ia64; then
  12086. # AIX 5 now supports IA64 processor
  12087. lt_prog_compiler_static_CXX='-Bstatic'
  12088. else
  12089. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12090. fi
  12091. ;;
  12092. chorus*)
  12093. case $cc_basename in
  12094. cxch68*)
  12095. # Green Hills C++ Compiler
  12096. # _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"
  12097. ;;
  12098. esac
  12099. ;;
  12100. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12101. # This hack is so that the source file can tell whether it is being
  12102. # built for inclusion in a dll (and should export symbols for example).
  12103. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12104. ;;
  12105. dgux*)
  12106. case $cc_basename in
  12107. ec++*)
  12108. lt_prog_compiler_pic_CXX='-KPIC'
  12109. ;;
  12110. ghcx*)
  12111. # Green Hills C++ Compiler
  12112. lt_prog_compiler_pic_CXX='-pic'
  12113. ;;
  12114. *)
  12115. ;;
  12116. esac
  12117. ;;
  12118. freebsd* | dragonfly*)
  12119. # FreeBSD uses GNU C++
  12120. ;;
  12121. hpux9* | hpux10* | hpux11*)
  12122. case $cc_basename in
  12123. CC*)
  12124. lt_prog_compiler_wl_CXX='-Wl,'
  12125. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12126. if test "$host_cpu" != ia64; then
  12127. lt_prog_compiler_pic_CXX='+Z'
  12128. fi
  12129. ;;
  12130. aCC*)
  12131. lt_prog_compiler_wl_CXX='-Wl,'
  12132. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12133. case $host_cpu in
  12134. hppa*64*|ia64*)
  12135. # +Z the default
  12136. ;;
  12137. *)
  12138. lt_prog_compiler_pic_CXX='+Z'
  12139. ;;
  12140. esac
  12141. ;;
  12142. *)
  12143. ;;
  12144. esac
  12145. ;;
  12146. interix*)
  12147. # This is c89, which is MS Visual C++ (no shared libs)
  12148. # Anyone wants to do a port?
  12149. ;;
  12150. irix5* | irix6* | nonstopux*)
  12151. case $cc_basename in
  12152. CC*)
  12153. lt_prog_compiler_wl_CXX='-Wl,'
  12154. lt_prog_compiler_static_CXX='-non_shared'
  12155. # CC pic flag -KPIC is the default.
  12156. ;;
  12157. *)
  12158. ;;
  12159. esac
  12160. ;;
  12161. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12162. case $cc_basename in
  12163. KCC*)
  12164. # KAI C++ Compiler
  12165. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12166. lt_prog_compiler_pic_CXX='-fPIC'
  12167. ;;
  12168. ecpc* )
  12169. # old Intel C++ for x86_64 which still supported -KPIC.
  12170. lt_prog_compiler_wl_CXX='-Wl,'
  12171. lt_prog_compiler_pic_CXX='-KPIC'
  12172. lt_prog_compiler_static_CXX='-static'
  12173. ;;
  12174. icpc* )
  12175. # Intel C++, used to be incompatible with GCC.
  12176. # ICC 10 doesn't accept -KPIC any more.
  12177. lt_prog_compiler_wl_CXX='-Wl,'
  12178. lt_prog_compiler_pic_CXX='-fPIC'
  12179. lt_prog_compiler_static_CXX='-static'
  12180. ;;
  12181. pgCC* | pgcpp*)
  12182. # Portland Group C++ compiler
  12183. lt_prog_compiler_wl_CXX='-Wl,'
  12184. lt_prog_compiler_pic_CXX='-fpic'
  12185. lt_prog_compiler_static_CXX='-Bstatic'
  12186. ;;
  12187. cxx*)
  12188. # Compaq C++
  12189. # Make sure the PIC flag is empty. It appears that all Alpha
  12190. # Linux and Compaq Tru64 Unix objects are PIC.
  12191. lt_prog_compiler_pic_CXX=
  12192. lt_prog_compiler_static_CXX='-non_shared'
  12193. ;;
  12194. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12195. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12196. lt_prog_compiler_wl_CXX='-Wl,'
  12197. lt_prog_compiler_pic_CXX='-qpic'
  12198. lt_prog_compiler_static_CXX='-qstaticlink'
  12199. ;;
  12200. *)
  12201. case `$CC -V 2>&1 | sed 5q` in
  12202. *Sun\ C*)
  12203. # Sun C++ 5.9
  12204. lt_prog_compiler_pic_CXX='-KPIC'
  12205. lt_prog_compiler_static_CXX='-Bstatic'
  12206. lt_prog_compiler_wl_CXX='-Qoption ld '
  12207. ;;
  12208. esac
  12209. ;;
  12210. esac
  12211. ;;
  12212. lynxos*)
  12213. ;;
  12214. m88k*)
  12215. ;;
  12216. mvs*)
  12217. case $cc_basename in
  12218. cxx*)
  12219. lt_prog_compiler_pic_CXX='-W c,exportall'
  12220. ;;
  12221. *)
  12222. ;;
  12223. esac
  12224. ;;
  12225. netbsd*)
  12226. ;;
  12227. *qnx* | *nto*)
  12228. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12229. # it will coredump.
  12230. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12231. ;;
  12232. osf3* | osf4* | osf5*)
  12233. case $cc_basename in
  12234. KCC*)
  12235. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12236. ;;
  12237. RCC*)
  12238. # Rational C++ 2.4.1
  12239. lt_prog_compiler_pic_CXX='-pic'
  12240. ;;
  12241. cxx*)
  12242. # Digital/Compaq C++
  12243. lt_prog_compiler_wl_CXX='-Wl,'
  12244. # Make sure the PIC flag is empty. It appears that all Alpha
  12245. # Linux and Compaq Tru64 Unix objects are PIC.
  12246. lt_prog_compiler_pic_CXX=
  12247. lt_prog_compiler_static_CXX='-non_shared'
  12248. ;;
  12249. *)
  12250. ;;
  12251. esac
  12252. ;;
  12253. psos*)
  12254. ;;
  12255. solaris*)
  12256. case $cc_basename in
  12257. CC* | sunCC*)
  12258. # Sun C++ 4.2, 5.x and Centerline C++
  12259. lt_prog_compiler_pic_CXX='-KPIC'
  12260. lt_prog_compiler_static_CXX='-Bstatic'
  12261. lt_prog_compiler_wl_CXX='-Qoption ld '
  12262. ;;
  12263. gcx*)
  12264. # Green Hills C++ Compiler
  12265. lt_prog_compiler_pic_CXX='-PIC'
  12266. ;;
  12267. *)
  12268. ;;
  12269. esac
  12270. ;;
  12271. sunos4*)
  12272. case $cc_basename in
  12273. CC*)
  12274. # Sun C++ 4.x
  12275. lt_prog_compiler_pic_CXX='-pic'
  12276. lt_prog_compiler_static_CXX='-Bstatic'
  12277. ;;
  12278. lcc*)
  12279. # Lucid
  12280. lt_prog_compiler_pic_CXX='-pic'
  12281. ;;
  12282. *)
  12283. ;;
  12284. esac
  12285. ;;
  12286. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12287. case $cc_basename in
  12288. CC*)
  12289. lt_prog_compiler_wl_CXX='-Wl,'
  12290. lt_prog_compiler_pic_CXX='-KPIC'
  12291. lt_prog_compiler_static_CXX='-Bstatic'
  12292. ;;
  12293. esac
  12294. ;;
  12295. tandem*)
  12296. case $cc_basename in
  12297. NCC*)
  12298. # NonStop-UX NCC 3.20
  12299. lt_prog_compiler_pic_CXX='-KPIC'
  12300. ;;
  12301. *)
  12302. ;;
  12303. esac
  12304. ;;
  12305. vxworks*)
  12306. ;;
  12307. *)
  12308. lt_prog_compiler_can_build_shared_CXX=no
  12309. ;;
  12310. esac
  12311. fi
  12312. case $host_os in
  12313. # For platforms which do not support PIC, -DPIC is meaningless:
  12314. *djgpp*)
  12315. lt_prog_compiler_pic_CXX=
  12316. ;;
  12317. *)
  12318. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12319. ;;
  12320. esac
  12321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12322. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12323. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12324. $as_echo_n "(cached) " >&6
  12325. else
  12326. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12327. fi
  12328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12329. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12330. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12331. #
  12332. # Check to make sure the PIC flag actually works.
  12333. #
  12334. if test -n "$lt_prog_compiler_pic_CXX"; then
  12335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12336. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12337. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12338. $as_echo_n "(cached) " >&6
  12339. else
  12340. lt_cv_prog_compiler_pic_works_CXX=no
  12341. ac_outfile=conftest.$ac_objext
  12342. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12343. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12344. # Insert the option either (1) after the last *FLAGS variable, or
  12345. # (2) before a word containing "conftest.", or (3) at the end.
  12346. # Note that $ac_compile itself does not contain backslashes and begins
  12347. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12348. # The option is referenced via a variable to avoid confusing sed.
  12349. lt_compile=`echo "$ac_compile" | $SED \
  12350. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12351. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12352. -e 's:$: $lt_compiler_flag:'`
  12353. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12354. (eval "$lt_compile" 2>conftest.err)
  12355. ac_status=$?
  12356. cat conftest.err >&5
  12357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12358. if (exit $ac_status) && test -s "$ac_outfile"; then
  12359. # The compiler can only warn and ignore the option if not recognized
  12360. # So say no if there are warnings other than the usual output.
  12361. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12362. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12363. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12364. lt_cv_prog_compiler_pic_works_CXX=yes
  12365. fi
  12366. fi
  12367. $RM conftest*
  12368. fi
  12369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12370. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12371. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12372. case $lt_prog_compiler_pic_CXX in
  12373. "" | " "*) ;;
  12374. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12375. esac
  12376. else
  12377. lt_prog_compiler_pic_CXX=
  12378. lt_prog_compiler_can_build_shared_CXX=no
  12379. fi
  12380. fi
  12381. #
  12382. # Check to make sure the static flag actually works.
  12383. #
  12384. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12386. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12387. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12388. $as_echo_n "(cached) " >&6
  12389. else
  12390. lt_cv_prog_compiler_static_works_CXX=no
  12391. save_LDFLAGS="$LDFLAGS"
  12392. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12393. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12394. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12395. # The linker can only warn and ignore the option if not recognized
  12396. # So say no if there are warnings
  12397. if test -s conftest.err; then
  12398. # Append any errors to the config.log.
  12399. cat conftest.err 1>&5
  12400. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12401. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12402. if diff conftest.exp conftest.er2 >/dev/null; then
  12403. lt_cv_prog_compiler_static_works_CXX=yes
  12404. fi
  12405. else
  12406. lt_cv_prog_compiler_static_works_CXX=yes
  12407. fi
  12408. fi
  12409. $RM -r conftest*
  12410. LDFLAGS="$save_LDFLAGS"
  12411. fi
  12412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12413. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12414. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12415. :
  12416. else
  12417. lt_prog_compiler_static_CXX=
  12418. fi
  12419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12420. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12421. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12422. $as_echo_n "(cached) " >&6
  12423. else
  12424. lt_cv_prog_compiler_c_o_CXX=no
  12425. $RM -r conftest 2>/dev/null
  12426. mkdir conftest
  12427. cd conftest
  12428. mkdir out
  12429. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12430. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12431. # Insert the option either (1) after the last *FLAGS variable, or
  12432. # (2) before a word containing "conftest.", or (3) at the end.
  12433. # Note that $ac_compile itself does not contain backslashes and begins
  12434. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12435. lt_compile=`echo "$ac_compile" | $SED \
  12436. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12437. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12438. -e 's:$: $lt_compiler_flag:'`
  12439. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12440. (eval "$lt_compile" 2>out/conftest.err)
  12441. ac_status=$?
  12442. cat out/conftest.err >&5
  12443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12444. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12445. then
  12446. # The compiler can only warn and ignore the option if not recognized
  12447. # So say no if there are warnings
  12448. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12449. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12450. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12451. lt_cv_prog_compiler_c_o_CXX=yes
  12452. fi
  12453. fi
  12454. chmod u+w . 2>&5
  12455. $RM conftest*
  12456. # SGI C++ compiler will create directory out/ii_files/ for
  12457. # template instantiation
  12458. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12459. $RM out/* && rmdir out
  12460. cd ..
  12461. $RM -r conftest
  12462. $RM conftest*
  12463. fi
  12464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12465. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12467. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12468. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12469. $as_echo_n "(cached) " >&6
  12470. else
  12471. lt_cv_prog_compiler_c_o_CXX=no
  12472. $RM -r conftest 2>/dev/null
  12473. mkdir conftest
  12474. cd conftest
  12475. mkdir out
  12476. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12477. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12478. # Insert the option either (1) after the last *FLAGS variable, or
  12479. # (2) before a word containing "conftest.", or (3) at the end.
  12480. # Note that $ac_compile itself does not contain backslashes and begins
  12481. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12482. lt_compile=`echo "$ac_compile" | $SED \
  12483. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12484. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12485. -e 's:$: $lt_compiler_flag:'`
  12486. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12487. (eval "$lt_compile" 2>out/conftest.err)
  12488. ac_status=$?
  12489. cat out/conftest.err >&5
  12490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12491. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12492. then
  12493. # The compiler can only warn and ignore the option if not recognized
  12494. # So say no if there are warnings
  12495. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12496. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12497. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12498. lt_cv_prog_compiler_c_o_CXX=yes
  12499. fi
  12500. fi
  12501. chmod u+w . 2>&5
  12502. $RM conftest*
  12503. # SGI C++ compiler will create directory out/ii_files/ for
  12504. # template instantiation
  12505. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12506. $RM out/* && rmdir out
  12507. cd ..
  12508. $RM -r conftest
  12509. $RM conftest*
  12510. fi
  12511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12512. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12513. hard_links="nottested"
  12514. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12515. # do not overwrite the value of need_locks provided by the user
  12516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12517. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12518. hard_links=yes
  12519. $RM conftest*
  12520. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12521. touch conftest.a
  12522. ln conftest.a conftest.b 2>&5 || hard_links=no
  12523. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12525. $as_echo "$hard_links" >&6; }
  12526. if test "$hard_links" = no; then
  12527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12528. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12529. need_locks=warn
  12530. fi
  12531. else
  12532. need_locks=no
  12533. fi
  12534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12535. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12536. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12537. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12538. case $host_os in
  12539. aix[4-9]*)
  12540. # If we're using GNU nm, then we don't want the "-C" option.
  12541. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12542. # Also, AIX nm treats weak defined symbols like other global defined
  12543. # symbols, whereas GNU nm marks them as "W".
  12544. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12545. 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'
  12546. else
  12547. 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'
  12548. fi
  12549. ;;
  12550. pw32*)
  12551. export_symbols_cmds_CXX="$ltdll_cmds"
  12552. ;;
  12553. cygwin* | mingw* | cegcc*)
  12554. case $cc_basename in
  12555. cl*)
  12556. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12557. ;;
  12558. *)
  12559. 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'
  12560. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12561. ;;
  12562. esac
  12563. ;;
  12564. *)
  12565. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12566. ;;
  12567. esac
  12568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12569. $as_echo "$ld_shlibs_CXX" >&6; }
  12570. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12571. with_gnu_ld_CXX=$with_gnu_ld
  12572. #
  12573. # Do we need to explicitly link libc?
  12574. #
  12575. case "x$archive_cmds_need_lc_CXX" in
  12576. x|xyes)
  12577. # Assume -lc should be added
  12578. archive_cmds_need_lc_CXX=yes
  12579. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12580. case $archive_cmds_CXX in
  12581. *'~'*)
  12582. # FIXME: we may have to deal with multi-command sequences.
  12583. ;;
  12584. '$CC '*)
  12585. # Test whether the compiler implicitly links with -lc since on some
  12586. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12587. # to ld, don't add -lc before -lgcc.
  12588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12589. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12590. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12591. $as_echo_n "(cached) " >&6
  12592. else
  12593. $RM conftest*
  12594. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12595. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12596. (eval $ac_compile) 2>&5
  12597. ac_status=$?
  12598. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12599. test $ac_status = 0; } 2>conftest.err; then
  12600. soname=conftest
  12601. lib=conftest
  12602. libobjs=conftest.$ac_objext
  12603. deplibs=
  12604. wl=$lt_prog_compiler_wl_CXX
  12605. pic_flag=$lt_prog_compiler_pic_CXX
  12606. compiler_flags=-v
  12607. linker_flags=-v
  12608. verstring=
  12609. output_objdir=.
  12610. libname=conftest
  12611. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12612. allow_undefined_flag_CXX=
  12613. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12614. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12615. ac_status=$?
  12616. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12617. test $ac_status = 0; }
  12618. then
  12619. lt_cv_archive_cmds_need_lc_CXX=no
  12620. else
  12621. lt_cv_archive_cmds_need_lc_CXX=yes
  12622. fi
  12623. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12624. else
  12625. cat conftest.err 1>&5
  12626. fi
  12627. $RM conftest*
  12628. fi
  12629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12630. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12631. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12632. ;;
  12633. esac
  12634. fi
  12635. ;;
  12636. esac
  12637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12638. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12639. library_names_spec=
  12640. libname_spec='lib$name'
  12641. soname_spec=
  12642. shrext_cmds=".so"
  12643. postinstall_cmds=
  12644. postuninstall_cmds=
  12645. finish_cmds=
  12646. finish_eval=
  12647. shlibpath_var=
  12648. shlibpath_overrides_runpath=unknown
  12649. version_type=none
  12650. dynamic_linker="$host_os ld.so"
  12651. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12652. need_lib_prefix=unknown
  12653. hardcode_into_libs=no
  12654. # when you set need_version to no, make sure it does not cause -set_version
  12655. # flags to be left without arguments
  12656. need_version=unknown
  12657. case $host_os in
  12658. aix3*)
  12659. version_type=linux # correct to gnu/linux during the next big refactor
  12660. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12661. shlibpath_var=LIBPATH
  12662. # AIX 3 has no versioning support, so we append a major version to the name.
  12663. soname_spec='${libname}${release}${shared_ext}$major'
  12664. ;;
  12665. aix[4-9]*)
  12666. version_type=linux # correct to gnu/linux during the next big refactor
  12667. need_lib_prefix=no
  12668. need_version=no
  12669. hardcode_into_libs=yes
  12670. if test "$host_cpu" = ia64; then
  12671. # AIX 5 supports IA64
  12672. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12673. shlibpath_var=LD_LIBRARY_PATH
  12674. else
  12675. # With GCC up to 2.95.x, collect2 would create an import file
  12676. # for dependence libraries. The import file would start with
  12677. # the line `#! .'. This would cause the generated library to
  12678. # depend on `.', always an invalid library. This was fixed in
  12679. # development snapshots of GCC prior to 3.0.
  12680. case $host_os in
  12681. aix4 | aix4.[01] | aix4.[01].*)
  12682. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12683. echo ' yes '
  12684. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12685. :
  12686. else
  12687. can_build_shared=no
  12688. fi
  12689. ;;
  12690. esac
  12691. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12692. # soname into executable. Probably we can add versioning support to
  12693. # collect2, so additional links can be useful in future.
  12694. if test "$aix_use_runtimelinking" = yes; then
  12695. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12696. # instead of lib<name>.a to let people know that these are not
  12697. # typical AIX shared libraries.
  12698. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12699. else
  12700. # We preserve .a as extension for shared libraries through AIX4.2
  12701. # and later when we are not doing run time linking.
  12702. library_names_spec='${libname}${release}.a $libname.a'
  12703. soname_spec='${libname}${release}${shared_ext}$major'
  12704. fi
  12705. shlibpath_var=LIBPATH
  12706. fi
  12707. ;;
  12708. amigaos*)
  12709. case $host_cpu in
  12710. powerpc)
  12711. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12712. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12713. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12714. ;;
  12715. m68k)
  12716. library_names_spec='$libname.ixlibrary $libname.a'
  12717. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12718. 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'
  12719. ;;
  12720. esac
  12721. ;;
  12722. beos*)
  12723. library_names_spec='${libname}${shared_ext}'
  12724. dynamic_linker="$host_os ld.so"
  12725. shlibpath_var=LIBRARY_PATH
  12726. ;;
  12727. bsdi[45]*)
  12728. version_type=linux # correct to gnu/linux during the next big refactor
  12729. need_version=no
  12730. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12731. soname_spec='${libname}${release}${shared_ext}$major'
  12732. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12733. shlibpath_var=LD_LIBRARY_PATH
  12734. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12735. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12736. # the default ld.so.conf also contains /usr/contrib/lib and
  12737. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12738. # libtool to hard-code these into programs
  12739. ;;
  12740. cygwin* | mingw* | pw32* | cegcc*)
  12741. version_type=windows
  12742. shrext_cmds=".dll"
  12743. need_version=no
  12744. need_lib_prefix=no
  12745. case $GCC,$cc_basename in
  12746. yes,*)
  12747. # gcc
  12748. library_names_spec='$libname.dll.a'
  12749. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12750. postinstall_cmds='base_file=`basename \${file}`~
  12751. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12752. dldir=$destdir/`dirname \$dlpath`~
  12753. test -d \$dldir || mkdir -p \$dldir~
  12754. $install_prog $dir/$dlname \$dldir/$dlname~
  12755. chmod a+x \$dldir/$dlname~
  12756. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12757. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12758. fi'
  12759. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12760. dlpath=$dir/\$dldll~
  12761. $RM \$dlpath'
  12762. shlibpath_overrides_runpath=yes
  12763. case $host_os in
  12764. cygwin*)
  12765. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12766. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12767. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12768. ;;
  12769. mingw* | cegcc*)
  12770. # MinGW DLLs use traditional 'lib' prefix
  12771. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12772. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12773. ;;
  12774. pw32*)
  12775. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12776. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12777. ;;
  12778. esac
  12779. dynamic_linker='Win32 ld.exe'
  12780. ;;
  12781. *,cl*)
  12782. # Native MSVC
  12783. libname_spec='$name'
  12784. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12785. library_names_spec='${libname}.dll.lib'
  12786. case $build_os in
  12787. mingw*)
  12788. sys_lib_search_path_spec=
  12789. lt_save_ifs=$IFS
  12790. IFS=';'
  12791. for lt_path in $LIB
  12792. do
  12793. IFS=$lt_save_ifs
  12794. # Let DOS variable expansion print the short 8.3 style file name.
  12795. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12796. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12797. done
  12798. IFS=$lt_save_ifs
  12799. # Convert to MSYS style.
  12800. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12801. ;;
  12802. cygwin*)
  12803. # Convert to unix form, then to dos form, then back to unix form
  12804. # but this time dos style (no spaces!) so that the unix form looks
  12805. # like /cygdrive/c/PROGRA~1:/cygdr...
  12806. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12807. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12808. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12809. ;;
  12810. *)
  12811. sys_lib_search_path_spec="$LIB"
  12812. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12813. # It is most probably a Windows format PATH.
  12814. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12815. else
  12816. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12817. fi
  12818. # FIXME: find the short name or the path components, as spaces are
  12819. # common. (e.g. "Program Files" -> "PROGRA~1")
  12820. ;;
  12821. esac
  12822. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12823. postinstall_cmds='base_file=`basename \${file}`~
  12824. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12825. dldir=$destdir/`dirname \$dlpath`~
  12826. test -d \$dldir || mkdir -p \$dldir~
  12827. $install_prog $dir/$dlname \$dldir/$dlname'
  12828. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12829. dlpath=$dir/\$dldll~
  12830. $RM \$dlpath'
  12831. shlibpath_overrides_runpath=yes
  12832. dynamic_linker='Win32 link.exe'
  12833. ;;
  12834. *)
  12835. # Assume MSVC wrapper
  12836. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12837. dynamic_linker='Win32 ld.exe'
  12838. ;;
  12839. esac
  12840. # FIXME: first we should search . and the directory the executable is in
  12841. shlibpath_var=PATH
  12842. ;;
  12843. darwin* | rhapsody*)
  12844. dynamic_linker="$host_os dyld"
  12845. version_type=darwin
  12846. need_lib_prefix=no
  12847. need_version=no
  12848. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12849. soname_spec='${libname}${release}${major}$shared_ext'
  12850. shlibpath_overrides_runpath=yes
  12851. shlibpath_var=DYLD_LIBRARY_PATH
  12852. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12853. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12854. ;;
  12855. dgux*)
  12856. version_type=linux # correct to gnu/linux during the next big refactor
  12857. need_lib_prefix=no
  12858. need_version=no
  12859. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12860. soname_spec='${libname}${release}${shared_ext}$major'
  12861. shlibpath_var=LD_LIBRARY_PATH
  12862. ;;
  12863. freebsd* | dragonfly*)
  12864. # DragonFly does not have aout. When/if they implement a new
  12865. # versioning mechanism, adjust this.
  12866. if test -x /usr/bin/objformat; then
  12867. objformat=`/usr/bin/objformat`
  12868. else
  12869. case $host_os in
  12870. freebsd[23].*) objformat=aout ;;
  12871. *) objformat=elf ;;
  12872. esac
  12873. fi
  12874. version_type=freebsd-$objformat
  12875. case $version_type in
  12876. freebsd-elf*)
  12877. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12878. need_version=no
  12879. need_lib_prefix=no
  12880. ;;
  12881. freebsd-*)
  12882. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12883. need_version=yes
  12884. ;;
  12885. esac
  12886. shlibpath_var=LD_LIBRARY_PATH
  12887. case $host_os in
  12888. freebsd2.*)
  12889. shlibpath_overrides_runpath=yes
  12890. ;;
  12891. freebsd3.[01]* | freebsdelf3.[01]*)
  12892. shlibpath_overrides_runpath=yes
  12893. hardcode_into_libs=yes
  12894. ;;
  12895. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12896. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12897. shlibpath_overrides_runpath=no
  12898. hardcode_into_libs=yes
  12899. ;;
  12900. *) # from 4.6 on, and DragonFly
  12901. shlibpath_overrides_runpath=yes
  12902. hardcode_into_libs=yes
  12903. ;;
  12904. esac
  12905. ;;
  12906. gnu*)
  12907. version_type=linux # correct to gnu/linux during the next big refactor
  12908. need_lib_prefix=no
  12909. need_version=no
  12910. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12911. soname_spec='${libname}${release}${shared_ext}$major'
  12912. shlibpath_var=LD_LIBRARY_PATH
  12913. shlibpath_overrides_runpath=no
  12914. hardcode_into_libs=yes
  12915. ;;
  12916. haiku*)
  12917. version_type=linux # correct to gnu/linux during the next big refactor
  12918. need_lib_prefix=no
  12919. need_version=no
  12920. dynamic_linker="$host_os runtime_loader"
  12921. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12922. soname_spec='${libname}${release}${shared_ext}$major'
  12923. shlibpath_var=LIBRARY_PATH
  12924. shlibpath_overrides_runpath=yes
  12925. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12926. hardcode_into_libs=yes
  12927. ;;
  12928. hpux9* | hpux10* | hpux11*)
  12929. # Give a soname corresponding to the major version so that dld.sl refuses to
  12930. # link against other versions.
  12931. version_type=sunos
  12932. need_lib_prefix=no
  12933. need_version=no
  12934. case $host_cpu in
  12935. ia64*)
  12936. shrext_cmds='.so'
  12937. hardcode_into_libs=yes
  12938. dynamic_linker="$host_os dld.so"
  12939. shlibpath_var=LD_LIBRARY_PATH
  12940. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12942. soname_spec='${libname}${release}${shared_ext}$major'
  12943. if test "X$HPUX_IA64_MODE" = X32; then
  12944. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12945. else
  12946. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12947. fi
  12948. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12949. ;;
  12950. hppa*64*)
  12951. shrext_cmds='.sl'
  12952. hardcode_into_libs=yes
  12953. dynamic_linker="$host_os dld.sl"
  12954. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12955. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12956. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12957. soname_spec='${libname}${release}${shared_ext}$major'
  12958. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12959. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12960. ;;
  12961. *)
  12962. shrext_cmds='.sl'
  12963. dynamic_linker="$host_os dld.sl"
  12964. shlibpath_var=SHLIB_PATH
  12965. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12966. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12967. soname_spec='${libname}${release}${shared_ext}$major'
  12968. ;;
  12969. esac
  12970. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12971. postinstall_cmds='chmod 555 $lib'
  12972. # or fails outright, so override atomically:
  12973. install_override_mode=555
  12974. ;;
  12975. interix[3-9]*)
  12976. version_type=linux # correct to gnu/linux during the next big refactor
  12977. need_lib_prefix=no
  12978. need_version=no
  12979. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12980. soname_spec='${libname}${release}${shared_ext}$major'
  12981. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12982. shlibpath_var=LD_LIBRARY_PATH
  12983. shlibpath_overrides_runpath=no
  12984. hardcode_into_libs=yes
  12985. ;;
  12986. irix5* | irix6* | nonstopux*)
  12987. case $host_os in
  12988. nonstopux*) version_type=nonstopux ;;
  12989. *)
  12990. if test "$lt_cv_prog_gnu_ld" = yes; then
  12991. version_type=linux # correct to gnu/linux during the next big refactor
  12992. else
  12993. version_type=irix
  12994. fi ;;
  12995. esac
  12996. need_lib_prefix=no
  12997. need_version=no
  12998. soname_spec='${libname}${release}${shared_ext}$major'
  12999. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13000. case $host_os in
  13001. irix5* | nonstopux*)
  13002. libsuff= shlibsuff=
  13003. ;;
  13004. *)
  13005. case $LD in # libtool.m4 will add one of these switches to LD
  13006. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13007. libsuff= shlibsuff= libmagic=32-bit;;
  13008. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13009. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13010. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13011. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13012. *) libsuff= shlibsuff= libmagic=never-match;;
  13013. esac
  13014. ;;
  13015. esac
  13016. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13017. shlibpath_overrides_runpath=no
  13018. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13019. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13020. hardcode_into_libs=yes
  13021. ;;
  13022. # No shared lib support for Linux oldld, aout, or coff.
  13023. linux*oldld* | linux*aout* | linux*coff*)
  13024. dynamic_linker=no
  13025. ;;
  13026. # This must be glibc/ELF.
  13027. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13028. version_type=linux # correct to gnu/linux during the next big refactor
  13029. need_lib_prefix=no
  13030. need_version=no
  13031. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13032. soname_spec='${libname}${release}${shared_ext}$major'
  13033. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13034. shlibpath_var=LD_LIBRARY_PATH
  13035. shlibpath_overrides_runpath=no
  13036. # Some binutils ld are patched to set DT_RUNPATH
  13037. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13038. $as_echo_n "(cached) " >&6
  13039. else
  13040. lt_cv_shlibpath_overrides_runpath=no
  13041. save_LDFLAGS=$LDFLAGS
  13042. save_libdir=$libdir
  13043. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13044. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13046. /* end confdefs.h. */
  13047. int
  13048. main ()
  13049. {
  13050. ;
  13051. return 0;
  13052. }
  13053. _ACEOF
  13054. if ac_fn_cxx_try_link "$LINENO"; then :
  13055. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13056. lt_cv_shlibpath_overrides_runpath=yes
  13057. fi
  13058. fi
  13059. rm -f core conftest.err conftest.$ac_objext \
  13060. conftest$ac_exeext conftest.$ac_ext
  13061. LDFLAGS=$save_LDFLAGS
  13062. libdir=$save_libdir
  13063. fi
  13064. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13065. # This implies no fast_install, which is unacceptable.
  13066. # Some rework will be needed to allow for fast_install
  13067. # before this can be enabled.
  13068. hardcode_into_libs=yes
  13069. # Append ld.so.conf contents to the search path
  13070. if test -f /etc/ld.so.conf; then
  13071. 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' ' '`
  13072. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13073. fi
  13074. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13075. # powerpc, because MkLinux only supported shared libraries with the
  13076. # GNU dynamic linker. Since this was broken with cross compilers,
  13077. # most powerpc-linux boxes support dynamic linking these days and
  13078. # people can always --disable-shared, the test was removed, and we
  13079. # assume the GNU/Linux dynamic linker is in use.
  13080. dynamic_linker='GNU/Linux ld.so'
  13081. ;;
  13082. netbsd*)
  13083. version_type=sunos
  13084. need_lib_prefix=no
  13085. need_version=no
  13086. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13088. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13089. dynamic_linker='NetBSD (a.out) ld.so'
  13090. else
  13091. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13092. soname_spec='${libname}${release}${shared_ext}$major'
  13093. dynamic_linker='NetBSD ld.elf_so'
  13094. fi
  13095. shlibpath_var=LD_LIBRARY_PATH
  13096. shlibpath_overrides_runpath=yes
  13097. hardcode_into_libs=yes
  13098. ;;
  13099. newsos6)
  13100. version_type=linux # correct to gnu/linux during the next big refactor
  13101. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13102. shlibpath_var=LD_LIBRARY_PATH
  13103. shlibpath_overrides_runpath=yes
  13104. ;;
  13105. *nto* | *qnx*)
  13106. version_type=qnx
  13107. need_lib_prefix=no
  13108. need_version=no
  13109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13110. soname_spec='${libname}${release}${shared_ext}$major'
  13111. shlibpath_var=LD_LIBRARY_PATH
  13112. shlibpath_overrides_runpath=no
  13113. hardcode_into_libs=yes
  13114. dynamic_linker='ldqnx.so'
  13115. ;;
  13116. openbsd*)
  13117. version_type=sunos
  13118. sys_lib_dlsearch_path_spec="/usr/lib"
  13119. need_lib_prefix=no
  13120. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13121. case $host_os in
  13122. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13123. *) need_version=no ;;
  13124. esac
  13125. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13126. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13127. shlibpath_var=LD_LIBRARY_PATH
  13128. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13129. case $host_os in
  13130. openbsd2.[89] | openbsd2.[89].*)
  13131. shlibpath_overrides_runpath=no
  13132. ;;
  13133. *)
  13134. shlibpath_overrides_runpath=yes
  13135. ;;
  13136. esac
  13137. else
  13138. shlibpath_overrides_runpath=yes
  13139. fi
  13140. ;;
  13141. os2*)
  13142. libname_spec='$name'
  13143. shrext_cmds=".dll"
  13144. need_lib_prefix=no
  13145. library_names_spec='$libname${shared_ext} $libname.a'
  13146. dynamic_linker='OS/2 ld.exe'
  13147. shlibpath_var=LIBPATH
  13148. ;;
  13149. osf3* | osf4* | osf5*)
  13150. version_type=osf
  13151. need_lib_prefix=no
  13152. need_version=no
  13153. soname_spec='${libname}${release}${shared_ext}$major'
  13154. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13155. shlibpath_var=LD_LIBRARY_PATH
  13156. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13157. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13158. ;;
  13159. rdos*)
  13160. dynamic_linker=no
  13161. ;;
  13162. solaris*)
  13163. version_type=linux # correct to gnu/linux during the next big refactor
  13164. need_lib_prefix=no
  13165. need_version=no
  13166. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13167. soname_spec='${libname}${release}${shared_ext}$major'
  13168. shlibpath_var=LD_LIBRARY_PATH
  13169. shlibpath_overrides_runpath=yes
  13170. hardcode_into_libs=yes
  13171. # ldd complains unless libraries are executable
  13172. postinstall_cmds='chmod +x $lib'
  13173. ;;
  13174. sunos4*)
  13175. version_type=sunos
  13176. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13177. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13178. shlibpath_var=LD_LIBRARY_PATH
  13179. shlibpath_overrides_runpath=yes
  13180. if test "$with_gnu_ld" = yes; then
  13181. need_lib_prefix=no
  13182. fi
  13183. need_version=yes
  13184. ;;
  13185. sysv4 | sysv4.3*)
  13186. version_type=linux # correct to gnu/linux during the next big refactor
  13187. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13188. soname_spec='${libname}${release}${shared_ext}$major'
  13189. shlibpath_var=LD_LIBRARY_PATH
  13190. case $host_vendor in
  13191. sni)
  13192. shlibpath_overrides_runpath=no
  13193. need_lib_prefix=no
  13194. runpath_var=LD_RUN_PATH
  13195. ;;
  13196. siemens)
  13197. need_lib_prefix=no
  13198. ;;
  13199. motorola)
  13200. need_lib_prefix=no
  13201. need_version=no
  13202. shlibpath_overrides_runpath=no
  13203. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13204. ;;
  13205. esac
  13206. ;;
  13207. sysv4*MP*)
  13208. if test -d /usr/nec ;then
  13209. version_type=linux # correct to gnu/linux during the next big refactor
  13210. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13211. soname_spec='$libname${shared_ext}.$major'
  13212. shlibpath_var=LD_LIBRARY_PATH
  13213. fi
  13214. ;;
  13215. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13216. version_type=freebsd-elf
  13217. need_lib_prefix=no
  13218. need_version=no
  13219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13220. soname_spec='${libname}${release}${shared_ext}$major'
  13221. shlibpath_var=LD_LIBRARY_PATH
  13222. shlibpath_overrides_runpath=yes
  13223. hardcode_into_libs=yes
  13224. if test "$with_gnu_ld" = yes; then
  13225. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13226. else
  13227. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13228. case $host_os in
  13229. sco3.2v5*)
  13230. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13231. ;;
  13232. esac
  13233. fi
  13234. sys_lib_dlsearch_path_spec='/usr/lib'
  13235. ;;
  13236. tpf*)
  13237. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13238. version_type=linux # correct to gnu/linux during the next big refactor
  13239. need_lib_prefix=no
  13240. need_version=no
  13241. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13242. shlibpath_var=LD_LIBRARY_PATH
  13243. shlibpath_overrides_runpath=no
  13244. hardcode_into_libs=yes
  13245. ;;
  13246. uts4*)
  13247. version_type=linux # correct to gnu/linux during the next big refactor
  13248. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13249. soname_spec='${libname}${release}${shared_ext}$major'
  13250. shlibpath_var=LD_LIBRARY_PATH
  13251. ;;
  13252. *)
  13253. dynamic_linker=no
  13254. ;;
  13255. esac
  13256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13257. $as_echo "$dynamic_linker" >&6; }
  13258. test "$dynamic_linker" = no && can_build_shared=no
  13259. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13260. if test "$GCC" = yes; then
  13261. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13262. fi
  13263. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13264. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13265. fi
  13266. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13267. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13268. fi
  13269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13270. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13271. hardcode_action_CXX=
  13272. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13273. test -n "$runpath_var_CXX" ||
  13274. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13275. # We can hardcode non-existent directories.
  13276. if test "$hardcode_direct_CXX" != no &&
  13277. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13278. # have to relink, otherwise we might link with an installed library
  13279. # when we should be linking with a yet-to-be-installed one
  13280. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13281. test "$hardcode_minus_L_CXX" != no; then
  13282. # Linking always hardcodes the temporary library directory.
  13283. hardcode_action_CXX=relink
  13284. else
  13285. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13286. hardcode_action_CXX=immediate
  13287. fi
  13288. else
  13289. # We cannot hardcode anything, or else we can only hardcode existing
  13290. # directories.
  13291. hardcode_action_CXX=unsupported
  13292. fi
  13293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13294. $as_echo "$hardcode_action_CXX" >&6; }
  13295. if test "$hardcode_action_CXX" = relink ||
  13296. test "$inherit_rpath_CXX" = yes; then
  13297. # Fast installation is not supported
  13298. enable_fast_install=no
  13299. elif test "$shlibpath_overrides_runpath" = yes ||
  13300. test "$enable_shared" = no; then
  13301. # Fast installation is not necessary
  13302. enable_fast_install=needless
  13303. fi
  13304. fi # test -n "$compiler"
  13305. CC=$lt_save_CC
  13306. CFLAGS=$lt_save_CFLAGS
  13307. LDCXX=$LD
  13308. LD=$lt_save_LD
  13309. GCC=$lt_save_GCC
  13310. with_gnu_ld=$lt_save_with_gnu_ld
  13311. lt_cv_path_LDCXX=$lt_cv_path_LD
  13312. lt_cv_path_LD=$lt_save_path_LD
  13313. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13314. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13315. fi # test "$_lt_caught_CXX_error" != yes
  13316. ac_ext=c
  13317. ac_cpp='$CPP $CPPFLAGS'
  13318. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13319. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13320. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13321. # Find a good install program. We prefer a C program (faster),
  13322. # so one script is as good as another. But avoid the broken or
  13323. # incompatible versions:
  13324. # SysV /etc/install, /usr/sbin/install
  13325. # SunOS /usr/etc/install
  13326. # IRIX /sbin/install
  13327. # AIX /bin/install
  13328. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13329. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13330. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13331. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13332. # OS/2's system install, which has a completely different semantic
  13333. # ./install, which can be erroneously created by make from ./install.sh.
  13334. # Reject install programs that cannot install multiple files.
  13335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13336. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13337. if test -z "$INSTALL"; then
  13338. if ${ac_cv_path_install+:} false; then :
  13339. $as_echo_n "(cached) " >&6
  13340. else
  13341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13342. for as_dir in $PATH
  13343. do
  13344. IFS=$as_save_IFS
  13345. test -z "$as_dir" && as_dir=.
  13346. # Account for people who put trailing slashes in PATH elements.
  13347. case $as_dir/ in #((
  13348. ./ | .// | /[cC]/* | \
  13349. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13350. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13351. /usr/ucb/* ) ;;
  13352. *)
  13353. # OSF1 and SCO ODT 3.0 have their own names for install.
  13354. # Don't use installbsd from OSF since it installs stuff as root
  13355. # by default.
  13356. for ac_prog in ginstall scoinst install; do
  13357. for ac_exec_ext in '' $ac_executable_extensions; do
  13358. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13359. if test $ac_prog = install &&
  13360. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13361. # AIX install. It has an incompatible calling convention.
  13362. :
  13363. elif test $ac_prog = install &&
  13364. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13365. # program-specific install script used by HP pwplus--don't use.
  13366. :
  13367. else
  13368. rm -rf conftest.one conftest.two conftest.dir
  13369. echo one > conftest.one
  13370. echo two > conftest.two
  13371. mkdir conftest.dir
  13372. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13373. test -s conftest.one && test -s conftest.two &&
  13374. test -s conftest.dir/conftest.one &&
  13375. test -s conftest.dir/conftest.two
  13376. then
  13377. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13378. break 3
  13379. fi
  13380. fi
  13381. fi
  13382. done
  13383. done
  13384. ;;
  13385. esac
  13386. done
  13387. IFS=$as_save_IFS
  13388. rm -rf conftest.one conftest.two conftest.dir
  13389. fi
  13390. if test "${ac_cv_path_install+set}" = set; then
  13391. INSTALL=$ac_cv_path_install
  13392. else
  13393. # As a last resort, use the slow shell script. Don't cache a
  13394. # value for INSTALL within a source directory, because that will
  13395. # break other packages using the cache if that directory is
  13396. # removed, or if the value is a relative name.
  13397. INSTALL=$ac_install_sh
  13398. fi
  13399. fi
  13400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13401. $as_echo "$INSTALL" >&6; }
  13402. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13403. # It thinks the first close brace ends the variable substitution.
  13404. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13405. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13406. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13408. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13409. set x ${MAKE-make}
  13410. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13411. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13412. $as_echo_n "(cached) " >&6
  13413. else
  13414. cat >conftest.make <<\_ACEOF
  13415. SHELL = /bin/sh
  13416. all:
  13417. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13418. _ACEOF
  13419. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13420. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13421. *@@@%%%=?*=@@@%%%*)
  13422. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13423. *)
  13424. eval ac_cv_prog_make_${ac_make}_set=no;;
  13425. esac
  13426. rm -f conftest.make
  13427. fi
  13428. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13430. $as_echo "yes" >&6; }
  13431. SET_MAKE=
  13432. else
  13433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13434. $as_echo "no" >&6; }
  13435. SET_MAKE="MAKE=${MAKE-make}"
  13436. fi
  13437. if test -n "$ac_tool_prefix"; then
  13438. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13439. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13441. $as_echo_n "checking for $ac_word... " >&6; }
  13442. if ${ac_cv_prog_WINDRES+:} false; then :
  13443. $as_echo_n "(cached) " >&6
  13444. else
  13445. if test -n "$WINDRES"; then
  13446. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13447. else
  13448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13449. for as_dir in $PATH
  13450. do
  13451. IFS=$as_save_IFS
  13452. test -z "$as_dir" && as_dir=.
  13453. for ac_exec_ext in '' $ac_executable_extensions; do
  13454. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13455. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13456. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13457. break 2
  13458. fi
  13459. done
  13460. done
  13461. IFS=$as_save_IFS
  13462. fi
  13463. fi
  13464. WINDRES=$ac_cv_prog_WINDRES
  13465. if test -n "$WINDRES"; then
  13466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13467. $as_echo "$WINDRES" >&6; }
  13468. else
  13469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13470. $as_echo "no" >&6; }
  13471. fi
  13472. fi
  13473. if test -z "$ac_cv_prog_WINDRES"; then
  13474. ac_ct_WINDRES=$WINDRES
  13475. # Extract the first word of "windres", so it can be a program name with args.
  13476. set dummy windres; ac_word=$2
  13477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13478. $as_echo_n "checking for $ac_word... " >&6; }
  13479. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13480. $as_echo_n "(cached) " >&6
  13481. else
  13482. if test -n "$ac_ct_WINDRES"; then
  13483. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13484. else
  13485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13486. for as_dir in $PATH
  13487. do
  13488. IFS=$as_save_IFS
  13489. test -z "$as_dir" && as_dir=.
  13490. for ac_exec_ext in '' $ac_executable_extensions; do
  13491. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13492. ac_cv_prog_ac_ct_WINDRES="windres"
  13493. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13494. break 2
  13495. fi
  13496. done
  13497. done
  13498. IFS=$as_save_IFS
  13499. fi
  13500. fi
  13501. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13502. if test -n "$ac_ct_WINDRES"; then
  13503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13504. $as_echo "$ac_ct_WINDRES" >&6; }
  13505. else
  13506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13507. $as_echo "no" >&6; }
  13508. fi
  13509. if test "x$ac_ct_WINDRES" = x; then
  13510. WINDRES=":"
  13511. else
  13512. case $cross_compiling:$ac_tool_warned in
  13513. yes:)
  13514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13515. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13516. ac_tool_warned=yes ;;
  13517. esac
  13518. WINDRES=$ac_ct_WINDRES
  13519. fi
  13520. else
  13521. WINDRES="$ac_cv_prog_WINDRES"
  13522. fi
  13523. case "$host" in
  13524. *-*-mingw32*)
  13525. # Except on msys, where make can't handle full pathnames (bug 1972)
  13526. ;;
  13527. *)
  13528. srcdir=`cd $srcdir && pwd`
  13529. ;;
  13530. esac
  13531. INCLUDE="-I$srcdir/include"
  13532. if test x$srcdir != x.; then
  13533. INCLUDE="-Iinclude $INCLUDE"
  13534. elif test -d .hg; then
  13535. as_fn_error $? "
  13536. *** When building from Mercurial you should configure and build in a
  13537. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13538. " "$LINENO" 5
  13539. fi
  13540. BASE_CFLAGS=""
  13541. BASE_LDFLAGS=""
  13542. case "$host" in
  13543. *-*-cygwin*)
  13544. # We build SDL on cygwin without the UNIX emulation layer
  13545. save_CFLAGS="$CFLAGS"
  13546. have_no_cygwin=no
  13547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13548. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13549. CFLAGS="$save_CFLAGS -mno-cygwin"
  13550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13551. /* end confdefs.h. */
  13552. int
  13553. main ()
  13554. {
  13555. ;
  13556. return 0;
  13557. }
  13558. _ACEOF
  13559. if ac_fn_c_try_compile "$LINENO"; then :
  13560. have_no_cygwin=yes
  13561. fi
  13562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13564. $as_echo "$have_no_cygwin" >&6; }
  13565. CFLAGS="$save_CFLAGS"
  13566. if test x$have_no_cygwin = xyes; then
  13567. BASE_CFLAGS="-mno-cygwin"
  13568. BASE_LDFLAGS="-mno-cygwin"
  13569. fi
  13570. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13571. ;;
  13572. esac
  13573. # Uncomment the following line if you want to force SDL and applications
  13574. # built with it to be compiled for a particular architecture.
  13575. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13576. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13577. # The default optimization for SDL is -O3 (Bug #31)
  13578. if test "x$orig_CFLAGS" = x; then
  13579. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13580. fi
  13581. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13582. BUILD_LDFLAGS="$LDFLAGS"
  13583. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13584. ## These are common directories to find software packages
  13585. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13586. # if test -d $path/include; then
  13587. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13588. # fi
  13589. # if test -d $path/lib; then
  13590. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13591. # fi
  13592. #done
  13593. SDL_CFLAGS="$BASE_CFLAGS"
  13594. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13595. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13596. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13597. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13598. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13599. find_lib()
  13600. {
  13601. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13602. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13603. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13604. if test "$cross_compiling" = yes; then
  13605. host_lib_path=""
  13606. else
  13607. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13608. fi
  13609. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13610. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13611. if test x$lib != x; then
  13612. echo $lib
  13613. return
  13614. fi
  13615. done
  13616. }
  13617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13618. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13619. if ${ac_cv_c_const+:} false; then :
  13620. $as_echo_n "(cached) " >&6
  13621. else
  13622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13623. /* end confdefs.h. */
  13624. int
  13625. main ()
  13626. {
  13627. #ifndef __cplusplus
  13628. /* Ultrix mips cc rejects this sort of thing. */
  13629. typedef int charset[2];
  13630. const charset cs = { 0, 0 };
  13631. /* SunOS 4.1.1 cc rejects this. */
  13632. char const *const *pcpcc;
  13633. char **ppc;
  13634. /* NEC SVR4.0.2 mips cc rejects this. */
  13635. struct point {int x, y;};
  13636. static struct point const zero = {0,0};
  13637. /* AIX XL C 1.02.0.0 rejects this.
  13638. It does not let you subtract one const X* pointer from another in
  13639. an arm of an if-expression whose if-part is not a constant
  13640. expression */
  13641. const char *g = "string";
  13642. pcpcc = &g + (g ? g-g : 0);
  13643. /* HPUX 7.0 cc rejects these. */
  13644. ++pcpcc;
  13645. ppc = (char**) pcpcc;
  13646. pcpcc = (char const *const *) ppc;
  13647. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13648. char tx;
  13649. char *t = &tx;
  13650. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13651. *t++ = 0;
  13652. if (s) return 0;
  13653. }
  13654. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13655. int x[] = {25, 17};
  13656. const int *foo = &x[0];
  13657. ++foo;
  13658. }
  13659. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13660. typedef const int *iptr;
  13661. iptr p = 0;
  13662. ++p;
  13663. }
  13664. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13665. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13666. struct s { int j; const int *ap[3]; } bx;
  13667. struct s *b = &bx; b->j = 5;
  13668. }
  13669. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13670. const int foo = 10;
  13671. if (!foo) return 0;
  13672. }
  13673. return !cs[0] && !zero.x;
  13674. #endif
  13675. ;
  13676. return 0;
  13677. }
  13678. _ACEOF
  13679. if ac_fn_c_try_compile "$LINENO"; then :
  13680. ac_cv_c_const=yes
  13681. else
  13682. ac_cv_c_const=no
  13683. fi
  13684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13685. fi
  13686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13687. $as_echo "$ac_cv_c_const" >&6; }
  13688. if test $ac_cv_c_const = no; then
  13689. $as_echo "#define const /**/" >>confdefs.h
  13690. fi
  13691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13692. $as_echo_n "checking for inline... " >&6; }
  13693. if ${ac_cv_c_inline+:} false; then :
  13694. $as_echo_n "(cached) " >&6
  13695. else
  13696. ac_cv_c_inline=no
  13697. for ac_kw in inline __inline__ __inline; do
  13698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13699. /* end confdefs.h. */
  13700. #ifndef __cplusplus
  13701. typedef int foo_t;
  13702. static $ac_kw foo_t static_foo () {return 0; }
  13703. $ac_kw foo_t foo () {return 0; }
  13704. #endif
  13705. _ACEOF
  13706. if ac_fn_c_try_compile "$LINENO"; then :
  13707. ac_cv_c_inline=$ac_kw
  13708. fi
  13709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13710. test "$ac_cv_c_inline" != no && break
  13711. done
  13712. fi
  13713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13714. $as_echo "$ac_cv_c_inline" >&6; }
  13715. case $ac_cv_c_inline in
  13716. inline | yes) ;;
  13717. *)
  13718. case $ac_cv_c_inline in
  13719. no) ac_val=;;
  13720. *) ac_val=$ac_cv_c_inline;;
  13721. esac
  13722. cat >>confdefs.h <<_ACEOF
  13723. #ifndef __cplusplus
  13724. #define inline $ac_val
  13725. #endif
  13726. _ACEOF
  13727. ;;
  13728. esac
  13729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13730. $as_echo_n "checking for working volatile... " >&6; }
  13731. if ${ac_cv_c_volatile+:} false; then :
  13732. $as_echo_n "(cached) " >&6
  13733. else
  13734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13735. /* end confdefs.h. */
  13736. int
  13737. main ()
  13738. {
  13739. volatile int x;
  13740. int * volatile y = (int *) 0;
  13741. return !x && !y;
  13742. ;
  13743. return 0;
  13744. }
  13745. _ACEOF
  13746. if ac_fn_c_try_compile "$LINENO"; then :
  13747. ac_cv_c_volatile=yes
  13748. else
  13749. ac_cv_c_volatile=no
  13750. fi
  13751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13752. fi
  13753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13754. $as_echo "$ac_cv_c_volatile" >&6; }
  13755. if test $ac_cv_c_volatile = no; then
  13756. $as_echo "#define volatile /**/" >>confdefs.h
  13757. fi
  13758. # Check whether --enable-assertions was given.
  13759. if test "${enable_assertions+set}" = set; then :
  13760. enableval=$enable_assertions;
  13761. else
  13762. enable_assertions=auto
  13763. fi
  13764. case "$enable_assertions" in
  13765. auto) # Use optimization settings to determine assertion level
  13766. ;;
  13767. disabled)
  13768. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13769. ;;
  13770. release)
  13771. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13772. ;;
  13773. enabled)
  13774. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13775. ;;
  13776. paranoid)
  13777. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13778. ;;
  13779. *)
  13780. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13781. ;;
  13782. esac
  13783. # Check whether --enable-dependency-tracking was given.
  13784. if test "${enable_dependency_tracking+set}" = set; then :
  13785. enableval=$enable_dependency_tracking;
  13786. else
  13787. enable_dependency_tracking=yes
  13788. fi
  13789. if test x$enable_dependency_tracking = xyes; then
  13790. have_gcc_mmd_mt=no
  13791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13792. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13794. /* end confdefs.h. */
  13795. #if !defined(__GNUC__) || __GNUC__ < 3
  13796. #error Dependency tracking requires GCC 3.0 or newer
  13797. #endif
  13798. int
  13799. main ()
  13800. {
  13801. ;
  13802. return 0;
  13803. }
  13804. _ACEOF
  13805. if ac_fn_c_try_compile "$LINENO"; then :
  13806. have_gcc_mmd_mt=yes
  13807. fi
  13808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13810. $as_echo "$have_gcc_mmd_mt" >&6; }
  13811. if test x$have_gcc_mmd_mt = xyes; then
  13812. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13813. fi
  13814. fi
  13815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13816. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13817. have_no_undefined=no
  13818. case "$host" in
  13819. *-*-openbsd*)
  13820. ;;
  13821. *)
  13822. save_LDFLAGS="$LDFLAGS"
  13823. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13825. /* end confdefs.h. */
  13826. int
  13827. main ()
  13828. {
  13829. ;
  13830. return 0;
  13831. }
  13832. _ACEOF
  13833. if ac_fn_c_try_link "$LINENO"; then :
  13834. have_no_undefined=yes
  13835. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13836. fi
  13837. rm -f core conftest.err conftest.$ac_objext \
  13838. conftest$ac_exeext conftest.$ac_ext
  13839. LDFLAGS="$save_LDFLAGS"
  13840. ;;
  13841. esac
  13842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13843. $as_echo "$have_no_undefined" >&6; }
  13844. # Check whether --enable-libc was given.
  13845. if test "${enable_libc+set}" = set; then :
  13846. enableval=$enable_libc;
  13847. else
  13848. enable_libc=yes
  13849. fi
  13850. if test x$enable_libc = xyes; then
  13851. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13853. $as_echo_n "checking for ANSI C header files... " >&6; }
  13854. if ${ac_cv_header_stdc+:} false; then :
  13855. $as_echo_n "(cached) " >&6
  13856. else
  13857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13858. /* end confdefs.h. */
  13859. #include <stdlib.h>
  13860. #include <stdarg.h>
  13861. #include <string.h>
  13862. #include <float.h>
  13863. int
  13864. main ()
  13865. {
  13866. ;
  13867. return 0;
  13868. }
  13869. _ACEOF
  13870. if ac_fn_c_try_compile "$LINENO"; then :
  13871. ac_cv_header_stdc=yes
  13872. else
  13873. ac_cv_header_stdc=no
  13874. fi
  13875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13876. if test $ac_cv_header_stdc = yes; then
  13877. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13879. /* end confdefs.h. */
  13880. #include <string.h>
  13881. _ACEOF
  13882. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13883. $EGREP "memchr" >/dev/null 2>&1; then :
  13884. else
  13885. ac_cv_header_stdc=no
  13886. fi
  13887. rm -f conftest*
  13888. fi
  13889. if test $ac_cv_header_stdc = yes; then
  13890. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13892. /* end confdefs.h. */
  13893. #include <stdlib.h>
  13894. _ACEOF
  13895. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13896. $EGREP "free" >/dev/null 2>&1; then :
  13897. else
  13898. ac_cv_header_stdc=no
  13899. fi
  13900. rm -f conftest*
  13901. fi
  13902. if test $ac_cv_header_stdc = yes; then
  13903. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13904. if test "$cross_compiling" = yes; then :
  13905. :
  13906. else
  13907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13908. /* end confdefs.h. */
  13909. #include <ctype.h>
  13910. #include <stdlib.h>
  13911. #if ((' ' & 0x0FF) == 0x020)
  13912. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13913. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13914. #else
  13915. # define ISLOWER(c) \
  13916. (('a' <= (c) && (c) <= 'i') \
  13917. || ('j' <= (c) && (c) <= 'r') \
  13918. || ('s' <= (c) && (c) <= 'z'))
  13919. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13920. #endif
  13921. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13922. int
  13923. main ()
  13924. {
  13925. int i;
  13926. for (i = 0; i < 256; i++)
  13927. if (XOR (islower (i), ISLOWER (i))
  13928. || toupper (i) != TOUPPER (i))
  13929. return 2;
  13930. return 0;
  13931. }
  13932. _ACEOF
  13933. if ac_fn_c_try_run "$LINENO"; then :
  13934. else
  13935. ac_cv_header_stdc=no
  13936. fi
  13937. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13938. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13939. fi
  13940. fi
  13941. fi
  13942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13943. $as_echo "$ac_cv_header_stdc" >&6; }
  13944. if test $ac_cv_header_stdc = yes; then
  13945. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13946. fi
  13947. 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
  13948. do :
  13949. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13950. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13951. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13952. cat >>confdefs.h <<_ACEOF
  13953. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13954. _ACEOF
  13955. fi
  13956. done
  13957. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13958. if test "x$ac_cv_type_size_t" = xyes; then :
  13959. else
  13960. cat >>confdefs.h <<_ACEOF
  13961. #define size_t unsigned int
  13962. _ACEOF
  13963. fi
  13964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13965. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13966. if ${ac_cv_define_M_PI+:} false; then :
  13967. $as_echo_n "(cached) " >&6
  13968. else
  13969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13970. /* end confdefs.h. */
  13971. #include <math.h>
  13972. #ifdef M_PI
  13973. YES_IS_DEFINED
  13974. #endif
  13975. _ACEOF
  13976. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13977. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13978. ac_cv_define_M_PI=yes
  13979. else
  13980. ac_cv_define_M_PI=no
  13981. fi
  13982. rm -f conftest*
  13983. fi
  13984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  13985. $as_echo "$ac_cv_define_M_PI" >&6; }
  13986. if test "$ac_cv_define_M_PI" = "yes" ; then
  13987. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  13988. fi
  13989. case "$host" in
  13990. *-*-cygwin* | *-*-mingw32*)
  13991. ;;
  13992. *)
  13993. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13994. # for constant arguments. Useless!
  13995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13996. $as_echo_n "checking for working alloca.h... " >&6; }
  13997. if ${ac_cv_working_alloca_h+:} false; then :
  13998. $as_echo_n "(cached) " >&6
  13999. else
  14000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14001. /* end confdefs.h. */
  14002. #include <alloca.h>
  14003. int
  14004. main ()
  14005. {
  14006. char *p = (char *) alloca (2 * sizeof (int));
  14007. if (p) return 0;
  14008. ;
  14009. return 0;
  14010. }
  14011. _ACEOF
  14012. if ac_fn_c_try_link "$LINENO"; then :
  14013. ac_cv_working_alloca_h=yes
  14014. else
  14015. ac_cv_working_alloca_h=no
  14016. fi
  14017. rm -f core conftest.err conftest.$ac_objext \
  14018. conftest$ac_exeext conftest.$ac_ext
  14019. fi
  14020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14021. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14022. if test $ac_cv_working_alloca_h = yes; then
  14023. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14024. fi
  14025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14026. $as_echo_n "checking for alloca... " >&6; }
  14027. if ${ac_cv_func_alloca_works+:} false; then :
  14028. $as_echo_n "(cached) " >&6
  14029. else
  14030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14031. /* end confdefs.h. */
  14032. #ifdef __GNUC__
  14033. # define alloca __builtin_alloca
  14034. #else
  14035. # ifdef _MSC_VER
  14036. # include <malloc.h>
  14037. # define alloca _alloca
  14038. # else
  14039. # ifdef HAVE_ALLOCA_H
  14040. # include <alloca.h>
  14041. # else
  14042. # ifdef _AIX
  14043. #pragma alloca
  14044. # else
  14045. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14046. void *alloca (size_t);
  14047. # endif
  14048. # endif
  14049. # endif
  14050. # endif
  14051. #endif
  14052. int
  14053. main ()
  14054. {
  14055. char *p = (char *) alloca (1);
  14056. if (p) return 0;
  14057. ;
  14058. return 0;
  14059. }
  14060. _ACEOF
  14061. if ac_fn_c_try_link "$LINENO"; then :
  14062. ac_cv_func_alloca_works=yes
  14063. else
  14064. ac_cv_func_alloca_works=no
  14065. fi
  14066. rm -f core conftest.err conftest.$ac_objext \
  14067. conftest$ac_exeext conftest.$ac_ext
  14068. fi
  14069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14070. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14071. if test $ac_cv_func_alloca_works = yes; then
  14072. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14073. else
  14074. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14075. # that cause trouble. Some versions do not even contain alloca or
  14076. # contain a buggy version. If you still want to use their alloca,
  14077. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14078. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14079. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14081. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14082. if ${ac_cv_os_cray+:} false; then :
  14083. $as_echo_n "(cached) " >&6
  14084. else
  14085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14086. /* end confdefs.h. */
  14087. #if defined CRAY && ! defined CRAY2
  14088. webecray
  14089. #else
  14090. wenotbecray
  14091. #endif
  14092. _ACEOF
  14093. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14094. $EGREP "webecray" >/dev/null 2>&1; then :
  14095. ac_cv_os_cray=yes
  14096. else
  14097. ac_cv_os_cray=no
  14098. fi
  14099. rm -f conftest*
  14100. fi
  14101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14102. $as_echo "$ac_cv_os_cray" >&6; }
  14103. if test $ac_cv_os_cray = yes; then
  14104. for ac_func in _getb67 GETB67 getb67; do
  14105. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14106. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14107. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14108. cat >>confdefs.h <<_ACEOF
  14109. #define CRAY_STACKSEG_END $ac_func
  14110. _ACEOF
  14111. break
  14112. fi
  14113. done
  14114. fi
  14115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14116. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14117. if ${ac_cv_c_stack_direction+:} false; then :
  14118. $as_echo_n "(cached) " >&6
  14119. else
  14120. if test "$cross_compiling" = yes; then :
  14121. ac_cv_c_stack_direction=0
  14122. else
  14123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14124. /* end confdefs.h. */
  14125. $ac_includes_default
  14126. int
  14127. find_stack_direction (int *addr, int depth)
  14128. {
  14129. int dir, dummy = 0;
  14130. if (! addr)
  14131. addr = &dummy;
  14132. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14133. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14134. return dir + dummy;
  14135. }
  14136. int
  14137. main (int argc, char **argv)
  14138. {
  14139. return find_stack_direction (0, argc + !argv + 20) < 0;
  14140. }
  14141. _ACEOF
  14142. if ac_fn_c_try_run "$LINENO"; then :
  14143. ac_cv_c_stack_direction=1
  14144. else
  14145. ac_cv_c_stack_direction=-1
  14146. fi
  14147. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14148. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14149. fi
  14150. fi
  14151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14152. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14153. cat >>confdefs.h <<_ACEOF
  14154. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14155. _ACEOF
  14156. fi
  14157. ;;
  14158. esac
  14159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14160. $as_echo_n "checking for working memcmp... " >&6; }
  14161. if ${ac_cv_func_memcmp_working+:} false; then :
  14162. $as_echo_n "(cached) " >&6
  14163. else
  14164. if test "$cross_compiling" = yes; then :
  14165. ac_cv_func_memcmp_working=no
  14166. else
  14167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14168. /* end confdefs.h. */
  14169. $ac_includes_default
  14170. int
  14171. main ()
  14172. {
  14173. /* Some versions of memcmp are not 8-bit clean. */
  14174. char c0 = '\100', c1 = '\200', c2 = '\201';
  14175. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14176. return 1;
  14177. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14178. or more and with at least one buffer not starting on a 4-byte boundary.
  14179. William Lewis provided this test program. */
  14180. {
  14181. char foo[21];
  14182. char bar[21];
  14183. int i;
  14184. for (i = 0; i < 4; i++)
  14185. {
  14186. char *a = foo + i;
  14187. char *b = bar + i;
  14188. strcpy (a, "--------01111111");
  14189. strcpy (b, "--------10000000");
  14190. if (memcmp (a, b, 16) >= 0)
  14191. return 1;
  14192. }
  14193. return 0;
  14194. }
  14195. ;
  14196. return 0;
  14197. }
  14198. _ACEOF
  14199. if ac_fn_c_try_run "$LINENO"; then :
  14200. ac_cv_func_memcmp_working=yes
  14201. else
  14202. ac_cv_func_memcmp_working=no
  14203. fi
  14204. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14205. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14206. fi
  14207. fi
  14208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14209. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14210. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14211. *" memcmp.$ac_objext "* ) ;;
  14212. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14213. ;;
  14214. esac
  14215. if test x$ac_cv_func_memcmp_working = xyes; then
  14216. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14217. fi
  14218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14219. $as_echo_n "checking for working strtod... " >&6; }
  14220. if ${ac_cv_func_strtod+:} false; then :
  14221. $as_echo_n "(cached) " >&6
  14222. else
  14223. if test "$cross_compiling" = yes; then :
  14224. ac_cv_func_strtod=no
  14225. else
  14226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14227. /* end confdefs.h. */
  14228. $ac_includes_default
  14229. #ifndef strtod
  14230. double strtod ();
  14231. #endif
  14232. int
  14233. main()
  14234. {
  14235. {
  14236. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14237. char *string = " +69";
  14238. char *term;
  14239. double value;
  14240. value = strtod (string, &term);
  14241. if (value != 69 || term != (string + 4))
  14242. return 1;
  14243. }
  14244. {
  14245. /* Under Solaris 2.4, strtod returns the wrong value for the
  14246. terminating character under some conditions. */
  14247. char *string = "NaN";
  14248. char *term;
  14249. strtod (string, &term);
  14250. if (term != string && *(term - 1) == 0)
  14251. return 1;
  14252. }
  14253. return 0;
  14254. }
  14255. _ACEOF
  14256. if ac_fn_c_try_run "$LINENO"; then :
  14257. ac_cv_func_strtod=yes
  14258. else
  14259. ac_cv_func_strtod=no
  14260. fi
  14261. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14262. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14263. fi
  14264. fi
  14265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14266. $as_echo "$ac_cv_func_strtod" >&6; }
  14267. if test $ac_cv_func_strtod = no; then
  14268. case " $LIBOBJS " in
  14269. *" strtod.$ac_objext "* ) ;;
  14270. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14271. ;;
  14272. esac
  14273. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14274. if test "x$ac_cv_func_pow" = xyes; then :
  14275. fi
  14276. if test $ac_cv_func_pow = no; then
  14277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14278. $as_echo_n "checking for pow in -lm... " >&6; }
  14279. if ${ac_cv_lib_m_pow+:} false; then :
  14280. $as_echo_n "(cached) " >&6
  14281. else
  14282. ac_check_lib_save_LIBS=$LIBS
  14283. LIBS="-lm $LIBS"
  14284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14285. /* end confdefs.h. */
  14286. /* Override any GCC internal prototype to avoid an error.
  14287. Use char because int might match the return type of a GCC
  14288. builtin and then its argument prototype would still apply. */
  14289. #ifdef __cplusplus
  14290. extern "C"
  14291. #endif
  14292. char pow ();
  14293. int
  14294. main ()
  14295. {
  14296. return pow ();
  14297. ;
  14298. return 0;
  14299. }
  14300. _ACEOF
  14301. if ac_fn_c_try_link "$LINENO"; then :
  14302. ac_cv_lib_m_pow=yes
  14303. else
  14304. ac_cv_lib_m_pow=no
  14305. fi
  14306. rm -f core conftest.err conftest.$ac_objext \
  14307. conftest$ac_exeext conftest.$ac_ext
  14308. LIBS=$ac_check_lib_save_LIBS
  14309. fi
  14310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14311. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14312. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14313. POW_LIB=-lm
  14314. else
  14315. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14316. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14317. fi
  14318. fi
  14319. fi
  14320. if test x$ac_cv_func_strtod = xyes; then
  14321. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14322. fi
  14323. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14324. if test "x$ac_cv_func_mprotect" = xyes; then :
  14325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14326. /* end confdefs.h. */
  14327. #include <sys/types.h>
  14328. #include <sys/mman.h>
  14329. int
  14330. main ()
  14331. {
  14332. ;
  14333. return 0;
  14334. }
  14335. _ACEOF
  14336. if ac_fn_c_try_compile "$LINENO"; then :
  14337. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14338. fi
  14339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14340. fi
  14341. 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
  14342. do :
  14343. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14344. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14345. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14346. cat >>confdefs.h <<_ACEOF
  14347. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14348. _ACEOF
  14349. fi
  14350. done
  14351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14352. $as_echo_n "checking for pow in -lm... " >&6; }
  14353. if ${ac_cv_lib_m_pow+:} false; then :
  14354. $as_echo_n "(cached) " >&6
  14355. else
  14356. ac_check_lib_save_LIBS=$LIBS
  14357. LIBS="-lm $LIBS"
  14358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14359. /* end confdefs.h. */
  14360. /* Override any GCC internal prototype to avoid an error.
  14361. Use char because int might match the return type of a GCC
  14362. builtin and then its argument prototype would still apply. */
  14363. #ifdef __cplusplus
  14364. extern "C"
  14365. #endif
  14366. char pow ();
  14367. int
  14368. main ()
  14369. {
  14370. return pow ();
  14371. ;
  14372. return 0;
  14373. }
  14374. _ACEOF
  14375. if ac_fn_c_try_link "$LINENO"; then :
  14376. ac_cv_lib_m_pow=yes
  14377. else
  14378. ac_cv_lib_m_pow=no
  14379. fi
  14380. rm -f core conftest.err conftest.$ac_objext \
  14381. conftest$ac_exeext conftest.$ac_ext
  14382. LIBS=$ac_check_lib_save_LIBS
  14383. fi
  14384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14385. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14386. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14387. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14388. fi
  14389. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
  14390. do :
  14391. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14392. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14393. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14394. cat >>confdefs.h <<_ACEOF
  14395. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14396. _ACEOF
  14397. fi
  14398. done
  14399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14400. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14401. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14402. $as_echo_n "(cached) " >&6
  14403. else
  14404. ac_check_lib_save_LIBS=$LIBS
  14405. LIBS="-liconv $LIBS"
  14406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14407. /* end confdefs.h. */
  14408. /* Override any GCC internal prototype to avoid an error.
  14409. Use char because int might match the return type of a GCC
  14410. builtin and then its argument prototype would still apply. */
  14411. #ifdef __cplusplus
  14412. extern "C"
  14413. #endif
  14414. char iconv_open ();
  14415. int
  14416. main ()
  14417. {
  14418. return iconv_open ();
  14419. ;
  14420. return 0;
  14421. }
  14422. _ACEOF
  14423. if ac_fn_c_try_link "$LINENO"; then :
  14424. ac_cv_lib_iconv_iconv_open=yes
  14425. else
  14426. ac_cv_lib_iconv_iconv_open=no
  14427. fi
  14428. rm -f core conftest.err conftest.$ac_objext \
  14429. conftest$ac_exeext conftest.$ac_ext
  14430. LIBS=$ac_check_lib_save_LIBS
  14431. fi
  14432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14433. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14434. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14435. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14436. fi
  14437. for ac_func in iconv
  14438. do :
  14439. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14440. if test "x$ac_cv_func_iconv" = xyes; then :
  14441. cat >>confdefs.h <<_ACEOF
  14442. #define HAVE_ICONV 1
  14443. _ACEOF
  14444. fi
  14445. done
  14446. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14447. "
  14448. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14449. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14450. fi
  14451. fi
  14452. # Check whether --enable-gcc-atomics was given.
  14453. if test "${enable_gcc_atomics+set}" = set; then :
  14454. enableval=$enable_gcc_atomics;
  14455. else
  14456. enable_gcc_atomics=yes
  14457. fi
  14458. if test x$enable_gcc_atomics = xyes; then
  14459. have_gcc_atomics=no
  14460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14461. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14463. /* end confdefs.h. */
  14464. int
  14465. main ()
  14466. {
  14467. int a;
  14468. void *x, *y, *z;
  14469. __sync_lock_test_and_set(&a, 4);
  14470. __sync_lock_test_and_set(&x, y);
  14471. __sync_fetch_and_add(&a, 1);
  14472. __sync_bool_compare_and_swap(&a, 5, 10);
  14473. __sync_bool_compare_and_swap(&x, y, z);
  14474. ;
  14475. return 0;
  14476. }
  14477. _ACEOF
  14478. if ac_fn_c_try_link "$LINENO"; then :
  14479. have_gcc_atomics=yes
  14480. fi
  14481. rm -f core conftest.err conftest.$ac_objext \
  14482. conftest$ac_exeext conftest.$ac_ext
  14483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14484. $as_echo "$have_gcc_atomics" >&6; }
  14485. if test x$have_gcc_atomics = xyes; then
  14486. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14487. else
  14488. # See if we have the minimum operation needed for GCC atomics
  14489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14490. /* end confdefs.h. */
  14491. int
  14492. main ()
  14493. {
  14494. int a;
  14495. __sync_lock_test_and_set(&a, 1);
  14496. __sync_lock_release(&a);
  14497. ;
  14498. return 0;
  14499. }
  14500. _ACEOF
  14501. if ac_fn_c_try_link "$LINENO"; then :
  14502. have_gcc_sync_lock_test_and_set=yes
  14503. fi
  14504. rm -f core conftest.err conftest.$ac_objext \
  14505. conftest$ac_exeext conftest.$ac_ext
  14506. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14507. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14508. fi
  14509. fi
  14510. fi
  14511. # Standard C sources
  14512. SOURCES="$SOURCES $srcdir/src/*.c"
  14513. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14514. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14515. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14516. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14517. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14518. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14519. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14520. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14521. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14522. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14523. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14524. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14525. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14526. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14527. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14528. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14529. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14530. # Check whether --enable-atomic was given.
  14531. if test "${enable_atomic+set}" = set; then :
  14532. enableval=$enable_atomic;
  14533. else
  14534. enable_atomic=yes
  14535. fi
  14536. if test x$enable_atomic != xyes; then
  14537. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14538. else
  14539. SUMMARY_modules="${SUMMARY_modules} atomic"
  14540. fi
  14541. # Check whether --enable-audio was given.
  14542. if test "${enable_audio+set}" = set; then :
  14543. enableval=$enable_audio;
  14544. else
  14545. enable_audio=yes
  14546. fi
  14547. if test x$enable_audio != xyes; then
  14548. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14549. else
  14550. SUMMARY_modules="${SUMMARY_modules} audio"
  14551. fi
  14552. # Check whether --enable-video was given.
  14553. if test "${enable_video+set}" = set; then :
  14554. enableval=$enable_video;
  14555. else
  14556. enable_video=yes
  14557. fi
  14558. if test x$enable_video != xyes; then
  14559. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14560. else
  14561. SUMMARY_modules="${SUMMARY_modules} video"
  14562. fi
  14563. # Check whether --enable-render was given.
  14564. if test "${enable_render+set}" = set; then :
  14565. enableval=$enable_render;
  14566. else
  14567. enable_render=yes
  14568. fi
  14569. if test x$enable_render != xyes; then
  14570. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14571. else
  14572. SUMMARY_modules="${SUMMARY_modules} render"
  14573. fi
  14574. # Check whether --enable-events was given.
  14575. if test "${enable_events+set}" = set; then :
  14576. enableval=$enable_events;
  14577. else
  14578. enable_events=yes
  14579. fi
  14580. if test x$enable_events != xyes; then
  14581. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14582. else
  14583. SUMMARY_modules="${SUMMARY_modules} events"
  14584. fi
  14585. # Check whether --enable-joystick was given.
  14586. if test "${enable_joystick+set}" = set; then :
  14587. enableval=$enable_joystick;
  14588. else
  14589. enable_joystick=yes
  14590. fi
  14591. if test x$enable_joystick != xyes; then
  14592. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14593. else
  14594. SUMMARY_modules="${SUMMARY_modules} joystick"
  14595. fi
  14596. # Check whether --enable-haptic was given.
  14597. if test "${enable_haptic+set}" = set; then :
  14598. enableval=$enable_haptic;
  14599. else
  14600. enable_haptic=yes
  14601. fi
  14602. if test x$enable_haptic != xyes; then
  14603. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14604. else
  14605. SUMMARY_modules="${SUMMARY_modules} haptic"
  14606. fi
  14607. # Check whether --enable-power was given.
  14608. if test "${enable_power+set}" = set; then :
  14609. enableval=$enable_power;
  14610. else
  14611. enable_power=yes
  14612. fi
  14613. if test x$enable_power != xyes; then
  14614. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14615. else
  14616. SUMMARY_modules="${SUMMARY_modules} power"
  14617. fi
  14618. # Check whether --enable-filesystem was given.
  14619. if test "${enable_filesystem+set}" = set; then :
  14620. enableval=$enable_filesystem;
  14621. else
  14622. enable_filesystem=yes
  14623. fi
  14624. if test x$enable_filesystem != xyes; then
  14625. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14626. else
  14627. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14628. fi
  14629. # Check whether --enable-threads was given.
  14630. if test "${enable_threads+set}" = set; then :
  14631. enableval=$enable_threads;
  14632. else
  14633. enable_threads=yes
  14634. fi
  14635. if test x$enable_threads != xyes; then
  14636. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14637. else
  14638. SUMMARY_modules="${SUMMARY_modules} threads"
  14639. fi
  14640. # Check whether --enable-timers was given.
  14641. if test "${enable_timers+set}" = set; then :
  14642. enableval=$enable_timers;
  14643. else
  14644. enable_timers=yes
  14645. fi
  14646. if test x$enable_timers != xyes; then
  14647. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14648. else
  14649. SUMMARY_modules="${SUMMARY_modules} timers"
  14650. fi
  14651. # Check whether --enable-file was given.
  14652. if test "${enable_file+set}" = set; then :
  14653. enableval=$enable_file;
  14654. else
  14655. enable_file=yes
  14656. fi
  14657. if test x$enable_file != xyes; then
  14658. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14659. else
  14660. SUMMARY_modules="${SUMMARY_modules} file"
  14661. fi
  14662. # Check whether --enable-loadso was given.
  14663. if test "${enable_loadso+set}" = set; then :
  14664. enableval=$enable_loadso;
  14665. else
  14666. enable_loadso=yes
  14667. fi
  14668. if test x$enable_loadso != xyes; then
  14669. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14670. else
  14671. SUMMARY_modules="${SUMMARY_modules} loadso"
  14672. fi
  14673. # Check whether --enable-cpuinfo was given.
  14674. if test "${enable_cpuinfo+set}" = set; then :
  14675. enableval=$enable_cpuinfo;
  14676. else
  14677. enable_cpuinfo=yes
  14678. fi
  14679. if test x$enable_cpuinfo != xyes; then
  14680. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14681. else
  14682. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14683. fi
  14684. # Check whether --enable-assembly was given.
  14685. if test "${enable_assembly+set}" = set; then :
  14686. enableval=$enable_assembly;
  14687. else
  14688. enable_assembly=yes
  14689. fi
  14690. if test x$enable_assembly = xyes; then
  14691. SUMMARY_modules="${SUMMARY_modules} assembly"
  14692. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14693. # Make sure that we don't generate floating point code that would
  14694. # cause illegal instruction exceptions on older processors
  14695. case "$host" in
  14696. *-*-darwin*)
  14697. # Don't need to worry about Apple hardware, it's all SSE capable
  14698. default_ssemath=yes
  14699. ;;
  14700. *64-*-*)
  14701. # x86 64-bit architectures all have SSE instructions
  14702. default_ssemath=yes
  14703. ;;
  14704. *)
  14705. default_ssemath=no
  14706. ;;
  14707. esac
  14708. # Check whether --enable-ssemath was given.
  14709. if test "${enable_ssemath+set}" = set; then :
  14710. enableval=$enable_ssemath;
  14711. else
  14712. enable_ssemath=$default_ssemath
  14713. fi
  14714. if test x$enable_ssemath = xno; then
  14715. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
  14716. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14717. fi
  14718. fi
  14719. # Check whether --enable-mmx was given.
  14720. if test "${enable_mmx+set}" = set; then :
  14721. enableval=$enable_mmx;
  14722. else
  14723. enable_mmx=yes
  14724. fi
  14725. if test x$enable_mmx = xyes; then
  14726. save_CFLAGS="$CFLAGS"
  14727. have_gcc_mmx=no
  14728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14729. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14730. mmx_CFLAGS="-mmmx"
  14731. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14733. /* end confdefs.h. */
  14734. #ifdef __MINGW32__
  14735. #include <_mingw.h>
  14736. #ifdef __MINGW64_VERSION_MAJOR
  14737. #include <intrin.h>
  14738. #else
  14739. #include <mmintrin.h>
  14740. #endif
  14741. #else
  14742. #include <mmintrin.h>
  14743. #endif
  14744. #ifndef __MMX__
  14745. #error Assembler CPP flag not enabled
  14746. #endif
  14747. int
  14748. main ()
  14749. {
  14750. ;
  14751. return 0;
  14752. }
  14753. _ACEOF
  14754. if ac_fn_c_try_compile "$LINENO"; then :
  14755. have_gcc_mmx=yes
  14756. fi
  14757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14759. $as_echo "$have_gcc_mmx" >&6; }
  14760. CFLAGS="$save_CFLAGS"
  14761. if test x$have_gcc_mmx = xyes; then
  14762. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14763. SUMMARY_math="${SUMMARY_math} mmx"
  14764. fi
  14765. fi
  14766. # Check whether --enable-3dnow was given.
  14767. if test "${enable_3dnow+set}" = set; then :
  14768. enableval=$enable_3dnow;
  14769. else
  14770. enable_3dnow=yes
  14771. fi
  14772. if test x$enable_3dnow = xyes; then
  14773. save_CFLAGS="$CFLAGS"
  14774. have_gcc_3dnow=no
  14775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14776. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14777. amd3dnow_CFLAGS="-m3dnow"
  14778. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14780. /* end confdefs.h. */
  14781. #include <mm3dnow.h>
  14782. #ifndef __3dNOW__
  14783. #error Assembler CPP flag not enabled
  14784. #endif
  14785. int
  14786. main ()
  14787. {
  14788. void *p = 0;
  14789. _m_prefetch(p);
  14790. ;
  14791. return 0;
  14792. }
  14793. _ACEOF
  14794. if ac_fn_c_try_link "$LINENO"; then :
  14795. have_gcc_3dnow=yes
  14796. fi
  14797. rm -f core conftest.err conftest.$ac_objext \
  14798. conftest$ac_exeext conftest.$ac_ext
  14799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14800. $as_echo "$have_gcc_3dnow" >&6; }
  14801. CFLAGS="$save_CFLAGS"
  14802. if test x$have_gcc_3dnow = xyes; then
  14803. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14804. SUMMARY_math="${SUMMARY_math} 3dnow"
  14805. fi
  14806. fi
  14807. # Check whether --enable-sse was given.
  14808. if test "${enable_sse+set}" = set; then :
  14809. enableval=$enable_sse;
  14810. else
  14811. enable_sse=yes
  14812. fi
  14813. if test x$enable_sse = xyes; then
  14814. save_CFLAGS="$CFLAGS"
  14815. have_gcc_sse=no
  14816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14817. $as_echo_n "checking for GCC -msse option... " >&6; }
  14818. sse_CFLAGS="-msse"
  14819. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14821. /* end confdefs.h. */
  14822. #ifdef __MINGW32__
  14823. #include <_mingw.h>
  14824. #ifdef __MINGW64_VERSION_MAJOR
  14825. #include <intrin.h>
  14826. #else
  14827. #include <xmmintrin.h>
  14828. #endif
  14829. #else
  14830. #include <xmmintrin.h>
  14831. #endif
  14832. #ifndef __SSE__
  14833. #error Assembler CPP flag not enabled
  14834. #endif
  14835. int
  14836. main ()
  14837. {
  14838. ;
  14839. return 0;
  14840. }
  14841. _ACEOF
  14842. if ac_fn_c_try_compile "$LINENO"; then :
  14843. have_gcc_sse=yes
  14844. fi
  14845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14847. $as_echo "$have_gcc_sse" >&6; }
  14848. CFLAGS="$save_CFLAGS"
  14849. if test x$have_gcc_sse = xyes; then
  14850. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14851. SUMMARY_math="${SUMMARY_math} sse"
  14852. fi
  14853. fi
  14854. # Check whether --enable-sse2 was given.
  14855. if test "${enable_sse2+set}" = set; then :
  14856. enableval=$enable_sse2;
  14857. else
  14858. enable_sse2=$default_ssemath
  14859. fi
  14860. if test x$enable_sse2 = xyes; then
  14861. save_CFLAGS="$CFLAGS"
  14862. have_gcc_sse2=no
  14863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14864. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14865. sse2_CFLAGS="-msse2"
  14866. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14868. /* end confdefs.h. */
  14869. #ifdef __MINGW32__
  14870. #include <_mingw.h>
  14871. #ifdef __MINGW64_VERSION_MAJOR
  14872. #include <intrin.h>
  14873. #else
  14874. #include <emmintrin.h>
  14875. #endif
  14876. #else
  14877. #include <emmintrin.h>
  14878. #endif
  14879. #ifndef __SSE2__
  14880. #error Assembler CPP flag not enabled
  14881. #endif
  14882. int
  14883. main ()
  14884. {
  14885. ;
  14886. return 0;
  14887. }
  14888. _ACEOF
  14889. if ac_fn_c_try_compile "$LINENO"; then :
  14890. have_gcc_sse2=yes
  14891. fi
  14892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14894. $as_echo "$have_gcc_sse2" >&6; }
  14895. CFLAGS="$save_CFLAGS"
  14896. if test x$have_gcc_sse2 = xyes; then
  14897. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14898. SUMMARY_math="${SUMMARY_math} sse2"
  14899. fi
  14900. fi
  14901. # Check whether --enable-altivec was given.
  14902. if test "${enable_altivec+set}" = set; then :
  14903. enableval=$enable_altivec;
  14904. else
  14905. enable_altivec=yes
  14906. fi
  14907. if test x$enable_altivec = xyes; then
  14908. save_CFLAGS="$CFLAGS"
  14909. have_gcc_altivec=no
  14910. have_altivec_h_hdr=no
  14911. altivec_CFLAGS="-maltivec"
  14912. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14914. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14916. /* end confdefs.h. */
  14917. #include <altivec.h>
  14918. vector unsigned int vzero() {
  14919. return vec_splat_u32(0);
  14920. }
  14921. int
  14922. main ()
  14923. {
  14924. ;
  14925. return 0;
  14926. }
  14927. _ACEOF
  14928. if ac_fn_c_try_compile "$LINENO"; then :
  14929. have_gcc_altivec=yes
  14930. have_altivec_h_hdr=yes
  14931. fi
  14932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14934. $as_echo "$have_gcc_altivec" >&6; }
  14935. if test x$have_gcc_altivec = xno; then
  14936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  14937. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  14938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14939. /* end confdefs.h. */
  14940. vector unsigned int vzero() {
  14941. return vec_splat_u32(0);
  14942. }
  14943. int
  14944. main ()
  14945. {
  14946. ;
  14947. return 0;
  14948. }
  14949. _ACEOF
  14950. if ac_fn_c_try_compile "$LINENO"; then :
  14951. have_gcc_altivec=yes
  14952. fi
  14953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14955. $as_echo "$have_gcc_altivec" >&6; }
  14956. fi
  14957. if test x$have_gcc_altivec = xno; then
  14958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  14959. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  14960. altivec_CFLAGS="-faltivec"
  14961. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14963. /* end confdefs.h. */
  14964. #include <altivec.h>
  14965. vector unsigned int vzero() {
  14966. return vec_splat_u32(0);
  14967. }
  14968. int
  14969. main ()
  14970. {
  14971. ;
  14972. return 0;
  14973. }
  14974. _ACEOF
  14975. if ac_fn_c_try_compile "$LINENO"; then :
  14976. have_gcc_altivec=yes
  14977. have_altivec_h_hdr=yes
  14978. fi
  14979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14981. $as_echo "$have_gcc_altivec" >&6; }
  14982. fi
  14983. if test x$have_gcc_altivec = xno; then
  14984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  14985. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  14986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14987. /* end confdefs.h. */
  14988. vector unsigned int vzero() {
  14989. return vec_splat_u32(0);
  14990. }
  14991. int
  14992. main ()
  14993. {
  14994. ;
  14995. return 0;
  14996. }
  14997. _ACEOF
  14998. if ac_fn_c_try_compile "$LINENO"; then :
  14999. have_gcc_altivec=yes
  15000. fi
  15001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15003. $as_echo "$have_gcc_altivec" >&6; }
  15004. fi
  15005. CFLAGS="$save_CFLAGS"
  15006. if test x$have_gcc_altivec = xyes; then
  15007. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15008. if test x$have_altivec_h_hdr = xyes; then
  15009. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15010. fi
  15011. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15012. SUMMARY_math="${SUMMARY_math} altivec"
  15013. fi
  15014. fi
  15015. fi
  15016. CheckOSS()
  15017. {
  15018. # Check whether --enable-oss was given.
  15019. if test "${enable_oss+set}" = set; then :
  15020. enableval=$enable_oss;
  15021. else
  15022. enable_oss=maybe
  15023. fi
  15024. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15025. # use sndio instead. So on there, we default to disabled. You can force
  15026. # it on if you really want, though.
  15027. if test x$enable_oss = xmaybe; then
  15028. enable_oss=yes
  15029. case "$host" in
  15030. *-*-openbsd*)
  15031. enable_oss=no;;
  15032. esac
  15033. fi
  15034. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15036. $as_echo_n "checking for OSS audio support... " >&6; }
  15037. have_oss=no
  15038. if test x$have_oss != xyes; then
  15039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15040. /* end confdefs.h. */
  15041. #include <sys/soundcard.h>
  15042. int
  15043. main ()
  15044. {
  15045. int arg = SNDCTL_DSP_SETFRAGMENT;
  15046. ;
  15047. return 0;
  15048. }
  15049. _ACEOF
  15050. if ac_fn_c_try_compile "$LINENO"; then :
  15051. have_oss=yes
  15052. fi
  15053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15054. fi
  15055. if test x$have_oss != xyes; then
  15056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15057. /* end confdefs.h. */
  15058. #include <soundcard.h>
  15059. int
  15060. main ()
  15061. {
  15062. int arg = SNDCTL_DSP_SETFRAGMENT;
  15063. ;
  15064. return 0;
  15065. }
  15066. _ACEOF
  15067. if ac_fn_c_try_compile "$LINENO"; then :
  15068. have_oss=yes
  15069. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15070. fi
  15071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15072. fi
  15073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15074. $as_echo "$have_oss" >&6; }
  15075. if test x$have_oss = xyes; then
  15076. SUMMARY_audio="${SUMMARY_audio} oss"
  15077. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15078. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15079. have_audio=yes
  15080. # We may need to link with ossaudio emulation library
  15081. case "$host" in
  15082. *-*-openbsd*|*-*-netbsd*)
  15083. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15084. esac
  15085. fi
  15086. fi
  15087. }
  15088. CheckALSA()
  15089. {
  15090. # Check whether --enable-alsa was given.
  15091. if test "${enable_alsa+set}" = set; then :
  15092. enableval=$enable_alsa;
  15093. else
  15094. enable_alsa=yes
  15095. fi
  15096. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15097. alsa_save_CFLAGS="$CFLAGS"
  15098. alsa_save_LDFLAGS="$LDFLAGS"
  15099. alsa_save_LIBS="$LIBS"
  15100. alsa_found=yes
  15101. # Check whether --with-alsa-prefix was given.
  15102. if test "${with_alsa_prefix+set}" = set; then :
  15103. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15104. else
  15105. alsa_prefix=""
  15106. fi
  15107. # Check whether --with-alsa-inc-prefix was given.
  15108. if test "${with_alsa_inc_prefix+set}" = set; then :
  15109. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15110. else
  15111. alsa_inc_prefix=""
  15112. fi
  15113. # Check whether --enable-alsatest was given.
  15114. if test "${enable_alsatest+set}" = set; then :
  15115. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15116. else
  15117. enable_alsatest=yes
  15118. fi
  15119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15120. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15121. if test "$alsa_inc_prefix" != "" ; then
  15122. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15123. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15124. fi
  15125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15126. $as_echo "$ALSA_CFLAGS" >&6; }
  15127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15128. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15129. if test "$alsa_prefix" != "" ; then
  15130. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15131. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15132. fi
  15133. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15134. LIBS=`echo $LIBS | sed 's/-lm//'`
  15135. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15136. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15137. LIBS=`echo $LIBS | sed 's/ //'`
  15138. LIBS="$ALSA_LIBS $LIBS"
  15139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15140. $as_echo "$ALSA_LIBS" >&6; }
  15141. min_alsa_version=1.0.11
  15142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15143. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15144. no_alsa=""
  15145. alsa_min_major_version=`echo $min_alsa_version | \
  15146. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15147. alsa_min_minor_version=`echo $min_alsa_version | \
  15148. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15149. alsa_min_micro_version=`echo $min_alsa_version | \
  15150. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15151. ac_ext=c
  15152. ac_cpp='$CPP $CPPFLAGS'
  15153. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15154. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15155. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15157. /* end confdefs.h. */
  15158. #include <alsa/asoundlib.h>
  15159. int
  15160. main ()
  15161. {
  15162. /* ensure backward compatibility */
  15163. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15164. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15165. #endif
  15166. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15167. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15168. #endif
  15169. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15170. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15171. #endif
  15172. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15173. exit(0);
  15174. # else
  15175. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15176. # error not present
  15177. # endif
  15178. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15179. exit(0);
  15180. # else
  15181. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15182. # error not present
  15183. # endif
  15184. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15185. # error not present
  15186. # endif
  15187. # endif
  15188. # endif
  15189. exit(0);
  15190. ;
  15191. return 0;
  15192. }
  15193. _ACEOF
  15194. if ac_fn_c_try_compile "$LINENO"; then :
  15195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15196. $as_echo "found." >&6; }
  15197. else
  15198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15199. $as_echo "not present." >&6; }
  15200. alsa_found=no
  15201. fi
  15202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15203. ac_ext=c
  15204. ac_cpp='$CPP $CPPFLAGS'
  15205. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15206. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15207. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15208. if test "x$enable_alsatest" = "xyes"; then
  15209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15210. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15211. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15212. $as_echo_n "(cached) " >&6
  15213. else
  15214. ac_check_lib_save_LIBS=$LIBS
  15215. LIBS="-lasound $LIBS"
  15216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15217. /* end confdefs.h. */
  15218. /* Override any GCC internal prototype to avoid an error.
  15219. Use char because int might match the return type of a GCC
  15220. builtin and then its argument prototype would still apply. */
  15221. #ifdef __cplusplus
  15222. extern "C"
  15223. #endif
  15224. char snd_ctl_open ();
  15225. int
  15226. main ()
  15227. {
  15228. return snd_ctl_open ();
  15229. ;
  15230. return 0;
  15231. }
  15232. _ACEOF
  15233. if ac_fn_c_try_link "$LINENO"; then :
  15234. ac_cv_lib_asound_snd_ctl_open=yes
  15235. else
  15236. ac_cv_lib_asound_snd_ctl_open=no
  15237. fi
  15238. rm -f core conftest.err conftest.$ac_objext \
  15239. conftest$ac_exeext conftest.$ac_ext
  15240. LIBS=$ac_check_lib_save_LIBS
  15241. fi
  15242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15243. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15244. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15245. cat >>confdefs.h <<_ACEOF
  15246. #define HAVE_LIBASOUND 1
  15247. _ACEOF
  15248. LIBS="-lasound $LIBS"
  15249. else
  15250. alsa_found=no
  15251. fi
  15252. fi
  15253. if test "x$alsa_found" = "xyes" ; then
  15254. have_alsa=yes
  15255. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15256. LIBS=`echo $LIBS | sed 's/ //'`
  15257. LIBS="-lasound $LIBS"
  15258. fi
  15259. if test "x$alsa_found" = "xno" ; then
  15260. have_alsa=no
  15261. CFLAGS="$alsa_save_CFLAGS"
  15262. LDFLAGS="$alsa_save_LDFLAGS"
  15263. LIBS="$alsa_save_LIBS"
  15264. ALSA_CFLAGS=""
  15265. ALSA_LIBS=""
  15266. fi
  15267. # Restore all flags from before the ALSA detection runs
  15268. CFLAGS="$alsa_save_CFLAGS"
  15269. LDFLAGS="$alsa_save_LDFLAGS"
  15270. LIBS="$alsa_save_LIBS"
  15271. if test x$have_alsa = xyes; then
  15272. # Check whether --enable-alsa-shared was given.
  15273. if test "${enable_alsa_shared+set}" = set; then :
  15274. enableval=$enable_alsa_shared;
  15275. else
  15276. enable_alsa_shared=yes
  15277. fi
  15278. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15279. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15280. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15281. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15282. if test x$have_loadso != xyes && \
  15283. test x$enable_alsa_shared = xyes; then
  15284. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15285. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15286. fi
  15287. if test x$have_loadso = xyes && \
  15288. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15289. echo "-- dynamic libasound -> $alsa_lib"
  15290. cat >>confdefs.h <<_ACEOF
  15291. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15292. _ACEOF
  15293. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15294. else
  15295. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15296. SUMMARY_audio="${SUMMARY_audio} alsa"
  15297. fi
  15298. have_audio=yes
  15299. fi
  15300. fi
  15301. }
  15302. CheckESD()
  15303. {
  15304. # Check whether --enable-esd was given.
  15305. if test "${enable_esd+set}" = set; then :
  15306. enableval=$enable_esd;
  15307. else
  15308. enable_esd=yes
  15309. fi
  15310. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15311. # Check whether --with-esd-prefix was given.
  15312. if test "${with_esd_prefix+set}" = set; then :
  15313. withval=$with_esd_prefix; esd_prefix="$withval"
  15314. else
  15315. esd_prefix=""
  15316. fi
  15317. # Check whether --with-esd-exec-prefix was given.
  15318. if test "${with_esd_exec_prefix+set}" = set; then :
  15319. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15320. else
  15321. esd_exec_prefix=""
  15322. fi
  15323. # Check whether --enable-esdtest was given.
  15324. if test "${enable_esdtest+set}" = set; then :
  15325. enableval=$enable_esdtest;
  15326. else
  15327. enable_esdtest=yes
  15328. fi
  15329. if test x$esd_exec_prefix != x ; then
  15330. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15331. if test x${ESD_CONFIG+set} != xset ; then
  15332. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15333. fi
  15334. fi
  15335. if test x$esd_prefix != x ; then
  15336. esd_args="$esd_args --prefix=$esd_prefix"
  15337. if test x${ESD_CONFIG+set} != xset ; then
  15338. ESD_CONFIG=$esd_prefix/bin/esd-config
  15339. fi
  15340. fi
  15341. # Extract the first word of "esd-config", so it can be a program name with args.
  15342. set dummy esd-config; ac_word=$2
  15343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15344. $as_echo_n "checking for $ac_word... " >&6; }
  15345. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15346. $as_echo_n "(cached) " >&6
  15347. else
  15348. case $ESD_CONFIG in
  15349. [\\/]* | ?:[\\/]*)
  15350. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15351. ;;
  15352. *)
  15353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15354. for as_dir in $PATH
  15355. do
  15356. IFS=$as_save_IFS
  15357. test -z "$as_dir" && as_dir=.
  15358. for ac_exec_ext in '' $ac_executable_extensions; do
  15359. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15360. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15361. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15362. break 2
  15363. fi
  15364. done
  15365. done
  15366. IFS=$as_save_IFS
  15367. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15368. ;;
  15369. esac
  15370. fi
  15371. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15372. if test -n "$ESD_CONFIG"; then
  15373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15374. $as_echo "$ESD_CONFIG" >&6; }
  15375. else
  15376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15377. $as_echo "no" >&6; }
  15378. fi
  15379. min_esd_version=0.2.8
  15380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15381. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15382. no_esd=""
  15383. if test "$ESD_CONFIG" = "no" ; then
  15384. no_esd=yes
  15385. else
  15386. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15387. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15388. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15389. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15390. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15391. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15392. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15393. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15394. if test "x$enable_esdtest" = "xyes" ; then
  15395. ac_save_CFLAGS="$CFLAGS"
  15396. ac_save_LIBS="$LIBS"
  15397. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15398. LIBS="$LIBS $ESD_LIBS"
  15399. rm -f conf.esdtest
  15400. if test "$cross_compiling" = yes; then :
  15401. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15402. else
  15403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15404. /* end confdefs.h. */
  15405. #include <stdio.h>
  15406. #include <stdlib.h>
  15407. #include <string.h>
  15408. #include <esd.h>
  15409. char*
  15410. my_strdup (char *str)
  15411. {
  15412. char *new_str;
  15413. if (str)
  15414. {
  15415. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15416. strcpy (new_str, str);
  15417. }
  15418. else
  15419. new_str = NULL;
  15420. return new_str;
  15421. }
  15422. int main ()
  15423. {
  15424. int major, minor, micro;
  15425. char *tmp_version;
  15426. system ("touch conf.esdtest");
  15427. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15428. tmp_version = my_strdup("$min_esd_version");
  15429. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15430. printf("%s, bad version string\n", "$min_esd_version");
  15431. exit(1);
  15432. }
  15433. if (($esd_major_version > major) ||
  15434. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15435. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15436. {
  15437. return 0;
  15438. }
  15439. else
  15440. {
  15441. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15442. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15443. printf("*** best to upgrade to the required version.\n");
  15444. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15445. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15446. printf("*** config.cache before re-running configure\n");
  15447. return 1;
  15448. }
  15449. }
  15450. _ACEOF
  15451. if ac_fn_c_try_run "$LINENO"; then :
  15452. else
  15453. no_esd=yes
  15454. fi
  15455. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15456. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15457. fi
  15458. CFLAGS="$ac_save_CFLAGS"
  15459. LIBS="$ac_save_LIBS"
  15460. fi
  15461. fi
  15462. if test "x$no_esd" = x ; then
  15463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15464. $as_echo "yes" >&6; }
  15465. have_esd=yes
  15466. else
  15467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15468. $as_echo "no" >&6; }
  15469. if test "$ESD_CONFIG" = "no" ; then
  15470. echo "*** The esd-config script installed by ESD could not be found"
  15471. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15472. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15473. echo "*** full path to esd-config."
  15474. else
  15475. if test -f conf.esdtest ; then
  15476. :
  15477. else
  15478. echo "*** Could not run ESD test program, checking why..."
  15479. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15480. LIBS="$LIBS $ESD_LIBS"
  15481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15482. /* end confdefs.h. */
  15483. #include <stdio.h>
  15484. #include <esd.h>
  15485. int
  15486. main ()
  15487. {
  15488. return 0;
  15489. ;
  15490. return 0;
  15491. }
  15492. _ACEOF
  15493. if ac_fn_c_try_link "$LINENO"; then :
  15494. echo "*** The test program compiled, but did not run. This usually means"
  15495. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15496. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15497. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15498. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15499. echo "*** is required on your system"
  15500. echo "***"
  15501. echo "*** If you have an old version installed, it is best to remove it, although"
  15502. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15503. else
  15504. echo "*** The test program failed to compile or link. See the file config.log for the"
  15505. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15506. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15507. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15508. fi
  15509. rm -f core conftest.err conftest.$ac_objext \
  15510. conftest$ac_exeext conftest.$ac_ext
  15511. CFLAGS="$ac_save_CFLAGS"
  15512. LIBS="$ac_save_LIBS"
  15513. fi
  15514. fi
  15515. ESD_CFLAGS=""
  15516. ESD_LIBS=""
  15517. have_esd=no
  15518. fi
  15519. rm -f conf.esdtest
  15520. if test x$have_esd = xyes; then
  15521. # Check whether --enable-esd-shared was given.
  15522. if test "${enable_esd_shared+set}" = set; then :
  15523. enableval=$enable_esd_shared;
  15524. else
  15525. enable_esd_shared=yes
  15526. fi
  15527. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15528. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15529. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15530. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15531. if test x$have_loadso != xyes && \
  15532. test x$enable_esd_shared = xyes; then
  15533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15534. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15535. fi
  15536. if test x$have_loadso = xyes && \
  15537. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15538. echo "-- dynamic libesd -> $esd_lib"
  15539. cat >>confdefs.h <<_ACEOF
  15540. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15541. _ACEOF
  15542. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15543. else
  15544. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15545. SUMMARY_audio="${SUMMARY_audio} esd"
  15546. fi
  15547. have_audio=yes
  15548. fi
  15549. fi
  15550. }
  15551. CheckPulseAudio()
  15552. {
  15553. # Check whether --enable-pulseaudio was given.
  15554. if test "${enable_pulseaudio+set}" = set; then :
  15555. enableval=$enable_pulseaudio;
  15556. else
  15557. enable_pulseaudio=yes
  15558. fi
  15559. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15560. audio_pulseaudio=no
  15561. PULSEAUDIO_REQUIRED_VERSION=0.9
  15562. # Extract the first word of "pkg-config", so it can be a program name with args.
  15563. set dummy pkg-config; ac_word=$2
  15564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15565. $as_echo_n "checking for $ac_word... " >&6; }
  15566. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15567. $as_echo_n "(cached) " >&6
  15568. else
  15569. case $PKG_CONFIG in
  15570. [\\/]* | ?:[\\/]*)
  15571. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15572. ;;
  15573. *)
  15574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15575. for as_dir in $PATH
  15576. do
  15577. IFS=$as_save_IFS
  15578. test -z "$as_dir" && as_dir=.
  15579. for ac_exec_ext in '' $ac_executable_extensions; do
  15580. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15581. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15582. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15583. break 2
  15584. fi
  15585. done
  15586. done
  15587. IFS=$as_save_IFS
  15588. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15589. ;;
  15590. esac
  15591. fi
  15592. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15593. if test -n "$PKG_CONFIG"; then
  15594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15595. $as_echo "$PKG_CONFIG" >&6; }
  15596. else
  15597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15598. $as_echo "no" >&6; }
  15599. fi
  15600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15601. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15602. if test x$PKG_CONFIG != xno; then
  15603. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15604. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15605. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15606. audio_pulseaudio=yes
  15607. fi
  15608. fi
  15609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15610. $as_echo "$audio_pulseaudio" >&6; }
  15611. if test x$audio_pulseaudio = xyes; then
  15612. # Check whether --enable-pulseaudio-shared was given.
  15613. if test "${enable_pulseaudio_shared+set}" = set; then :
  15614. enableval=$enable_pulseaudio_shared;
  15615. else
  15616. enable_pulseaudio_shared=yes
  15617. fi
  15618. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15619. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15620. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15621. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15622. if test x$have_loadso != xyes && \
  15623. test x$enable_pulseaudio_shared = xyes; then
  15624. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15625. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15626. fi
  15627. if test x$have_loadso = xyes && \
  15628. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15629. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15630. cat >>confdefs.h <<_ACEOF
  15631. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15632. _ACEOF
  15633. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15634. case "$host" in
  15635. # On Solaris, pulseaudio must be linked deferred explicitly
  15636. # to prevent undefined symbol failures.
  15637. *-*-solaris*)
  15638. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15639. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15640. esac
  15641. else
  15642. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15643. SUMMARY_audio="${SUMMARY_audio} pulse"
  15644. fi
  15645. have_audio=yes
  15646. fi
  15647. fi
  15648. }
  15649. CheckARTSC()
  15650. {
  15651. # Check whether --enable-arts was given.
  15652. if test "${enable_arts+set}" = set; then :
  15653. enableval=$enable_arts;
  15654. else
  15655. enable_arts=yes
  15656. fi
  15657. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15658. # Extract the first word of "artsc-config", so it can be a program name with args.
  15659. set dummy artsc-config; ac_word=$2
  15660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15661. $as_echo_n "checking for $ac_word... " >&6; }
  15662. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15663. $as_echo_n "(cached) " >&6
  15664. else
  15665. case $ARTSCONFIG in
  15666. [\\/]* | ?:[\\/]*)
  15667. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15668. ;;
  15669. *)
  15670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15671. for as_dir in $PATH
  15672. do
  15673. IFS=$as_save_IFS
  15674. test -z "$as_dir" && as_dir=.
  15675. for ac_exec_ext in '' $ac_executable_extensions; do
  15676. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15677. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15678. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15679. break 2
  15680. fi
  15681. done
  15682. done
  15683. IFS=$as_save_IFS
  15684. ;;
  15685. esac
  15686. fi
  15687. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15688. if test -n "$ARTSCONFIG"; then
  15689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15690. $as_echo "$ARTSCONFIG" >&6; }
  15691. else
  15692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15693. $as_echo "no" >&6; }
  15694. fi
  15695. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15696. : # arts isn't installed
  15697. else
  15698. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15699. ARTS_LIBS=`$ARTSCONFIG --libs`
  15700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15701. $as_echo_n "checking for aRts development environment... " >&6; }
  15702. audio_arts=no
  15703. save_CFLAGS="$CFLAGS"
  15704. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15706. /* end confdefs.h. */
  15707. #include <artsc.h>
  15708. int
  15709. main ()
  15710. {
  15711. arts_stream_t stream;
  15712. ;
  15713. return 0;
  15714. }
  15715. _ACEOF
  15716. if ac_fn_c_try_compile "$LINENO"; then :
  15717. audio_arts=yes
  15718. fi
  15719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15720. CFLAGS="$save_CFLAGS"
  15721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15722. $as_echo "$audio_arts" >&6; }
  15723. if test x$audio_arts = xyes; then
  15724. # Check whether --enable-arts-shared was given.
  15725. if test "${enable_arts_shared+set}" = set; then :
  15726. enableval=$enable_arts_shared;
  15727. else
  15728. enable_arts_shared=yes
  15729. fi
  15730. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15731. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15732. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15733. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15734. if test x$have_loadso != xyes && \
  15735. test x$enable_arts_shared = xyes; then
  15736. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15737. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15738. fi
  15739. if test x$have_loadso = xyes && \
  15740. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15741. echo "-- dynamic libartsc -> $arts_lib"
  15742. cat >>confdefs.h <<_ACEOF
  15743. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15744. _ACEOF
  15745. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15746. else
  15747. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15748. SUMMARY_audio="${SUMMARY_audio} arts"
  15749. fi
  15750. have_audio=yes
  15751. fi
  15752. fi
  15753. fi
  15754. }
  15755. CheckNAS()
  15756. {
  15757. # Check whether --enable-nas was given.
  15758. if test "${enable_nas+set}" = set; then :
  15759. enableval=$enable_nas;
  15760. else
  15761. enable_nas=yes
  15762. fi
  15763. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15764. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15765. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15766. have_nas_hdr=yes
  15767. fi
  15768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15769. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15770. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15771. $as_echo_n "(cached) " >&6
  15772. else
  15773. ac_check_lib_save_LIBS=$LIBS
  15774. LIBS="-laudio $LIBS"
  15775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15776. /* end confdefs.h. */
  15777. /* Override any GCC internal prototype to avoid an error.
  15778. Use char because int might match the return type of a GCC
  15779. builtin and then its argument prototype would still apply. */
  15780. #ifdef __cplusplus
  15781. extern "C"
  15782. #endif
  15783. char AuOpenServer ();
  15784. int
  15785. main ()
  15786. {
  15787. return AuOpenServer ();
  15788. ;
  15789. return 0;
  15790. }
  15791. _ACEOF
  15792. if ac_fn_c_try_link "$LINENO"; then :
  15793. ac_cv_lib_audio_AuOpenServer=yes
  15794. else
  15795. ac_cv_lib_audio_AuOpenServer=no
  15796. fi
  15797. rm -f core conftest.err conftest.$ac_objext \
  15798. conftest$ac_exeext conftest.$ac_ext
  15799. LIBS=$ac_check_lib_save_LIBS
  15800. fi
  15801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15802. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15803. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15804. have_nas_lib=yes
  15805. fi
  15806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15807. $as_echo_n "checking for NAS audio support... " >&6; }
  15808. have_nas=no
  15809. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15810. have_nas=yes
  15811. NAS_LIBS="-laudio"
  15812. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15813. have_nas=yes
  15814. NAS_CFLAGS="-I/usr/X11R6/include/"
  15815. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15816. fi
  15817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15818. $as_echo "$have_nas" >&6; }
  15819. if test x$have_nas = xyes; then
  15820. # Check whether --enable-nas-shared was given.
  15821. if test "${enable_nas_shared+set}" = set; then :
  15822. enableval=$enable_nas_shared;
  15823. else
  15824. enable_nas_shared=yes
  15825. fi
  15826. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15827. if test x$have_loadso != xyes && \
  15828. test x$enable_nas_shared = xyes; then
  15829. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15830. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15831. fi
  15832. if test x$have_loadso = xyes && \
  15833. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15834. echo "-- dynamic libaudio -> $nas_lib"
  15835. cat >>confdefs.h <<_ACEOF
  15836. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15837. _ACEOF
  15838. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  15839. else
  15840. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  15841. SUMMARY_audio="${SUMMARY_audio} nas"
  15842. fi
  15843. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  15844. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  15845. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  15846. have_audio=yes
  15847. fi
  15848. fi
  15849. }
  15850. CheckSNDIO()
  15851. {
  15852. # Check whether --enable-sndio was given.
  15853. if test "${enable_sndio+set}" = set; then :
  15854. enableval=$enable_sndio;
  15855. else
  15856. enable_sndio=yes
  15857. fi
  15858. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  15859. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  15860. if test "x$ac_cv_header_sndio_h" = xyes; then :
  15861. have_sndio_hdr=yes
  15862. fi
  15863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  15864. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  15865. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  15866. $as_echo_n "(cached) " >&6
  15867. else
  15868. ac_check_lib_save_LIBS=$LIBS
  15869. LIBS="-lsndio $LIBS"
  15870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15871. /* end confdefs.h. */
  15872. /* Override any GCC internal prototype to avoid an error.
  15873. Use char because int might match the return type of a GCC
  15874. builtin and then its argument prototype would still apply. */
  15875. #ifdef __cplusplus
  15876. extern "C"
  15877. #endif
  15878. char sio_open ();
  15879. int
  15880. main ()
  15881. {
  15882. return sio_open ();
  15883. ;
  15884. return 0;
  15885. }
  15886. _ACEOF
  15887. if ac_fn_c_try_link "$LINENO"; then :
  15888. ac_cv_lib_sndio_sio_open=yes
  15889. else
  15890. ac_cv_lib_sndio_sio_open=no
  15891. fi
  15892. rm -f core conftest.err conftest.$ac_objext \
  15893. conftest$ac_exeext conftest.$ac_ext
  15894. LIBS=$ac_check_lib_save_LIBS
  15895. fi
  15896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  15897. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  15898. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  15899. have_sndio_lib=yes
  15900. fi
  15901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  15902. $as_echo_n "checking for sndio audio support... " >&6; }
  15903. have_sndio=no
  15904. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  15905. have_sndio=yes
  15906. SNDIO_LIBS="-lsndio"
  15907. fi
  15908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  15909. $as_echo "$have_sndio" >&6; }
  15910. if test x$have_sndio = xyes; then
  15911. # Check whether --enable-sndio-shared was given.
  15912. if test "${enable_sndio_shared+set}" = set; then :
  15913. enableval=$enable_sndio_shared;
  15914. else
  15915. enable_sndio_shared=yes
  15916. fi
  15917. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15918. if test x$have_loadso != xyes && \
  15919. test x$enable_sndio_shared = xyes; then
  15920. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  15921. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  15922. fi
  15923. if test x$have_loadso = xyes && \
  15924. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  15925. echo "-- dynamic libsndio -> $sndio_lib"
  15926. cat >>confdefs.h <<_ACEOF
  15927. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  15928. _ACEOF
  15929. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  15930. else
  15931. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  15932. SUMMARY_audio="${SUMMARY_audio} sndio"
  15933. fi
  15934. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  15935. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  15936. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  15937. have_audio=yes
  15938. fi
  15939. fi
  15940. }
  15941. CheckDiskAudio()
  15942. {
  15943. # Check whether --enable-diskaudio was given.
  15944. if test "${enable_diskaudio+set}" = set; then :
  15945. enableval=$enable_diskaudio;
  15946. else
  15947. enable_diskaudio=yes
  15948. fi
  15949. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  15950. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  15951. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  15952. SUMMARY_audio="${SUMMARY_audio} disk"
  15953. fi
  15954. }
  15955. CheckDummyAudio()
  15956. {
  15957. # Check whether --enable-dummyaudio was given.
  15958. if test "${enable_dummyaudio+set}" = set; then :
  15959. enableval=$enable_dummyaudio;
  15960. else
  15961. enable_dummyaudio=yes
  15962. fi
  15963. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  15964. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  15965. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  15966. SUMMARY_audio="${SUMMARY_audio} dummy"
  15967. fi
  15968. }
  15969. CheckVisibilityHidden()
  15970. {
  15971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  15972. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  15973. have_gcc_fvisibility=no
  15974. visibility_CFLAGS="-fvisibility=hidden"
  15975. save_CFLAGS="$CFLAGS"
  15976. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  15977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15978. /* end confdefs.h. */
  15979. #if !defined(__GNUC__) || __GNUC__ < 4
  15980. #error SDL only uses visibility attributes in GCC 4 or newer
  15981. #endif
  15982. int
  15983. main ()
  15984. {
  15985. ;
  15986. return 0;
  15987. }
  15988. _ACEOF
  15989. if ac_fn_c_try_compile "$LINENO"; then :
  15990. have_gcc_fvisibility=yes
  15991. fi
  15992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  15994. $as_echo "$have_gcc_fvisibility" >&6; }
  15995. CFLAGS="$save_CFLAGS"
  15996. if test x$have_gcc_fvisibility = xyes; then
  15997. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  15998. fi
  15999. }
  16000. CheckStackBoundary()
  16001. {
  16002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16003. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16004. have_gcc_preferred_stack_boundary=no
  16005. save_CFLAGS="$CFLAGS"
  16006. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16008. /* end confdefs.h. */
  16009. int x = 0;
  16010. int
  16011. main ()
  16012. {
  16013. ;
  16014. return 0;
  16015. }
  16016. _ACEOF
  16017. if ac_fn_c_try_compile "$LINENO"; then :
  16018. have_gcc_preferred_stack_boundary=yes
  16019. fi
  16020. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16022. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16023. CFLAGS="$save_CFLAGS"
  16024. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16025. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16026. fi
  16027. }
  16028. CheckDeclarationAfterStatement()
  16029. {
  16030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16031. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16032. have_gcc_declaration_after_statement=no
  16033. save_CFLAGS="$CFLAGS"
  16034. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16036. /* end confdefs.h. */
  16037. int x = 0;
  16038. int
  16039. main ()
  16040. {
  16041. ;
  16042. return 0;
  16043. }
  16044. _ACEOF
  16045. if ac_fn_c_try_compile "$LINENO"; then :
  16046. have_gcc_declaration_after_statement=yes
  16047. fi
  16048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16050. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16051. CFLAGS="$save_CFLAGS"
  16052. if test x$have_gcc_declaration_after_statement = xyes; then
  16053. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16054. fi
  16055. }
  16056. CheckWarnAll()
  16057. {
  16058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16059. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16060. have_gcc_Wall=no
  16061. save_CFLAGS="$CFLAGS"
  16062. CFLAGS="$save_CFLAGS -Wall"
  16063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16064. /* end confdefs.h. */
  16065. int x = 0;
  16066. int
  16067. main ()
  16068. {
  16069. ;
  16070. return 0;
  16071. }
  16072. _ACEOF
  16073. if ac_fn_c_try_compile "$LINENO"; then :
  16074. have_gcc_Wall=yes
  16075. fi
  16076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16078. $as_echo "$have_gcc_Wall" >&6; }
  16079. CFLAGS="$save_CFLAGS"
  16080. if test x$have_gcc_Wall = xyes; then
  16081. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16083. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16084. need_gcc_Wno_multichar=no
  16085. case "$host" in
  16086. *-*-haiku*)
  16087. need_gcc_Wno_multichar=yes
  16088. ;;
  16089. esac
  16090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16091. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16092. if test x$need_gcc_Wno_multichar = xyes; then
  16093. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16094. fi
  16095. fi
  16096. }
  16097. CheckWayland()
  16098. {
  16099. # Check whether --enable-video-wayland was given.
  16100. if test "${enable_video_wayland+set}" = set; then :
  16101. enableval=$enable_video_wayland;
  16102. else
  16103. enable_video_wayland=yes
  16104. fi
  16105. # Check whether --enable-video-wayland-qt-touch was given.
  16106. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16107. enableval=$enable_video_wayland_qt_touch;
  16108. else
  16109. enable_video_wayland_qt_touch=yes
  16110. fi
  16111. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16112. # Extract the first word of "pkg-config", so it can be a program name with args.
  16113. set dummy pkg-config; ac_word=$2
  16114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16115. $as_echo_n "checking for $ac_word... " >&6; }
  16116. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16117. $as_echo_n "(cached) " >&6
  16118. else
  16119. case $PKG_CONFIG in
  16120. [\\/]* | ?:[\\/]*)
  16121. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16122. ;;
  16123. *)
  16124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16125. for as_dir in $PATH
  16126. do
  16127. IFS=$as_save_IFS
  16128. test -z "$as_dir" && as_dir=.
  16129. for ac_exec_ext in '' $ac_executable_extensions; do
  16130. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16131. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16132. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16133. break 2
  16134. fi
  16135. done
  16136. done
  16137. IFS=$as_save_IFS
  16138. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16139. ;;
  16140. esac
  16141. fi
  16142. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16143. if test -n "$PKG_CONFIG"; then
  16144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16145. $as_echo "$PKG_CONFIG" >&6; }
  16146. else
  16147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16148. $as_echo "no" >&6; }
  16149. fi
  16150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16151. $as_echo_n "checking for Wayland support... " >&6; }
  16152. video_wayland=no
  16153. if test x$PKG_CONFIG != xno && \
  16154. test x$video_opengl_egl = xyes && \
  16155. test x$video_opengles_v2 = xyes; then
  16156. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16157. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16158. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16159. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16160. WAYLAND_CORE_PROTOCOL_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-client`
  16161. WAYLAND_PROTOCOLS_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
  16162. video_wayland=yes
  16163. fi
  16164. fi
  16165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16166. $as_echo "$video_wayland" >&6; }
  16167. if test x$video_wayland = xyes; then
  16168. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16169. if test x$enable_video_wayland_qt_touch = xyes; then
  16170. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16171. fi
  16172. WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1"
  16173. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16174. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16175. # Check whether --enable-wayland-shared was given.
  16176. if test "${enable_wayland_shared+set}" = set; then :
  16177. enableval=$enable_wayland_shared;
  16178. else
  16179. enable_wayland_shared=maybe
  16180. fi
  16181. case "$host" in
  16182. *)
  16183. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16184. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16185. if test x$wayland_egl_lib = x; then
  16186. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16187. fi
  16188. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16189. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16190. ;;
  16191. esac
  16192. if test x$enable_wayland_shared = xmaybe; then
  16193. enable_wayland_shared=yes
  16194. fi
  16195. if test x$have_loadso != xyes && \
  16196. test x$enable_wayland_shared = xyes; then
  16197. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16198. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16199. enable_wayland_shared=no
  16200. fi
  16201. if test x$have_loadso = xyes && \
  16202. test x$enable_wayland_shared = xyes && \
  16203. test x$wayland_client_lib != x && \
  16204. test x$wayland_egl_lib != x && \
  16205. test x$wayland_cursor_lib != x && \
  16206. test x$xkbcommon_lib != x; then
  16207. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16208. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16209. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16210. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16211. cat >>confdefs.h <<_ACEOF
  16212. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16213. _ACEOF
  16214. cat >>confdefs.h <<_ACEOF
  16215. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16216. _ACEOF
  16217. cat >>confdefs.h <<_ACEOF
  16218. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16219. _ACEOF
  16220. cat >>confdefs.h <<_ACEOF
  16221. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16222. _ACEOF
  16223. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16224. else
  16225. enable_wayland_shared=no
  16226. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16227. SUMMARY_video="${SUMMARY_video} wayland"
  16228. fi
  16229. have_video=yes
  16230. fi
  16231. fi
  16232. }
  16233. CheckMir()
  16234. {
  16235. # Check whether --enable-video-mir was given.
  16236. if test "${enable_video_mir+set}" = set; then :
  16237. enableval=$enable_video_mir;
  16238. else
  16239. enable_video_mir=yes
  16240. fi
  16241. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16242. # Extract the first word of "pkg-config", so it can be a program name with args.
  16243. set dummy pkg-config; ac_word=$2
  16244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16245. $as_echo_n "checking for $ac_word... " >&6; }
  16246. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16247. $as_echo_n "(cached) " >&6
  16248. else
  16249. case $PKG_CONFIG in
  16250. [\\/]* | ?:[\\/]*)
  16251. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16252. ;;
  16253. *)
  16254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16255. for as_dir in $PATH
  16256. do
  16257. IFS=$as_save_IFS
  16258. test -z "$as_dir" && as_dir=.
  16259. for ac_exec_ext in '' $ac_executable_extensions; do
  16260. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16261. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16263. break 2
  16264. fi
  16265. done
  16266. done
  16267. IFS=$as_save_IFS
  16268. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16269. ;;
  16270. esac
  16271. fi
  16272. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16273. if test -n "$PKG_CONFIG"; then
  16274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16275. $as_echo "$PKG_CONFIG" >&6; }
  16276. else
  16277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16278. $as_echo "no" >&6; }
  16279. fi
  16280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16281. $as_echo_n "checking for Mir support... " >&6; }
  16282. video_mir=no
  16283. if test x$PKG_CONFIG != xno; then
  16284. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16285. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16286. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16287. save_CFLAGS="$CFLAGS"
  16288. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16290. /* end confdefs.h. */
  16291. #include <mir_toolkit/mir_client_library.h>
  16292. int
  16293. main ()
  16294. {
  16295. MirTouchAction actions = mir_touch_actions
  16296. ;
  16297. return 0;
  16298. }
  16299. _ACEOF
  16300. if ac_fn_c_try_compile "$LINENO"; then :
  16301. video_mir=yes
  16302. fi
  16303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16304. CFLAGS="$save_CFLAGS"
  16305. fi
  16306. fi
  16307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16308. $as_echo "$video_mir" >&6; }
  16309. if test x$video_mir = xyes; then
  16310. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16311. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16312. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16313. # Check whether --enable-mir-shared was given.
  16314. if test "${enable_mir_shared+set}" = set; then :
  16315. enableval=$enable_mir_shared;
  16316. else
  16317. enable_mir_shared=maybe
  16318. fi
  16319. case "$host" in
  16320. *)
  16321. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16322. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16323. ;;
  16324. esac
  16325. if test x$enable_mir_shared = xmaybe; then
  16326. enable_mir_shared=yes
  16327. fi
  16328. if test x$have_loadso != xyes && \
  16329. test x$enable_mir_shared = xyes; then
  16330. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16331. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16332. enable_mir_shared=no
  16333. fi
  16334. if test x$have_loadso = xyes && \
  16335. test x$enable_mir_shared = xyes && \
  16336. test x$mirclient_lib != x && \
  16337. test x$xkbcommon_lib != x; then
  16338. echo "-- dynamic libmirclient -> $mirclient_lib"
  16339. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16340. cat >>confdefs.h <<_ACEOF
  16341. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16342. _ACEOF
  16343. cat >>confdefs.h <<_ACEOF
  16344. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16345. _ACEOF
  16346. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16347. else
  16348. enable_mir_shared=no
  16349. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16350. SUMMARY_video="${SUMMARY_video} mir"
  16351. fi
  16352. have_video=yes
  16353. fi
  16354. fi
  16355. }
  16356. CheckNativeClient()
  16357. {
  16358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16359. /* end confdefs.h. */
  16360. #if !defined(__native_client__)
  16361. #error "NO NACL"
  16362. #endif
  16363. int
  16364. main ()
  16365. {
  16366. ;
  16367. return 0;
  16368. }
  16369. _ACEOF
  16370. if ac_fn_c_try_compile "$LINENO"; then :
  16371. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16372. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16373. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16374. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16375. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16376. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16377. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16378. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16379. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16380. SUMMARY_audio="${SUMMARY_audio} nacl"
  16381. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16382. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16383. fi
  16384. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16385. }
  16386. CheckX11()
  16387. {
  16388. # Check whether --enable-video-x11 was given.
  16389. if test "${enable_video_x11+set}" = set; then :
  16390. enableval=$enable_video_x11;
  16391. else
  16392. enable_video_x11=yes
  16393. fi
  16394. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16395. case "$host" in
  16396. *-*-darwin*)
  16397. # This isn't necessary for X11, but fixes GLX detection
  16398. if test "x$x_includes" = xNONE && \
  16399. test "x$x_libraries" = xNONE && \
  16400. test -d /usr/X11R6/include && \
  16401. test -d /usr/X11R6/lib; then
  16402. x_includes="/usr/X11R6/include"
  16403. x_libraries="/usr/X11R6/lib"
  16404. fi
  16405. ;;
  16406. esac
  16407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16408. $as_echo_n "checking for X... " >&6; }
  16409. # Check whether --with-x was given.
  16410. if test "${with_x+set}" = set; then :
  16411. withval=$with_x;
  16412. fi
  16413. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16414. if test "x$with_x" = xno; then
  16415. # The user explicitly disabled X.
  16416. have_x=disabled
  16417. else
  16418. case $x_includes,$x_libraries in #(
  16419. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16420. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16421. $as_echo_n "(cached) " >&6
  16422. else
  16423. # One or both of the vars are not set, and there is no cached value.
  16424. ac_x_includes=no ac_x_libraries=no
  16425. rm -f -r conftest.dir
  16426. if mkdir conftest.dir; then
  16427. cd conftest.dir
  16428. cat >Imakefile <<'_ACEOF'
  16429. incroot:
  16430. @echo incroot='${INCROOT}'
  16431. usrlibdir:
  16432. @echo usrlibdir='${USRLIBDIR}'
  16433. libdir:
  16434. @echo libdir='${LIBDIR}'
  16435. _ACEOF
  16436. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16437. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16438. for ac_var in incroot usrlibdir libdir; do
  16439. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16440. done
  16441. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16442. for ac_extension in a so sl dylib la dll; do
  16443. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16444. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16445. ac_im_usrlibdir=$ac_im_libdir; break
  16446. fi
  16447. done
  16448. # Screen out bogus values from the imake configuration. They are
  16449. # bogus both because they are the default anyway, and because
  16450. # using them would break gcc on systems where it needs fixed includes.
  16451. case $ac_im_incroot in
  16452. /usr/include) ac_x_includes= ;;
  16453. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16454. esac
  16455. case $ac_im_usrlibdir in
  16456. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16457. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16458. esac
  16459. fi
  16460. cd ..
  16461. rm -f -r conftest.dir
  16462. fi
  16463. # Standard set of common directories for X headers.
  16464. # Check X11 before X11Rn because it is often a symlink to the current release.
  16465. ac_x_header_dirs='
  16466. /usr/X11/include
  16467. /usr/X11R7/include
  16468. /usr/X11R6/include
  16469. /usr/X11R5/include
  16470. /usr/X11R4/include
  16471. /usr/include/X11
  16472. /usr/include/X11R7
  16473. /usr/include/X11R6
  16474. /usr/include/X11R5
  16475. /usr/include/X11R4
  16476. /usr/local/X11/include
  16477. /usr/local/X11R7/include
  16478. /usr/local/X11R6/include
  16479. /usr/local/X11R5/include
  16480. /usr/local/X11R4/include
  16481. /usr/local/include/X11
  16482. /usr/local/include/X11R7
  16483. /usr/local/include/X11R6
  16484. /usr/local/include/X11R5
  16485. /usr/local/include/X11R4
  16486. /usr/X386/include
  16487. /usr/x386/include
  16488. /usr/XFree86/include/X11
  16489. /usr/include
  16490. /usr/local/include
  16491. /usr/unsupported/include
  16492. /usr/athena/include
  16493. /usr/local/x11r5/include
  16494. /usr/lpp/Xamples/include
  16495. /usr/openwin/include
  16496. /usr/openwin/share/include'
  16497. if test "$ac_x_includes" = no; then
  16498. # Guess where to find include files, by looking for Xlib.h.
  16499. # First, try using that file with no special directory specified.
  16500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16501. /* end confdefs.h. */
  16502. #include <X11/Xlib.h>
  16503. _ACEOF
  16504. if ac_fn_c_try_cpp "$LINENO"; then :
  16505. # We can compile using X headers with no special include directory.
  16506. ac_x_includes=
  16507. else
  16508. for ac_dir in $ac_x_header_dirs; do
  16509. if test -r "$ac_dir/X11/Xlib.h"; then
  16510. ac_x_includes=$ac_dir
  16511. break
  16512. fi
  16513. done
  16514. fi
  16515. rm -f conftest.err conftest.i conftest.$ac_ext
  16516. fi # $ac_x_includes = no
  16517. if test "$ac_x_libraries" = no; then
  16518. # Check for the libraries.
  16519. # See if we find them without any special options.
  16520. # Don't add to $LIBS permanently.
  16521. ac_save_LIBS=$LIBS
  16522. LIBS="-lX11 $LIBS"
  16523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16524. /* end confdefs.h. */
  16525. #include <X11/Xlib.h>
  16526. int
  16527. main ()
  16528. {
  16529. XrmInitialize ()
  16530. ;
  16531. return 0;
  16532. }
  16533. _ACEOF
  16534. if ac_fn_c_try_link "$LINENO"; then :
  16535. LIBS=$ac_save_LIBS
  16536. # We can link X programs with no special library path.
  16537. ac_x_libraries=
  16538. else
  16539. LIBS=$ac_save_LIBS
  16540. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16541. do
  16542. # Don't even attempt the hair of trying to link an X program!
  16543. for ac_extension in a so sl dylib la dll; do
  16544. if test -r "$ac_dir/libX11.$ac_extension"; then
  16545. ac_x_libraries=$ac_dir
  16546. break 2
  16547. fi
  16548. done
  16549. done
  16550. fi
  16551. rm -f core conftest.err conftest.$ac_objext \
  16552. conftest$ac_exeext conftest.$ac_ext
  16553. fi # $ac_x_libraries = no
  16554. case $ac_x_includes,$ac_x_libraries in #(
  16555. no,* | *,no | *\'*)
  16556. # Didn't find X, or a directory has "'" in its name.
  16557. ac_cv_have_x="have_x=no";; #(
  16558. *)
  16559. # Record where we found X for the cache.
  16560. ac_cv_have_x="have_x=yes\
  16561. ac_x_includes='$ac_x_includes'\
  16562. ac_x_libraries='$ac_x_libraries'"
  16563. esac
  16564. fi
  16565. ;; #(
  16566. *) have_x=yes;;
  16567. esac
  16568. eval "$ac_cv_have_x"
  16569. fi # $with_x != no
  16570. if test "$have_x" != yes; then
  16571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16572. $as_echo "$have_x" >&6; }
  16573. no_x=yes
  16574. else
  16575. # If each of the values was on the command line, it overrides each guess.
  16576. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16577. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16578. # Update the cache value to reflect the command line values.
  16579. ac_cv_have_x="have_x=yes\
  16580. ac_x_includes='$x_includes'\
  16581. ac_x_libraries='$x_libraries'"
  16582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16583. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16584. fi
  16585. if test "$no_x" = yes; then
  16586. # Not all programs may use this symbol, but it does not hurt to define it.
  16587. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16588. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16589. else
  16590. if test -n "$x_includes"; then
  16591. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16592. fi
  16593. # It would also be nice to do this for all -L options, not just this one.
  16594. if test -n "$x_libraries"; then
  16595. X_LIBS="$X_LIBS -L$x_libraries"
  16596. # For Solaris; some versions of Sun CC require a space after -R and
  16597. # others require no space. Words are not sufficient . . . .
  16598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16599. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16600. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16601. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16602. ac_c_werror_flag=yes
  16603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16604. /* end confdefs.h. */
  16605. int
  16606. main ()
  16607. {
  16608. ;
  16609. return 0;
  16610. }
  16611. _ACEOF
  16612. if ac_fn_c_try_link "$LINENO"; then :
  16613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16614. $as_echo "no" >&6; }
  16615. X_LIBS="$X_LIBS -R$x_libraries"
  16616. else
  16617. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16619. /* end confdefs.h. */
  16620. int
  16621. main ()
  16622. {
  16623. ;
  16624. return 0;
  16625. }
  16626. _ACEOF
  16627. if ac_fn_c_try_link "$LINENO"; then :
  16628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16629. $as_echo "yes" >&6; }
  16630. X_LIBS="$X_LIBS -R $x_libraries"
  16631. else
  16632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16633. $as_echo "neither works" >&6; }
  16634. fi
  16635. rm -f core conftest.err conftest.$ac_objext \
  16636. conftest$ac_exeext conftest.$ac_ext
  16637. fi
  16638. rm -f core conftest.err conftest.$ac_objext \
  16639. conftest$ac_exeext conftest.$ac_ext
  16640. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16641. LIBS=$ac_xsave_LIBS
  16642. fi
  16643. # Check for system-dependent libraries X programs must link with.
  16644. # Do this before checking for the system-independent R6 libraries
  16645. # (-lICE), since we may need -lsocket or whatever for X linking.
  16646. if test "$ISC" = yes; then
  16647. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16648. else
  16649. # Martyn Johnson says this is needed for Ultrix, if the X
  16650. # libraries were built with DECnet support. And Karl Berry says
  16651. # the Alpha needs dnet_stub (dnet does not exist).
  16652. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16654. /* end confdefs.h. */
  16655. /* Override any GCC internal prototype to avoid an error.
  16656. Use char because int might match the return type of a GCC
  16657. builtin and then its argument prototype would still apply. */
  16658. #ifdef __cplusplus
  16659. extern "C"
  16660. #endif
  16661. char XOpenDisplay ();
  16662. int
  16663. main ()
  16664. {
  16665. return XOpenDisplay ();
  16666. ;
  16667. return 0;
  16668. }
  16669. _ACEOF
  16670. if ac_fn_c_try_link "$LINENO"; then :
  16671. else
  16672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16673. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16674. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16675. $as_echo_n "(cached) " >&6
  16676. else
  16677. ac_check_lib_save_LIBS=$LIBS
  16678. LIBS="-ldnet $LIBS"
  16679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16680. /* end confdefs.h. */
  16681. /* Override any GCC internal prototype to avoid an error.
  16682. Use char because int might match the return type of a GCC
  16683. builtin and then its argument prototype would still apply. */
  16684. #ifdef __cplusplus
  16685. extern "C"
  16686. #endif
  16687. char dnet_ntoa ();
  16688. int
  16689. main ()
  16690. {
  16691. return dnet_ntoa ();
  16692. ;
  16693. return 0;
  16694. }
  16695. _ACEOF
  16696. if ac_fn_c_try_link "$LINENO"; then :
  16697. ac_cv_lib_dnet_dnet_ntoa=yes
  16698. else
  16699. ac_cv_lib_dnet_dnet_ntoa=no
  16700. fi
  16701. rm -f core conftest.err conftest.$ac_objext \
  16702. conftest$ac_exeext conftest.$ac_ext
  16703. LIBS=$ac_check_lib_save_LIBS
  16704. fi
  16705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16706. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  16707. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  16708. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16709. fi
  16710. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  16712. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  16713. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  16714. $as_echo_n "(cached) " >&6
  16715. else
  16716. ac_check_lib_save_LIBS=$LIBS
  16717. LIBS="-ldnet_stub $LIBS"
  16718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16719. /* end confdefs.h. */
  16720. /* Override any GCC internal prototype to avoid an error.
  16721. Use char because int might match the return type of a GCC
  16722. builtin and then its argument prototype would still apply. */
  16723. #ifdef __cplusplus
  16724. extern "C"
  16725. #endif
  16726. char dnet_ntoa ();
  16727. int
  16728. main ()
  16729. {
  16730. return dnet_ntoa ();
  16731. ;
  16732. return 0;
  16733. }
  16734. _ACEOF
  16735. if ac_fn_c_try_link "$LINENO"; then :
  16736. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16737. else
  16738. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16739. fi
  16740. rm -f core conftest.err conftest.$ac_objext \
  16741. conftest$ac_exeext conftest.$ac_ext
  16742. LIBS=$ac_check_lib_save_LIBS
  16743. fi
  16744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16745. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  16746. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  16747. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16748. fi
  16749. fi
  16750. fi
  16751. rm -f core conftest.err conftest.$ac_objext \
  16752. conftest$ac_exeext conftest.$ac_ext
  16753. LIBS="$ac_xsave_LIBS"
  16754. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  16755. # to get the SysV transport functions.
  16756. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  16757. # needs -lnsl.
  16758. # The nsl library prevents programs from opening the X display
  16759. # on Irix 5.2, according to T.E. Dickey.
  16760. # The functions gethostbyname, getservbyname, and inet_addr are
  16761. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  16762. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16763. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16764. fi
  16765. if test $ac_cv_func_gethostbyname = no; then
  16766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16767. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16768. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16769. $as_echo_n "(cached) " >&6
  16770. else
  16771. ac_check_lib_save_LIBS=$LIBS
  16772. LIBS="-lnsl $LIBS"
  16773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16774. /* end confdefs.h. */
  16775. /* Override any GCC internal prototype to avoid an error.
  16776. Use char because int might match the return type of a GCC
  16777. builtin and then its argument prototype would still apply. */
  16778. #ifdef __cplusplus
  16779. extern "C"
  16780. #endif
  16781. char gethostbyname ();
  16782. int
  16783. main ()
  16784. {
  16785. return gethostbyname ();
  16786. ;
  16787. return 0;
  16788. }
  16789. _ACEOF
  16790. if ac_fn_c_try_link "$LINENO"; then :
  16791. ac_cv_lib_nsl_gethostbyname=yes
  16792. else
  16793. ac_cv_lib_nsl_gethostbyname=no
  16794. fi
  16795. rm -f core conftest.err conftest.$ac_objext \
  16796. conftest$ac_exeext conftest.$ac_ext
  16797. LIBS=$ac_check_lib_save_LIBS
  16798. fi
  16799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16800. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16801. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16802. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  16803. fi
  16804. if test $ac_cv_lib_nsl_gethostbyname = no; then
  16805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  16806. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  16807. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  16808. $as_echo_n "(cached) " >&6
  16809. else
  16810. ac_check_lib_save_LIBS=$LIBS
  16811. LIBS="-lbsd $LIBS"
  16812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16813. /* end confdefs.h. */
  16814. /* Override any GCC internal prototype to avoid an error.
  16815. Use char because int might match the return type of a GCC
  16816. builtin and then its argument prototype would still apply. */
  16817. #ifdef __cplusplus
  16818. extern "C"
  16819. #endif
  16820. char gethostbyname ();
  16821. int
  16822. main ()
  16823. {
  16824. return gethostbyname ();
  16825. ;
  16826. return 0;
  16827. }
  16828. _ACEOF
  16829. if ac_fn_c_try_link "$LINENO"; then :
  16830. ac_cv_lib_bsd_gethostbyname=yes
  16831. else
  16832. ac_cv_lib_bsd_gethostbyname=no
  16833. fi
  16834. rm -f core conftest.err conftest.$ac_objext \
  16835. conftest$ac_exeext conftest.$ac_ext
  16836. LIBS=$ac_check_lib_save_LIBS
  16837. fi
  16838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  16839. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  16840. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  16841. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  16842. fi
  16843. fi
  16844. fi
  16845. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  16846. # socket/setsockopt and other routines are undefined under SCO ODT
  16847. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  16848. # on later versions), says Simon Leinen: it contains gethostby*
  16849. # variants that don't use the name server (or something). -lsocket
  16850. # must be given before -lnsl if both are needed. We assume that
  16851. # if connect needs -lnsl, so does gethostbyname.
  16852. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  16853. if test "x$ac_cv_func_connect" = xyes; then :
  16854. fi
  16855. if test $ac_cv_func_connect = no; then
  16856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  16857. $as_echo_n "checking for connect in -lsocket... " >&6; }
  16858. if ${ac_cv_lib_socket_connect+:} false; then :
  16859. $as_echo_n "(cached) " >&6
  16860. else
  16861. ac_check_lib_save_LIBS=$LIBS
  16862. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  16863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16864. /* end confdefs.h. */
  16865. /* Override any GCC internal prototype to avoid an error.
  16866. Use char because int might match the return type of a GCC
  16867. builtin and then its argument prototype would still apply. */
  16868. #ifdef __cplusplus
  16869. extern "C"
  16870. #endif
  16871. char connect ();
  16872. int
  16873. main ()
  16874. {
  16875. return connect ();
  16876. ;
  16877. return 0;
  16878. }
  16879. _ACEOF
  16880. if ac_fn_c_try_link "$LINENO"; then :
  16881. ac_cv_lib_socket_connect=yes
  16882. else
  16883. ac_cv_lib_socket_connect=no
  16884. fi
  16885. rm -f core conftest.err conftest.$ac_objext \
  16886. conftest$ac_exeext conftest.$ac_ext
  16887. LIBS=$ac_check_lib_save_LIBS
  16888. fi
  16889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  16890. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  16891. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  16892. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  16893. fi
  16894. fi
  16895. # Guillermo Gomez says -lposix is necessary on A/UX.
  16896. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  16897. if test "x$ac_cv_func_remove" = xyes; then :
  16898. fi
  16899. if test $ac_cv_func_remove = no; then
  16900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  16901. $as_echo_n "checking for remove in -lposix... " >&6; }
  16902. if ${ac_cv_lib_posix_remove+:} false; then :
  16903. $as_echo_n "(cached) " >&6
  16904. else
  16905. ac_check_lib_save_LIBS=$LIBS
  16906. LIBS="-lposix $LIBS"
  16907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16908. /* end confdefs.h. */
  16909. /* Override any GCC internal prototype to avoid an error.
  16910. Use char because int might match the return type of a GCC
  16911. builtin and then its argument prototype would still apply. */
  16912. #ifdef __cplusplus
  16913. extern "C"
  16914. #endif
  16915. char remove ();
  16916. int
  16917. main ()
  16918. {
  16919. return remove ();
  16920. ;
  16921. return 0;
  16922. }
  16923. _ACEOF
  16924. if ac_fn_c_try_link "$LINENO"; then :
  16925. ac_cv_lib_posix_remove=yes
  16926. else
  16927. ac_cv_lib_posix_remove=no
  16928. fi
  16929. rm -f core conftest.err conftest.$ac_objext \
  16930. conftest$ac_exeext conftest.$ac_ext
  16931. LIBS=$ac_check_lib_save_LIBS
  16932. fi
  16933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  16934. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  16935. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  16936. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  16937. fi
  16938. fi
  16939. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  16940. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  16941. if test "x$ac_cv_func_shmat" = xyes; then :
  16942. fi
  16943. if test $ac_cv_func_shmat = no; then
  16944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  16945. $as_echo_n "checking for shmat in -lipc... " >&6; }
  16946. if ${ac_cv_lib_ipc_shmat+:} false; then :
  16947. $as_echo_n "(cached) " >&6
  16948. else
  16949. ac_check_lib_save_LIBS=$LIBS
  16950. LIBS="-lipc $LIBS"
  16951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16952. /* end confdefs.h. */
  16953. /* Override any GCC internal prototype to avoid an error.
  16954. Use char because int might match the return type of a GCC
  16955. builtin and then its argument prototype would still apply. */
  16956. #ifdef __cplusplus
  16957. extern "C"
  16958. #endif
  16959. char shmat ();
  16960. int
  16961. main ()
  16962. {
  16963. return shmat ();
  16964. ;
  16965. return 0;
  16966. }
  16967. _ACEOF
  16968. if ac_fn_c_try_link "$LINENO"; then :
  16969. ac_cv_lib_ipc_shmat=yes
  16970. else
  16971. ac_cv_lib_ipc_shmat=no
  16972. fi
  16973. rm -f core conftest.err conftest.$ac_objext \
  16974. conftest$ac_exeext conftest.$ac_ext
  16975. LIBS=$ac_check_lib_save_LIBS
  16976. fi
  16977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  16978. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  16979. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  16980. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  16981. fi
  16982. fi
  16983. fi
  16984. # Check for libraries that X11R6 Xt/Xaw programs need.
  16985. ac_save_LDFLAGS=$LDFLAGS
  16986. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  16987. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  16988. # check for ICE first), but we must link in the order -lSM -lICE or
  16989. # we get undefined symbols. So assume we have SM if we have ICE.
  16990. # These have to be linked with before -lX11, unlike the other
  16991. # libraries we check for below, so use a different variable.
  16992. # John Interrante, Karl Berry
  16993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  16994. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  16995. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  16996. $as_echo_n "(cached) " >&6
  16997. else
  16998. ac_check_lib_save_LIBS=$LIBS
  16999. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17001. /* end confdefs.h. */
  17002. /* Override any GCC internal prototype to avoid an error.
  17003. Use char because int might match the return type of a GCC
  17004. builtin and then its argument prototype would still apply. */
  17005. #ifdef __cplusplus
  17006. extern "C"
  17007. #endif
  17008. char IceConnectionNumber ();
  17009. int
  17010. main ()
  17011. {
  17012. return IceConnectionNumber ();
  17013. ;
  17014. return 0;
  17015. }
  17016. _ACEOF
  17017. if ac_fn_c_try_link "$LINENO"; then :
  17018. ac_cv_lib_ICE_IceConnectionNumber=yes
  17019. else
  17020. ac_cv_lib_ICE_IceConnectionNumber=no
  17021. fi
  17022. rm -f core conftest.err conftest.$ac_objext \
  17023. conftest$ac_exeext conftest.$ac_ext
  17024. LIBS=$ac_check_lib_save_LIBS
  17025. fi
  17026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17027. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17028. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17029. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17030. fi
  17031. LDFLAGS=$ac_save_LDFLAGS
  17032. fi
  17033. if test x$have_x = xyes; then
  17034. # Check whether --enable-x11-shared was given.
  17035. if test "${enable_x11_shared+set}" = set; then :
  17036. enableval=$enable_x11_shared;
  17037. else
  17038. enable_x11_shared=maybe
  17039. fi
  17040. case "$host" in
  17041. *-*-darwin*)
  17042. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17043. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17044. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17045. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17046. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17047. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17048. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17049. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17050. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17051. ;;
  17052. *-*-openbsd*)
  17053. x11_lib='libX11.so'
  17054. x11ext_lib='libXext.so'
  17055. xcursor_lib='libXcursor.so'
  17056. xinerama_lib='libXinerama.so'
  17057. xinput_lib='libXi.so'
  17058. xrandr_lib='libXrandr.so'
  17059. xrender_lib='libXrender.so'
  17060. xss_lib='libXss.so'
  17061. xvidmode_lib='libXxf86vm.so'
  17062. ;;
  17063. *)
  17064. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17065. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17066. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17067. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17068. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17069. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17070. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17071. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17072. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17073. ;;
  17074. esac
  17075. if test x$ac_cv_func_shmat != xyes; then
  17076. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17077. fi
  17078. CFLAGS="$CFLAGS $X_CFLAGS"
  17079. LDFLAGS="$LDFLAGS $X_LIBS"
  17080. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17081. #include <X11/Xproto.h>
  17082. "
  17083. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17084. have_xext_h_hdr=yes
  17085. else
  17086. have_xext_h_hdr=no
  17087. fi
  17088. if test x$have_xext_h_hdr != xyes; then
  17089. as_fn_error $? "
  17090. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17091. " "$LINENO" 5
  17092. fi
  17093. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17094. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17095. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17096. # Needed so SDL applications can include SDL_syswm.h
  17097. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17098. if test x$enable_x11_shared = xmaybe; then
  17099. enable_x11_shared=yes
  17100. fi
  17101. if test x$have_loadso != xyes && \
  17102. test x$enable_x11_shared = xyes; then
  17103. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17104. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17105. enable_x11_shared=no
  17106. fi
  17107. if test x$have_loadso = xyes && \
  17108. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17109. echo "-- dynamic libX11 -> $x11_lib"
  17110. echo "-- dynamic libX11ext -> $x11ext_lib"
  17111. cat >>confdefs.h <<_ACEOF
  17112. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17113. _ACEOF
  17114. cat >>confdefs.h <<_ACEOF
  17115. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17116. _ACEOF
  17117. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17118. else
  17119. enable_x11_shared=no
  17120. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17121. SUMMARY_video="${SUMMARY_video} x11"
  17122. fi
  17123. have_video=yes
  17124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17125. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17126. have_const_param_XextAddDisplay=no
  17127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17128. /* end confdefs.h. */
  17129. #include <X11/Xlib.h>
  17130. #include <X11/Xproto.h>
  17131. #include <X11/extensions/Xext.h>
  17132. #include <X11/extensions/extutil.h>
  17133. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17134. int
  17135. main ()
  17136. {
  17137. ;
  17138. return 0;
  17139. }
  17140. _ACEOF
  17141. if ac_fn_c_try_compile "$LINENO"; then :
  17142. have_const_param_XextAddDisplay=yes
  17143. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17144. fi
  17145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17147. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17149. $as_echo_n "checking for XGenericEvent... " >&6; }
  17150. have_XGenericEvent=no
  17151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17152. /* end confdefs.h. */
  17153. #include <X11/Xlib.h>
  17154. int
  17155. main ()
  17156. {
  17157. Display *display;
  17158. XEvent event;
  17159. XGenericEventCookie *cookie = &event.xcookie;
  17160. XNextEvent(display, &event);
  17161. XGetEventData(display, cookie);
  17162. XFreeEventData(display, cookie);
  17163. ;
  17164. return 0;
  17165. }
  17166. _ACEOF
  17167. if ac_fn_c_try_compile "$LINENO"; then :
  17168. have_XGenericEvent=yes
  17169. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17170. fi
  17171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17173. $as_echo "$have_XGenericEvent" >&6; }
  17174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17175. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17176. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17177. $as_echo_n "(cached) " >&6
  17178. else
  17179. ac_check_lib_save_LIBS=$LIBS
  17180. LIBS="-lX11 $LIBS"
  17181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17182. /* end confdefs.h. */
  17183. /* Override any GCC internal prototype to avoid an error.
  17184. Use char because int might match the return type of a GCC
  17185. builtin and then its argument prototype would still apply. */
  17186. #ifdef __cplusplus
  17187. extern "C"
  17188. #endif
  17189. char XkbKeycodeToKeysym ();
  17190. int
  17191. main ()
  17192. {
  17193. return XkbKeycodeToKeysym ();
  17194. ;
  17195. return 0;
  17196. }
  17197. _ACEOF
  17198. if ac_fn_c_try_link "$LINENO"; then :
  17199. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17200. else
  17201. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17202. fi
  17203. rm -f core conftest.err conftest.$ac_objext \
  17204. conftest$ac_exeext conftest.$ac_ext
  17205. LIBS=$ac_check_lib_save_LIBS
  17206. fi
  17207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17208. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17209. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17210. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17211. fi
  17212. # Check whether --enable-video-x11-xcursor was given.
  17213. if test "${enable_video_x11_xcursor+set}" = set; then :
  17214. enableval=$enable_video_x11_xcursor;
  17215. else
  17216. enable_video_x11_xcursor=yes
  17217. fi
  17218. if test x$enable_video_x11_xcursor = xyes; then
  17219. definitely_enable_video_x11_xcursor=no
  17220. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17221. "
  17222. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17223. have_xcursor_h_hdr=yes
  17224. else
  17225. have_xcursor_h_hdr=no
  17226. fi
  17227. if test x$have_xcursor_h_hdr = xyes; then
  17228. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17229. echo "-- dynamic libXcursor -> $xcursor_lib"
  17230. cat >>confdefs.h <<_ACEOF
  17231. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17232. _ACEOF
  17233. definitely_enable_video_x11_xcursor=yes
  17234. else
  17235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17236. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17237. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17238. $as_echo_n "(cached) " >&6
  17239. else
  17240. ac_check_lib_save_LIBS=$LIBS
  17241. LIBS="-lXcursor $LIBS"
  17242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17243. /* end confdefs.h. */
  17244. /* Override any GCC internal prototype to avoid an error.
  17245. Use char because int might match the return type of a GCC
  17246. builtin and then its argument prototype would still apply. */
  17247. #ifdef __cplusplus
  17248. extern "C"
  17249. #endif
  17250. char XcursorImageCreate ();
  17251. int
  17252. main ()
  17253. {
  17254. return XcursorImageCreate ();
  17255. ;
  17256. return 0;
  17257. }
  17258. _ACEOF
  17259. if ac_fn_c_try_link "$LINENO"; then :
  17260. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17261. else
  17262. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17263. fi
  17264. rm -f core conftest.err conftest.$ac_objext \
  17265. conftest$ac_exeext conftest.$ac_ext
  17266. LIBS=$ac_check_lib_save_LIBS
  17267. fi
  17268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17269. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17270. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17271. have_xcursor_lib=yes
  17272. fi
  17273. if test x$have_xcursor_lib = xyes ; then
  17274. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17275. definitely_enable_video_x11_xcursor=yes
  17276. fi
  17277. fi
  17278. fi
  17279. fi
  17280. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17281. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17282. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17283. fi
  17284. # Check whether --enable-video-x11-xdbe was given.
  17285. if test "${enable_video_x11_xdbe+set}" = set; then :
  17286. enableval=$enable_video_x11_xdbe;
  17287. else
  17288. enable_video_x11_xdbe=yes
  17289. fi
  17290. if test x$enable_video_x11_xdbe = xyes; then
  17291. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17292. "
  17293. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17294. have_dbe_h_hdr=yes
  17295. else
  17296. have_dbe_h_hdr=no
  17297. fi
  17298. if test x$have_dbe_h_hdr = xyes; then
  17299. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17300. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17301. fi
  17302. fi
  17303. # Check whether --enable-video-x11-xinerama was given.
  17304. if test "${enable_video_x11_xinerama+set}" = set; then :
  17305. enableval=$enable_video_x11_xinerama;
  17306. else
  17307. enable_video_x11_xinerama=yes
  17308. fi
  17309. if test x$enable_video_x11_xinerama = xyes; then
  17310. definitely_enable_video_x11_xinerama=no
  17311. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17312. "
  17313. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17314. have_xinerama_h_hdr=yes
  17315. else
  17316. have_xinerama_h_hdr=no
  17317. fi
  17318. if test x$have_xinerama_h_hdr = xyes; then
  17319. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17320. echo "-- dynamic libXinerama -> $xinerama_lib"
  17321. cat >>confdefs.h <<_ACEOF
  17322. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17323. _ACEOF
  17324. definitely_enable_video_x11_xinerama=yes
  17325. else
  17326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17327. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17328. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17329. $as_echo_n "(cached) " >&6
  17330. else
  17331. ac_check_lib_save_LIBS=$LIBS
  17332. LIBS="-lXinerama $LIBS"
  17333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17334. /* end confdefs.h. */
  17335. /* Override any GCC internal prototype to avoid an error.
  17336. Use char because int might match the return type of a GCC
  17337. builtin and then its argument prototype would still apply. */
  17338. #ifdef __cplusplus
  17339. extern "C"
  17340. #endif
  17341. char XineramaQueryExtension ();
  17342. int
  17343. main ()
  17344. {
  17345. return XineramaQueryExtension ();
  17346. ;
  17347. return 0;
  17348. }
  17349. _ACEOF
  17350. if ac_fn_c_try_link "$LINENO"; then :
  17351. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17352. else
  17353. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17354. fi
  17355. rm -f core conftest.err conftest.$ac_objext \
  17356. conftest$ac_exeext conftest.$ac_ext
  17357. LIBS=$ac_check_lib_save_LIBS
  17358. fi
  17359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17360. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17361. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17362. have_xinerama_lib=yes
  17363. fi
  17364. if test x$have_xinerama_lib = xyes ; then
  17365. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17366. definitely_enable_video_x11_xinerama=yes
  17367. fi
  17368. fi
  17369. fi
  17370. fi
  17371. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17372. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17373. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17374. fi
  17375. # Check whether --enable-video-x11-xinput was given.
  17376. if test "${enable_video_x11_xinput+set}" = set; then :
  17377. enableval=$enable_video_x11_xinput;
  17378. else
  17379. enable_video_x11_xinput=yes
  17380. fi
  17381. if test x$enable_video_x11_xinput = xyes; then
  17382. definitely_enable_video_x11_xinput=no
  17383. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17384. "
  17385. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17386. have_xinput_h_hdr=yes
  17387. else
  17388. have_xinput_h_hdr=no
  17389. fi
  17390. if test x$have_xinput_h_hdr = xyes; then
  17391. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17392. echo "-- dynamic libXi -> $xinput_lib"
  17393. cat >>confdefs.h <<_ACEOF
  17394. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17395. _ACEOF
  17396. definitely_enable_video_x11_xinput=yes
  17397. else
  17398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17399. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17400. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17401. $as_echo_n "(cached) " >&6
  17402. else
  17403. ac_check_lib_save_LIBS=$LIBS
  17404. LIBS="-lXi $LIBS"
  17405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17406. /* end confdefs.h. */
  17407. /* Override any GCC internal prototype to avoid an error.
  17408. Use char because int might match the return type of a GCC
  17409. builtin and then its argument prototype would still apply. */
  17410. #ifdef __cplusplus
  17411. extern "C"
  17412. #endif
  17413. char XOpenDevice ();
  17414. int
  17415. main ()
  17416. {
  17417. return XOpenDevice ();
  17418. ;
  17419. return 0;
  17420. }
  17421. _ACEOF
  17422. if ac_fn_c_try_link "$LINENO"; then :
  17423. ac_cv_lib_Xi_XOpenDevice=yes
  17424. else
  17425. ac_cv_lib_Xi_XOpenDevice=no
  17426. fi
  17427. rm -f core conftest.err conftest.$ac_objext \
  17428. conftest$ac_exeext conftest.$ac_ext
  17429. LIBS=$ac_check_lib_save_LIBS
  17430. fi
  17431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17432. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17433. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17434. have_xinput_lib=yes
  17435. fi
  17436. if test x$have_xinput_lib = xyes ; then
  17437. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17438. definitely_enable_video_x11_xinput=yes
  17439. fi
  17440. fi
  17441. fi
  17442. fi
  17443. if test x$definitely_enable_video_x11_xinput = xyes; then
  17444. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17445. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17447. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17448. have_xinput2_multitouch=no
  17449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17450. /* end confdefs.h. */
  17451. #include <X11/Xlib.h>
  17452. #include <X11/Xproto.h>
  17453. #include <X11/extensions/XInput2.h>
  17454. int
  17455. main ()
  17456. {
  17457. int event_type = XI_TouchBegin;
  17458. XITouchClassInfo *t;
  17459. ;
  17460. return 0;
  17461. }
  17462. _ACEOF
  17463. if ac_fn_c_try_compile "$LINENO"; then :
  17464. have_xinput2_multitouch=yes
  17465. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17466. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17467. fi
  17468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17470. $as_echo "$have_xinput2_multitouch" >&6; }
  17471. fi
  17472. # Check whether --enable-video-x11-xrandr was given.
  17473. if test "${enable_video_x11_xrandr+set}" = set; then :
  17474. enableval=$enable_video_x11_xrandr;
  17475. else
  17476. enable_video_x11_xrandr=yes
  17477. fi
  17478. if test x$enable_video_x11_xrandr = xyes; then
  17479. definitely_enable_video_x11_xrandr=no
  17480. have_xrandr_h_hdr=no
  17481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17482. /* end confdefs.h. */
  17483. #include <X11/Xlib.h>
  17484. #include <X11/extensions/Xrandr.h>
  17485. int
  17486. main ()
  17487. {
  17488. XRRScreenResources *res = NULL;
  17489. ;
  17490. return 0;
  17491. }
  17492. _ACEOF
  17493. if ac_fn_c_try_compile "$LINENO"; then :
  17494. have_xrandr_h_hdr=yes
  17495. fi
  17496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17497. if test x$have_xrandr_h_hdr = xyes; then
  17498. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17499. echo "-- dynamic libXrandr -> $xrandr_lib"
  17500. cat >>confdefs.h <<_ACEOF
  17501. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17502. _ACEOF
  17503. definitely_enable_video_x11_xrandr=yes
  17504. else
  17505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17506. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17507. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17508. $as_echo_n "(cached) " >&6
  17509. else
  17510. ac_check_lib_save_LIBS=$LIBS
  17511. LIBS="-lXrandr $LIBS"
  17512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17513. /* end confdefs.h. */
  17514. /* Override any GCC internal prototype to avoid an error.
  17515. Use char because int might match the return type of a GCC
  17516. builtin and then its argument prototype would still apply. */
  17517. #ifdef __cplusplus
  17518. extern "C"
  17519. #endif
  17520. char XRRQueryExtension ();
  17521. int
  17522. main ()
  17523. {
  17524. return XRRQueryExtension ();
  17525. ;
  17526. return 0;
  17527. }
  17528. _ACEOF
  17529. if ac_fn_c_try_link "$LINENO"; then :
  17530. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17531. else
  17532. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17533. fi
  17534. rm -f core conftest.err conftest.$ac_objext \
  17535. conftest$ac_exeext conftest.$ac_ext
  17536. LIBS=$ac_check_lib_save_LIBS
  17537. fi
  17538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17539. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17540. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17541. have_xrandr_lib=yes
  17542. fi
  17543. if test x$have_xrandr_lib = xyes ; then
  17544. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17545. definitely_enable_video_x11_xrandr=yes
  17546. fi
  17547. fi
  17548. fi
  17549. fi
  17550. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17551. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17552. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17553. fi
  17554. # Check whether --enable-video-x11-scrnsaver was given.
  17555. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17556. enableval=$enable_video_x11_scrnsaver;
  17557. else
  17558. enable_video_x11_scrnsaver=yes
  17559. fi
  17560. if test x$enable_video_x11_scrnsaver = xyes; then
  17561. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17562. "
  17563. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17564. have_scrnsaver_h_hdr=yes
  17565. else
  17566. have_scrnsaver_h_hdr=no
  17567. fi
  17568. if test x$have_scrnsaver_h_hdr = xyes; then
  17569. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17570. echo "-- dynamic libXss -> $xss_lib"
  17571. cat >>confdefs.h <<_ACEOF
  17572. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17573. _ACEOF
  17574. definitely_enable_video_x11_scrnsaver=yes
  17575. else
  17576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17577. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17578. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17579. $as_echo_n "(cached) " >&6
  17580. else
  17581. ac_check_lib_save_LIBS=$LIBS
  17582. LIBS="-lXss $LIBS"
  17583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17584. /* end confdefs.h. */
  17585. /* Override any GCC internal prototype to avoid an error.
  17586. Use char because int might match the return type of a GCC
  17587. builtin and then its argument prototype would still apply. */
  17588. #ifdef __cplusplus
  17589. extern "C"
  17590. #endif
  17591. char XScreenSaverSuspend ();
  17592. int
  17593. main ()
  17594. {
  17595. return XScreenSaverSuspend ();
  17596. ;
  17597. return 0;
  17598. }
  17599. _ACEOF
  17600. if ac_fn_c_try_link "$LINENO"; then :
  17601. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17602. else
  17603. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17604. fi
  17605. rm -f core conftest.err conftest.$ac_objext \
  17606. conftest$ac_exeext conftest.$ac_ext
  17607. LIBS=$ac_check_lib_save_LIBS
  17608. fi
  17609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17610. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17611. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17612. have_xss_lib=yes
  17613. fi
  17614. if test x$have_xss_lib = xyes ; then
  17615. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17616. definitely_enable_video_x11_scrnsaver=yes
  17617. fi
  17618. fi
  17619. fi
  17620. fi
  17621. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17622. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17623. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17624. fi
  17625. # Check whether --enable-video-x11-xshape was given.
  17626. if test "${enable_video_x11_xshape+set}" = set; then :
  17627. enableval=$enable_video_x11_xshape;
  17628. else
  17629. enable_video_x11_xshape=yes
  17630. fi
  17631. if test x$enable_video_x11_xshape = xyes; then
  17632. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17633. "
  17634. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17635. have_shape_h_hdr=yes
  17636. else
  17637. have_shape_h_hdr=no
  17638. fi
  17639. if test x$have_shape_h_hdr = xyes; then
  17640. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17641. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  17642. fi
  17643. fi
  17644. # Check whether --enable-video-x11-vm was given.
  17645. if test "${enable_video_x11_vm+set}" = set; then :
  17646. enableval=$enable_video_x11_vm;
  17647. else
  17648. enable_video_x11_vm=yes
  17649. fi
  17650. if test x$enable_video_x11_vm = xyes; then
  17651. definitely_enable_video_x11_vm=no
  17652. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17653. "
  17654. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17655. have_vm_h_hdr=yes
  17656. else
  17657. have_vm_h_hdr=no
  17658. fi
  17659. if test x$have_vm_h_hdr = xyes; then
  17660. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17661. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17662. cat >>confdefs.h <<_ACEOF
  17663. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17664. _ACEOF
  17665. definitely_enable_video_x11_vm=yes
  17666. else
  17667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17668. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17669. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17670. $as_echo_n "(cached) " >&6
  17671. else
  17672. ac_check_lib_save_LIBS=$LIBS
  17673. LIBS="-lXxf86vm $LIBS"
  17674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17675. /* end confdefs.h. */
  17676. /* Override any GCC internal prototype to avoid an error.
  17677. Use char because int might match the return type of a GCC
  17678. builtin and then its argument prototype would still apply. */
  17679. #ifdef __cplusplus
  17680. extern "C"
  17681. #endif
  17682. char XF86VidModeQueryVersion ();
  17683. int
  17684. main ()
  17685. {
  17686. return XF86VidModeQueryVersion ();
  17687. ;
  17688. return 0;
  17689. }
  17690. _ACEOF
  17691. if ac_fn_c_try_link "$LINENO"; then :
  17692. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17693. else
  17694. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17695. fi
  17696. rm -f core conftest.err conftest.$ac_objext \
  17697. conftest$ac_exeext conftest.$ac_ext
  17698. LIBS=$ac_check_lib_save_LIBS
  17699. fi
  17700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17701. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17702. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  17703. have_vm_lib=yes
  17704. fi
  17705. if test x$have_vm_lib = xyes ; then
  17706. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  17707. definitely_enable_video_x11_vm=yes
  17708. fi
  17709. fi
  17710. fi
  17711. fi
  17712. if test x$definitely_enable_video_x11_vm = xyes; then
  17713. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  17714. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  17715. fi
  17716. fi
  17717. fi
  17718. }
  17719. CheckVivanteVideo()
  17720. {
  17721. # Check whether --enable-video-vivante was given.
  17722. if test "${enable_video_vivante+set}" = set; then :
  17723. enableval=$enable_video_vivante;
  17724. else
  17725. enable_video_vivante=yes
  17726. fi
  17727. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  17728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  17729. $as_echo_n "checking for Vivante VDK API... " >&6; }
  17730. have_vivante_vdk=no
  17731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17732. /* end confdefs.h. */
  17733. #define LINUX
  17734. #define EGL_API_FB
  17735. #include <gc_vdk.h>
  17736. int
  17737. main ()
  17738. {
  17739. ;
  17740. return 0;
  17741. }
  17742. _ACEOF
  17743. if ac_fn_c_try_compile "$LINENO"; then :
  17744. have_vivante_vdk=yes
  17745. fi
  17746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  17748. $as_echo "$have_vivante_vdk" >&6; }
  17749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  17750. $as_echo_n "checking for Vivante FB API... " >&6; }
  17751. have_vivante_egl=no
  17752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17753. /* end confdefs.h. */
  17754. #define LINUX
  17755. #define EGL_API_FB
  17756. #include <EGL/eglvivante.h>
  17757. int
  17758. main ()
  17759. {
  17760. ;
  17761. return 0;
  17762. }
  17763. _ACEOF
  17764. if ac_fn_c_try_compile "$LINENO"; then :
  17765. have_vivante_egl=yes
  17766. fi
  17767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  17769. $as_echo "$have_vivante_egl" >&6; }
  17770. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  17771. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  17772. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  17773. if test x$have_vivante_vdk = xyes; then
  17774. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  17775. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  17776. fi
  17777. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  17778. SUMMARY_video="${SUMMARY_video} vivante"
  17779. have_video=yes
  17780. fi
  17781. fi
  17782. }
  17783. CheckHaikuVideo()
  17784. {
  17785. if test x$enable_video = xyes; then
  17786. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  17787. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  17788. have_video=yes
  17789. SUMMARY_video="${SUMMARY_video} haiku"
  17790. fi
  17791. }
  17792. CheckCOCOA()
  17793. {
  17794. # Check whether --enable-video-cocoa was given.
  17795. if test "${enable_video_cocoa+set}" = set; then :
  17796. enableval=$enable_video_cocoa;
  17797. else
  17798. enable_video_cocoa=yes
  17799. fi
  17800. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  17801. save_CFLAGS="$CFLAGS"
  17802. CFLAGS="$CFLAGS -x objective-c"
  17803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  17804. $as_echo_n "checking for Cocoa framework... " >&6; }
  17805. have_cocoa=no
  17806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17807. /* end confdefs.h. */
  17808. #import <Cocoa/Cocoa.h>
  17809. int
  17810. main ()
  17811. {
  17812. ;
  17813. return 0;
  17814. }
  17815. _ACEOF
  17816. if ac_fn_c_try_compile "$LINENO"; then :
  17817. have_cocoa=yes
  17818. fi
  17819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  17821. $as_echo "$have_cocoa" >&6; }
  17822. CFLAGS="$save_CFLAGS"
  17823. if test x$have_cocoa = xyes; then
  17824. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  17825. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  17826. SUMMARY_video="${SUMMARY_video} cocoa"
  17827. have_video=yes
  17828. fi
  17829. fi
  17830. }
  17831. CheckDirectFB()
  17832. {
  17833. # Check whether --enable-video-directfb was given.
  17834. if test "${enable_video_directfb+set}" = set; then :
  17835. enableval=$enable_video_directfb;
  17836. else
  17837. enable_video_directfb=no
  17838. fi
  17839. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  17840. video_directfb=no
  17841. DIRECTFB_REQUIRED_VERSION=1.0.0
  17842. for ac_prog in directfb-config
  17843. do
  17844. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17845. set dummy $ac_prog; ac_word=$2
  17846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17847. $as_echo_n "checking for $ac_word... " >&6; }
  17848. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  17849. $as_echo_n "(cached) " >&6
  17850. else
  17851. case $DIRECTFBCONFIG in
  17852. [\\/]* | ?:[\\/]*)
  17853. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  17854. ;;
  17855. *)
  17856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17857. as_dummy="$prefix/bin:$PATH"
  17858. for as_dir in $as_dummy
  17859. do
  17860. IFS=$as_save_IFS
  17861. test -z "$as_dir" && as_dir=.
  17862. for ac_exec_ext in '' $ac_executable_extensions; do
  17863. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17864. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17865. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17866. break 2
  17867. fi
  17868. done
  17869. done
  17870. IFS=$as_save_IFS
  17871. ;;
  17872. esac
  17873. fi
  17874. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  17875. if test -n "$DIRECTFBCONFIG"; then
  17876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  17877. $as_echo "$DIRECTFBCONFIG" >&6; }
  17878. else
  17879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17880. $as_echo "no" >&6; }
  17881. fi
  17882. test -n "$DIRECTFBCONFIG" && break
  17883. done
  17884. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  17885. if test x$DIRECTFBCONFIG = xno; then
  17886. # Extract the first word of "pkg-config", so it can be a program name with args.
  17887. set dummy pkg-config; ac_word=$2
  17888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17889. $as_echo_n "checking for $ac_word... " >&6; }
  17890. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17891. $as_echo_n "(cached) " >&6
  17892. else
  17893. case $PKG_CONFIG in
  17894. [\\/]* | ?:[\\/]*)
  17895. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17896. ;;
  17897. *)
  17898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17899. for as_dir in $PATH
  17900. do
  17901. IFS=$as_save_IFS
  17902. test -z "$as_dir" && as_dir=.
  17903. for ac_exec_ext in '' $ac_executable_extensions; do
  17904. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17905. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17906. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17907. break 2
  17908. fi
  17909. done
  17910. done
  17911. IFS=$as_save_IFS
  17912. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17913. ;;
  17914. esac
  17915. fi
  17916. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17917. if test -n "$PKG_CONFIG"; then
  17918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17919. $as_echo "$PKG_CONFIG" >&6; }
  17920. else
  17921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17922. $as_echo "no" >&6; }
  17923. fi
  17924. if test x$PKG_CONFIG != xno; then
  17925. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  17926. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  17927. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  17928. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  17929. video_directfb=yes
  17930. fi
  17931. fi
  17932. else
  17933. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  17934. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17935. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  17936. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17937. if test $HAVE_VERSION -ge $NEED_VERSION; then
  17938. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  17939. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  17940. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  17941. video_directfb=yes
  17942. fi
  17943. fi
  17944. if test x$video_directfb = xyes; then
  17945. # SuSE 11.1 installs directfb-config without directfb-devel
  17946. save_CPPFLAGS="$CPPFLAGS"
  17947. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  17948. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  17949. if test "x$ac_cv_header_directfb_h" = xyes; then :
  17950. have_directfb_hdr=yes
  17951. else
  17952. have_directfb_hdr=no
  17953. fi
  17954. CPPFLAGS="$save_CPPFLAGS"
  17955. video_directfb=$have_directfb_hdr
  17956. fi
  17957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  17958. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  17959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  17960. $as_echo "$video_directfb" >&6; }
  17961. if test x$video_directfb = xyes; then
  17962. # Check whether --enable-directfb-shared was given.
  17963. if test "${enable_directfb_shared+set}" = set; then :
  17964. enableval=$enable_directfb_shared;
  17965. else
  17966. enable_directfb_shared=yes
  17967. fi
  17968. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  17969. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  17970. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  17971. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  17972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  17973. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  17974. directfb_shared=no
  17975. directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  17976. # | sed 's/.*\/\(.*\)/\1/; q'`]
  17977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  17978. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  17979. if test x$have_loadso != xyes && \
  17980. test x$enable_directfb_shared = xyes; then
  17981. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  17982. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  17983. fi
  17984. if test x$have_loadso = xyes && \
  17985. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  17986. directfb_shared=yes
  17987. echo "-- $directfb_lib_spec -> $directfb_lib"
  17988. cat >>confdefs.h <<_ACEOF
  17989. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  17990. _ACEOF
  17991. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  17992. else
  17993. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  17994. SUMMARY_video="${SUMMARY_video} directfb"
  17995. fi
  17996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  17997. $as_echo "$directfb_shared" >&6; }
  17998. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  17999. have_video=yes
  18000. fi
  18001. fi
  18002. }
  18003. CheckFusionSound()
  18004. {
  18005. # Check whether --enable-fusionsound was given.
  18006. if test "${enable_fusionsound+set}" = set; then :
  18007. enableval=$enable_fusionsound;
  18008. else
  18009. enable_fusionsound=no
  18010. fi
  18011. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  18012. fusionsound=no
  18013. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  18014. # Extract the first word of "pkg-config", so it can be a program name with args.
  18015. set dummy pkg-config; ac_word=$2
  18016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18017. $as_echo_n "checking for $ac_word... " >&6; }
  18018. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18019. $as_echo_n "(cached) " >&6
  18020. else
  18021. case $PKG_CONFIG in
  18022. [\\/]* | ?:[\\/]*)
  18023. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18024. ;;
  18025. *)
  18026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18027. for as_dir in $PATH
  18028. do
  18029. IFS=$as_save_IFS
  18030. test -z "$as_dir" && as_dir=.
  18031. for ac_exec_ext in '' $ac_executable_extensions; do
  18032. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18033. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18034. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18035. break 2
  18036. fi
  18037. done
  18038. done
  18039. IFS=$as_save_IFS
  18040. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18041. ;;
  18042. esac
  18043. fi
  18044. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18045. if test -n "$PKG_CONFIG"; then
  18046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18047. $as_echo "$PKG_CONFIG" >&6; }
  18048. else
  18049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18050. $as_echo "no" >&6; }
  18051. fi
  18052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  18053. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  18054. if test x$PKG_CONFIG != xno; then
  18055. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  18056. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  18057. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  18058. fusionsound=yes
  18059. fi
  18060. fi
  18061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  18062. $as_echo "$fusionsound" >&6; }
  18063. if test x$fusionsound = xyes; then
  18064. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  18065. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  18066. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  18067. # Check whether --enable-fusionsound-shared was given.
  18068. if test "${enable_fusionsound_shared+set}" = set; then :
  18069. enableval=$enable_fusionsound_shared;
  18070. else
  18071. enable_fusionsound_shared=yes
  18072. fi
  18073. fusionsound_shared=no
  18074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  18075. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  18076. if test x$have_loadso != xyes && \
  18077. test x$enable_fusionsound_shared = xyes; then
  18078. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  18079. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  18080. fi
  18081. if test x$have_loadso = xyes && \
  18082. test x$enable_fusionsound_shared = xyes; then
  18083. cat >>confdefs.h <<_ACEOF
  18084. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  18085. _ACEOF
  18086. fusionsound_shared=yes
  18087. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  18088. else
  18089. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  18090. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  18091. fi
  18092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  18093. $as_echo "$fusionsound_shared" >&6; }
  18094. have_audio=yes
  18095. fi
  18096. fi
  18097. }
  18098. CheckDummyVideo()
  18099. {
  18100. # Check whether --enable-video-dummy was given.
  18101. if test "${enable_video_dummy+set}" = set; then :
  18102. enableval=$enable_video_dummy;
  18103. else
  18104. enable_video_dummy=yes
  18105. fi
  18106. if test x$enable_video_dummy = xyes; then
  18107. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18108. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18109. have_video=yes
  18110. SUMMARY_video="${SUMMARY_video} dummy"
  18111. fi
  18112. }
  18113. # Check whether --enable-video-opengl was given.
  18114. if test "${enable_video_opengl+set}" = set; then :
  18115. enableval=$enable_video_opengl;
  18116. else
  18117. enable_video_opengl=yes
  18118. fi
  18119. CheckOpenGLX11()
  18120. {
  18121. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18123. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18124. video_opengl=no
  18125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18126. /* end confdefs.h. */
  18127. #include <GL/gl.h>
  18128. #include <GL/glx.h>
  18129. int
  18130. main ()
  18131. {
  18132. ;
  18133. return 0;
  18134. }
  18135. _ACEOF
  18136. if ac_fn_c_try_compile "$LINENO"; then :
  18137. video_opengl=yes
  18138. fi
  18139. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18141. $as_echo "$video_opengl" >&6; }
  18142. if test x$video_opengl = xyes; then
  18143. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18144. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18145. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18146. SUMMARY_video="${SUMMARY_video} opengl"
  18147. fi
  18148. fi
  18149. }
  18150. # Check whether --enable-video-opengles was given.
  18151. if test "${enable_video_opengles+set}" = set; then :
  18152. enableval=$enable_video_opengles;
  18153. else
  18154. enable_video_opengles=yes
  18155. fi
  18156. # Check whether --enable-video-opengles1 was given.
  18157. if test "${enable_video_opengles1+set}" = set; then :
  18158. enableval=$enable_video_opengles1;
  18159. else
  18160. enable_video_opengles1=yes
  18161. fi
  18162. # Check whether --enable-video-opengles2 was given.
  18163. if test "${enable_video_opengles2+set}" = set; then :
  18164. enableval=$enable_video_opengles2;
  18165. else
  18166. enable_video_opengles2=yes
  18167. fi
  18168. CheckOpenGLESX11()
  18169. {
  18170. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18172. $as_echo_n "checking for EGL support... " >&6; }
  18173. video_opengl_egl=no
  18174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18175. /* end confdefs.h. */
  18176. #define LINUX
  18177. #define EGL_API_FB
  18178. #include <EGL/egl.h>
  18179. #include <EGL/eglext.h>
  18180. int
  18181. main ()
  18182. {
  18183. ;
  18184. return 0;
  18185. }
  18186. _ACEOF
  18187. if ac_fn_c_try_compile "$LINENO"; then :
  18188. video_opengl_egl=yes
  18189. fi
  18190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18192. $as_echo "$video_opengl_egl" >&6; }
  18193. if test x$video_opengl_egl = xyes; then
  18194. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18195. fi
  18196. if test x$enable_video_opengles1 = xyes; then
  18197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18198. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18199. video_opengles_v1=no
  18200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18201. /* end confdefs.h. */
  18202. #include <GLES/gl.h>
  18203. #include <GLES/glext.h>
  18204. int
  18205. main ()
  18206. {
  18207. ;
  18208. return 0;
  18209. }
  18210. _ACEOF
  18211. if ac_fn_c_try_compile "$LINENO"; then :
  18212. video_opengles_v1=yes
  18213. fi
  18214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18216. $as_echo "$video_opengles_v1" >&6; }
  18217. if test x$video_opengles_v1 = xyes; then
  18218. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18219. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18220. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18221. fi
  18222. fi
  18223. if test x$enable_video_opengles2 = xyes; then
  18224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18225. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18226. video_opengles_v2=no
  18227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18228. /* end confdefs.h. */
  18229. #include <GLES2/gl2.h>
  18230. #include <GLES2/gl2ext.h>
  18231. int
  18232. main ()
  18233. {
  18234. ;
  18235. return 0;
  18236. }
  18237. _ACEOF
  18238. if ac_fn_c_try_compile "$LINENO"; then :
  18239. video_opengles_v2=yes
  18240. fi
  18241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18243. $as_echo "$video_opengles_v2" >&6; }
  18244. if test x$video_opengles_v2 = xyes; then
  18245. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18246. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18247. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18248. fi
  18249. fi
  18250. fi
  18251. }
  18252. CheckWINDOWSGL()
  18253. {
  18254. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18255. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18256. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18257. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18258. SUMMARY_video="${SUMMARY_video} opengl"
  18259. fi
  18260. }
  18261. CheckWINDOWSGLES()
  18262. {
  18263. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18265. $as_echo_n "checking for EGL support... " >&6; }
  18266. video_opengl_egl=no
  18267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18268. /* end confdefs.h. */
  18269. #include <EGL/egl.h>
  18270. int
  18271. main ()
  18272. {
  18273. ;
  18274. return 0;
  18275. }
  18276. _ACEOF
  18277. if ac_fn_c_try_compile "$LINENO"; then :
  18278. video_opengl_egl=yes
  18279. fi
  18280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18282. $as_echo "$video_opengl_egl" >&6; }
  18283. if test x$video_opengl_egl = xyes; then
  18284. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18285. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18286. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18287. fi
  18288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18289. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18290. video_opengles_v2=no
  18291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18292. /* end confdefs.h. */
  18293. #include <GLES2/gl2.h>
  18294. #include <GLES2/gl2ext.h>
  18295. int
  18296. main ()
  18297. {
  18298. ;
  18299. return 0;
  18300. }
  18301. _ACEOF
  18302. if ac_fn_c_try_compile "$LINENO"; then :
  18303. video_opengles_v2=yes
  18304. fi
  18305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18307. $as_echo "$video_opengles_v2" >&6; }
  18308. if test x$video_opengles_v2 = xyes; then
  18309. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18310. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18311. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18312. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18313. fi
  18314. fi
  18315. }
  18316. CheckHaikuGL()
  18317. {
  18318. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18319. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18320. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18321. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18322. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18323. SUMMARY_video="${SUMMARY_video} opengl"
  18324. fi
  18325. }
  18326. CheckMacGL()
  18327. {
  18328. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18329. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18330. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18331. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18332. SUMMARY_video="${SUMMARY_video} opengl"
  18333. fi
  18334. }
  18335. CheckEmscriptenGLES()
  18336. {
  18337. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18339. $as_echo_n "checking for EGL support... " >&6; }
  18340. video_opengl_egl=no
  18341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18342. /* end confdefs.h. */
  18343. #include <EGL/egl.h>
  18344. int
  18345. main ()
  18346. {
  18347. ;
  18348. return 0;
  18349. }
  18350. _ACEOF
  18351. if ac_fn_c_try_compile "$LINENO"; then :
  18352. video_opengl_egl=yes
  18353. fi
  18354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18356. $as_echo "$video_opengl_egl" >&6; }
  18357. if test x$video_opengl_egl = xyes; then
  18358. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18359. fi
  18360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18361. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18362. video_opengles_v2=no
  18363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18364. /* end confdefs.h. */
  18365. #include <GLES2/gl2.h>
  18366. #include <GLES2/gl2ext.h>
  18367. int
  18368. main ()
  18369. {
  18370. ;
  18371. return 0;
  18372. }
  18373. _ACEOF
  18374. if ac_fn_c_try_compile "$LINENO"; then :
  18375. video_opengles_v2=yes
  18376. fi
  18377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18379. $as_echo "$video_opengles_v2" >&6; }
  18380. if test x$video_opengles_v2 = xyes; then
  18381. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18382. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18383. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18384. fi
  18385. fi
  18386. }
  18387. CheckInputEvents()
  18388. {
  18389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18390. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18391. use_input_events=no
  18392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18393. /* end confdefs.h. */
  18394. #include <linux/input.h>
  18395. int
  18396. main ()
  18397. {
  18398. #ifndef EVIOCGNAME
  18399. #error EVIOCGNAME() ioctl not available
  18400. #endif
  18401. ;
  18402. return 0;
  18403. }
  18404. _ACEOF
  18405. if ac_fn_c_try_compile "$LINENO"; then :
  18406. use_input_events=yes
  18407. fi
  18408. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18410. $as_echo "$use_input_events" >&6; }
  18411. if test x$use_input_events = xyes; then
  18412. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18413. SUMMARY_input="${SUMMARY_input} linuxev"
  18414. fi
  18415. }
  18416. CheckInputKD()
  18417. {
  18418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18419. $as_echo_n "checking for Linux kd.h... " >&6; }
  18420. use_input_kd=no
  18421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18422. /* end confdefs.h. */
  18423. #include <linux/kd.h>
  18424. #include <linux/keyboard.h>
  18425. int
  18426. main ()
  18427. {
  18428. struct kbentry kbe;
  18429. kbe.kb_table = KG_CTRL;
  18430. ioctl(0, KDGKBENT, &kbe);
  18431. ;
  18432. return 0;
  18433. }
  18434. _ACEOF
  18435. if ac_fn_c_try_compile "$LINENO"; then :
  18436. use_input_kd=yes
  18437. fi
  18438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18440. $as_echo "$use_input_kd" >&6; }
  18441. if test x$use_input_kd = xyes; then
  18442. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18443. SUMMARY_input="${SUMMARY_input} linuxkd"
  18444. fi
  18445. }
  18446. CheckLibUDev()
  18447. {
  18448. # Check whether --enable-libudev was given.
  18449. if test "${enable_libudev+set}" = set; then :
  18450. enableval=$enable_libudev;
  18451. else
  18452. enable_libudev=yes
  18453. fi
  18454. if test x$enable_libudev = xyes; then
  18455. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18456. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18457. have_libudev_h_hdr=yes
  18458. else
  18459. have_libudev_h_hdr=no
  18460. fi
  18461. if test x$have_libudev_h_hdr = xyes; then
  18462. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18463. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  18464. if test x$udev_lib != x; then
  18465. echo "-- dynamic udev -> $udev_lib"
  18466. cat >>confdefs.h <<_ACEOF
  18467. #define SDL_UDEV_DYNAMIC "$udev_lib"
  18468. _ACEOF
  18469. fi
  18470. fi
  18471. fi
  18472. }
  18473. CheckDBus()
  18474. {
  18475. # Check whether --enable-dbus was given.
  18476. if test "${enable_dbus+set}" = set; then :
  18477. enableval=$enable_dbus;
  18478. else
  18479. enable_dbus=yes
  18480. fi
  18481. if test x$enable_dbus = xyes; then
  18482. # Extract the first word of "pkg-config", so it can be a program name with args.
  18483. set dummy pkg-config; ac_word=$2
  18484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18485. $as_echo_n "checking for $ac_word... " >&6; }
  18486. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18487. $as_echo_n "(cached) " >&6
  18488. else
  18489. case $PKG_CONFIG in
  18490. [\\/]* | ?:[\\/]*)
  18491. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18492. ;;
  18493. *)
  18494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18495. for as_dir in $PATH
  18496. do
  18497. IFS=$as_save_IFS
  18498. test -z "$as_dir" && as_dir=.
  18499. for ac_exec_ext in '' $ac_executable_extensions; do
  18500. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18501. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18502. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18503. break 2
  18504. fi
  18505. done
  18506. done
  18507. IFS=$as_save_IFS
  18508. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18509. ;;
  18510. esac
  18511. fi
  18512. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18513. if test -n "$PKG_CONFIG"; then
  18514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18515. $as_echo "$PKG_CONFIG" >&6; }
  18516. else
  18517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18518. $as_echo "no" >&6; }
  18519. fi
  18520. if test x$PKG_CONFIG != xno; then
  18521. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18522. save_CFLAGS="$CFLAGS"
  18523. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18524. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18525. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18526. have_dbus_dbus_h_hdr=yes
  18527. else
  18528. have_dbus_dbus_h_hdr=no
  18529. fi
  18530. CFLAGS="$save_CFLAGS"
  18531. if test x$have_dbus_dbus_h_hdr = xyes; then
  18532. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18533. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18534. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  18535. fi
  18536. fi
  18537. fi
  18538. }
  18539. CheckIME()
  18540. {
  18541. # Check whether --enable-ime was given.
  18542. if test "${enable_ime+set}" = set; then :
  18543. enableval=$enable_ime;
  18544. else
  18545. enable_ime=yes
  18546. fi
  18547. if test x$enable_ime = xyes; then
  18548. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  18549. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  18550. fi
  18551. }
  18552. CheckIBus()
  18553. {
  18554. # Check whether --enable-ibus was given.
  18555. if test "${enable_ibus+set}" = set; then :
  18556. enableval=$enable_ibus;
  18557. else
  18558. enable_ibus=yes
  18559. fi
  18560. if test x$enable_ibus = xyes; then
  18561. # Extract the first word of "pkg-config", so it can be a program name with args.
  18562. set dummy pkg-config; ac_word=$2
  18563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18564. $as_echo_n "checking for $ac_word... " >&6; }
  18565. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18566. $as_echo_n "(cached) " >&6
  18567. else
  18568. case $PKG_CONFIG in
  18569. [\\/]* | ?:[\\/]*)
  18570. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18571. ;;
  18572. *)
  18573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18574. for as_dir in $PATH
  18575. do
  18576. IFS=$as_save_IFS
  18577. test -z "$as_dir" && as_dir=.
  18578. for ac_exec_ext in '' $ac_executable_extensions; do
  18579. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18580. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18581. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18582. break 2
  18583. fi
  18584. done
  18585. done
  18586. IFS=$as_save_IFS
  18587. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18588. ;;
  18589. esac
  18590. fi
  18591. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18592. if test -n "$PKG_CONFIG"; then
  18593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18594. $as_echo "$PKG_CONFIG" >&6; }
  18595. else
  18596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18597. $as_echo "no" >&6; }
  18598. fi
  18599. if test x$PKG_CONFIG != xno; then
  18600. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  18601. save_CFLAGS="$CFLAGS"
  18602. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  18603. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  18604. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  18605. have_ibus_ibus_h_hdr=yes
  18606. else
  18607. have_ibus_ibus_h_hdr=no
  18608. fi
  18609. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  18610. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  18611. have_inotify_inotify_h_hdr=yes
  18612. else
  18613. have_inotify_inotify_h_hdr=no
  18614. fi
  18615. CFLAGS="$save_CFLAGS"
  18616. if test x$have_ibus_ibus_h_hdr = xyes; then
  18617. if test x$enable_ime != xyes; then
  18618. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  18619. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  18620. have_ibus_ibus_h_hdr=no
  18621. elif test x$enable_dbus != xyes; then
  18622. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  18623. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  18624. have_ibus_ibus_h_hdr=no
  18625. elif test x$have_inotify_inotify_h_hdr != xyes; then
  18626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  18627. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  18628. have_ibus_ibus_h_hdr=no
  18629. else
  18630. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  18631. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  18632. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  18633. fi
  18634. fi
  18635. fi
  18636. fi
  18637. }
  18638. CheckFcitx()
  18639. {
  18640. # Check whether --enable-fcitx was given.
  18641. if test "${enable_fcitx+set}" = set; then :
  18642. enableval=$enable_fcitx;
  18643. else
  18644. enable_fcitx=yes
  18645. fi
  18646. if test x$enable_fcitx = xyes; then
  18647. # Extract the first word of "pkg-config", so it can be a program name with args.
  18648. set dummy pkg-config; ac_word=$2
  18649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18650. $as_echo_n "checking for $ac_word... " >&6; }
  18651. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18652. $as_echo_n "(cached) " >&6
  18653. else
  18654. case $PKG_CONFIG in
  18655. [\\/]* | ?:[\\/]*)
  18656. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18657. ;;
  18658. *)
  18659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18660. for as_dir in $PATH
  18661. do
  18662. IFS=$as_save_IFS
  18663. test -z "$as_dir" && as_dir=.
  18664. for ac_exec_ext in '' $ac_executable_extensions; do
  18665. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18666. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18667. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18668. break 2
  18669. fi
  18670. done
  18671. done
  18672. IFS=$as_save_IFS
  18673. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18674. ;;
  18675. esac
  18676. fi
  18677. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18678. if test -n "$PKG_CONFIG"; then
  18679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18680. $as_echo "$PKG_CONFIG" >&6; }
  18681. else
  18682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18683. $as_echo "no" >&6; }
  18684. fi
  18685. if test x$PKG_CONFIG != xno; then
  18686. FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
  18687. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  18688. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  18689. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  18690. have_fcitx_frontend_h_hdr=yes
  18691. else
  18692. have_fcitx_frontend_h_hdr=no
  18693. fi
  18694. CFLAGS="$save_CFLAGS"
  18695. if test x$have_fcitx_frontend_h_hdr = xyes; then
  18696. if test x$enable_ime != xyes; then
  18697. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  18698. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  18699. have_fcitx_frontend_h_hdr=no
  18700. elif test x$enable_dbus != xyes; then
  18701. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  18702. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  18703. have_fcitx_frontend_h_hdr=no
  18704. else
  18705. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  18706. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  18707. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  18708. fi
  18709. fi
  18710. fi
  18711. fi
  18712. }
  18713. CheckTslib()
  18714. {
  18715. # Check whether --enable-input-tslib was given.
  18716. if test "${enable_input_tslib+set}" = set; then :
  18717. enableval=$enable_input_tslib;
  18718. else
  18719. enable_input_tslib=yes
  18720. fi
  18721. if test x$enable_input_tslib = xyes; then
  18722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  18723. $as_echo_n "checking for Touchscreen library support... " >&6; }
  18724. enable_input_tslib=no
  18725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18726. /* end confdefs.h. */
  18727. #include "tslib.h"
  18728. int
  18729. main ()
  18730. {
  18731. ;
  18732. return 0;
  18733. }
  18734. _ACEOF
  18735. if ac_fn_c_try_compile "$LINENO"; then :
  18736. enable_input_tslib=yes
  18737. fi
  18738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  18740. $as_echo "$enable_input_tslib" >&6; }
  18741. if test x$enable_input_tslib = xyes; then
  18742. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  18743. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  18744. SUMMARY_input="${SUMMARY_input} ts"
  18745. fi
  18746. fi
  18747. }
  18748. CheckPTHREAD()
  18749. {
  18750. # Check whether --enable-pthreads was given.
  18751. if test "${enable_pthreads+set}" = set; then :
  18752. enableval=$enable_pthreads;
  18753. else
  18754. enable_pthreads=yes
  18755. fi
  18756. # Check whether --enable-pthread-sem was given.
  18757. if test "${enable_pthread_sem+set}" = set; then :
  18758. enableval=$enable_pthread_sem;
  18759. else
  18760. enable_pthread_sem=yes
  18761. fi
  18762. case "$host" in
  18763. *-*-androideabi*)
  18764. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18765. pthread_lib=""
  18766. ;;
  18767. *-*-linux*|*-*-uclinux*)
  18768. pthread_cflags="-D_REENTRANT"
  18769. pthread_lib="-lpthread"
  18770. ;;
  18771. *-*-bsdi*)
  18772. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18773. pthread_lib=""
  18774. ;;
  18775. *-*-darwin*)
  18776. pthread_cflags="-D_THREAD_SAFE"
  18777. # causes Carbon.p complaints?
  18778. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18779. ;;
  18780. *-*-freebsd*|*-*-dragonfly*)
  18781. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18782. pthread_lib="-pthread"
  18783. ;;
  18784. *-*-netbsd*)
  18785. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18786. pthread_lib="-lpthread"
  18787. ;;
  18788. *-*-openbsd*)
  18789. pthread_cflags="-D_REENTRANT"
  18790. pthread_lib="-pthread"
  18791. ;;
  18792. *-*-solaris2.9)
  18793. # From Solaris 9+, posix4's preferred name is rt.
  18794. pthread_cflags="-D_REENTRANT"
  18795. pthread_lib="-lpthread -lrt"
  18796. ;;
  18797. *-*-solaris2.10)
  18798. # Solaris 10+ merged pthread into libc.
  18799. pthread_cflags="-D_REENTRANT"
  18800. pthread_lib="-lrt"
  18801. ;;
  18802. *-*-solaris*)
  18803. # Solaris 11+ merged rt into libc.
  18804. pthread_cflags="-D_REENTRANT"
  18805. pthread_lib=""
  18806. ;;
  18807. *-*-sysv5*)
  18808. pthread_cflags="-D_REENTRANT -Kthread"
  18809. pthread_lib=""
  18810. ;;
  18811. *-*-aix*)
  18812. pthread_cflags="-D_REENTRANT -mthreads"
  18813. pthread_lib="-lpthread"
  18814. ;;
  18815. *-*-hpux11*)
  18816. pthread_cflags="-D_REENTRANT"
  18817. pthread_lib="-L/usr/lib -lpthread"
  18818. ;;
  18819. *-*-haiku*)
  18820. pthread_cflags="-D_REENTRANT"
  18821. pthread_lib=""
  18822. ;;
  18823. *)
  18824. pthread_cflags="-D_REENTRANT"
  18825. pthread_lib="-lpthread"
  18826. ;;
  18827. esac
  18828. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  18829. # Save the original compiler flags and libraries
  18830. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18831. # Add the pthread compiler flags and libraries
  18832. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18833. # Check to see if we have pthread support on this system
  18834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  18835. $as_echo_n "checking for pthreads... " >&6; }
  18836. use_pthreads=no
  18837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18838. /* end confdefs.h. */
  18839. #include <pthread.h>
  18840. int
  18841. main ()
  18842. {
  18843. pthread_attr_t type;
  18844. pthread_attr_init(&type);
  18845. ;
  18846. return 0;
  18847. }
  18848. _ACEOF
  18849. if ac_fn_c_try_link "$LINENO"; then :
  18850. use_pthreads=yes
  18851. fi
  18852. rm -f core conftest.err conftest.$ac_objext \
  18853. conftest$ac_exeext conftest.$ac_ext
  18854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  18855. $as_echo "$use_pthreads" >&6; }
  18856. # Restore the compiler flags and libraries
  18857. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18858. # Do futher testing if we have pthread support...
  18859. if test x$use_pthreads = xyes; then
  18860. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  18861. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  18862. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  18863. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  18864. # Save the original compiler flags and libraries
  18865. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18866. # Add the pthread compiler flags and libraries
  18867. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18868. # Check to see if recursive mutexes are available
  18869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  18870. $as_echo_n "checking for recursive mutexes... " >&6; }
  18871. has_recursive_mutexes=no
  18872. if test x$has_recursive_mutexes = xno; then
  18873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18874. /* end confdefs.h. */
  18875. #define _GNU_SOURCE 1
  18876. #include <pthread.h>
  18877. int
  18878. main ()
  18879. {
  18880. pthread_mutexattr_t attr;
  18881. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  18882. ;
  18883. return 0;
  18884. }
  18885. _ACEOF
  18886. if ac_fn_c_try_link "$LINENO"; then :
  18887. has_recursive_mutexes=yes
  18888. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  18889. fi
  18890. rm -f core conftest.err conftest.$ac_objext \
  18891. conftest$ac_exeext conftest.$ac_ext
  18892. fi
  18893. if test x$has_recursive_mutexes = xno; then
  18894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18895. /* end confdefs.h. */
  18896. #define _GNU_SOURCE 1
  18897. #include <pthread.h>
  18898. int
  18899. main ()
  18900. {
  18901. pthread_mutexattr_t attr;
  18902. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  18903. ;
  18904. return 0;
  18905. }
  18906. _ACEOF
  18907. if ac_fn_c_try_link "$LINENO"; then :
  18908. has_recursive_mutexes=yes
  18909. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  18910. fi
  18911. rm -f core conftest.err conftest.$ac_objext \
  18912. conftest$ac_exeext conftest.$ac_ext
  18913. fi
  18914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  18915. $as_echo "$has_recursive_mutexes" >&6; }
  18916. # Check to see if pthread semaphore support is missing
  18917. if test x$enable_pthread_sem = xyes; then
  18918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  18919. $as_echo_n "checking for pthread semaphores... " >&6; }
  18920. have_pthread_sem=no
  18921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18922. /* end confdefs.h. */
  18923. #include <pthread.h>
  18924. #include <semaphore.h>
  18925. int
  18926. main ()
  18927. {
  18928. ;
  18929. return 0;
  18930. }
  18931. _ACEOF
  18932. if ac_fn_c_try_compile "$LINENO"; then :
  18933. have_pthread_sem=yes
  18934. fi
  18935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  18937. $as_echo "$have_pthread_sem" >&6; }
  18938. fi
  18939. if test x$have_pthread_sem = xyes; then
  18940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  18941. $as_echo_n "checking for sem_timedwait... " >&6; }
  18942. have_sem_timedwait=no
  18943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18944. /* end confdefs.h. */
  18945. #include <pthread.h>
  18946. #include <semaphore.h>
  18947. int
  18948. main ()
  18949. {
  18950. sem_timedwait(NULL, NULL);
  18951. ;
  18952. return 0;
  18953. }
  18954. _ACEOF
  18955. if ac_fn_c_try_link "$LINENO"; then :
  18956. have_sem_timedwait=yes
  18957. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  18958. fi
  18959. rm -f core conftest.err conftest.$ac_objext \
  18960. conftest$ac_exeext conftest.$ac_ext
  18961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  18962. $as_echo "$have_sem_timedwait" >&6; }
  18963. fi
  18964. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  18965. "
  18966. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  18967. have_pthread_np_h=yes
  18968. else
  18969. have_pthread_np_h=no
  18970. fi
  18971. if test x$have_pthread_np_h = xyes; then
  18972. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  18973. fi
  18974. # Check to see if pthread naming is available
  18975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  18976. $as_echo_n "checking for pthread_setname_np... " >&6; }
  18977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18978. /* end confdefs.h. */
  18979. /* Override any GCC internal prototype to avoid an error.
  18980. Use char because int might match the return type of a GCC
  18981. builtin and then its argument prototype would still apply. */
  18982. #ifdef __cplusplus
  18983. extern "C"
  18984. #endif
  18985. char pthread_setname_np ();
  18986. int
  18987. main ()
  18988. {
  18989. return pthread_setname_np ();
  18990. ;
  18991. return 0;
  18992. }
  18993. _ACEOF
  18994. if ac_fn_c_try_link "$LINENO"; then :
  18995. has_pthread_setname_np=yes
  18996. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  18997. else
  18998. has_pthread_setname_np=no
  18999. fi
  19000. rm -f core conftest.err conftest.$ac_objext \
  19001. conftest$ac_exeext conftest.$ac_ext
  19002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19003. $as_echo "$has_pthread_setname_np" >&6; }
  19004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19005. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19007. /* end confdefs.h. */
  19008. /* Override any GCC internal prototype to avoid an error.
  19009. Use char because int might match the return type of a GCC
  19010. builtin and then its argument prototype would still apply. */
  19011. #ifdef __cplusplus
  19012. extern "C"
  19013. #endif
  19014. char pthread_set_name_np ();
  19015. int
  19016. main ()
  19017. {
  19018. return pthread_set_name_np ();
  19019. ;
  19020. return 0;
  19021. }
  19022. _ACEOF
  19023. if ac_fn_c_try_link "$LINENO"; then :
  19024. has_pthread_set_name_np=yes
  19025. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19026. else
  19027. has_pthread_set_name_np=no
  19028. fi
  19029. rm -f core conftest.err conftest.$ac_objext \
  19030. conftest$ac_exeext conftest.$ac_ext
  19031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19032. $as_echo "$has_pthread_set_name_np" >&6; }
  19033. # Restore the compiler flags and libraries
  19034. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19035. # Basic thread creation functions
  19036. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19037. # Semaphores
  19038. # We can fake these with mutexes and condition variables if necessary
  19039. if test x$have_pthread_sem = xyes; then
  19040. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19041. else
  19042. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19043. fi
  19044. # Mutexes
  19045. # We can fake these with semaphores if necessary
  19046. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19047. # Condition variables
  19048. # We can fake these with semaphores and mutexes if necessary
  19049. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19050. # Thread local storage
  19051. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19052. have_threads=yes
  19053. fi
  19054. fi
  19055. }
  19056. CheckWINDOWS()
  19057. {
  19058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19059. $as_echo_n "checking Windows compiler... " >&6; }
  19060. have_win32_gcc=no
  19061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19062. /* end confdefs.h. */
  19063. #include <windows.h>
  19064. int
  19065. main ()
  19066. {
  19067. ;
  19068. return 0;
  19069. }
  19070. _ACEOF
  19071. if ac_fn_c_try_compile "$LINENO"; then :
  19072. have_win32_gcc=yes
  19073. fi
  19074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19076. $as_echo "$have_win32_gcc" >&6; }
  19077. if test x$have_win32_gcc != xyes; then
  19078. as_fn_error $? "
  19079. *** Your compiler ($CC) does not produce Windows executables!
  19080. " "$LINENO" 5
  19081. fi
  19082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19083. $as_echo_n "checking Windows CE... " >&6; }
  19084. have_wince=no
  19085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19086. /* end confdefs.h. */
  19087. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19088. #error This is not Windows CE
  19089. #endif
  19090. int
  19091. main ()
  19092. {
  19093. ;
  19094. return 0;
  19095. }
  19096. _ACEOF
  19097. if ac_fn_c_try_compile "$LINENO"; then :
  19098. have_wince=yes
  19099. as_fn_error $? "
  19100. *** Sorry, Windows CE is no longer supported.
  19101. " "$LINENO" 5
  19102. fi
  19103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19105. $as_echo "$have_wince" >&6; }
  19106. # This fixes Windows stack alignment with newer GCC
  19107. CheckStackBoundary
  19108. }
  19109. CheckDIRECTX()
  19110. {
  19111. # Check whether --enable-directx was given.
  19112. if test "${enable_directx+set}" = set; then :
  19113. enableval=$enable_directx;
  19114. else
  19115. enable_directx=yes
  19116. fi
  19117. if test x$enable_directx = xyes; then
  19118. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19119. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19120. have_d3d=yes
  19121. fi
  19122. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19123. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19124. have_d3d11=yes
  19125. fi
  19126. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19127. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19128. have_ddraw=yes
  19129. fi
  19130. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19131. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19132. have_dsound=yes
  19133. fi
  19134. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19135. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19136. have_dinput=yes
  19137. fi
  19138. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19139. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19140. have_dxgi=yes
  19141. fi
  19142. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  19143. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  19144. have_xaudio2=yes
  19145. fi
  19146. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19147. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19148. have_xinput=yes
  19149. fi
  19150. if test x$have_ddraw = xyes; then
  19151. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19152. fi
  19153. if test x$have_dinput = xyes; then
  19154. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19155. fi
  19156. if test x$have_dsound = xyes; then
  19157. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19158. fi
  19159. if test x$have_dxgi = xyes; then
  19160. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19161. fi
  19162. if test x$have_xinput = xyes; then
  19163. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19164. fi
  19165. SUMMARY_video="${SUMMARY_video} directx"
  19166. SUMMARY_audio="${SUMMARY_audio} directx"
  19167. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19168. # FIXME: ...so force it off for now.
  19169. case "$host" in
  19170. *-*-cygwin*)
  19171. have_dinput=false
  19172. ;;
  19173. esac
  19174. fi
  19175. }
  19176. CheckDLOPEN()
  19177. {
  19178. # Check whether --enable-sdl-dlopen was given.
  19179. if test "${enable_sdl_dlopen+set}" = set; then :
  19180. enableval=$enable_sdl_dlopen;
  19181. else
  19182. enable_sdl_dlopen=yes
  19183. fi
  19184. if test x$enable_sdl_dlopen = xyes; then
  19185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19186. $as_echo_n "checking for dlopen... " >&6; }
  19187. have_dlopen=no
  19188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19189. /* end confdefs.h. */
  19190. #include <dlfcn.h>
  19191. int
  19192. main ()
  19193. {
  19194. void *handle = dlopen("", RTLD_NOW);
  19195. const char *loaderror = (char *) dlerror();
  19196. ;
  19197. return 0;
  19198. }
  19199. _ACEOF
  19200. if ac_fn_c_try_compile "$LINENO"; then :
  19201. have_dlopen=yes
  19202. fi
  19203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19205. $as_echo "$have_dlopen" >&6; }
  19206. if test x$have_dlopen = xyes; then
  19207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19208. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19209. if ${ac_cv_lib_c_dlopen+:} false; then :
  19210. $as_echo_n "(cached) " >&6
  19211. else
  19212. ac_check_lib_save_LIBS=$LIBS
  19213. LIBS="-lc $LIBS"
  19214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19215. /* end confdefs.h. */
  19216. /* Override any GCC internal prototype to avoid an error.
  19217. Use char because int might match the return type of a GCC
  19218. builtin and then its argument prototype would still apply. */
  19219. #ifdef __cplusplus
  19220. extern "C"
  19221. #endif
  19222. char dlopen ();
  19223. int
  19224. main ()
  19225. {
  19226. return dlopen ();
  19227. ;
  19228. return 0;
  19229. }
  19230. _ACEOF
  19231. if ac_fn_c_try_link "$LINENO"; then :
  19232. ac_cv_lib_c_dlopen=yes
  19233. else
  19234. ac_cv_lib_c_dlopen=no
  19235. fi
  19236. rm -f core conftest.err conftest.$ac_objext \
  19237. conftest$ac_exeext conftest.$ac_ext
  19238. LIBS=$ac_check_lib_save_LIBS
  19239. fi
  19240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19241. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19242. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19243. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19244. else
  19245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19246. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19247. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19248. $as_echo_n "(cached) " >&6
  19249. else
  19250. ac_check_lib_save_LIBS=$LIBS
  19251. LIBS="-ldl $LIBS"
  19252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19253. /* end confdefs.h. */
  19254. /* Override any GCC internal prototype to avoid an error.
  19255. Use char because int might match the return type of a GCC
  19256. builtin and then its argument prototype would still apply. */
  19257. #ifdef __cplusplus
  19258. extern "C"
  19259. #endif
  19260. char dlopen ();
  19261. int
  19262. main ()
  19263. {
  19264. return dlopen ();
  19265. ;
  19266. return 0;
  19267. }
  19268. _ACEOF
  19269. if ac_fn_c_try_link "$LINENO"; then :
  19270. ac_cv_lib_dl_dlopen=yes
  19271. else
  19272. ac_cv_lib_dl_dlopen=no
  19273. fi
  19274. rm -f core conftest.err conftest.$ac_objext \
  19275. conftest$ac_exeext conftest.$ac_ext
  19276. LIBS=$ac_check_lib_save_LIBS
  19277. fi
  19278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19279. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19280. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19281. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19282. else
  19283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19284. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19285. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19286. $as_echo_n "(cached) " >&6
  19287. else
  19288. ac_check_lib_save_LIBS=$LIBS
  19289. LIBS="-lltdl $LIBS"
  19290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19291. /* end confdefs.h. */
  19292. /* Override any GCC internal prototype to avoid an error.
  19293. Use char because int might match the return type of a GCC
  19294. builtin and then its argument prototype would still apply. */
  19295. #ifdef __cplusplus
  19296. extern "C"
  19297. #endif
  19298. char dlopen ();
  19299. int
  19300. main ()
  19301. {
  19302. return dlopen ();
  19303. ;
  19304. return 0;
  19305. }
  19306. _ACEOF
  19307. if ac_fn_c_try_link "$LINENO"; then :
  19308. ac_cv_lib_ltdl_dlopen=yes
  19309. else
  19310. ac_cv_lib_ltdl_dlopen=no
  19311. fi
  19312. rm -f core conftest.err conftest.$ac_objext \
  19313. conftest$ac_exeext conftest.$ac_ext
  19314. LIBS=$ac_check_lib_save_LIBS
  19315. fi
  19316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19317. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19318. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19319. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19320. fi
  19321. fi
  19322. fi
  19323. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19324. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19325. have_loadso=yes
  19326. fi
  19327. fi
  19328. }
  19329. CheckUSBHID()
  19330. {
  19331. case "$host" in
  19332. *-*-*bsd*)
  19333. if test x$enable_joystick = xyes; then
  19334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19335. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19336. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19337. $as_echo_n "(cached) " >&6
  19338. else
  19339. ac_check_lib_save_LIBS=$LIBS
  19340. LIBS="-lusbhid $LIBS"
  19341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19342. /* end confdefs.h. */
  19343. /* Override any GCC internal prototype to avoid an error.
  19344. Use char because int might match the return type of a GCC
  19345. builtin and then its argument prototype would still apply. */
  19346. #ifdef __cplusplus
  19347. extern "C"
  19348. #endif
  19349. char hid_init ();
  19350. int
  19351. main ()
  19352. {
  19353. return hid_init ();
  19354. ;
  19355. return 0;
  19356. }
  19357. _ACEOF
  19358. if ac_fn_c_try_link "$LINENO"; then :
  19359. ac_cv_lib_usbhid_hid_init=yes
  19360. else
  19361. ac_cv_lib_usbhid_hid_init=no
  19362. fi
  19363. rm -f core conftest.err conftest.$ac_objext \
  19364. conftest$ac_exeext conftest.$ac_ext
  19365. LIBS=$ac_check_lib_save_LIBS
  19366. fi
  19367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19368. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19369. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  19370. have_libusbhid=yes
  19371. fi
  19372. if test x$have_libusbhid = xyes; then
  19373. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  19374. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  19375. USB_CFLAGS="-DHAVE_USBHID_H"
  19376. fi
  19377. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  19378. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  19379. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  19380. fi
  19381. USB_LIBS="$USB_LIBS -lusbhid"
  19382. else
  19383. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  19384. if test "x$ac_cv_header_usb_h" = xyes; then :
  19385. USB_CFLAGS="-DHAVE_USB_H"
  19386. fi
  19387. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  19388. if test "x$ac_cv_header_libusb_h" = xyes; then :
  19389. USB_CFLAGS="-DHAVE_LIBUSB_H"
  19390. fi
  19391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  19392. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  19393. if ${ac_cv_lib_usb_hid_init+:} false; then :
  19394. $as_echo_n "(cached) " >&6
  19395. else
  19396. ac_check_lib_save_LIBS=$LIBS
  19397. LIBS="-lusb $LIBS"
  19398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19399. /* end confdefs.h. */
  19400. /* Override any GCC internal prototype to avoid an error.
  19401. Use char because int might match the return type of a GCC
  19402. builtin and then its argument prototype would still apply. */
  19403. #ifdef __cplusplus
  19404. extern "C"
  19405. #endif
  19406. char hid_init ();
  19407. int
  19408. main ()
  19409. {
  19410. return hid_init ();
  19411. ;
  19412. return 0;
  19413. }
  19414. _ACEOF
  19415. if ac_fn_c_try_link "$LINENO"; then :
  19416. ac_cv_lib_usb_hid_init=yes
  19417. else
  19418. ac_cv_lib_usb_hid_init=no
  19419. fi
  19420. rm -f core conftest.err conftest.$ac_objext \
  19421. conftest$ac_exeext conftest.$ac_ext
  19422. LIBS=$ac_check_lib_save_LIBS
  19423. fi
  19424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  19425. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  19426. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  19427. USB_LIBS="$USB_LIBS -lusb"
  19428. fi
  19429. fi
  19430. save_CFLAGS="$CFLAGS"
  19431. CFLAGS="$CFLAGS $USB_CFLAGS"
  19432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  19433. $as_echo_n "checking for usbhid... " >&6; }
  19434. have_usbhid=no
  19435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19436. /* end confdefs.h. */
  19437. #include <sys/types.h>
  19438. #if defined(HAVE_USB_H)
  19439. #include <usb.h>
  19440. #endif
  19441. #ifdef __DragonFly__
  19442. # include <bus/usb/usb.h>
  19443. # include <bus/usb/usbhid.h>
  19444. #else
  19445. # include <dev/usb/usb.h>
  19446. # include <dev/usb/usbhid.h>
  19447. #endif
  19448. #if defined(HAVE_USBHID_H)
  19449. #include <usbhid.h>
  19450. #elif defined(HAVE_LIBUSB_H)
  19451. #include <libusb.h>
  19452. #elif defined(HAVE_LIBUSBHID_H)
  19453. #include <libusbhid.h>
  19454. #endif
  19455. int
  19456. main ()
  19457. {
  19458. struct report_desc *repdesc;
  19459. struct usb_ctl_report *repbuf;
  19460. hid_kind_t hidkind;
  19461. ;
  19462. return 0;
  19463. }
  19464. _ACEOF
  19465. if ac_fn_c_try_compile "$LINENO"; then :
  19466. have_usbhid=yes
  19467. fi
  19468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  19470. $as_echo "$have_usbhid" >&6; }
  19471. if test x$have_usbhid = xyes; then
  19472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  19473. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  19474. have_usbhid_ucr_data=no
  19475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19476. /* end confdefs.h. */
  19477. #include <sys/types.h>
  19478. #if defined(HAVE_USB_H)
  19479. #include <usb.h>
  19480. #endif
  19481. #ifdef __DragonFly__
  19482. # include <bus/usb/usb.h>
  19483. # include <bus/usb/usbhid.h>
  19484. #else
  19485. # include <dev/usb/usb.h>
  19486. # include <dev/usb/usbhid.h>
  19487. #endif
  19488. #if defined(HAVE_USBHID_H)
  19489. #include <usbhid.h>
  19490. #elif defined(HAVE_LIBUSB_H)
  19491. #include <libusb.h>
  19492. #elif defined(HAVE_LIBUSBHID_H)
  19493. #include <libusbhid.h>
  19494. #endif
  19495. int
  19496. main ()
  19497. {
  19498. struct usb_ctl_report buf;
  19499. if (buf.ucr_data) { }
  19500. ;
  19501. return 0;
  19502. }
  19503. _ACEOF
  19504. if ac_fn_c_try_compile "$LINENO"; then :
  19505. have_usbhid_ucr_data=yes
  19506. fi
  19507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19508. if test x$have_usbhid_ucr_data = xyes; then
  19509. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  19510. fi
  19511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  19512. $as_echo "$have_usbhid_ucr_data" >&6; }
  19513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  19514. $as_echo_n "checking for new usbhid API... " >&6; }
  19515. have_usbhid_new=no
  19516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19517. /* end confdefs.h. */
  19518. #include <sys/types.h>
  19519. #if defined(HAVE_USB_H)
  19520. #include <usb.h>
  19521. #endif
  19522. #ifdef __DragonFly__
  19523. #include <bus/usb/usb.h>
  19524. #include <bus/usb/usbhid.h>
  19525. #else
  19526. #include <dev/usb/usb.h>
  19527. #include <dev/usb/usbhid.h>
  19528. #endif
  19529. #if defined(HAVE_USBHID_H)
  19530. #include <usbhid.h>
  19531. #elif defined(HAVE_LIBUSB_H)
  19532. #include <libusb.h>
  19533. #elif defined(HAVE_LIBUSBHID_H)
  19534. #include <libusbhid.h>
  19535. #endif
  19536. int
  19537. main ()
  19538. {
  19539. report_desc_t d;
  19540. hid_start_parse(d, 1, 1);
  19541. ;
  19542. return 0;
  19543. }
  19544. _ACEOF
  19545. if ac_fn_c_try_compile "$LINENO"; then :
  19546. have_usbhid_new=yes
  19547. fi
  19548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19549. if test x$have_usbhid_new = xyes; then
  19550. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  19551. fi
  19552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  19553. $as_echo "$have_usbhid_new" >&6; }
  19554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  19555. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  19556. have_machine_joystick=no
  19557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19558. /* end confdefs.h. */
  19559. #include <machine/joystick.h>
  19560. int
  19561. main ()
  19562. {
  19563. struct joystick t;
  19564. ;
  19565. return 0;
  19566. }
  19567. _ACEOF
  19568. if ac_fn_c_try_compile "$LINENO"; then :
  19569. have_machine_joystick=yes
  19570. fi
  19571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19572. if test x$have_machine_joystick = xyes; then
  19573. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  19574. fi
  19575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  19576. $as_echo "$have_machine_joystick" >&6; }
  19577. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  19578. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  19579. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  19580. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  19581. have_joystick=yes
  19582. fi
  19583. CFLAGS="$save_CFLAGS"
  19584. fi
  19585. ;;
  19586. esac
  19587. }
  19588. CheckClockGettime()
  19589. {
  19590. # Check whether --enable-clock_gettime was given.
  19591. if test "${enable_clock_gettime+set}" = set; then :
  19592. enableval=$enable_clock_gettime;
  19593. else
  19594. enable_clock_gettime=yes
  19595. fi
  19596. if test x$enable_clock_gettime = xyes; then
  19597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  19598. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  19599. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  19600. $as_echo_n "(cached) " >&6
  19601. else
  19602. ac_check_lib_save_LIBS=$LIBS
  19603. LIBS="-lrt $LIBS"
  19604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19605. /* end confdefs.h. */
  19606. /* Override any GCC internal prototype to avoid an error.
  19607. Use char because int might match the return type of a GCC
  19608. builtin and then its argument prototype would still apply. */
  19609. #ifdef __cplusplus
  19610. extern "C"
  19611. #endif
  19612. char clock_gettime ();
  19613. int
  19614. main ()
  19615. {
  19616. return clock_gettime ();
  19617. ;
  19618. return 0;
  19619. }
  19620. _ACEOF
  19621. if ac_fn_c_try_link "$LINENO"; then :
  19622. ac_cv_lib_rt_clock_gettime=yes
  19623. else
  19624. ac_cv_lib_rt_clock_gettime=no
  19625. fi
  19626. rm -f core conftest.err conftest.$ac_objext \
  19627. conftest$ac_exeext conftest.$ac_ext
  19628. LIBS=$ac_check_lib_save_LIBS
  19629. fi
  19630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  19631. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  19632. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  19633. have_clock_gettime=yes
  19634. fi
  19635. if test x$have_clock_gettime = xyes; then
  19636. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19637. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  19638. else
  19639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  19640. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  19641. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  19642. $as_echo_n "(cached) " >&6
  19643. else
  19644. ac_check_lib_save_LIBS=$LIBS
  19645. LIBS="-lc $LIBS"
  19646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19647. /* end confdefs.h. */
  19648. /* Override any GCC internal prototype to avoid an error.
  19649. Use char because int might match the return type of a GCC
  19650. builtin and then its argument prototype would still apply. */
  19651. #ifdef __cplusplus
  19652. extern "C"
  19653. #endif
  19654. char clock_gettime ();
  19655. int
  19656. main ()
  19657. {
  19658. return clock_gettime ();
  19659. ;
  19660. return 0;
  19661. }
  19662. _ACEOF
  19663. if ac_fn_c_try_link "$LINENO"; then :
  19664. ac_cv_lib_c_clock_gettime=yes
  19665. else
  19666. ac_cv_lib_c_clock_gettime=no
  19667. fi
  19668. rm -f core conftest.err conftest.$ac_objext \
  19669. conftest$ac_exeext conftest.$ac_ext
  19670. LIBS=$ac_check_lib_save_LIBS
  19671. fi
  19672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  19673. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  19674. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  19675. have_clock_gettime=yes
  19676. fi
  19677. if test x$have_clock_gettime = xyes; then
  19678. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19679. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19680. fi
  19681. fi
  19682. fi
  19683. }
  19684. CheckLinuxVersion()
  19685. {
  19686. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  19687. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  19688. have_linux_version_h=yes
  19689. fi
  19690. if test x$have_linux_version_h = xyes; then
  19691. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  19692. fi
  19693. }
  19694. CheckRPATH()
  19695. {
  19696. # Check whether --enable-rpath was given.
  19697. if test "${enable_rpath+set}" = set; then :
  19698. enableval=$enable_rpath;
  19699. else
  19700. enable_rpath=yes
  19701. fi
  19702. }
  19703. CheckWarnAll
  19704. case "$host" in
  19705. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  19706. case "$host" in
  19707. *-raspberry-linux*)
  19708. # Raspberry Pi
  19709. ARCH=linux
  19710. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19711. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19712. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19713. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19714. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  19715. if test x$enable_video = xyes; then
  19716. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19717. # FIXME: confdefs? Not AC_DEFINE?
  19718. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19719. SUMMARY_video="${SUMMARY_video} rpi"
  19720. fi
  19721. ;;
  19722. *-*-androideabi*)
  19723. # Android
  19724. ARCH=android
  19725. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  19726. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  19727. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  19728. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  19729. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  19730. if test x$enable_video = xyes; then
  19731. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  19732. # FIXME: confdefs? Not AC_DEFINE?
  19733. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  19734. SUMMARY_video="${SUMMARY_video} android"
  19735. fi
  19736. ;;
  19737. *-*-linux*) ARCH=linux ;;
  19738. *-*-uclinux*) ARCH=linux ;;
  19739. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  19740. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  19741. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  19742. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  19743. *-*-bsdi*) ARCH=bsdi ;;
  19744. *-*-freebsd*) ARCH=freebsd ;;
  19745. *-*-dragonfly*) ARCH=freebsd ;;
  19746. *-raspberry-netbsd*)
  19747. # Raspberry Pi
  19748. ARCH=netbsd
  19749. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  19750. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19751. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19752. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19753. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host -ldl"
  19754. if test x$enable_video = xyes; then
  19755. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19756. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19757. SUMMARY_video="${SUMMARY_video} raspberry"
  19758. fi
  19759. ;;
  19760. *-*-netbsd*) ARCH=netbsd ;;
  19761. *-*-openbsd*) ARCH=openbsd ;;
  19762. *-*-sysv5*) ARCH=sysv5 ;;
  19763. *-*-solaris*) ARCH=solaris ;;
  19764. *-*-hpux*) ARCH=hpux ;;
  19765. *-*-aix*) ARCH=aix ;;
  19766. *-*-minix*) ARCH=minix ;;
  19767. esac
  19768. CheckVisibilityHidden
  19769. CheckDeclarationAfterStatement
  19770. CheckDummyVideo
  19771. CheckDiskAudio
  19772. CheckDummyAudio
  19773. CheckDLOPEN
  19774. CheckOSS
  19775. CheckALSA
  19776. CheckPulseAudio
  19777. CheckARTSC
  19778. CheckESD
  19779. CheckNAS
  19780. CheckSNDIO
  19781. CheckX11
  19782. CheckDirectFB
  19783. CheckFusionSound
  19784. CheckOpenGLX11
  19785. CheckOpenGLESX11
  19786. CheckMir
  19787. CheckWayland
  19788. CheckLibUDev
  19789. CheckDBus
  19790. CheckIME
  19791. CheckIBus
  19792. CheckFcitx
  19793. case $ARCH in
  19794. linux)
  19795. CheckInputEvents
  19796. CheckInputKD
  19797. ;;
  19798. esac
  19799. CheckTslib
  19800. CheckUSBHID
  19801. CheckPTHREAD
  19802. CheckClockGettime
  19803. CheckLinuxVersion
  19804. CheckRPATH
  19805. CheckVivanteVideo
  19806. # Set up files for the audio library
  19807. if test x$enable_audio = xyes; then
  19808. case $ARCH in
  19809. sysv5|solaris|hpux)
  19810. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  19811. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  19812. have_audio=yes
  19813. ;;
  19814. netbsd) # Don't use this on OpenBSD, it's busted.
  19815. $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
  19816. SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  19817. have_audio=yes
  19818. ;;
  19819. aix)
  19820. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  19821. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  19822. have_audio=yes
  19823. ;;
  19824. android)
  19825. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  19826. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  19827. SUMMARY_audio="${SUMMARY_audio} android"
  19828. have_audio=yes
  19829. ;;
  19830. esac
  19831. fi
  19832. # Set up files for the joystick library
  19833. if test x$enable_joystick = xyes; then
  19834. case $ARCH in
  19835. linux)
  19836. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  19837. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  19838. have_joystick=yes
  19839. ;;
  19840. android)
  19841. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  19842. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  19843. have_joystick=yes
  19844. ;;
  19845. esac
  19846. fi
  19847. # Set up files for the haptic library
  19848. if test x$enable_haptic = xyes; then
  19849. if test x$use_input_events = xyes; then
  19850. case $ARCH in
  19851. linux)
  19852. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  19853. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  19854. have_haptic=yes
  19855. ;;
  19856. esac
  19857. fi
  19858. fi
  19859. # Set up files for the power library
  19860. if test x$enable_power = xyes; then
  19861. case $ARCH in
  19862. linux)
  19863. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  19864. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  19865. have_power=yes
  19866. ;;
  19867. android)
  19868. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  19869. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  19870. have_power=yes
  19871. ;;
  19872. esac
  19873. fi
  19874. # Set up files for the filesystem library
  19875. if test x$enable_filesystem = xyes; then
  19876. case $ARCH in
  19877. android)
  19878. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  19879. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  19880. have_filesystem=yes
  19881. ;;
  19882. *)
  19883. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  19884. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  19885. have_filesystem=yes
  19886. ;;
  19887. esac
  19888. fi
  19889. # Set up files for the timer library
  19890. if test x$enable_timers = xyes; then
  19891. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19892. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19893. have_timers=yes
  19894. fi
  19895. # Set up files for udev hotplugging support
  19896. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  19897. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  19898. fi
  19899. # Set up files for evdev input
  19900. if test x$use_input_events = xyes; then
  19901. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  19902. fi
  19903. ;;
  19904. *-*-cygwin* | *-*-mingw32*)
  19905. ARCH=win32
  19906. if test "$build" != "$host"; then # cross-compiling
  19907. # Default cross-compile location
  19908. ac_default_prefix=/usr/local/cross-tools/$host
  19909. else
  19910. # Look for the location of the tools and install there
  19911. if test "$BUILD_PREFIX" != ""; then
  19912. ac_default_prefix=$BUILD_PREFIX
  19913. fi
  19914. fi
  19915. CheckDummyVideo
  19916. CheckDiskAudio
  19917. CheckDummyAudio
  19918. CheckWINDOWS
  19919. CheckWINDOWSGL
  19920. CheckWINDOWSGLES
  19921. CheckDIRECTX
  19922. # Set up the core platform files
  19923. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  19924. # Set up files for the video library
  19925. if test x$enable_video = xyes; then
  19926. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  19927. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  19928. have_video=yes
  19929. # Check whether --enable-render-d3d was given.
  19930. if test "${enable_render_d3d+set}" = set; then :
  19931. enableval=$enable_render_d3d;
  19932. else
  19933. enable_render_d3d=yes
  19934. fi
  19935. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  19936. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  19937. fi
  19938. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  19939. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  19940. fi
  19941. fi
  19942. # Set up files for the audio library
  19943. if test x$enable_audio = xyes; then
  19944. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  19945. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  19946. if test x$have_dsound = xyes; then
  19947. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  19948. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  19949. fi
  19950. if test x$have_xaudio2 = xyes; then
  19951. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  19952. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  19953. fi
  19954. have_audio=yes
  19955. fi
  19956. # Set up files for the joystick library
  19957. if test x$enable_joystick = xyes; then
  19958. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  19959. if test x$have_xinput = xyes; then
  19960. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  19961. fi
  19962. if test x$have_dinput = xyes; then
  19963. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  19964. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  19965. fi
  19966. else
  19967. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  19968. fi
  19969. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  19970. have_joystick=yes
  19971. fi
  19972. if test x$enable_haptic = xyes; then
  19973. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  19974. if test x$have_xinput = xyes; then
  19975. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  19976. fi
  19977. if test x$have_dinput = xyes; then
  19978. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  19979. fi
  19980. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  19981. have_haptic=yes
  19982. fi
  19983. fi
  19984. if test x$enable_power = xyes; then
  19985. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  19986. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  19987. have_power=yes
  19988. fi
  19989. if test x$enable_filesystem = xyes; then
  19990. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  19991. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  19992. have_filesystem=yes
  19993. fi
  19994. # Set up files for the thread library
  19995. if test x$enable_threads = xyes; then
  19996. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  19997. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  19998. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  19999. have_threads=yes
  20000. fi
  20001. # Set up files for the timer library
  20002. if test x$enable_timers = xyes; then
  20003. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  20004. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  20005. have_timers=yes
  20006. fi
  20007. # Set up files for the shared object loading library
  20008. if test x$enable_loadso = xyes; then
  20009. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  20010. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  20011. have_loadso=yes
  20012. fi
  20013. # Set up the system libraries we need
  20014. if test -f /lib/w32api/libuuid.a; then
  20015. LIBUUID=/lib/w32api/libuuid.a
  20016. else
  20017. LIBUUID=-luuid
  20018. fi
  20019. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
  20020. # The Windows platform requires special setup
  20021. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  20022. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  20023. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  20024. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  20025. # Check to see if this is a mingw or cygwin build
  20026. have_mingw32=
  20027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  20028. $as_echo_n "checking for main in -lmingw32... " >&6; }
  20029. if ${ac_cv_lib_mingw32_main+:} false; then :
  20030. $as_echo_n "(cached) " >&6
  20031. else
  20032. ac_check_lib_save_LIBS=$LIBS
  20033. LIBS="-lmingw32 $LIBS"
  20034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20035. /* end confdefs.h. */
  20036. int
  20037. main ()
  20038. {
  20039. return main ();
  20040. ;
  20041. return 0;
  20042. }
  20043. _ACEOF
  20044. if ac_fn_c_try_link "$LINENO"; then :
  20045. ac_cv_lib_mingw32_main=yes
  20046. else
  20047. ac_cv_lib_mingw32_main=no
  20048. fi
  20049. rm -f core conftest.err conftest.$ac_objext \
  20050. conftest$ac_exeext conftest.$ac_ext
  20051. LIBS=$ac_check_lib_save_LIBS
  20052. fi
  20053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  20054. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  20055. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  20056. have_mingw32=yes
  20057. fi
  20058. if test x$have_mingw32 = xyes; then
  20059. SDL_LIBS="-lmingw32 $SDL_LIBS"
  20060. else
  20061. SDL_LIBS="-lcygwin $SDL_LIBS"
  20062. fi
  20063. ;;
  20064. *-*-beos*)
  20065. as_fn_error $? "
  20066. *** BeOS support has been removed as of SDL 2.0.2.
  20067. " "$LINENO" 5
  20068. ;;
  20069. *-*-haiku*)
  20070. ARCH=haiku
  20071. ac_default_prefix=/boot/system
  20072. CheckDummyVideo
  20073. CheckDiskAudio
  20074. CheckDummyAudio
  20075. CheckDLOPEN
  20076. CheckHaikuVideo
  20077. CheckHaikuGL
  20078. CheckPTHREAD
  20079. # Set up files for the audio library
  20080. if test x$enable_audio = xyes; then
  20081. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  20082. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  20083. have_audio=yes
  20084. fi
  20085. # Set up files for the joystick library
  20086. if test x$enable_joystick = xyes; then
  20087. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  20088. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  20089. have_joystick=yes
  20090. fi
  20091. # Set up files for the timer library
  20092. if test x$enable_timers = xyes; then
  20093. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  20094. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  20095. have_timers=yes
  20096. fi
  20097. # Set up files for the system power library
  20098. if test x$enable_power = xyes; then
  20099. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  20100. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  20101. have_power=yes
  20102. fi
  20103. # Set up files for the system filesystem library
  20104. if test x$enable_filesystem = xyes; then
  20105. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20106. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20107. have_filesystem=yes
  20108. fi
  20109. # The Haiku platform requires special setup.
  20110. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20111. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  20112. ;;
  20113. arm*-apple-darwin*)
  20114. # iOS - We are not writing anything to confdefs.h because you have to replace
  20115. # SDL_config.h for SDL_config_iphoneos.h anyway
  20116. ARCH=ios
  20117. CheckVisibilityHidden
  20118. CheckDeclarationAfterStatement
  20119. CheckDummyVideo
  20120. CheckDiskAudio
  20121. CheckDummyAudio
  20122. CheckDLOPEN
  20123. CheckCOCOA
  20124. CheckPTHREAD
  20125. # Set up files for the audio library
  20126. if test x$enable_audio = xyes; then
  20127. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20128. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20129. have_audio=yes
  20130. fi
  20131. # Set up files for the joystick library
  20132. if test x$enable_joystick = xyes; then
  20133. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20134. have_joystick=yes
  20135. fi
  20136. # Set up files for the haptic library
  20137. #if test x$enable_haptic = xyes; then
  20138. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20139. # have_haptic=yes
  20140. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20141. #fi
  20142. # Set up files for the power library
  20143. if test x$enable_power = xyes; then
  20144. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20145. have_power=yes
  20146. fi
  20147. # Set up files for the filesystem library
  20148. if test x$enable_filesystem = xyes; then
  20149. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20150. have_filesystem=yes
  20151. fi
  20152. # Set up files for the timer library
  20153. if test x$enable_timers = xyes; then
  20154. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20155. have_timers=yes
  20156. fi
  20157. # Set up additional files for the file library
  20158. if test x$enable_file = xyes; then
  20159. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20160. fi
  20161. # The iOS platform requires special setup.
  20162. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20163. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20164. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20165. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20166. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20167. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20168. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20169. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20170. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20171. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20172. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20173. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20174. ;;
  20175. *-*-darwin* )
  20176. # This could be either full "Mac OS X", or plain "Darwin" which is
  20177. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20178. # Next line is broken, and a few files below require Mac OS X (full)
  20179. ARCH=macosx
  20180. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20181. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20182. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20183. CheckVisibilityHidden
  20184. CheckDeclarationAfterStatement
  20185. CheckDummyVideo
  20186. CheckDiskAudio
  20187. CheckDummyAudio
  20188. CheckDLOPEN
  20189. CheckCOCOA
  20190. CheckX11
  20191. CheckMacGL
  20192. CheckOpenGLX11
  20193. CheckPTHREAD
  20194. # Set up files for the audio library
  20195. if test x$enable_audio = xyes; then
  20196. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20197. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20198. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  20199. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20200. have_audio=yes
  20201. fi
  20202. # Set up files for the joystick library
  20203. if test x$enable_joystick = xyes; then
  20204. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20205. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20206. have_joystick=yes
  20207. fi
  20208. # Set up files for the haptic library
  20209. if test x$enable_haptic = xyes; then
  20210. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20211. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20212. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20213. have_haptic=yes
  20214. fi
  20215. # Set up files for the power library
  20216. if test x$enable_power = xyes; then
  20217. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20218. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20219. have_power=yes
  20220. fi
  20221. # Set up files for the filesystem library
  20222. if test x$enable_filesystem = xyes; then
  20223. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20224. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20225. have_filesystem=yes
  20226. fi
  20227. # Set up files for the timer library
  20228. if test x$enable_timers = xyes; then
  20229. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20230. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20231. have_timers=yes
  20232. fi
  20233. # Set up additional files for the file library
  20234. if test x$enable_file = xyes; then
  20235. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20236. fi
  20237. # The Mac OS X platform requires special setup.
  20238. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20239. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  20240. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  20241. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  20242. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  20243. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  20244. ;;
  20245. *-nacl|*-pnacl)
  20246. ARCH=nacl
  20247. CheckNativeClient
  20248. CheckDummyAudio
  20249. CheckDummyVideo
  20250. CheckInputEvents
  20251. CheckPTHREAD
  20252. # Set up files for the timer library
  20253. if test x$enable_timers = xyes; then
  20254. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20255. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20256. have_timers=yes
  20257. fi
  20258. if test x$enable_filesystem = xyes; then
  20259. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  20260. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  20261. have_filesystem=yes
  20262. fi
  20263. ;;
  20264. *-*-emscripten* )
  20265. if test x$enable_video = xyes; then
  20266. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20267. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  20268. have_video=yes
  20269. SUMMARY_video="${SUMMARY_video} emscripten"
  20270. fi
  20271. if test x$enable_audio = xyes; then
  20272. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20273. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  20274. have_audio=yes
  20275. SUMMARY_audio="${SUMMARY_audio} emscripten"
  20276. fi
  20277. CheckVisibilityHidden
  20278. CheckDeclarationAfterStatement
  20279. CheckDummyVideo
  20280. CheckDiskAudio
  20281. CheckDummyAudio
  20282. CheckDLOPEN
  20283. CheckClockGettime
  20284. CheckEmscriptenGLES
  20285. # Set up files for the power library
  20286. if test x$enable_power = xyes; then
  20287. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  20288. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  20289. have_power=yes
  20290. fi
  20291. # Set up files for the power library
  20292. if test x$enable_joystick = xyes; then
  20293. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  20294. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  20295. have_joystick=yes
  20296. fi
  20297. # Set up files for the filesystem library
  20298. if test x$enable_filesystem = xyes; then
  20299. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  20300. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  20301. have_filesystem=yes
  20302. fi
  20303. # Set up files for the timer library
  20304. if test x$enable_timers = xyes; then
  20305. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20306. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20307. have_timers=yes
  20308. fi
  20309. ;;
  20310. *)
  20311. as_fn_error $? "
  20312. *** Unsupported host: Please add to configure.in
  20313. " "$LINENO" 5
  20314. ;;
  20315. esac
  20316. # Verify that we have all the platform specific files we need
  20317. if test x$have_joystick != xyes; then
  20318. if test x$enable_joystick = xyes; then
  20319. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  20320. fi
  20321. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  20322. fi
  20323. if test x$have_haptic != xyes; then
  20324. if test x$enable_haptic = xyes; then
  20325. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  20326. fi
  20327. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  20328. fi
  20329. if test x$have_threads != xyes; then
  20330. if test x$enable_threads = xyes; then
  20331. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  20332. fi
  20333. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  20334. fi
  20335. if test x$have_timers != xyes; then
  20336. if test x$enable_timers = xyes; then
  20337. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  20338. fi
  20339. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  20340. fi
  20341. if test x$have_filesystem != xyes; then
  20342. if test x$enable_filesystem = xyes; then
  20343. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  20344. fi
  20345. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  20346. fi
  20347. if test x$have_loadso != xyes; then
  20348. if test x$enable_loadso = xyes; then
  20349. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  20350. fi
  20351. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  20352. fi
  20353. if test x$SDLMAIN_SOURCES = x; then
  20354. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  20355. fi
  20356. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  20357. if test x$video_wayland = xyes; then
  20358. WAYLAND_CORE_PROTOCOL_SOURCE='$(gen)/wayland-protocol.c'
  20359. WAYLAND_CORE_PROTOCOL_HEADER='$(gen)/wayland-client-protocol.h'
  20360. WAYLAND_PROTOCOLS_UNSTABLE_SOURCES=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20361. sed 's,[^ ]\+,\\$(gen)/&-protocol.c,g'`
  20362. WAYLAND_PROTOCOLS_UNSTABLE_HEADERS=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20363. sed 's,[^ ]\+,\\$(gen)/&-client-protocol.h,g'`
  20364. GEN_SOURCES="$GEN_SOURCES $WAYLAND_CORE_PROTOCOL_SOURCE $WAYLAND_PROTOCOLS_UNSTABLE_SOURCES"
  20365. GEN_HEADERS="$GEN_HEADERS $WAYLAND_CORE_PROTOCOL_HEADER $WAYLAND_PROTOCOLS_UNSTABLE_HEADERS"
  20366. WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS="
  20367. $WAYLAND_CORE_PROTOCOL_SOURCE: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20368. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20369. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) code \$< \$@"
  20370. WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS="
  20371. $WAYLAND_CORE_PROTOCOL_HEADER: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20372. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20373. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) client-header \$< \$@"
  20374. WAYLAND_CORE_PROTOCOL_OBJECT="
  20375. \$(objects)/`echo $WAYLAND_CORE_PROTOCOL_SOURCE | sed 's/\$(gen)\/\(.*\).c$/\1.lo/'`: $WAYLAND_CORE_PROTOCOL_SOURCE
  20376. \$(RUN_CMD_CC)\$(LIBTOOL) --tag=CC --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \$< -o \$@"
  20377. WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20378. do echo ; echo \$p | sed\
  20379. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-client-protocol.h: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20380. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20381. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@," ; done`
  20382. WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20383. do echo ; echo \$p | sed\
  20384. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-protocol.c: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20385. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20386. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@," ; done`
  20387. WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20388. do echo ; echo \$p | sed\
  20389. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\\$(objects)/&-protocol.lo: \\$(gen)/&-protocol.c \\$(gen)/&-client-protocol.h\\\\
  20390. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@," ; done`
  20391. WAYLAND_PROTOCOLS_DEPENDS="
  20392. $WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS
  20393. $WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS
  20394. $WAYLAND_CORE_PROTOCOL_OBJECT
  20395. $WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS
  20396. $WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS
  20397. $WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE
  20398. "
  20399. fi
  20400. OBJECTS=`echo $SOURCES`
  20401. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  20402. for EXT in asm cc m c S; do
  20403. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  20404. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  20405. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  20406. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20407. done
  20408. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20409. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  20410. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  20411. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  20412. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  20413. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  20414. \\$(WINDRES) \\$< \\$@,g"`
  20415. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  20416. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  20417. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20418. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20419. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20420. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20421. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  20422. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  20423. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20424. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20425. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20426. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20427. # Set runtime shared library paths as needed
  20428. if test "x$enable_rpath" = "xyes"; then
  20429. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  20430. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  20431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  20432. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  20433. have_enable_new_dtags=no
  20434. save_LDFLAGS="$LDFLAGS"
  20435. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  20436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20437. /* end confdefs.h. */
  20438. int
  20439. main ()
  20440. {
  20441. ;
  20442. return 0;
  20443. }
  20444. _ACEOF
  20445. if ac_fn_c_try_link "$LINENO"; then :
  20446. have_enable_new_dtags=yes
  20447. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  20448. fi
  20449. rm -f core conftest.err conftest.$ac_objext \
  20450. conftest$ac_exeext conftest.$ac_ext
  20451. LDFLAGS="$save_LDFLAGS"
  20452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  20453. $as_echo "$have_enable_new_dtags" >&6; }
  20454. fi
  20455. if test $ARCH = solaris; then
  20456. SDL_RLD_FLAGS="-R\${libdir}"
  20457. fi
  20458. else
  20459. SDL_RLD_FLAGS=""
  20460. fi
  20461. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  20462. if test x$enable_shared = xyes; then
  20463. ENABLE_SHARED_TRUE=
  20464. ENABLE_SHARED_FALSE="#"
  20465. else
  20466. ENABLE_SHARED_TRUE="#"
  20467. ENABLE_SHARED_FALSE=
  20468. fi
  20469. if test x$enable_static = xyes; then
  20470. ENABLE_STATIC_TRUE=
  20471. ENABLE_STATIC_FALSE="#"
  20472. else
  20473. ENABLE_STATIC_TRUE="#"
  20474. ENABLE_STATIC_FALSE=
  20475. fi
  20476. cat >Makefile.rules <<__EOF__
  20477. # Build rules for objects
  20478. -include \$(OBJECTS:.lo=.d)
  20479. # Special dependency for SDL.c, since it depends on SDL_revision.h
  20480. $srcdir/src/SDL.c: update-revision
  20481. $DEPENDS
  20482. $VERSION_DEPENDS
  20483. $SDLMAIN_DEPENDS
  20484. $SDLTEST_DEPENDS
  20485. $WAYLAND_PROTOCOLS_DEPENDS
  20486. __EOF__
  20487. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  20488. ac_config_commands="$ac_config_commands sdl2_config"
  20489. SUMMARY="SDL2 Configure Summary:\n"
  20490. if test x$enable_shared = xyes; then
  20491. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  20492. fi
  20493. if test x$enable_static = xyes; then
  20494. SUMMARY="${SUMMARY}Building Static Libraries\n"
  20495. fi
  20496. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  20497. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  20498. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  20499. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  20500. if test x$have_x = xyes; then
  20501. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  20502. fi
  20503. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  20504. if test x$have_libudev_h_hdr = xyes; then
  20505. SUMMARY="${SUMMARY}Using libudev : YES\n"
  20506. else
  20507. SUMMARY="${SUMMARY}Using libudev : NO\n"
  20508. fi
  20509. if test x$have_dbus_dbus_h_hdr = xyes; then
  20510. SUMMARY="${SUMMARY}Using dbus : YES\n"
  20511. else
  20512. SUMMARY="${SUMMARY}Using dbus : NO\n"
  20513. fi
  20514. if test x$enable_ime = xyes; then
  20515. SUMMARY="${SUMMARY}Using ime : YES\n"
  20516. else
  20517. SUMMARY="${SUMMARY}Using ime : NO\n"
  20518. fi
  20519. if test x$have_ibus_ibus_h_hdr = xyes; then
  20520. SUMMARY="${SUMMARY}Using ibus : YES\n"
  20521. else
  20522. SUMMARY="${SUMMARY}Using ibus : NO\n"
  20523. fi
  20524. if test x$have_fcitx_frontend_h_hdr = xyes; then
  20525. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  20526. else
  20527. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  20528. fi
  20529. ac_config_commands="$ac_config_commands summary"
  20530. cat >confcache <<\_ACEOF
  20531. # This file is a shell script that caches the results of configure
  20532. # tests run on this system so they can be shared between configure
  20533. # scripts and configure runs, see configure's option --config-cache.
  20534. # It is not useful on other systems. If it contains results you don't
  20535. # want to keep, you may remove or edit it.
  20536. #
  20537. # config.status only pays attention to the cache file if you give it
  20538. # the --recheck option to rerun configure.
  20539. #
  20540. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20541. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20542. # following values.
  20543. _ACEOF
  20544. # The following way of writing the cache mishandles newlines in values,
  20545. # but we know of no workaround that is simple, portable, and efficient.
  20546. # So, we kill variables containing newlines.
  20547. # Ultrix sh set writes to stderr and can't be redirected directly,
  20548. # and sets the high bit in the cache file unless we assign to the vars.
  20549. (
  20550. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20551. eval ac_val=\$$ac_var
  20552. case $ac_val in #(
  20553. *${as_nl}*)
  20554. case $ac_var in #(
  20555. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  20556. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20557. esac
  20558. case $ac_var in #(
  20559. _ | IFS | as_nl) ;; #(
  20560. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20561. *) { eval $ac_var=; unset $ac_var;} ;;
  20562. esac ;;
  20563. esac
  20564. done
  20565. (set) 2>&1 |
  20566. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20567. *${as_nl}ac_space=\ *)
  20568. # `set' does not quote correctly, so add quotes: double-quote
  20569. # substitution turns \\\\ into \\, and sed turns \\ into \.
  20570. sed -n \
  20571. "s/'/'\\\\''/g;
  20572. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20573. ;; #(
  20574. *)
  20575. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20576. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20577. ;;
  20578. esac |
  20579. sort
  20580. ) |
  20581. sed '
  20582. /^ac_cv_env_/b end
  20583. t clear
  20584. :clear
  20585. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20586. t end
  20587. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20588. :end' >>confcache
  20589. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20590. if test -w "$cache_file"; then
  20591. if test "x$cache_file" != "x/dev/null"; then
  20592. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  20593. $as_echo "$as_me: updating cache $cache_file" >&6;}
  20594. if test ! -f "$cache_file" || test -h "$cache_file"; then
  20595. cat confcache >"$cache_file"
  20596. else
  20597. case $cache_file in #(
  20598. */* | ?:*)
  20599. mv -f confcache "$cache_file"$$ &&
  20600. mv -f "$cache_file"$$ "$cache_file" ;; #(
  20601. *)
  20602. mv -f confcache "$cache_file" ;;
  20603. esac
  20604. fi
  20605. fi
  20606. else
  20607. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  20608. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20609. fi
  20610. fi
  20611. rm -f confcache
  20612. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20613. # Let make expand exec_prefix.
  20614. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20615. DEFS=-DHAVE_CONFIG_H
  20616. ac_libobjs=
  20617. ac_ltlibobjs=
  20618. U=
  20619. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20620. # 1. Remove the extension, and $U if already installed.
  20621. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20622. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20623. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20624. # will be set to the directory where LIBOBJS objects are built.
  20625. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20626. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  20627. done
  20628. LIBOBJS=$ac_libobjs
  20629. LTLIBOBJS=$ac_ltlibobjs
  20630. : "${CONFIG_STATUS=./config.status}"
  20631. ac_write_fail=0
  20632. ac_clean_files_save=$ac_clean_files
  20633. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20634. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  20635. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20636. as_write_fail=0
  20637. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  20638. #! $SHELL
  20639. # Generated by $as_me.
  20640. # Run this file to recreate the current configuration.
  20641. # Compiler output produced by configure, useful for debugging
  20642. # configure, is in config.log if it exists.
  20643. debug=false
  20644. ac_cs_recheck=false
  20645. ac_cs_silent=false
  20646. SHELL=\${CONFIG_SHELL-$SHELL}
  20647. export SHELL
  20648. _ASEOF
  20649. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  20650. ## -------------------- ##
  20651. ## M4sh Initialization. ##
  20652. ## -------------------- ##
  20653. # Be more Bourne compatible
  20654. DUALCASE=1; export DUALCASE # for MKS sh
  20655. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20656. emulate sh
  20657. NULLCMD=:
  20658. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20659. # is contrary to our usage. Disable this feature.
  20660. alias -g '${1+"$@"}'='"$@"'
  20661. setopt NO_GLOB_SUBST
  20662. else
  20663. case `(set -o) 2>/dev/null` in #(
  20664. *posix*) :
  20665. set -o posix ;; #(
  20666. *) :
  20667. ;;
  20668. esac
  20669. fi
  20670. as_nl='
  20671. '
  20672. export as_nl
  20673. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  20674. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  20675. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  20676. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  20677. # Prefer a ksh shell builtin over an external printf program on Solaris,
  20678. # but without wasting forks for bash or zsh.
  20679. if test -z "$BASH_VERSION$ZSH_VERSION" \
  20680. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  20681. as_echo='print -r --'
  20682. as_echo_n='print -rn --'
  20683. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  20684. as_echo='printf %s\n'
  20685. as_echo_n='printf %s'
  20686. else
  20687. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  20688. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  20689. as_echo_n='/usr/ucb/echo -n'
  20690. else
  20691. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  20692. as_echo_n_body='eval
  20693. arg=$1;
  20694. case $arg in #(
  20695. *"$as_nl"*)
  20696. expr "X$arg" : "X\\(.*\\)$as_nl";
  20697. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  20698. esac;
  20699. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  20700. '
  20701. export as_echo_n_body
  20702. as_echo_n='sh -c $as_echo_n_body as_echo'
  20703. fi
  20704. export as_echo_body
  20705. as_echo='sh -c $as_echo_body as_echo'
  20706. fi
  20707. # The user is always right.
  20708. if test "${PATH_SEPARATOR+set}" != set; then
  20709. PATH_SEPARATOR=:
  20710. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20711. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20712. PATH_SEPARATOR=';'
  20713. }
  20714. fi
  20715. # IFS
  20716. # We need space, tab and new line, in precisely that order. Quoting is
  20717. # there to prevent editors from complaining about space-tab.
  20718. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20719. # splitting by setting IFS to empty value.)
  20720. IFS=" "" $as_nl"
  20721. # Find who we are. Look in the path if we contain no directory separator.
  20722. as_myself=
  20723. case $0 in #((
  20724. *[\\/]* ) as_myself=$0 ;;
  20725. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20726. for as_dir in $PATH
  20727. do
  20728. IFS=$as_save_IFS
  20729. test -z "$as_dir" && as_dir=.
  20730. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20731. done
  20732. IFS=$as_save_IFS
  20733. ;;
  20734. esac
  20735. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20736. # in which case we are not to be found in the path.
  20737. if test "x$as_myself" = x; then
  20738. as_myself=$0
  20739. fi
  20740. if test ! -f "$as_myself"; then
  20741. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20742. exit 1
  20743. fi
  20744. # Unset variables that we do not need and which cause bugs (e.g. in
  20745. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  20746. # suppresses any "Segmentation fault" message there. '((' could
  20747. # trigger a bug in pdksh 5.2.14.
  20748. for as_var in BASH_ENV ENV MAIL MAILPATH
  20749. do eval test x\${$as_var+set} = xset \
  20750. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  20751. done
  20752. PS1='$ '
  20753. PS2='> '
  20754. PS4='+ '
  20755. # NLS nuisances.
  20756. LC_ALL=C
  20757. export LC_ALL
  20758. LANGUAGE=C
  20759. export LANGUAGE
  20760. # CDPATH.
  20761. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20762. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  20763. # ----------------------------------------
  20764. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  20765. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  20766. # script with STATUS, using 1 if that was 0.
  20767. as_fn_error ()
  20768. {
  20769. as_status=$1; test $as_status -eq 0 && as_status=1
  20770. if test "$4"; then
  20771. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  20772. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  20773. fi
  20774. $as_echo "$as_me: error: $2" >&2
  20775. as_fn_exit $as_status
  20776. } # as_fn_error
  20777. # as_fn_set_status STATUS
  20778. # -----------------------
  20779. # Set $? to STATUS, without forking.
  20780. as_fn_set_status ()
  20781. {
  20782. return $1
  20783. } # as_fn_set_status
  20784. # as_fn_exit STATUS
  20785. # -----------------
  20786. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  20787. as_fn_exit ()
  20788. {
  20789. set +e
  20790. as_fn_set_status $1
  20791. exit $1
  20792. } # as_fn_exit
  20793. # as_fn_unset VAR
  20794. # ---------------
  20795. # Portably unset VAR.
  20796. as_fn_unset ()
  20797. {
  20798. { eval $1=; unset $1;}
  20799. }
  20800. as_unset=as_fn_unset
  20801. # as_fn_append VAR VALUE
  20802. # ----------------------
  20803. # Append the text in VALUE to the end of the definition contained in VAR. Take
  20804. # advantage of any shell optimizations that allow amortized linear growth over
  20805. # repeated appends, instead of the typical quadratic growth present in naive
  20806. # implementations.
  20807. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  20808. eval 'as_fn_append ()
  20809. {
  20810. eval $1+=\$2
  20811. }'
  20812. else
  20813. as_fn_append ()
  20814. {
  20815. eval $1=\$$1\$2
  20816. }
  20817. fi # as_fn_append
  20818. # as_fn_arith ARG...
  20819. # ------------------
  20820. # Perform arithmetic evaluation on the ARGs, and store the result in the
  20821. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  20822. # must be portable across $(()) and expr.
  20823. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  20824. eval 'as_fn_arith ()
  20825. {
  20826. as_val=$(( $* ))
  20827. }'
  20828. else
  20829. as_fn_arith ()
  20830. {
  20831. as_val=`expr "$@" || test $? -eq 1`
  20832. }
  20833. fi # as_fn_arith
  20834. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20835. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20836. as_expr=expr
  20837. else
  20838. as_expr=false
  20839. fi
  20840. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20841. as_basename=basename
  20842. else
  20843. as_basename=false
  20844. fi
  20845. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20846. as_dirname=dirname
  20847. else
  20848. as_dirname=false
  20849. fi
  20850. as_me=`$as_basename -- "$0" ||
  20851. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20852. X"$0" : 'X\(//\)$' \| \
  20853. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20854. $as_echo X/"$0" |
  20855. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20856. s//\1/
  20857. q
  20858. }
  20859. /^X\/\(\/\/\)$/{
  20860. s//\1/
  20861. q
  20862. }
  20863. /^X\/\(\/\).*/{
  20864. s//\1/
  20865. q
  20866. }
  20867. s/.*/./; q'`
  20868. # Avoid depending upon Character Ranges.
  20869. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20870. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20871. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20872. as_cr_digits='0123456789'
  20873. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20874. ECHO_C= ECHO_N= ECHO_T=
  20875. case `echo -n x` in #(((((
  20876. -n*)
  20877. case `echo 'xy\c'` in
  20878. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20879. xy) ECHO_C='\c';;
  20880. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  20881. ECHO_T=' ';;
  20882. esac;;
  20883. *)
  20884. ECHO_N='-n';;
  20885. esac
  20886. rm -f conf$$ conf$$.exe conf$$.file
  20887. if test -d conf$$.dir; then
  20888. rm -f conf$$.dir/conf$$.file
  20889. else
  20890. rm -f conf$$.dir
  20891. mkdir conf$$.dir 2>/dev/null
  20892. fi
  20893. if (echo >conf$$.file) 2>/dev/null; then
  20894. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20895. as_ln_s='ln -s'
  20896. # ... but there are two gotchas:
  20897. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20898. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20899. # In both cases, we have to default to `cp -pR'.
  20900. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20901. as_ln_s='cp -pR'
  20902. elif ln conf$$.file conf$$ 2>/dev/null; then
  20903. as_ln_s=ln
  20904. else
  20905. as_ln_s='cp -pR'
  20906. fi
  20907. else
  20908. as_ln_s='cp -pR'
  20909. fi
  20910. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20911. rmdir conf$$.dir 2>/dev/null
  20912. # as_fn_mkdir_p
  20913. # -------------
  20914. # Create "$as_dir" as a directory, including parents if necessary.
  20915. as_fn_mkdir_p ()
  20916. {
  20917. case $as_dir in #(
  20918. -*) as_dir=./$as_dir;;
  20919. esac
  20920. test -d "$as_dir" || eval $as_mkdir_p || {
  20921. as_dirs=
  20922. while :; do
  20923. case $as_dir in #(
  20924. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  20925. *) as_qdir=$as_dir;;
  20926. esac
  20927. as_dirs="'$as_qdir' $as_dirs"
  20928. as_dir=`$as_dirname -- "$as_dir" ||
  20929. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20930. X"$as_dir" : 'X\(//\)[^/]' \| \
  20931. X"$as_dir" : 'X\(//\)$' \| \
  20932. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20933. $as_echo X"$as_dir" |
  20934. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20935. s//\1/
  20936. q
  20937. }
  20938. /^X\(\/\/\)[^/].*/{
  20939. s//\1/
  20940. q
  20941. }
  20942. /^X\(\/\/\)$/{
  20943. s//\1/
  20944. q
  20945. }
  20946. /^X\(\/\).*/{
  20947. s//\1/
  20948. q
  20949. }
  20950. s/.*/./; q'`
  20951. test -d "$as_dir" && break
  20952. done
  20953. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20954. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  20955. } # as_fn_mkdir_p
  20956. if mkdir -p . 2>/dev/null; then
  20957. as_mkdir_p='mkdir -p "$as_dir"'
  20958. else
  20959. test -d ./-p && rmdir ./-p
  20960. as_mkdir_p=false
  20961. fi
  20962. # as_fn_executable_p FILE
  20963. # -----------------------
  20964. # Test if FILE is an executable regular file.
  20965. as_fn_executable_p ()
  20966. {
  20967. test -f "$1" && test -x "$1"
  20968. } # as_fn_executable_p
  20969. as_test_x='test -x'
  20970. as_executable_p=as_fn_executable_p
  20971. # Sed expression to map a string onto a valid CPP name.
  20972. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20973. # Sed expression to map a string onto a valid variable name.
  20974. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20975. exec 6>&1
  20976. ## ----------------------------------- ##
  20977. ## Main body of $CONFIG_STATUS script. ##
  20978. ## ----------------------------------- ##
  20979. _ASEOF
  20980. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  20981. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20982. # Save the log message, to keep $0 and so on meaningful, and to
  20983. # report actual input values of CONFIG_FILES etc. instead of their
  20984. # values after options handling.
  20985. ac_log="
  20986. This file was extended by $as_me, which was
  20987. generated by GNU Autoconf 2.69. Invocation command line was
  20988. CONFIG_FILES = $CONFIG_FILES
  20989. CONFIG_HEADERS = $CONFIG_HEADERS
  20990. CONFIG_LINKS = $CONFIG_LINKS
  20991. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20992. $ $0 $@
  20993. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20994. "
  20995. _ACEOF
  20996. case $ac_config_files in *"
  20997. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  20998. esac
  20999. case $ac_config_headers in *"
  21000. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21001. esac
  21002. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21003. # Files that config.status was made for.
  21004. config_files="$ac_config_files"
  21005. config_headers="$ac_config_headers"
  21006. config_commands="$ac_config_commands"
  21007. _ACEOF
  21008. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21009. ac_cs_usage="\
  21010. \`$as_me' instantiates files and other configuration actions
  21011. from templates according to the current configuration. Unless the files
  21012. and actions are specified as TAGs, all are instantiated by default.
  21013. Usage: $0 [OPTION]... [TAG]...
  21014. -h, --help print this help, then exit
  21015. -V, --version print version number and configuration settings, then exit
  21016. --config print configuration, then exit
  21017. -q, --quiet, --silent
  21018. do not print progress messages
  21019. -d, --debug don't remove temporary files
  21020. --recheck update $as_me by reconfiguring in the same conditions
  21021. --file=FILE[:TEMPLATE]
  21022. instantiate the configuration file FILE
  21023. --header=FILE[:TEMPLATE]
  21024. instantiate the configuration header FILE
  21025. Configuration files:
  21026. $config_files
  21027. Configuration headers:
  21028. $config_headers
  21029. Configuration commands:
  21030. $config_commands
  21031. Report bugs to the package provider."
  21032. _ACEOF
  21033. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21034. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21035. ac_cs_version="\\
  21036. config.status
  21037. configured by $0, generated by GNU Autoconf 2.69,
  21038. with options \\"\$ac_cs_config\\"
  21039. Copyright (C) 2012 Free Software Foundation, Inc.
  21040. This config.status script is free software; the Free Software Foundation
  21041. gives unlimited permission to copy, distribute and modify it."
  21042. ac_pwd='$ac_pwd'
  21043. srcdir='$srcdir'
  21044. INSTALL='$INSTALL'
  21045. AWK='$AWK'
  21046. test -n "\$AWK" || AWK=awk
  21047. _ACEOF
  21048. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21049. # The default lists apply if the user does not specify any file.
  21050. ac_need_defaults=:
  21051. while test $# != 0
  21052. do
  21053. case $1 in
  21054. --*=?*)
  21055. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21056. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21057. ac_shift=:
  21058. ;;
  21059. --*=)
  21060. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21061. ac_optarg=
  21062. ac_shift=:
  21063. ;;
  21064. *)
  21065. ac_option=$1
  21066. ac_optarg=$2
  21067. ac_shift=shift
  21068. ;;
  21069. esac
  21070. case $ac_option in
  21071. # Handling of the options.
  21072. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21073. ac_cs_recheck=: ;;
  21074. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21075. $as_echo "$ac_cs_version"; exit ;;
  21076. --config | --confi | --conf | --con | --co | --c )
  21077. $as_echo "$ac_cs_config"; exit ;;
  21078. --debug | --debu | --deb | --de | --d | -d )
  21079. debug=: ;;
  21080. --file | --fil | --fi | --f )
  21081. $ac_shift
  21082. case $ac_optarg in
  21083. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21084. '') as_fn_error $? "missing file argument" ;;
  21085. esac
  21086. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21087. ac_need_defaults=false;;
  21088. --header | --heade | --head | --hea )
  21089. $ac_shift
  21090. case $ac_optarg in
  21091. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21092. esac
  21093. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21094. ac_need_defaults=false;;
  21095. --he | --h)
  21096. # Conflict between --help and --header
  21097. as_fn_error $? "ambiguous option: \`$1'
  21098. Try \`$0 --help' for more information.";;
  21099. --help | --hel | -h )
  21100. $as_echo "$ac_cs_usage"; exit ;;
  21101. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21102. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21103. ac_cs_silent=: ;;
  21104. # This is an error.
  21105. -*) as_fn_error $? "unrecognized option: \`$1'
  21106. Try \`$0 --help' for more information." ;;
  21107. *) as_fn_append ac_config_targets " $1"
  21108. ac_need_defaults=false ;;
  21109. esac
  21110. shift
  21111. done
  21112. ac_configure_extra_args=
  21113. if $ac_cs_silent; then
  21114. exec 6>/dev/null
  21115. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21116. fi
  21117. _ACEOF
  21118. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21119. if \$ac_cs_recheck; then
  21120. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21121. shift
  21122. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21123. CONFIG_SHELL='$SHELL'
  21124. export CONFIG_SHELL
  21125. exec "\$@"
  21126. fi
  21127. _ACEOF
  21128. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21129. exec 5>>config.log
  21130. {
  21131. echo
  21132. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21133. ## Running $as_me. ##
  21134. _ASBOX
  21135. $as_echo "$ac_log"
  21136. } >&5
  21137. _ACEOF
  21138. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21139. #
  21140. # INIT-COMMANDS
  21141. #
  21142. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21143. # if CDPATH is set.
  21144. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21145. sed_quote_subst='$sed_quote_subst'
  21146. double_quote_subst='$double_quote_subst'
  21147. delay_variable_subst='$delay_variable_subst'
  21148. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21149. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21150. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21151. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21152. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21153. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21154. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21155. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21156. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21157. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21158. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21159. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21160. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21161. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21162. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21163. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21164. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21165. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21166. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21167. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21168. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21169. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21170. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21171. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21172. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21173. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21174. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21175. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21176. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21177. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21178. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21179. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21180. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21181. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21182. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21183. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21184. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21185. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21186. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21187. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21188. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21189. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21190. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21191. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21192. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21193. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21194. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21195. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21196. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21197. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  21198. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  21199. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  21200. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  21201. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  21202. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21203. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21204. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21205. 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"`'
  21206. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21207. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21208. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21209. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21210. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21211. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21212. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21213. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21214. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21215. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21216. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21217. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21218. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21219. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21220. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21221. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21222. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21223. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21224. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21225. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21226. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21227. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21228. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21229. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21230. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21231. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21232. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21233. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21234. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21235. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21236. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21237. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21238. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21239. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  21240. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  21241. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  21242. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  21243. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  21244. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21245. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  21246. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  21247. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  21248. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  21249. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  21250. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  21251. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  21252. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  21253. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  21254. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  21255. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  21256. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21257. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  21258. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  21259. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  21260. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21261. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  21262. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  21263. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  21264. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  21265. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  21266. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21267. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21268. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  21269. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  21270. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  21271. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  21272. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  21273. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  21274. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  21275. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  21276. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  21277. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  21278. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  21279. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  21280. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  21281. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  21282. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  21283. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  21284. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  21285. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  21286. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21287. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21288. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21289. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  21290. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  21291. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21292. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  21293. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  21294. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  21295. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  21296. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  21297. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  21298. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21299. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21300. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  21301. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21302. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21303. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21304. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21305. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21306. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21307. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  21308. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21309. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21310. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21311. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  21312. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  21313. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  21314. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  21315. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  21316. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  21317. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  21318. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  21319. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  21320. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21321. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21322. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21323. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21324. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21325. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21326. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  21327. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  21328. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21329. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21330. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  21331. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  21332. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  21333. LTCC='$LTCC'
  21334. LTCFLAGS='$LTCFLAGS'
  21335. compiler='$compiler_DEFAULT'
  21336. # A function that is used when there is no print builtin or printf.
  21337. func_fallback_echo ()
  21338. {
  21339. eval 'cat <<_LTECHO_EOF
  21340. \$1
  21341. _LTECHO_EOF'
  21342. }
  21343. # Quote evaled strings.
  21344. for var in AS \
  21345. DLLTOOL \
  21346. OBJDUMP \
  21347. SHELL \
  21348. ECHO \
  21349. PATH_SEPARATOR \
  21350. SED \
  21351. GREP \
  21352. EGREP \
  21353. FGREP \
  21354. LD \
  21355. NM \
  21356. LN_S \
  21357. lt_SP2NL \
  21358. lt_NL2SP \
  21359. reload_flag \
  21360. deplibs_check_method \
  21361. file_magic_cmd \
  21362. file_magic_glob \
  21363. want_nocaseglob \
  21364. sharedlib_from_linklib_cmd \
  21365. AR \
  21366. AR_FLAGS \
  21367. archiver_list_spec \
  21368. STRIP \
  21369. RANLIB \
  21370. CC \
  21371. CFLAGS \
  21372. compiler \
  21373. lt_cv_sys_global_symbol_pipe \
  21374. lt_cv_sys_global_symbol_to_cdecl \
  21375. lt_cv_sys_global_symbol_to_c_name_address \
  21376. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21377. nm_file_list_spec \
  21378. lt_prog_compiler_no_builtin_flag \
  21379. lt_prog_compiler_pic \
  21380. lt_prog_compiler_wl \
  21381. lt_prog_compiler_static \
  21382. lt_cv_prog_compiler_c_o \
  21383. need_locks \
  21384. MANIFEST_TOOL \
  21385. DSYMUTIL \
  21386. NMEDIT \
  21387. LIPO \
  21388. OTOOL \
  21389. OTOOL64 \
  21390. shrext_cmds \
  21391. export_dynamic_flag_spec \
  21392. whole_archive_flag_spec \
  21393. compiler_needs_object \
  21394. with_gnu_ld \
  21395. allow_undefined_flag \
  21396. no_undefined_flag \
  21397. hardcode_libdir_flag_spec \
  21398. hardcode_libdir_separator \
  21399. exclude_expsyms \
  21400. include_expsyms \
  21401. file_list_spec \
  21402. variables_saved_for_relink \
  21403. libname_spec \
  21404. library_names_spec \
  21405. soname_spec \
  21406. install_override_mode \
  21407. finish_eval \
  21408. old_striplib \
  21409. striplib \
  21410. compiler_lib_search_dirs \
  21411. predep_objects \
  21412. postdep_objects \
  21413. predeps \
  21414. postdeps \
  21415. compiler_lib_search_path \
  21416. LD_CXX \
  21417. reload_flag_CXX \
  21418. compiler_CXX \
  21419. lt_prog_compiler_no_builtin_flag_CXX \
  21420. lt_prog_compiler_pic_CXX \
  21421. lt_prog_compiler_wl_CXX \
  21422. lt_prog_compiler_static_CXX \
  21423. lt_cv_prog_compiler_c_o_CXX \
  21424. export_dynamic_flag_spec_CXX \
  21425. whole_archive_flag_spec_CXX \
  21426. compiler_needs_object_CXX \
  21427. with_gnu_ld_CXX \
  21428. allow_undefined_flag_CXX \
  21429. no_undefined_flag_CXX \
  21430. hardcode_libdir_flag_spec_CXX \
  21431. hardcode_libdir_separator_CXX \
  21432. exclude_expsyms_CXX \
  21433. include_expsyms_CXX \
  21434. file_list_spec_CXX \
  21435. compiler_lib_search_dirs_CXX \
  21436. predep_objects_CXX \
  21437. postdep_objects_CXX \
  21438. predeps_CXX \
  21439. postdeps_CXX \
  21440. compiler_lib_search_path_CXX; do
  21441. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21442. *[\\\\\\\`\\"\\\$]*)
  21443. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  21444. ;;
  21445. *)
  21446. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21447. ;;
  21448. esac
  21449. done
  21450. # Double-quote double-evaled strings.
  21451. for var in reload_cmds \
  21452. old_postinstall_cmds \
  21453. old_postuninstall_cmds \
  21454. old_archive_cmds \
  21455. extract_expsyms_cmds \
  21456. old_archive_from_new_cmds \
  21457. old_archive_from_expsyms_cmds \
  21458. archive_cmds \
  21459. archive_expsym_cmds \
  21460. module_cmds \
  21461. module_expsym_cmds \
  21462. export_symbols_cmds \
  21463. prelink_cmds \
  21464. postlink_cmds \
  21465. postinstall_cmds \
  21466. postuninstall_cmds \
  21467. finish_cmds \
  21468. sys_lib_search_path_spec \
  21469. sys_lib_dlsearch_path_spec \
  21470. reload_cmds_CXX \
  21471. old_archive_cmds_CXX \
  21472. old_archive_from_new_cmds_CXX \
  21473. old_archive_from_expsyms_cmds_CXX \
  21474. archive_cmds_CXX \
  21475. archive_expsym_cmds_CXX \
  21476. module_cmds_CXX \
  21477. module_expsym_cmds_CXX \
  21478. export_symbols_cmds_CXX \
  21479. prelink_cmds_CXX \
  21480. postlink_cmds_CXX; do
  21481. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21482. *[\\\\\\\`\\"\\\$]*)
  21483. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  21484. ;;
  21485. *)
  21486. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21487. ;;
  21488. esac
  21489. done
  21490. ac_aux_dir='$ac_aux_dir'
  21491. xsi_shell='$xsi_shell'
  21492. lt_shell_append='$lt_shell_append'
  21493. # See if we are running on zsh, and set the options which allow our
  21494. # commands through without removal of \ escapes INIT.
  21495. if test -n "\${ZSH_VERSION+set}" ; then
  21496. setopt NO_GLOB_SUBST
  21497. fi
  21498. PACKAGE='$PACKAGE'
  21499. VERSION='$VERSION'
  21500. TIMESTAMP='$TIMESTAMP'
  21501. RM='$RM'
  21502. ofile='$ofile'
  21503. SUMMARY="$SUMMARY"
  21504. _ACEOF
  21505. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21506. # Handling of arguments.
  21507. for ac_config_target in $ac_config_targets
  21508. do
  21509. case $ac_config_target in
  21510. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  21511. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  21512. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  21513. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  21514. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  21515. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  21516. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  21517. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  21518. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  21519. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  21520. esac
  21521. done
  21522. # If the user did not use the arguments to specify the items to instantiate,
  21523. # then the envvar interface is used. Set only those that are not.
  21524. # We use the long form for the default assignment because of an extremely
  21525. # bizarre bug on SunOS 4.1.3.
  21526. if $ac_need_defaults; then
  21527. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21528. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21529. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21530. fi
  21531. # Have a temporary directory for convenience. Make it in the build tree
  21532. # simply because there is no reason against having it here, and in addition,
  21533. # creating and moving files from /tmp can sometimes cause problems.
  21534. # Hook for its removal unless debugging.
  21535. # Note that there is a small window in which the directory will not be cleaned:
  21536. # after its creation but before its name has been assigned to `$tmp'.
  21537. $debug ||
  21538. {
  21539. tmp= ac_tmp=
  21540. trap 'exit_status=$?
  21541. : "${ac_tmp:=$tmp}"
  21542. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  21543. ' 0
  21544. trap 'as_fn_exit 1' 1 2 13 15
  21545. }
  21546. # Create a (secure) tmp directory for tmp files.
  21547. {
  21548. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21549. test -d "$tmp"
  21550. } ||
  21551. {
  21552. tmp=./conf$$-$RANDOM
  21553. (umask 077 && mkdir "$tmp")
  21554. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  21555. ac_tmp=$tmp
  21556. # Set up the scripts for CONFIG_FILES section.
  21557. # No need to generate them if there are no CONFIG_FILES.
  21558. # This happens for instance with `./config.status config.h'.
  21559. if test -n "$CONFIG_FILES"; then
  21560. ac_cr=`echo X | tr X '\015'`
  21561. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  21562. # But we know of no other shell where ac_cr would be empty at this
  21563. # point, so we can use a bashism as a fallback.
  21564. if test "x$ac_cr" = x; then
  21565. eval ac_cr=\$\'\\r\'
  21566. fi
  21567. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21568. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21569. ac_cs_awk_cr='\\r'
  21570. else
  21571. ac_cs_awk_cr=$ac_cr
  21572. fi
  21573. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  21574. _ACEOF
  21575. {
  21576. echo "cat >conf$$subs.awk <<_ACEOF" &&
  21577. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21578. echo "_ACEOF"
  21579. } >conf$$subs.sh ||
  21580. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21581. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  21582. ac_delim='%!_!# '
  21583. for ac_last_try in false false false false false :; do
  21584. . ./conf$$subs.sh ||
  21585. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21586. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21587. if test $ac_delim_n = $ac_delim_num; then
  21588. break
  21589. elif $ac_last_try; then
  21590. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21591. else
  21592. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21593. fi
  21594. done
  21595. rm -f conf$$subs.sh
  21596. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21597. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  21598. _ACEOF
  21599. sed -n '
  21600. h
  21601. s/^/S["/; s/!.*/"]=/
  21602. p
  21603. g
  21604. s/^[^!]*!//
  21605. :repl
  21606. t repl
  21607. s/'"$ac_delim"'$//
  21608. t delim
  21609. :nl
  21610. h
  21611. s/\(.\{148\}\)..*/\1/
  21612. t more1
  21613. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21614. p
  21615. n
  21616. b repl
  21617. :more1
  21618. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21619. p
  21620. g
  21621. s/.\{148\}//
  21622. t nl
  21623. :delim
  21624. h
  21625. s/\(.\{148\}\)..*/\1/
  21626. t more2
  21627. s/["\\]/\\&/g; s/^/"/; s/$/"/
  21628. p
  21629. b
  21630. :more2
  21631. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21632. p
  21633. g
  21634. s/.\{148\}//
  21635. t delim
  21636. ' <conf$$subs.awk | sed '
  21637. /^[^""]/{
  21638. N
  21639. s/\n//
  21640. }
  21641. ' >>$CONFIG_STATUS || ac_write_fail=1
  21642. rm -f conf$$subs.awk
  21643. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21644. _ACAWK
  21645. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  21646. for (key in S) S_is_set[key] = 1
  21647. FS = ""
  21648. }
  21649. {
  21650. line = $ 0
  21651. nfields = split(line, field, "@")
  21652. substed = 0
  21653. len = length(field[1])
  21654. for (i = 2; i < nfields; i++) {
  21655. key = field[i]
  21656. keylen = length(key)
  21657. if (S_is_set[key]) {
  21658. value = S[key]
  21659. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21660. len += length(value) + length(field[++i])
  21661. substed = 1
  21662. } else
  21663. len += 1 + keylen
  21664. }
  21665. print line
  21666. }
  21667. _ACAWK
  21668. _ACEOF
  21669. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21670. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21671. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21672. else
  21673. cat
  21674. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  21675. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  21676. _ACEOF
  21677. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  21678. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  21679. # trailing colons and then remove the whole line if VPATH becomes empty
  21680. # (actually we leave an empty line to preserve line numbers).
  21681. if test "x$srcdir" = x.; then
  21682. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  21683. h
  21684. s///
  21685. s/^/:/
  21686. s/[ ]*$/:/
  21687. s/:\$(srcdir):/:/g
  21688. s/:\${srcdir}:/:/g
  21689. s/:@srcdir@:/:/g
  21690. s/^:*//
  21691. s/:*$//
  21692. x
  21693. s/\(=[ ]*\).*/\1/
  21694. G
  21695. s/\n//
  21696. s/^[^=]*=[ ]*$//
  21697. }'
  21698. fi
  21699. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21700. fi # test -n "$CONFIG_FILES"
  21701. # Set up the scripts for CONFIG_HEADERS section.
  21702. # No need to generate them if there are no CONFIG_HEADERS.
  21703. # This happens for instance with `./config.status Makefile'.
  21704. if test -n "$CONFIG_HEADERS"; then
  21705. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  21706. BEGIN {
  21707. _ACEOF
  21708. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21709. # here-document in config.status, that substitutes the proper values into
  21710. # config.h.in to produce config.h.
  21711. # Create a delimiter string that does not exist in confdefs.h, to ease
  21712. # handling of long lines.
  21713. ac_delim='%!_!# '
  21714. for ac_last_try in false false :; do
  21715. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  21716. if test -z "$ac_tt"; then
  21717. break
  21718. elif $ac_last_try; then
  21719. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  21720. else
  21721. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21722. fi
  21723. done
  21724. # For the awk script, D is an array of macro values keyed by name,
  21725. # likewise P contains macro parameters if any. Preserve backslash
  21726. # newline sequences.
  21727. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21728. sed -n '
  21729. s/.\{148\}/&'"$ac_delim"'/g
  21730. t rset
  21731. :rset
  21732. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21733. t def
  21734. d
  21735. :def
  21736. s/\\$//
  21737. t bsnl
  21738. s/["\\]/\\&/g
  21739. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21740. D["\1"]=" \3"/p
  21741. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21742. d
  21743. :bsnl
  21744. s/["\\]/\\&/g
  21745. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21746. D["\1"]=" \3\\\\\\n"\\/p
  21747. t cont
  21748. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21749. t cont
  21750. d
  21751. :cont
  21752. n
  21753. s/.\{148\}/&'"$ac_delim"'/g
  21754. t clear
  21755. :clear
  21756. s/\\$//
  21757. t bsnlc
  21758. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21759. d
  21760. :bsnlc
  21761. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21762. b cont
  21763. ' <confdefs.h | sed '
  21764. s/'"$ac_delim"'/"\\\
  21765. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21766. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21767. for (key in D) D_is_set[key] = 1
  21768. FS = ""
  21769. }
  21770. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21771. line = \$ 0
  21772. split(line, arg, " ")
  21773. if (arg[1] == "#") {
  21774. defundef = arg[2]
  21775. mac1 = arg[3]
  21776. } else {
  21777. defundef = substr(arg[1], 2)
  21778. mac1 = arg[2]
  21779. }
  21780. split(mac1, mac2, "(") #)
  21781. macro = mac2[1]
  21782. prefix = substr(line, 1, index(line, defundef) - 1)
  21783. if (D_is_set[macro]) {
  21784. # Preserve the white space surrounding the "#".
  21785. print prefix "define", macro P[macro] D[macro]
  21786. next
  21787. } else {
  21788. # Replace #undef with comments. This is necessary, for example,
  21789. # in the case of _POSIX_SOURCE, which is predefined and required
  21790. # on some systems where configure will not decide to define it.
  21791. if (defundef == "undef") {
  21792. print "/*", prefix defundef, macro, "*/"
  21793. next
  21794. }
  21795. }
  21796. }
  21797. { print }
  21798. _ACAWK
  21799. _ACEOF
  21800. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21801. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  21802. fi # test -n "$CONFIG_HEADERS"
  21803. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21804. shift
  21805. for ac_tag
  21806. do
  21807. case $ac_tag in
  21808. :[FHLC]) ac_mode=$ac_tag; continue;;
  21809. esac
  21810. case $ac_mode$ac_tag in
  21811. :[FHL]*:*);;
  21812. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  21813. :[FH]-) ac_tag=-:-;;
  21814. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21815. esac
  21816. ac_save_IFS=$IFS
  21817. IFS=:
  21818. set x $ac_tag
  21819. IFS=$ac_save_IFS
  21820. shift
  21821. ac_file=$1
  21822. shift
  21823. case $ac_mode in
  21824. :L) ac_source=$1;;
  21825. :[FH])
  21826. ac_file_inputs=
  21827. for ac_f
  21828. do
  21829. case $ac_f in
  21830. -) ac_f="$ac_tmp/stdin";;
  21831. *) # Look for the file first in the build tree, then in the source tree
  21832. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21833. # because $ac_f cannot contain `:'.
  21834. test -f "$ac_f" ||
  21835. case $ac_f in
  21836. [\\/$]*) false;;
  21837. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21838. esac ||
  21839. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  21840. esac
  21841. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21842. as_fn_append ac_file_inputs " '$ac_f'"
  21843. done
  21844. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21845. # use $as_me), people would be surprised to read:
  21846. # /* config.h. Generated by config.status. */
  21847. configure_input='Generated from '`
  21848. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21849. `' by configure.'
  21850. if test x"$ac_file" != x-; then
  21851. configure_input="$ac_file. $configure_input"
  21852. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  21853. $as_echo "$as_me: creating $ac_file" >&6;}
  21854. fi
  21855. # Neutralize special characters interpreted by sed in replacement strings.
  21856. case $configure_input in #(
  21857. *\&* | *\|* | *\\* )
  21858. ac_sed_conf_input=`$as_echo "$configure_input" |
  21859. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21860. *) ac_sed_conf_input=$configure_input;;
  21861. esac
  21862. case $ac_tag in
  21863. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  21864. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  21865. esac
  21866. ;;
  21867. esac
  21868. ac_dir=`$as_dirname -- "$ac_file" ||
  21869. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21870. X"$ac_file" : 'X\(//\)[^/]' \| \
  21871. X"$ac_file" : 'X\(//\)$' \| \
  21872. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21873. $as_echo X"$ac_file" |
  21874. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21875. s//\1/
  21876. q
  21877. }
  21878. /^X\(\/\/\)[^/].*/{
  21879. s//\1/
  21880. q
  21881. }
  21882. /^X\(\/\/\)$/{
  21883. s//\1/
  21884. q
  21885. }
  21886. /^X\(\/\).*/{
  21887. s//\1/
  21888. q
  21889. }
  21890. s/.*/./; q'`
  21891. as_dir="$ac_dir"; as_fn_mkdir_p
  21892. ac_builddir=.
  21893. case "$ac_dir" in
  21894. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21895. *)
  21896. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21897. # A ".." for each directory in $ac_dir_suffix.
  21898. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21899. case $ac_top_builddir_sub in
  21900. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21901. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21902. esac ;;
  21903. esac
  21904. ac_abs_top_builddir=$ac_pwd
  21905. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21906. # for backward compatibility:
  21907. ac_top_builddir=$ac_top_build_prefix
  21908. case $srcdir in
  21909. .) # We are building in place.
  21910. ac_srcdir=.
  21911. ac_top_srcdir=$ac_top_builddir_sub
  21912. ac_abs_top_srcdir=$ac_pwd ;;
  21913. [\\/]* | ?:[\\/]* ) # Absolute name.
  21914. ac_srcdir=$srcdir$ac_dir_suffix;
  21915. ac_top_srcdir=$srcdir
  21916. ac_abs_top_srcdir=$srcdir ;;
  21917. *) # Relative name.
  21918. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21919. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21920. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21921. esac
  21922. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21923. case $ac_mode in
  21924. :F)
  21925. #
  21926. # CONFIG_FILE
  21927. #
  21928. case $INSTALL in
  21929. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21930. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21931. esac
  21932. _ACEOF
  21933. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21934. # If the template does not know about datarootdir, expand it.
  21935. # FIXME: This hack should be removed a few years after 2.60.
  21936. ac_datarootdir_hack=; ac_datarootdir_seen=
  21937. ac_sed_dataroot='
  21938. /datarootdir/ {
  21939. p
  21940. q
  21941. }
  21942. /@datadir@/p
  21943. /@docdir@/p
  21944. /@infodir@/p
  21945. /@localedir@/p
  21946. /@mandir@/p'
  21947. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21948. *datarootdir*) ac_datarootdir_seen=yes;;
  21949. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21951. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21952. _ACEOF
  21953. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21954. ac_datarootdir_hack='
  21955. s&@datadir@&$datadir&g
  21956. s&@docdir@&$docdir&g
  21957. s&@infodir@&$infodir&g
  21958. s&@localedir@&$localedir&g
  21959. s&@mandir@&$mandir&g
  21960. s&\\\${datarootdir}&$datarootdir&g' ;;
  21961. esac
  21962. _ACEOF
  21963. # Neutralize VPATH when `$srcdir' = `.'.
  21964. # Shell code in configure.ac might set extrasub.
  21965. # FIXME: do we really want to maintain this feature?
  21966. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21967. ac_sed_extra="$ac_vpsub
  21968. $extrasub
  21969. _ACEOF
  21970. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21971. :t
  21972. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21973. s|@configure_input@|$ac_sed_conf_input|;t t
  21974. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21975. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  21976. s&@srcdir@&$ac_srcdir&;t t
  21977. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21978. s&@top_srcdir@&$ac_top_srcdir&;t t
  21979. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21980. s&@builddir@&$ac_builddir&;t t
  21981. s&@abs_builddir@&$ac_abs_builddir&;t t
  21982. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21983. s&@INSTALL@&$ac_INSTALL&;t t
  21984. $ac_datarootdir_hack
  21985. "
  21986. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  21987. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21988. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21989. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  21990. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  21991. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  21992. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21993. which seems to be undefined. Please make sure it is defined" >&5
  21994. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21995. which seems to be undefined. Please make sure it is defined" >&2;}
  21996. rm -f "$ac_tmp/stdin"
  21997. case $ac_file in
  21998. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  21999. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22000. esac \
  22001. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22002. ;;
  22003. :H)
  22004. #
  22005. # CONFIG_HEADER
  22006. #
  22007. if test x"$ac_file" != x-; then
  22008. {
  22009. $as_echo "/* $configure_input */" \
  22010. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22011. } >"$ac_tmp/config.h" \
  22012. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22013. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22014. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22015. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22016. else
  22017. rm -f "$ac_file"
  22018. mv "$ac_tmp/config.h" "$ac_file" \
  22019. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22020. fi
  22021. else
  22022. $as_echo "/* $configure_input */" \
  22023. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22024. || as_fn_error $? "could not create -" "$LINENO" 5
  22025. fi
  22026. ;;
  22027. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22028. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22029. ;;
  22030. esac
  22031. case $ac_file$ac_mode in
  22032. "libtool":C)
  22033. # See if we are running on zsh, and set the options which allow our
  22034. # commands through without removal of \ escapes.
  22035. if test -n "${ZSH_VERSION+set}" ; then
  22036. setopt NO_GLOB_SUBST
  22037. fi
  22038. cfgfile="${ofile}T"
  22039. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22040. $RM "$cfgfile"
  22041. cat <<_LT_EOF >> "$cfgfile"
  22042. #! $SHELL
  22043. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22044. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22045. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22046. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22047. #
  22048. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22049. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22050. # Foundation, Inc.
  22051. # Written by Gordon Matzigkeit, 1996
  22052. #
  22053. # This file is part of GNU Libtool.
  22054. #
  22055. # GNU Libtool is free software; you can redistribute it and/or
  22056. # modify it under the terms of the GNU General Public License as
  22057. # published by the Free Software Foundation; either version 2 of
  22058. # the License, or (at your option) any later version.
  22059. #
  22060. # As a special exception to the GNU General Public License,
  22061. # if you distribute this file as part of a program or library that
  22062. # is built using GNU Libtool, you may include this file under the
  22063. # same distribution terms that you use for the rest of that program.
  22064. #
  22065. # GNU Libtool is distributed in the hope that it will be useful,
  22066. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22067. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22068. # GNU General Public License for more details.
  22069. #
  22070. # You should have received a copy of the GNU General Public License
  22071. # along with GNU Libtool; see the file COPYING. If not, a copy
  22072. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22073. # obtained by writing to the Free Software Foundation, Inc.,
  22074. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22075. # The names of the tagged configurations supported by this script.
  22076. available_tags="CXX "
  22077. # ### BEGIN LIBTOOL CONFIG
  22078. # Which release of libtool.m4 was used?
  22079. macro_version=$macro_version
  22080. macro_revision=$macro_revision
  22081. # Assembler program.
  22082. AS=$lt_AS
  22083. # DLL creation program.
  22084. DLLTOOL=$lt_DLLTOOL
  22085. # Object dumper program.
  22086. OBJDUMP=$lt_OBJDUMP
  22087. # Whether or not to build shared libraries.
  22088. build_libtool_libs=$enable_shared
  22089. # Whether or not to build static libraries.
  22090. build_old_libs=$enable_static
  22091. # What type of objects to build.
  22092. pic_mode=$pic_mode
  22093. # Whether or not to optimize for fast installation.
  22094. fast_install=$enable_fast_install
  22095. # Shell to use when invoking shell scripts.
  22096. SHELL=$lt_SHELL
  22097. # An echo program that protects backslashes.
  22098. ECHO=$lt_ECHO
  22099. # The PATH separator for the build system.
  22100. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22101. # The host system.
  22102. host_alias=$host_alias
  22103. host=$host
  22104. host_os=$host_os
  22105. # The build system.
  22106. build_alias=$build_alias
  22107. build=$build
  22108. build_os=$build_os
  22109. # A sed program that does not truncate output.
  22110. SED=$lt_SED
  22111. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22112. Xsed="\$SED -e 1s/^X//"
  22113. # A grep program that handles long lines.
  22114. GREP=$lt_GREP
  22115. # An ERE matcher.
  22116. EGREP=$lt_EGREP
  22117. # A literal string matcher.
  22118. FGREP=$lt_FGREP
  22119. # A BSD- or MS-compatible name lister.
  22120. NM=$lt_NM
  22121. # Whether we need soft or hard links.
  22122. LN_S=$lt_LN_S
  22123. # What is the maximum length of a command?
  22124. max_cmd_len=$max_cmd_len
  22125. # Object file suffix (normally "o").
  22126. objext=$ac_objext
  22127. # Executable file suffix (normally "").
  22128. exeext=$exeext
  22129. # whether the shell understands "unset".
  22130. lt_unset=$lt_unset
  22131. # turn spaces into newlines.
  22132. SP2NL=$lt_lt_SP2NL
  22133. # turn newlines into spaces.
  22134. NL2SP=$lt_lt_NL2SP
  22135. # convert \$build file names to \$host format.
  22136. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22137. # convert \$build files to toolchain format.
  22138. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22139. # Method to check whether dependent libraries are shared objects.
  22140. deplibs_check_method=$lt_deplibs_check_method
  22141. # Command to use when deplibs_check_method = "file_magic".
  22142. file_magic_cmd=$lt_file_magic_cmd
  22143. # How to find potential files when deplibs_check_method = "file_magic".
  22144. file_magic_glob=$lt_file_magic_glob
  22145. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22146. want_nocaseglob=$lt_want_nocaseglob
  22147. # Command to associate shared and link libraries.
  22148. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22149. # The archiver.
  22150. AR=$lt_AR
  22151. # Flags to create an archive.
  22152. AR_FLAGS=$lt_AR_FLAGS
  22153. # How to feed a file listing to the archiver.
  22154. archiver_list_spec=$lt_archiver_list_spec
  22155. # A symbol stripping program.
  22156. STRIP=$lt_STRIP
  22157. # Commands used to install an old-style archive.
  22158. RANLIB=$lt_RANLIB
  22159. old_postinstall_cmds=$lt_old_postinstall_cmds
  22160. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22161. # Whether to use a lock for old archive extraction.
  22162. lock_old_archive_extraction=$lock_old_archive_extraction
  22163. # A C compiler.
  22164. LTCC=$lt_CC
  22165. # LTCC compiler flags.
  22166. LTCFLAGS=$lt_CFLAGS
  22167. # Take the output of nm and produce a listing of raw symbols and C names.
  22168. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22169. # Transform the output of nm in a proper C declaration.
  22170. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22171. # Transform the output of nm in a C name address pair.
  22172. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22173. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22174. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22175. # Specify filename containing input files for \$NM.
  22176. nm_file_list_spec=$lt_nm_file_list_spec
  22177. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22178. lt_sysroot=$lt_sysroot
  22179. # The name of the directory that contains temporary libtool files.
  22180. objdir=$objdir
  22181. # Used to examine libraries when file_magic_cmd begins with "file".
  22182. MAGIC_CMD=$MAGIC_CMD
  22183. # Must we lock files when doing compilation?
  22184. need_locks=$lt_need_locks
  22185. # Manifest tool.
  22186. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22187. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22188. DSYMUTIL=$lt_DSYMUTIL
  22189. # Tool to change global to local symbols on Mac OS X.
  22190. NMEDIT=$lt_NMEDIT
  22191. # Tool to manipulate fat objects and archives on Mac OS X.
  22192. LIPO=$lt_LIPO
  22193. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22194. OTOOL=$lt_OTOOL
  22195. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22196. OTOOL64=$lt_OTOOL64
  22197. # Old archive suffix (normally "a").
  22198. libext=$libext
  22199. # Shared library suffix (normally ".so").
  22200. shrext_cmds=$lt_shrext_cmds
  22201. # The commands to extract the exported symbol list from a shared archive.
  22202. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22203. # Variables whose values should be saved in libtool wrapper scripts and
  22204. # restored at link time.
  22205. variables_saved_for_relink=$lt_variables_saved_for_relink
  22206. # Do we need the "lib" prefix for modules?
  22207. need_lib_prefix=$need_lib_prefix
  22208. # Do we need a version for libraries?
  22209. need_version=$need_version
  22210. # Library versioning type.
  22211. version_type=$version_type
  22212. # Shared library runtime path variable.
  22213. runpath_var=$runpath_var
  22214. # Shared library path variable.
  22215. shlibpath_var=$shlibpath_var
  22216. # Is shlibpath searched before the hard-coded library search path?
  22217. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22218. # Format of library name prefix.
  22219. libname_spec=$lt_libname_spec
  22220. # List of archive names. First name is the real one, the rest are links.
  22221. # The last name is the one that the linker finds with -lNAME
  22222. library_names_spec=$lt_library_names_spec
  22223. # The coded name of the library, if different from the real name.
  22224. soname_spec=$lt_soname_spec
  22225. # Permission mode override for installation of shared libraries.
  22226. install_override_mode=$lt_install_override_mode
  22227. # Command to use after installation of a shared archive.
  22228. postinstall_cmds=$lt_postinstall_cmds
  22229. # Command to use after uninstallation of a shared archive.
  22230. postuninstall_cmds=$lt_postuninstall_cmds
  22231. # Commands used to finish a libtool library installation in a directory.
  22232. finish_cmds=$lt_finish_cmds
  22233. # As "finish_cmds", except a single script fragment to be evaled but
  22234. # not shown.
  22235. finish_eval=$lt_finish_eval
  22236. # Whether we should hardcode library paths into libraries.
  22237. hardcode_into_libs=$hardcode_into_libs
  22238. # Compile-time system search path for libraries.
  22239. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22240. # Run-time system search path for libraries.
  22241. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22242. # Whether dlopen is supported.
  22243. dlopen_support=$enable_dlopen
  22244. # Whether dlopen of programs is supported.
  22245. dlopen_self=$enable_dlopen_self
  22246. # Whether dlopen of statically linked programs is supported.
  22247. dlopen_self_static=$enable_dlopen_self_static
  22248. # Commands to strip libraries.
  22249. old_striplib=$lt_old_striplib
  22250. striplib=$lt_striplib
  22251. # The linker used to build libraries.
  22252. LD=$lt_LD
  22253. # How to create reloadable object files.
  22254. reload_flag=$lt_reload_flag
  22255. reload_cmds=$lt_reload_cmds
  22256. # Commands used to build an old-style archive.
  22257. old_archive_cmds=$lt_old_archive_cmds
  22258. # A language specific compiler.
  22259. CC=$lt_compiler
  22260. # Is the compiler the GNU compiler?
  22261. with_gcc=$GCC
  22262. # Compiler flag to turn off builtin functions.
  22263. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22264. # Additional compiler flags for building library objects.
  22265. pic_flag=$lt_lt_prog_compiler_pic
  22266. # How to pass a linker flag through the compiler.
  22267. wl=$lt_lt_prog_compiler_wl
  22268. # Compiler flag to prevent dynamic linking.
  22269. link_static_flag=$lt_lt_prog_compiler_static
  22270. # Does compiler simultaneously support -c and -o options?
  22271. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22272. # Whether or not to add -lc for building shared libraries.
  22273. build_libtool_need_lc=$archive_cmds_need_lc
  22274. # Whether or not to disallow shared libs when runtime libs are static.
  22275. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22276. # Compiler flag to allow reflexive dlopens.
  22277. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22278. # Compiler flag to generate shared objects directly from archives.
  22279. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22280. # Whether the compiler copes with passing no objects directly.
  22281. compiler_needs_object=$lt_compiler_needs_object
  22282. # Create an old-style archive from a shared archive.
  22283. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22284. # Create a temporary old-style archive to link instead of a shared archive.
  22285. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22286. # Commands used to build a shared archive.
  22287. archive_cmds=$lt_archive_cmds
  22288. archive_expsym_cmds=$lt_archive_expsym_cmds
  22289. # Commands used to build a loadable module if different from building
  22290. # a shared archive.
  22291. module_cmds=$lt_module_cmds
  22292. module_expsym_cmds=$lt_module_expsym_cmds
  22293. # Whether we are building with GNU ld or not.
  22294. with_gnu_ld=$lt_with_gnu_ld
  22295. # Flag that allows shared libraries with undefined symbols to be built.
  22296. allow_undefined_flag=$lt_allow_undefined_flag
  22297. # Flag that enforces no undefined symbols.
  22298. no_undefined_flag=$lt_no_undefined_flag
  22299. # Flag to hardcode \$libdir into a binary during linking.
  22300. # This must work even if \$libdir does not exist
  22301. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22302. # Whether we need a single "-rpath" flag with a separated argument.
  22303. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22304. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22305. # DIR into the resulting binary.
  22306. hardcode_direct=$hardcode_direct
  22307. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22308. # DIR into the resulting binary and the resulting library dependency is
  22309. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22310. # library is relocated.
  22311. hardcode_direct_absolute=$hardcode_direct_absolute
  22312. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22313. # into the resulting binary.
  22314. hardcode_minus_L=$hardcode_minus_L
  22315. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22316. # into the resulting binary.
  22317. hardcode_shlibpath_var=$hardcode_shlibpath_var
  22318. # Set to "yes" if building a shared library automatically hardcodes DIR
  22319. # into the library and all subsequent libraries and executables linked
  22320. # against it.
  22321. hardcode_automatic=$hardcode_automatic
  22322. # Set to yes if linker adds runtime paths of dependent libraries
  22323. # to runtime path list.
  22324. inherit_rpath=$inherit_rpath
  22325. # Whether libtool must link a program against all its dependency libraries.
  22326. link_all_deplibs=$link_all_deplibs
  22327. # Set to "yes" if exported symbols are required.
  22328. always_export_symbols=$always_export_symbols
  22329. # The commands to list exported symbols.
  22330. export_symbols_cmds=$lt_export_symbols_cmds
  22331. # Symbols that should not be listed in the preloaded symbols.
  22332. exclude_expsyms=$lt_exclude_expsyms
  22333. # Symbols that must always be exported.
  22334. include_expsyms=$lt_include_expsyms
  22335. # Commands necessary for linking programs (against libraries) with templates.
  22336. prelink_cmds=$lt_prelink_cmds
  22337. # Commands necessary for finishing linking programs.
  22338. postlink_cmds=$lt_postlink_cmds
  22339. # Specify filename containing input files.
  22340. file_list_spec=$lt_file_list_spec
  22341. # How to hardcode a shared library path into an executable.
  22342. hardcode_action=$hardcode_action
  22343. # The directories searched by this compiler when creating a shared library.
  22344. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22345. # Dependencies to place before and after the objects being linked to
  22346. # create a shared library.
  22347. predep_objects=$lt_predep_objects
  22348. postdep_objects=$lt_postdep_objects
  22349. predeps=$lt_predeps
  22350. postdeps=$lt_postdeps
  22351. # The library search path used internally by the compiler when linking
  22352. # a shared library.
  22353. compiler_lib_search_path=$lt_compiler_lib_search_path
  22354. # ### END LIBTOOL CONFIG
  22355. _LT_EOF
  22356. case $host_os in
  22357. aix3*)
  22358. cat <<\_LT_EOF >> "$cfgfile"
  22359. # AIX sometimes has problems with the GCC collect2 program. For some
  22360. # reason, if we set the COLLECT_NAMES environment variable, the problems
  22361. # vanish in a puff of smoke.
  22362. if test "X${COLLECT_NAMES+set}" != Xset; then
  22363. COLLECT_NAMES=
  22364. export COLLECT_NAMES
  22365. fi
  22366. _LT_EOF
  22367. ;;
  22368. esac
  22369. ltmain="$ac_aux_dir/ltmain.sh"
  22370. # We use sed instead of cat because bash on DJGPP gets confused if
  22371. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  22372. # text mode, it properly converts lines to CR/LF. This bash problem
  22373. # is reportedly fixed, but why not run on old versions too?
  22374. sed '$q' "$ltmain" >> "$cfgfile" \
  22375. || (rm -f "$cfgfile"; exit 1)
  22376. if test x"$xsi_shell" = xyes; then
  22377. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  22378. func_dirname ()\
  22379. {\
  22380. \ case ${1} in\
  22381. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22382. \ * ) func_dirname_result="${3}" ;;\
  22383. \ esac\
  22384. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  22385. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22386. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22387. test 0 -eq $? || _lt_function_replace_fail=:
  22388. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  22389. func_basename ()\
  22390. {\
  22391. \ func_basename_result="${1##*/}"\
  22392. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22393. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22394. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22395. test 0 -eq $? || _lt_function_replace_fail=:
  22396. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  22397. func_dirname_and_basename ()\
  22398. {\
  22399. \ case ${1} in\
  22400. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22401. \ * ) func_dirname_result="${3}" ;;\
  22402. \ esac\
  22403. \ func_basename_result="${1##*/}"\
  22404. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22405. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22406. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22407. test 0 -eq $? || _lt_function_replace_fail=:
  22408. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  22409. func_stripname ()\
  22410. {\
  22411. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  22412. \ # positional parameters, so assign one to ordinary parameter first.\
  22413. \ func_stripname_result=${3}\
  22414. \ func_stripname_result=${func_stripname_result#"${1}"}\
  22415. \ func_stripname_result=${func_stripname_result%"${2}"}\
  22416. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  22417. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22418. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22419. test 0 -eq $? || _lt_function_replace_fail=:
  22420. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  22421. func_split_long_opt ()\
  22422. {\
  22423. \ func_split_long_opt_name=${1%%=*}\
  22424. \ func_split_long_opt_arg=${1#*=}\
  22425. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22426. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22427. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22428. test 0 -eq $? || _lt_function_replace_fail=:
  22429. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  22430. func_split_short_opt ()\
  22431. {\
  22432. \ func_split_short_opt_arg=${1#??}\
  22433. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  22434. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22435. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22436. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22437. test 0 -eq $? || _lt_function_replace_fail=:
  22438. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  22439. func_lo2o ()\
  22440. {\
  22441. \ case ${1} in\
  22442. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  22443. \ *) func_lo2o_result=${1} ;;\
  22444. \ esac\
  22445. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  22446. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22447. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22448. test 0 -eq $? || _lt_function_replace_fail=:
  22449. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  22450. func_xform ()\
  22451. {\
  22452. func_xform_result=${1%.*}.lo\
  22453. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  22454. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22455. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22456. test 0 -eq $? || _lt_function_replace_fail=:
  22457. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  22458. func_arith ()\
  22459. {\
  22460. func_arith_result=$(( $* ))\
  22461. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  22462. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22463. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22464. test 0 -eq $? || _lt_function_replace_fail=:
  22465. sed -e '/^func_len ()$/,/^} # func_len /c\
  22466. func_len ()\
  22467. {\
  22468. func_len_result=${#1}\
  22469. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  22470. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22471. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22472. test 0 -eq $? || _lt_function_replace_fail=:
  22473. fi
  22474. if test x"$lt_shell_append" = xyes; then
  22475. sed -e '/^func_append ()$/,/^} # func_append /c\
  22476. func_append ()\
  22477. {\
  22478. eval "${1}+=\\${2}"\
  22479. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  22480. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22481. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22482. test 0 -eq $? || _lt_function_replace_fail=:
  22483. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  22484. func_append_quoted ()\
  22485. {\
  22486. \ func_quote_for_eval "${2}"\
  22487. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  22488. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  22489. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22490. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22491. test 0 -eq $? || _lt_function_replace_fail=:
  22492. # Save a `func_append' function call where possible by direct use of '+='
  22493. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $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. else
  22498. # Save a `func_append' function call even when '+=' is not available
  22499. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  22500. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22501. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22502. test 0 -eq $? || _lt_function_replace_fail=:
  22503. fi
  22504. if test x"$_lt_function_replace_fail" = x":"; then
  22505. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  22506. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  22507. fi
  22508. mv -f "$cfgfile" "$ofile" ||
  22509. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  22510. chmod +x "$ofile"
  22511. cat <<_LT_EOF >> "$ofile"
  22512. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  22513. # The linker used to build libraries.
  22514. LD=$lt_LD_CXX
  22515. # How to create reloadable object files.
  22516. reload_flag=$lt_reload_flag_CXX
  22517. reload_cmds=$lt_reload_cmds_CXX
  22518. # Commands used to build an old-style archive.
  22519. old_archive_cmds=$lt_old_archive_cmds_CXX
  22520. # A language specific compiler.
  22521. CC=$lt_compiler_CXX
  22522. # Is the compiler the GNU compiler?
  22523. with_gcc=$GCC_CXX
  22524. # Compiler flag to turn off builtin functions.
  22525. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  22526. # Additional compiler flags for building library objects.
  22527. pic_flag=$lt_lt_prog_compiler_pic_CXX
  22528. # How to pass a linker flag through the compiler.
  22529. wl=$lt_lt_prog_compiler_wl_CXX
  22530. # Compiler flag to prevent dynamic linking.
  22531. link_static_flag=$lt_lt_prog_compiler_static_CXX
  22532. # Does compiler simultaneously support -c and -o options?
  22533. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  22534. # Whether or not to add -lc for building shared libraries.
  22535. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  22536. # Whether or not to disallow shared libs when runtime libs are static.
  22537. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  22538. # Compiler flag to allow reflexive dlopens.
  22539. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  22540. # Compiler flag to generate shared objects directly from archives.
  22541. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  22542. # Whether the compiler copes with passing no objects directly.
  22543. compiler_needs_object=$lt_compiler_needs_object_CXX
  22544. # Create an old-style archive from a shared archive.
  22545. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  22546. # Create a temporary old-style archive to link instead of a shared archive.
  22547. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  22548. # Commands used to build a shared archive.
  22549. archive_cmds=$lt_archive_cmds_CXX
  22550. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  22551. # Commands used to build a loadable module if different from building
  22552. # a shared archive.
  22553. module_cmds=$lt_module_cmds_CXX
  22554. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  22555. # Whether we are building with GNU ld or not.
  22556. with_gnu_ld=$lt_with_gnu_ld_CXX
  22557. # Flag that allows shared libraries with undefined symbols to be built.
  22558. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  22559. # Flag that enforces no undefined symbols.
  22560. no_undefined_flag=$lt_no_undefined_flag_CXX
  22561. # Flag to hardcode \$libdir into a binary during linking.
  22562. # This must work even if \$libdir does not exist
  22563. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  22564. # Whether we need a single "-rpath" flag with a separated argument.
  22565. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  22566. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22567. # DIR into the resulting binary.
  22568. hardcode_direct=$hardcode_direct_CXX
  22569. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22570. # DIR into the resulting binary and the resulting library dependency is
  22571. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22572. # library is relocated.
  22573. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  22574. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22575. # into the resulting binary.
  22576. hardcode_minus_L=$hardcode_minus_L_CXX
  22577. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22578. # into the resulting binary.
  22579. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  22580. # Set to "yes" if building a shared library automatically hardcodes DIR
  22581. # into the library and all subsequent libraries and executables linked
  22582. # against it.
  22583. hardcode_automatic=$hardcode_automatic_CXX
  22584. # Set to yes if linker adds runtime paths of dependent libraries
  22585. # to runtime path list.
  22586. inherit_rpath=$inherit_rpath_CXX
  22587. # Whether libtool must link a program against all its dependency libraries.
  22588. link_all_deplibs=$link_all_deplibs_CXX
  22589. # Set to "yes" if exported symbols are required.
  22590. always_export_symbols=$always_export_symbols_CXX
  22591. # The commands to list exported symbols.
  22592. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  22593. # Symbols that should not be listed in the preloaded symbols.
  22594. exclude_expsyms=$lt_exclude_expsyms_CXX
  22595. # Symbols that must always be exported.
  22596. include_expsyms=$lt_include_expsyms_CXX
  22597. # Commands necessary for linking programs (against libraries) with templates.
  22598. prelink_cmds=$lt_prelink_cmds_CXX
  22599. # Commands necessary for finishing linking programs.
  22600. postlink_cmds=$lt_postlink_cmds_CXX
  22601. # Specify filename containing input files.
  22602. file_list_spec=$lt_file_list_spec_CXX
  22603. # How to hardcode a shared library path into an executable.
  22604. hardcode_action=$hardcode_action_CXX
  22605. # The directories searched by this compiler when creating a shared library.
  22606. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  22607. # Dependencies to place before and after the objects being linked to
  22608. # create a shared library.
  22609. predep_objects=$lt_predep_objects_CXX
  22610. postdep_objects=$lt_postdep_objects_CXX
  22611. predeps=$lt_predeps_CXX
  22612. postdeps=$lt_postdeps_CXX
  22613. # The library search path used internally by the compiler when linking
  22614. # a shared library.
  22615. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  22616. # ### END LIBTOOL TAG CONFIG: CXX
  22617. _LT_EOF
  22618. ;;
  22619. "sdl2_config":C) chmod a+x sdl2-config ;;
  22620. "summary":C) echo -en "$SUMMARY" ;;
  22621. esac
  22622. done # for ac_tag
  22623. as_fn_exit 0
  22624. _ACEOF
  22625. ac_clean_files=$ac_clean_files_save
  22626. test $ac_write_fail = 0 ||
  22627. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  22628. # configure is writing to config.log, and then calls config.status.
  22629. # config.status does its own redirection, appending to config.log.
  22630. # Unfortunately, on DOS this fails, as config.log is still kept open
  22631. # by configure, so config.status won't be able to write to it; its
  22632. # output is simply discarded. So we exec the FD to /dev/null,
  22633. # effectively closing config.log, so it can be properly (re)opened and
  22634. # appended to by config.status. When coming back to configure, we
  22635. # need to make the FD available again.
  22636. if test "$no_create" != yes; then
  22637. ac_cs_success=:
  22638. ac_config_status_args=
  22639. test "$silent" = yes &&
  22640. ac_config_status_args="$ac_config_status_args --quiet"
  22641. exec 5>/dev/null
  22642. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22643. exec 5>>config.log
  22644. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22645. # would make configure fail if this is the last instruction.
  22646. $ac_cs_success || as_fn_exit 1
  22647. fi
  22648. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22649. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22650. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22651. fi