configure 778 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556
  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=1
  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. ppc*-*linux*|powerpc*-*linux*)
  5260. LD="${LD-ld} -m elf64ppc"
  5261. ;;
  5262. s390*-*linux*|s390*-*tpf*)
  5263. LD="${LD-ld} -m elf64_s390"
  5264. ;;
  5265. sparc*-*linux*)
  5266. LD="${LD-ld} -m elf64_sparc"
  5267. ;;
  5268. esac
  5269. ;;
  5270. esac
  5271. fi
  5272. rm -rf conftest*
  5273. ;;
  5274. *-*-sco3.2v5*)
  5275. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5276. SAVE_CFLAGS="$CFLAGS"
  5277. CFLAGS="$CFLAGS -belf"
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5279. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5280. if ${lt_cv_cc_needs_belf+:} false; then :
  5281. $as_echo_n "(cached) " >&6
  5282. else
  5283. ac_ext=c
  5284. ac_cpp='$CPP $CPPFLAGS'
  5285. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5286. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5287. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5289. /* end confdefs.h. */
  5290. int
  5291. main ()
  5292. {
  5293. ;
  5294. return 0;
  5295. }
  5296. _ACEOF
  5297. if ac_fn_c_try_link "$LINENO"; then :
  5298. lt_cv_cc_needs_belf=yes
  5299. else
  5300. lt_cv_cc_needs_belf=no
  5301. fi
  5302. rm -f core conftest.err conftest.$ac_objext \
  5303. conftest$ac_exeext conftest.$ac_ext
  5304. ac_ext=c
  5305. ac_cpp='$CPP $CPPFLAGS'
  5306. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5307. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5308. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5309. fi
  5310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5311. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5312. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5313. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5314. CFLAGS="$SAVE_CFLAGS"
  5315. fi
  5316. ;;
  5317. *-*solaris*)
  5318. # Find out which ABI we are using.
  5319. echo 'int i;' > conftest.$ac_ext
  5320. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5321. (eval $ac_compile) 2>&5
  5322. ac_status=$?
  5323. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5324. test $ac_status = 0; }; then
  5325. case `/usr/bin/file conftest.o` in
  5326. *64-bit*)
  5327. case $lt_cv_prog_gnu_ld in
  5328. yes*)
  5329. case $host in
  5330. i?86-*-solaris*)
  5331. LD="${LD-ld} -m elf_x86_64"
  5332. ;;
  5333. sparc*-*-solaris*)
  5334. LD="${LD-ld} -m elf64_sparc"
  5335. ;;
  5336. esac
  5337. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5338. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5339. LD="${LD-ld}_sol2"
  5340. fi
  5341. ;;
  5342. *)
  5343. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5344. LD="${LD-ld} -64"
  5345. fi
  5346. ;;
  5347. esac
  5348. ;;
  5349. esac
  5350. fi
  5351. rm -rf conftest*
  5352. ;;
  5353. esac
  5354. need_locks="$enable_libtool_lock"
  5355. if test -n "$ac_tool_prefix"; then
  5356. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5357. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5359. $as_echo_n "checking for $ac_word... " >&6; }
  5360. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5361. $as_echo_n "(cached) " >&6
  5362. else
  5363. if test -n "$MANIFEST_TOOL"; then
  5364. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5365. else
  5366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5367. for as_dir in $PATH
  5368. do
  5369. IFS=$as_save_IFS
  5370. test -z "$as_dir" && as_dir=.
  5371. for ac_exec_ext in '' $ac_executable_extensions; do
  5372. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5373. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5374. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5375. break 2
  5376. fi
  5377. done
  5378. done
  5379. IFS=$as_save_IFS
  5380. fi
  5381. fi
  5382. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5383. if test -n "$MANIFEST_TOOL"; then
  5384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5385. $as_echo "$MANIFEST_TOOL" >&6; }
  5386. else
  5387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5388. $as_echo "no" >&6; }
  5389. fi
  5390. fi
  5391. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5392. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5393. # Extract the first word of "mt", so it can be a program name with args.
  5394. set dummy mt; ac_word=$2
  5395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5396. $as_echo_n "checking for $ac_word... " >&6; }
  5397. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5398. $as_echo_n "(cached) " >&6
  5399. else
  5400. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5401. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5402. else
  5403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5404. for as_dir in $PATH
  5405. do
  5406. IFS=$as_save_IFS
  5407. test -z "$as_dir" && as_dir=.
  5408. for ac_exec_ext in '' $ac_executable_extensions; do
  5409. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5410. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5411. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5412. break 2
  5413. fi
  5414. done
  5415. done
  5416. IFS=$as_save_IFS
  5417. fi
  5418. fi
  5419. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5420. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5422. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5423. else
  5424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5425. $as_echo "no" >&6; }
  5426. fi
  5427. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5428. MANIFEST_TOOL=":"
  5429. else
  5430. case $cross_compiling:$ac_tool_warned in
  5431. yes:)
  5432. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5433. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5434. ac_tool_warned=yes ;;
  5435. esac
  5436. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5437. fi
  5438. else
  5439. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5440. fi
  5441. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5443. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5444. if ${lt_cv_path_mainfest_tool+:} false; then :
  5445. $as_echo_n "(cached) " >&6
  5446. else
  5447. lt_cv_path_mainfest_tool=no
  5448. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5449. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5450. cat conftest.err >&5
  5451. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5452. lt_cv_path_mainfest_tool=yes
  5453. fi
  5454. rm -f conftest*
  5455. fi
  5456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5457. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5458. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5459. MANIFEST_TOOL=:
  5460. fi
  5461. case $host_os in
  5462. rhapsody* | darwin*)
  5463. if test -n "$ac_tool_prefix"; then
  5464. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5465. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5467. $as_echo_n "checking for $ac_word... " >&6; }
  5468. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5469. $as_echo_n "(cached) " >&6
  5470. else
  5471. if test -n "$DSYMUTIL"; then
  5472. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5473. else
  5474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5475. for as_dir in $PATH
  5476. do
  5477. IFS=$as_save_IFS
  5478. test -z "$as_dir" && as_dir=.
  5479. for ac_exec_ext in '' $ac_executable_extensions; do
  5480. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5481. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5482. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5483. break 2
  5484. fi
  5485. done
  5486. done
  5487. IFS=$as_save_IFS
  5488. fi
  5489. fi
  5490. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5491. if test -n "$DSYMUTIL"; then
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5493. $as_echo "$DSYMUTIL" >&6; }
  5494. else
  5495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5496. $as_echo "no" >&6; }
  5497. fi
  5498. fi
  5499. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5500. ac_ct_DSYMUTIL=$DSYMUTIL
  5501. # Extract the first word of "dsymutil", so it can be a program name with args.
  5502. set dummy dsymutil; ac_word=$2
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5504. $as_echo_n "checking for $ac_word... " >&6; }
  5505. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5506. $as_echo_n "(cached) " >&6
  5507. else
  5508. if test -n "$ac_ct_DSYMUTIL"; then
  5509. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5510. else
  5511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5512. for as_dir in $PATH
  5513. do
  5514. IFS=$as_save_IFS
  5515. test -z "$as_dir" && as_dir=.
  5516. for ac_exec_ext in '' $ac_executable_extensions; do
  5517. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5518. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5519. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5520. break 2
  5521. fi
  5522. done
  5523. done
  5524. IFS=$as_save_IFS
  5525. fi
  5526. fi
  5527. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5528. if test -n "$ac_ct_DSYMUTIL"; then
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5530. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5531. else
  5532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5533. $as_echo "no" >&6; }
  5534. fi
  5535. if test "x$ac_ct_DSYMUTIL" = x; then
  5536. DSYMUTIL=":"
  5537. else
  5538. case $cross_compiling:$ac_tool_warned in
  5539. yes:)
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5541. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5542. ac_tool_warned=yes ;;
  5543. esac
  5544. DSYMUTIL=$ac_ct_DSYMUTIL
  5545. fi
  5546. else
  5547. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5548. fi
  5549. if test -n "$ac_tool_prefix"; then
  5550. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5551. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5553. $as_echo_n "checking for $ac_word... " >&6; }
  5554. if ${ac_cv_prog_NMEDIT+:} false; then :
  5555. $as_echo_n "(cached) " >&6
  5556. else
  5557. if test -n "$NMEDIT"; then
  5558. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5559. else
  5560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5561. for as_dir in $PATH
  5562. do
  5563. IFS=$as_save_IFS
  5564. test -z "$as_dir" && as_dir=.
  5565. for ac_exec_ext in '' $ac_executable_extensions; do
  5566. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5567. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5568. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5569. break 2
  5570. fi
  5571. done
  5572. done
  5573. IFS=$as_save_IFS
  5574. fi
  5575. fi
  5576. NMEDIT=$ac_cv_prog_NMEDIT
  5577. if test -n "$NMEDIT"; then
  5578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5579. $as_echo "$NMEDIT" >&6; }
  5580. else
  5581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5582. $as_echo "no" >&6; }
  5583. fi
  5584. fi
  5585. if test -z "$ac_cv_prog_NMEDIT"; then
  5586. ac_ct_NMEDIT=$NMEDIT
  5587. # Extract the first word of "nmedit", so it can be a program name with args.
  5588. set dummy nmedit; ac_word=$2
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5590. $as_echo_n "checking for $ac_word... " >&6; }
  5591. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5592. $as_echo_n "(cached) " >&6
  5593. else
  5594. if test -n "$ac_ct_NMEDIT"; then
  5595. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5596. else
  5597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5598. for as_dir in $PATH
  5599. do
  5600. IFS=$as_save_IFS
  5601. test -z "$as_dir" && as_dir=.
  5602. for ac_exec_ext in '' $ac_executable_extensions; do
  5603. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5604. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5605. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5606. break 2
  5607. fi
  5608. done
  5609. done
  5610. IFS=$as_save_IFS
  5611. fi
  5612. fi
  5613. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5614. if test -n "$ac_ct_NMEDIT"; then
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5616. $as_echo "$ac_ct_NMEDIT" >&6; }
  5617. else
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5619. $as_echo "no" >&6; }
  5620. fi
  5621. if test "x$ac_ct_NMEDIT" = x; then
  5622. NMEDIT=":"
  5623. else
  5624. case $cross_compiling:$ac_tool_warned in
  5625. yes:)
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5627. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5628. ac_tool_warned=yes ;;
  5629. esac
  5630. NMEDIT=$ac_ct_NMEDIT
  5631. fi
  5632. else
  5633. NMEDIT="$ac_cv_prog_NMEDIT"
  5634. fi
  5635. if test -n "$ac_tool_prefix"; then
  5636. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5637. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5639. $as_echo_n "checking for $ac_word... " >&6; }
  5640. if ${ac_cv_prog_LIPO+:} false; then :
  5641. $as_echo_n "(cached) " >&6
  5642. else
  5643. if test -n "$LIPO"; then
  5644. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5645. else
  5646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5647. for as_dir in $PATH
  5648. do
  5649. IFS=$as_save_IFS
  5650. test -z "$as_dir" && as_dir=.
  5651. for ac_exec_ext in '' $ac_executable_extensions; do
  5652. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5653. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5654. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5655. break 2
  5656. fi
  5657. done
  5658. done
  5659. IFS=$as_save_IFS
  5660. fi
  5661. fi
  5662. LIPO=$ac_cv_prog_LIPO
  5663. if test -n "$LIPO"; then
  5664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5665. $as_echo "$LIPO" >&6; }
  5666. else
  5667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5668. $as_echo "no" >&6; }
  5669. fi
  5670. fi
  5671. if test -z "$ac_cv_prog_LIPO"; then
  5672. ac_ct_LIPO=$LIPO
  5673. # Extract the first word of "lipo", so it can be a program name with args.
  5674. set dummy lipo; ac_word=$2
  5675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5676. $as_echo_n "checking for $ac_word... " >&6; }
  5677. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5678. $as_echo_n "(cached) " >&6
  5679. else
  5680. if test -n "$ac_ct_LIPO"; then
  5681. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5682. else
  5683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5684. for as_dir in $PATH
  5685. do
  5686. IFS=$as_save_IFS
  5687. test -z "$as_dir" && as_dir=.
  5688. for ac_exec_ext in '' $ac_executable_extensions; do
  5689. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5690. ac_cv_prog_ac_ct_LIPO="lipo"
  5691. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5692. break 2
  5693. fi
  5694. done
  5695. done
  5696. IFS=$as_save_IFS
  5697. fi
  5698. fi
  5699. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5700. if test -n "$ac_ct_LIPO"; then
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5702. $as_echo "$ac_ct_LIPO" >&6; }
  5703. else
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5705. $as_echo "no" >&6; }
  5706. fi
  5707. if test "x$ac_ct_LIPO" = x; then
  5708. LIPO=":"
  5709. else
  5710. case $cross_compiling:$ac_tool_warned in
  5711. yes:)
  5712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5713. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5714. ac_tool_warned=yes ;;
  5715. esac
  5716. LIPO=$ac_ct_LIPO
  5717. fi
  5718. else
  5719. LIPO="$ac_cv_prog_LIPO"
  5720. fi
  5721. if test -n "$ac_tool_prefix"; then
  5722. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5723. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5725. $as_echo_n "checking for $ac_word... " >&6; }
  5726. if ${ac_cv_prog_OTOOL+:} false; then :
  5727. $as_echo_n "(cached) " >&6
  5728. else
  5729. if test -n "$OTOOL"; then
  5730. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5731. else
  5732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5733. for as_dir in $PATH
  5734. do
  5735. IFS=$as_save_IFS
  5736. test -z "$as_dir" && as_dir=.
  5737. for ac_exec_ext in '' $ac_executable_extensions; do
  5738. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5739. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5740. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5741. break 2
  5742. fi
  5743. done
  5744. done
  5745. IFS=$as_save_IFS
  5746. fi
  5747. fi
  5748. OTOOL=$ac_cv_prog_OTOOL
  5749. if test -n "$OTOOL"; then
  5750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5751. $as_echo "$OTOOL" >&6; }
  5752. else
  5753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5754. $as_echo "no" >&6; }
  5755. fi
  5756. fi
  5757. if test -z "$ac_cv_prog_OTOOL"; then
  5758. ac_ct_OTOOL=$OTOOL
  5759. # Extract the first word of "otool", so it can be a program name with args.
  5760. set dummy otool; ac_word=$2
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5762. $as_echo_n "checking for $ac_word... " >&6; }
  5763. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5764. $as_echo_n "(cached) " >&6
  5765. else
  5766. if test -n "$ac_ct_OTOOL"; then
  5767. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5768. else
  5769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5770. for as_dir in $PATH
  5771. do
  5772. IFS=$as_save_IFS
  5773. test -z "$as_dir" && as_dir=.
  5774. for ac_exec_ext in '' $ac_executable_extensions; do
  5775. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5776. ac_cv_prog_ac_ct_OTOOL="otool"
  5777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5778. break 2
  5779. fi
  5780. done
  5781. done
  5782. IFS=$as_save_IFS
  5783. fi
  5784. fi
  5785. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5786. if test -n "$ac_ct_OTOOL"; then
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5788. $as_echo "$ac_ct_OTOOL" >&6; }
  5789. else
  5790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5791. $as_echo "no" >&6; }
  5792. fi
  5793. if test "x$ac_ct_OTOOL" = x; then
  5794. OTOOL=":"
  5795. else
  5796. case $cross_compiling:$ac_tool_warned in
  5797. yes:)
  5798. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5799. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5800. ac_tool_warned=yes ;;
  5801. esac
  5802. OTOOL=$ac_ct_OTOOL
  5803. fi
  5804. else
  5805. OTOOL="$ac_cv_prog_OTOOL"
  5806. fi
  5807. if test -n "$ac_tool_prefix"; then
  5808. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5809. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5811. $as_echo_n "checking for $ac_word... " >&6; }
  5812. if ${ac_cv_prog_OTOOL64+:} false; then :
  5813. $as_echo_n "(cached) " >&6
  5814. else
  5815. if test -n "$OTOOL64"; then
  5816. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5817. else
  5818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5819. for as_dir in $PATH
  5820. do
  5821. IFS=$as_save_IFS
  5822. test -z "$as_dir" && as_dir=.
  5823. for ac_exec_ext in '' $ac_executable_extensions; do
  5824. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5825. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5827. break 2
  5828. fi
  5829. done
  5830. done
  5831. IFS=$as_save_IFS
  5832. fi
  5833. fi
  5834. OTOOL64=$ac_cv_prog_OTOOL64
  5835. if test -n "$OTOOL64"; then
  5836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5837. $as_echo "$OTOOL64" >&6; }
  5838. else
  5839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5840. $as_echo "no" >&6; }
  5841. fi
  5842. fi
  5843. if test -z "$ac_cv_prog_OTOOL64"; then
  5844. ac_ct_OTOOL64=$OTOOL64
  5845. # Extract the first word of "otool64", so it can be a program name with args.
  5846. set dummy otool64; ac_word=$2
  5847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5848. $as_echo_n "checking for $ac_word... " >&6; }
  5849. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5850. $as_echo_n "(cached) " >&6
  5851. else
  5852. if test -n "$ac_ct_OTOOL64"; then
  5853. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5854. else
  5855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5856. for as_dir in $PATH
  5857. do
  5858. IFS=$as_save_IFS
  5859. test -z "$as_dir" && as_dir=.
  5860. for ac_exec_ext in '' $ac_executable_extensions; do
  5861. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5862. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5864. break 2
  5865. fi
  5866. done
  5867. done
  5868. IFS=$as_save_IFS
  5869. fi
  5870. fi
  5871. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5872. if test -n "$ac_ct_OTOOL64"; then
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5874. $as_echo "$ac_ct_OTOOL64" >&6; }
  5875. else
  5876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5877. $as_echo "no" >&6; }
  5878. fi
  5879. if test "x$ac_ct_OTOOL64" = x; then
  5880. OTOOL64=":"
  5881. else
  5882. case $cross_compiling:$ac_tool_warned in
  5883. yes:)
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5885. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5886. ac_tool_warned=yes ;;
  5887. esac
  5888. OTOOL64=$ac_ct_OTOOL64
  5889. fi
  5890. else
  5891. OTOOL64="$ac_cv_prog_OTOOL64"
  5892. fi
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5894. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5895. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5896. $as_echo_n "(cached) " >&6
  5897. else
  5898. lt_cv_apple_cc_single_mod=no
  5899. if test -z "${LT_MULTI_MODULE}"; then
  5900. # By default we will add the -single_module flag. You can override
  5901. # by either setting the environment variable LT_MULTI_MODULE
  5902. # non-empty at configure time, or by adding -multi_module to the
  5903. # link flags.
  5904. rm -rf libconftest.dylib*
  5905. echo "int foo(void){return 1;}" > conftest.c
  5906. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5907. -dynamiclib -Wl,-single_module conftest.c" >&5
  5908. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5909. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5910. _lt_result=$?
  5911. # If there is a non-empty error log, and "single_module"
  5912. # appears in it, assume the flag caused a linker warning
  5913. if test -s conftest.err && $GREP single_module conftest.err; then
  5914. cat conftest.err >&5
  5915. # Otherwise, if the output was created with a 0 exit code from
  5916. # the compiler, it worked.
  5917. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5918. lt_cv_apple_cc_single_mod=yes
  5919. else
  5920. cat conftest.err >&5
  5921. fi
  5922. rm -rf libconftest.dylib*
  5923. rm -f conftest.*
  5924. fi
  5925. fi
  5926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5927. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5929. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5930. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5931. $as_echo_n "(cached) " >&6
  5932. else
  5933. lt_cv_ld_exported_symbols_list=no
  5934. save_LDFLAGS=$LDFLAGS
  5935. echo "_main" > conftest.sym
  5936. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5938. /* end confdefs.h. */
  5939. int
  5940. main ()
  5941. {
  5942. ;
  5943. return 0;
  5944. }
  5945. _ACEOF
  5946. if ac_fn_c_try_link "$LINENO"; then :
  5947. lt_cv_ld_exported_symbols_list=yes
  5948. else
  5949. lt_cv_ld_exported_symbols_list=no
  5950. fi
  5951. rm -f core conftest.err conftest.$ac_objext \
  5952. conftest$ac_exeext conftest.$ac_ext
  5953. LDFLAGS="$save_LDFLAGS"
  5954. fi
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5956. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5958. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5959. if ${lt_cv_ld_force_load+:} false; then :
  5960. $as_echo_n "(cached) " >&6
  5961. else
  5962. lt_cv_ld_force_load=no
  5963. cat > conftest.c << _LT_EOF
  5964. int forced_loaded() { return 2;}
  5965. _LT_EOF
  5966. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5967. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5968. echo "$AR cru libconftest.a conftest.o" >&5
  5969. $AR cru libconftest.a conftest.o 2>&5
  5970. echo "$RANLIB libconftest.a" >&5
  5971. $RANLIB libconftest.a 2>&5
  5972. cat > conftest.c << _LT_EOF
  5973. int main() { return 0;}
  5974. _LT_EOF
  5975. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5976. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5977. _lt_result=$?
  5978. if test -s conftest.err && $GREP force_load conftest.err; then
  5979. cat conftest.err >&5
  5980. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  5981. lt_cv_ld_force_load=yes
  5982. else
  5983. cat conftest.err >&5
  5984. fi
  5985. rm -f conftest.err libconftest.a conftest conftest.c
  5986. rm -rf conftest.dSYM
  5987. fi
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5989. $as_echo "$lt_cv_ld_force_load" >&6; }
  5990. case $host_os in
  5991. rhapsody* | darwin1.[012])
  5992. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5993. darwin1.*)
  5994. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5995. darwin*) # darwin 5.x on
  5996. # if running on 10.5 or later, the deployment target defaults
  5997. # to the OS version, if on x86, and 10.4, the deployment
  5998. # target defaults to 10.4. Don't you love it?
  5999. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6000. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6001. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6002. 10.[012]*)
  6003. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6004. 10.*)
  6005. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6006. esac
  6007. ;;
  6008. esac
  6009. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6010. _lt_dar_single_mod='$single_module'
  6011. fi
  6012. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6013. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6014. else
  6015. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6016. fi
  6017. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6018. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6019. else
  6020. _lt_dsymutil=
  6021. fi
  6022. ;;
  6023. esac
  6024. ac_ext=c
  6025. ac_cpp='$CPP $CPPFLAGS'
  6026. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6027. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6028. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6030. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6031. # On Suns, sometimes $CPP names a directory.
  6032. if test -n "$CPP" && test -d "$CPP"; then
  6033. CPP=
  6034. fi
  6035. if test -z "$CPP"; then
  6036. if ${ac_cv_prog_CPP+:} false; then :
  6037. $as_echo_n "(cached) " >&6
  6038. else
  6039. # Double quotes because CPP needs to be expanded
  6040. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6041. do
  6042. ac_preproc_ok=false
  6043. for ac_c_preproc_warn_flag in '' yes
  6044. do
  6045. # Use a header file that comes with gcc, so configuring glibc
  6046. # with a fresh cross-compiler works.
  6047. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6048. # <limits.h> exists even on freestanding compilers.
  6049. # On the NeXT, cc -E runs the code through the compiler's parser,
  6050. # not just through cpp. "Syntax error" is here to catch this case.
  6051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6052. /* end confdefs.h. */
  6053. #ifdef __STDC__
  6054. # include <limits.h>
  6055. #else
  6056. # include <assert.h>
  6057. #endif
  6058. Syntax error
  6059. _ACEOF
  6060. if ac_fn_c_try_cpp "$LINENO"; then :
  6061. else
  6062. # Broken: fails on valid input.
  6063. continue
  6064. fi
  6065. rm -f conftest.err conftest.i conftest.$ac_ext
  6066. # OK, works on sane cases. Now check whether nonexistent headers
  6067. # can be detected and how.
  6068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6069. /* end confdefs.h. */
  6070. #include <ac_nonexistent.h>
  6071. _ACEOF
  6072. if ac_fn_c_try_cpp "$LINENO"; then :
  6073. # Broken: success on invalid input.
  6074. continue
  6075. else
  6076. # Passes both tests.
  6077. ac_preproc_ok=:
  6078. break
  6079. fi
  6080. rm -f conftest.err conftest.i conftest.$ac_ext
  6081. done
  6082. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6083. rm -f conftest.i conftest.err conftest.$ac_ext
  6084. if $ac_preproc_ok; then :
  6085. break
  6086. fi
  6087. done
  6088. ac_cv_prog_CPP=$CPP
  6089. fi
  6090. CPP=$ac_cv_prog_CPP
  6091. else
  6092. ac_cv_prog_CPP=$CPP
  6093. fi
  6094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6095. $as_echo "$CPP" >&6; }
  6096. ac_preproc_ok=false
  6097. for ac_c_preproc_warn_flag in '' yes
  6098. do
  6099. # Use a header file that comes with gcc, so configuring glibc
  6100. # with a fresh cross-compiler works.
  6101. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6102. # <limits.h> exists even on freestanding compilers.
  6103. # On the NeXT, cc -E runs the code through the compiler's parser,
  6104. # not just through cpp. "Syntax error" is here to catch this case.
  6105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6106. /* end confdefs.h. */
  6107. #ifdef __STDC__
  6108. # include <limits.h>
  6109. #else
  6110. # include <assert.h>
  6111. #endif
  6112. Syntax error
  6113. _ACEOF
  6114. if ac_fn_c_try_cpp "$LINENO"; then :
  6115. else
  6116. # Broken: fails on valid input.
  6117. continue
  6118. fi
  6119. rm -f conftest.err conftest.i conftest.$ac_ext
  6120. # OK, works on sane cases. Now check whether nonexistent headers
  6121. # can be detected and how.
  6122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6123. /* end confdefs.h. */
  6124. #include <ac_nonexistent.h>
  6125. _ACEOF
  6126. if ac_fn_c_try_cpp "$LINENO"; then :
  6127. # Broken: success on invalid input.
  6128. continue
  6129. else
  6130. # Passes both tests.
  6131. ac_preproc_ok=:
  6132. break
  6133. fi
  6134. rm -f conftest.err conftest.i conftest.$ac_ext
  6135. done
  6136. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6137. rm -f conftest.i conftest.err conftest.$ac_ext
  6138. if $ac_preproc_ok; then :
  6139. else
  6140. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6141. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6142. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6143. See \`config.log' for more details" "$LINENO" 5; }
  6144. fi
  6145. ac_ext=c
  6146. ac_cpp='$CPP $CPPFLAGS'
  6147. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6148. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6149. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6151. $as_echo_n "checking for ANSI C header files... " >&6; }
  6152. if ${ac_cv_header_stdc+:} false; then :
  6153. $as_echo_n "(cached) " >&6
  6154. else
  6155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6156. /* end confdefs.h. */
  6157. #include <stdlib.h>
  6158. #include <stdarg.h>
  6159. #include <string.h>
  6160. #include <float.h>
  6161. int
  6162. main ()
  6163. {
  6164. ;
  6165. return 0;
  6166. }
  6167. _ACEOF
  6168. if ac_fn_c_try_compile "$LINENO"; then :
  6169. ac_cv_header_stdc=yes
  6170. else
  6171. ac_cv_header_stdc=no
  6172. fi
  6173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6174. if test $ac_cv_header_stdc = yes; then
  6175. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6177. /* end confdefs.h. */
  6178. #include <string.h>
  6179. _ACEOF
  6180. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6181. $EGREP "memchr" >/dev/null 2>&1; then :
  6182. else
  6183. ac_cv_header_stdc=no
  6184. fi
  6185. rm -f conftest*
  6186. fi
  6187. if test $ac_cv_header_stdc = yes; then
  6188. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6190. /* end confdefs.h. */
  6191. #include <stdlib.h>
  6192. _ACEOF
  6193. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6194. $EGREP "free" >/dev/null 2>&1; then :
  6195. else
  6196. ac_cv_header_stdc=no
  6197. fi
  6198. rm -f conftest*
  6199. fi
  6200. if test $ac_cv_header_stdc = yes; then
  6201. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6202. if test "$cross_compiling" = yes; then :
  6203. :
  6204. else
  6205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6206. /* end confdefs.h. */
  6207. #include <ctype.h>
  6208. #include <stdlib.h>
  6209. #if ((' ' & 0x0FF) == 0x020)
  6210. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6211. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6212. #else
  6213. # define ISLOWER(c) \
  6214. (('a' <= (c) && (c) <= 'i') \
  6215. || ('j' <= (c) && (c) <= 'r') \
  6216. || ('s' <= (c) && (c) <= 'z'))
  6217. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6218. #endif
  6219. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6220. int
  6221. main ()
  6222. {
  6223. int i;
  6224. for (i = 0; i < 256; i++)
  6225. if (XOR (islower (i), ISLOWER (i))
  6226. || toupper (i) != TOUPPER (i))
  6227. return 2;
  6228. return 0;
  6229. }
  6230. _ACEOF
  6231. if ac_fn_c_try_run "$LINENO"; then :
  6232. else
  6233. ac_cv_header_stdc=no
  6234. fi
  6235. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6236. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6237. fi
  6238. fi
  6239. fi
  6240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6241. $as_echo "$ac_cv_header_stdc" >&6; }
  6242. if test $ac_cv_header_stdc = yes; then
  6243. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6244. fi
  6245. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6246. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6247. inttypes.h stdint.h unistd.h
  6248. do :
  6249. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6250. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6251. "
  6252. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6253. cat >>confdefs.h <<_ACEOF
  6254. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6255. _ACEOF
  6256. fi
  6257. done
  6258. for ac_header in dlfcn.h
  6259. do :
  6260. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6261. "
  6262. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6263. cat >>confdefs.h <<_ACEOF
  6264. #define HAVE_DLFCN_H 1
  6265. _ACEOF
  6266. fi
  6267. done
  6268. # Set options
  6269. enable_win32_dll=yes
  6270. case $host in
  6271. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6272. if test -n "$ac_tool_prefix"; then
  6273. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6274. set dummy ${ac_tool_prefix}as; ac_word=$2
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6276. $as_echo_n "checking for $ac_word... " >&6; }
  6277. if ${ac_cv_prog_AS+:} false; then :
  6278. $as_echo_n "(cached) " >&6
  6279. else
  6280. if test -n "$AS"; then
  6281. ac_cv_prog_AS="$AS" # Let the user override the test.
  6282. else
  6283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6284. for as_dir in $PATH
  6285. do
  6286. IFS=$as_save_IFS
  6287. test -z "$as_dir" && as_dir=.
  6288. for ac_exec_ext in '' $ac_executable_extensions; do
  6289. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6290. ac_cv_prog_AS="${ac_tool_prefix}as"
  6291. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6292. break 2
  6293. fi
  6294. done
  6295. done
  6296. IFS=$as_save_IFS
  6297. fi
  6298. fi
  6299. AS=$ac_cv_prog_AS
  6300. if test -n "$AS"; then
  6301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6302. $as_echo "$AS" >&6; }
  6303. else
  6304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6305. $as_echo "no" >&6; }
  6306. fi
  6307. fi
  6308. if test -z "$ac_cv_prog_AS"; then
  6309. ac_ct_AS=$AS
  6310. # Extract the first word of "as", so it can be a program name with args.
  6311. set dummy as; ac_word=$2
  6312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6313. $as_echo_n "checking for $ac_word... " >&6; }
  6314. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6315. $as_echo_n "(cached) " >&6
  6316. else
  6317. if test -n "$ac_ct_AS"; then
  6318. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6319. else
  6320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6321. for as_dir in $PATH
  6322. do
  6323. IFS=$as_save_IFS
  6324. test -z "$as_dir" && as_dir=.
  6325. for ac_exec_ext in '' $ac_executable_extensions; do
  6326. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6327. ac_cv_prog_ac_ct_AS="as"
  6328. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6329. break 2
  6330. fi
  6331. done
  6332. done
  6333. IFS=$as_save_IFS
  6334. fi
  6335. fi
  6336. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6337. if test -n "$ac_ct_AS"; then
  6338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6339. $as_echo "$ac_ct_AS" >&6; }
  6340. else
  6341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6342. $as_echo "no" >&6; }
  6343. fi
  6344. if test "x$ac_ct_AS" = x; then
  6345. AS="false"
  6346. else
  6347. case $cross_compiling:$ac_tool_warned in
  6348. yes:)
  6349. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6350. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6351. ac_tool_warned=yes ;;
  6352. esac
  6353. AS=$ac_ct_AS
  6354. fi
  6355. else
  6356. AS="$ac_cv_prog_AS"
  6357. fi
  6358. if test -n "$ac_tool_prefix"; then
  6359. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6360. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6362. $as_echo_n "checking for $ac_word... " >&6; }
  6363. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6364. $as_echo_n "(cached) " >&6
  6365. else
  6366. if test -n "$DLLTOOL"; then
  6367. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6368. else
  6369. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6370. for as_dir in $PATH
  6371. do
  6372. IFS=$as_save_IFS
  6373. test -z "$as_dir" && as_dir=.
  6374. for ac_exec_ext in '' $ac_executable_extensions; do
  6375. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6376. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6377. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6378. break 2
  6379. fi
  6380. done
  6381. done
  6382. IFS=$as_save_IFS
  6383. fi
  6384. fi
  6385. DLLTOOL=$ac_cv_prog_DLLTOOL
  6386. if test -n "$DLLTOOL"; then
  6387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6388. $as_echo "$DLLTOOL" >&6; }
  6389. else
  6390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6391. $as_echo "no" >&6; }
  6392. fi
  6393. fi
  6394. if test -z "$ac_cv_prog_DLLTOOL"; then
  6395. ac_ct_DLLTOOL=$DLLTOOL
  6396. # Extract the first word of "dlltool", so it can be a program name with args.
  6397. set dummy dlltool; ac_word=$2
  6398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6399. $as_echo_n "checking for $ac_word... " >&6; }
  6400. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6401. $as_echo_n "(cached) " >&6
  6402. else
  6403. if test -n "$ac_ct_DLLTOOL"; then
  6404. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6405. else
  6406. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6407. for as_dir in $PATH
  6408. do
  6409. IFS=$as_save_IFS
  6410. test -z "$as_dir" && as_dir=.
  6411. for ac_exec_ext in '' $ac_executable_extensions; do
  6412. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6413. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6414. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6415. break 2
  6416. fi
  6417. done
  6418. done
  6419. IFS=$as_save_IFS
  6420. fi
  6421. fi
  6422. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6423. if test -n "$ac_ct_DLLTOOL"; then
  6424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6425. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6426. else
  6427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6428. $as_echo "no" >&6; }
  6429. fi
  6430. if test "x$ac_ct_DLLTOOL" = x; then
  6431. DLLTOOL="false"
  6432. else
  6433. case $cross_compiling:$ac_tool_warned in
  6434. yes:)
  6435. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6436. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6437. ac_tool_warned=yes ;;
  6438. esac
  6439. DLLTOOL=$ac_ct_DLLTOOL
  6440. fi
  6441. else
  6442. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6443. fi
  6444. if test -n "$ac_tool_prefix"; then
  6445. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6446. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6448. $as_echo_n "checking for $ac_word... " >&6; }
  6449. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6450. $as_echo_n "(cached) " >&6
  6451. else
  6452. if test -n "$OBJDUMP"; then
  6453. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6454. else
  6455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6456. for as_dir in $PATH
  6457. do
  6458. IFS=$as_save_IFS
  6459. test -z "$as_dir" && as_dir=.
  6460. for ac_exec_ext in '' $ac_executable_extensions; do
  6461. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6462. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6463. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6464. break 2
  6465. fi
  6466. done
  6467. done
  6468. IFS=$as_save_IFS
  6469. fi
  6470. fi
  6471. OBJDUMP=$ac_cv_prog_OBJDUMP
  6472. if test -n "$OBJDUMP"; then
  6473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6474. $as_echo "$OBJDUMP" >&6; }
  6475. else
  6476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6477. $as_echo "no" >&6; }
  6478. fi
  6479. fi
  6480. if test -z "$ac_cv_prog_OBJDUMP"; then
  6481. ac_ct_OBJDUMP=$OBJDUMP
  6482. # Extract the first word of "objdump", so it can be a program name with args.
  6483. set dummy objdump; ac_word=$2
  6484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6485. $as_echo_n "checking for $ac_word... " >&6; }
  6486. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6487. $as_echo_n "(cached) " >&6
  6488. else
  6489. if test -n "$ac_ct_OBJDUMP"; then
  6490. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6491. else
  6492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6493. for as_dir in $PATH
  6494. do
  6495. IFS=$as_save_IFS
  6496. test -z "$as_dir" && as_dir=.
  6497. for ac_exec_ext in '' $ac_executable_extensions; do
  6498. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6499. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6500. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6501. break 2
  6502. fi
  6503. done
  6504. done
  6505. IFS=$as_save_IFS
  6506. fi
  6507. fi
  6508. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6509. if test -n "$ac_ct_OBJDUMP"; then
  6510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6511. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6512. else
  6513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6514. $as_echo "no" >&6; }
  6515. fi
  6516. if test "x$ac_ct_OBJDUMP" = x; then
  6517. OBJDUMP="false"
  6518. else
  6519. case $cross_compiling:$ac_tool_warned in
  6520. yes:)
  6521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6522. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6523. ac_tool_warned=yes ;;
  6524. esac
  6525. OBJDUMP=$ac_ct_OBJDUMP
  6526. fi
  6527. else
  6528. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6529. fi
  6530. ;;
  6531. esac
  6532. test -z "$AS" && AS=as
  6533. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6534. test -z "$OBJDUMP" && OBJDUMP=objdump
  6535. enable_dlopen=no
  6536. # Check whether --enable-shared was given.
  6537. if test "${enable_shared+set}" = set; then :
  6538. enableval=$enable_shared; p=${PACKAGE-default}
  6539. case $enableval in
  6540. yes) enable_shared=yes ;;
  6541. no) enable_shared=no ;;
  6542. *)
  6543. enable_shared=no
  6544. # Look at the argument we got. We use all the common list separators.
  6545. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6546. for pkg in $enableval; do
  6547. IFS="$lt_save_ifs"
  6548. if test "X$pkg" = "X$p"; then
  6549. enable_shared=yes
  6550. fi
  6551. done
  6552. IFS="$lt_save_ifs"
  6553. ;;
  6554. esac
  6555. else
  6556. enable_shared=yes
  6557. fi
  6558. # Check whether --enable-static was given.
  6559. if test "${enable_static+set}" = set; then :
  6560. enableval=$enable_static; p=${PACKAGE-default}
  6561. case $enableval in
  6562. yes) enable_static=yes ;;
  6563. no) enable_static=no ;;
  6564. *)
  6565. enable_static=no
  6566. # Look at the argument we got. We use all the common list separators.
  6567. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6568. for pkg in $enableval; do
  6569. IFS="$lt_save_ifs"
  6570. if test "X$pkg" = "X$p"; then
  6571. enable_static=yes
  6572. fi
  6573. done
  6574. IFS="$lt_save_ifs"
  6575. ;;
  6576. esac
  6577. else
  6578. enable_static=yes
  6579. fi
  6580. # Check whether --with-pic was given.
  6581. if test "${with_pic+set}" = set; then :
  6582. withval=$with_pic; lt_p=${PACKAGE-default}
  6583. case $withval in
  6584. yes|no) pic_mode=$withval ;;
  6585. *)
  6586. pic_mode=default
  6587. # Look at the argument we got. We use all the common list separators.
  6588. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6589. for lt_pkg in $withval; do
  6590. IFS="$lt_save_ifs"
  6591. if test "X$lt_pkg" = "X$lt_p"; then
  6592. pic_mode=yes
  6593. fi
  6594. done
  6595. IFS="$lt_save_ifs"
  6596. ;;
  6597. esac
  6598. else
  6599. pic_mode=default
  6600. fi
  6601. test -z "$pic_mode" && pic_mode=default
  6602. # Check whether --enable-fast-install was given.
  6603. if test "${enable_fast_install+set}" = set; then :
  6604. enableval=$enable_fast_install; p=${PACKAGE-default}
  6605. case $enableval in
  6606. yes) enable_fast_install=yes ;;
  6607. no) enable_fast_install=no ;;
  6608. *)
  6609. enable_fast_install=no
  6610. # Look at the argument we got. We use all the common list separators.
  6611. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6612. for pkg in $enableval; do
  6613. IFS="$lt_save_ifs"
  6614. if test "X$pkg" = "X$p"; then
  6615. enable_fast_install=yes
  6616. fi
  6617. done
  6618. IFS="$lt_save_ifs"
  6619. ;;
  6620. esac
  6621. else
  6622. enable_fast_install=yes
  6623. fi
  6624. # This can be used to rebuild libtool when needed
  6625. LIBTOOL_DEPS="$ltmain"
  6626. # Always use our own libtool.
  6627. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6628. test -z "$LN_S" && LN_S="ln -s"
  6629. if test -n "${ZSH_VERSION+set}" ; then
  6630. setopt NO_GLOB_SUBST
  6631. fi
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6633. $as_echo_n "checking for objdir... " >&6; }
  6634. if ${lt_cv_objdir+:} false; then :
  6635. $as_echo_n "(cached) " >&6
  6636. else
  6637. rm -f .libs 2>/dev/null
  6638. mkdir .libs 2>/dev/null
  6639. if test -d .libs; then
  6640. lt_cv_objdir=.libs
  6641. else
  6642. # MS-DOS does not allow filenames that begin with a dot.
  6643. lt_cv_objdir=_libs
  6644. fi
  6645. rmdir .libs 2>/dev/null
  6646. fi
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6648. $as_echo "$lt_cv_objdir" >&6; }
  6649. objdir=$lt_cv_objdir
  6650. cat >>confdefs.h <<_ACEOF
  6651. #define LT_OBJDIR "$lt_cv_objdir/"
  6652. _ACEOF
  6653. case $host_os in
  6654. aix3*)
  6655. # AIX sometimes has problems with the GCC collect2 program. For some
  6656. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6657. # vanish in a puff of smoke.
  6658. if test "X${COLLECT_NAMES+set}" != Xset; then
  6659. COLLECT_NAMES=
  6660. export COLLECT_NAMES
  6661. fi
  6662. ;;
  6663. esac
  6664. # Global variables:
  6665. ofile=libtool
  6666. can_build_shared=yes
  6667. # All known linkers require a `.a' archive for static linking (except MSVC,
  6668. # which needs '.lib').
  6669. libext=a
  6670. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6671. old_CC="$CC"
  6672. old_CFLAGS="$CFLAGS"
  6673. # Set sane defaults for various variables
  6674. test -z "$CC" && CC=cc
  6675. test -z "$LTCC" && LTCC=$CC
  6676. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6677. test -z "$LD" && LD=ld
  6678. test -z "$ac_objext" && ac_objext=o
  6679. for cc_temp in $compiler""; do
  6680. case $cc_temp in
  6681. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6682. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6683. \-*) ;;
  6684. *) break;;
  6685. esac
  6686. done
  6687. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6688. # Only perform the check for file, if the check method requires it
  6689. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6690. case $deplibs_check_method in
  6691. file_magic*)
  6692. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6694. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6695. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6696. $as_echo_n "(cached) " >&6
  6697. else
  6698. case $MAGIC_CMD in
  6699. [\\/*] | ?:[\\/]*)
  6700. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6701. ;;
  6702. *)
  6703. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6704. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6705. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6706. for ac_dir in $ac_dummy; do
  6707. IFS="$lt_save_ifs"
  6708. test -z "$ac_dir" && ac_dir=.
  6709. if test -f $ac_dir/${ac_tool_prefix}file; then
  6710. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6711. if test -n "$file_magic_test_file"; then
  6712. case $deplibs_check_method in
  6713. "file_magic "*)
  6714. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6715. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6716. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6717. $EGREP "$file_magic_regex" > /dev/null; then
  6718. :
  6719. else
  6720. cat <<_LT_EOF 1>&2
  6721. *** Warning: the command libtool uses to detect shared libraries,
  6722. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6723. *** The result is that libtool may fail to recognize shared libraries
  6724. *** as such. This will affect the creation of libtool libraries that
  6725. *** depend on shared libraries, but programs linked with such libtool
  6726. *** libraries will work regardless of this problem. Nevertheless, you
  6727. *** may want to report the problem to your system manager and/or to
  6728. *** bug-libtool@gnu.org
  6729. _LT_EOF
  6730. fi ;;
  6731. esac
  6732. fi
  6733. break
  6734. fi
  6735. done
  6736. IFS="$lt_save_ifs"
  6737. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6738. ;;
  6739. esac
  6740. fi
  6741. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6742. if test -n "$MAGIC_CMD"; then
  6743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6744. $as_echo "$MAGIC_CMD" >&6; }
  6745. else
  6746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6747. $as_echo "no" >&6; }
  6748. fi
  6749. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6750. if test -n "$ac_tool_prefix"; then
  6751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6752. $as_echo_n "checking for file... " >&6; }
  6753. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6754. $as_echo_n "(cached) " >&6
  6755. else
  6756. case $MAGIC_CMD in
  6757. [\\/*] | ?:[\\/]*)
  6758. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6759. ;;
  6760. *)
  6761. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6762. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6763. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6764. for ac_dir in $ac_dummy; do
  6765. IFS="$lt_save_ifs"
  6766. test -z "$ac_dir" && ac_dir=.
  6767. if test -f $ac_dir/file; then
  6768. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6769. if test -n "$file_magic_test_file"; then
  6770. case $deplibs_check_method in
  6771. "file_magic "*)
  6772. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6773. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6774. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6775. $EGREP "$file_magic_regex" > /dev/null; then
  6776. :
  6777. else
  6778. cat <<_LT_EOF 1>&2
  6779. *** Warning: the command libtool uses to detect shared libraries,
  6780. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6781. *** The result is that libtool may fail to recognize shared libraries
  6782. *** as such. This will affect the creation of libtool libraries that
  6783. *** depend on shared libraries, but programs linked with such libtool
  6784. *** libraries will work regardless of this problem. Nevertheless, you
  6785. *** may want to report the problem to your system manager and/or to
  6786. *** bug-libtool@gnu.org
  6787. _LT_EOF
  6788. fi ;;
  6789. esac
  6790. fi
  6791. break
  6792. fi
  6793. done
  6794. IFS="$lt_save_ifs"
  6795. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6796. ;;
  6797. esac
  6798. fi
  6799. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6800. if test -n "$MAGIC_CMD"; then
  6801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6802. $as_echo "$MAGIC_CMD" >&6; }
  6803. else
  6804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6805. $as_echo "no" >&6; }
  6806. fi
  6807. else
  6808. MAGIC_CMD=:
  6809. fi
  6810. fi
  6811. fi
  6812. ;;
  6813. esac
  6814. # Use C for the default configuration in the libtool script
  6815. lt_save_CC="$CC"
  6816. ac_ext=c
  6817. ac_cpp='$CPP $CPPFLAGS'
  6818. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6819. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6820. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6821. # Source file extension for C test sources.
  6822. ac_ext=c
  6823. # Object file extension for compiled C test sources.
  6824. objext=o
  6825. objext=$objext
  6826. # Code to be used in simple compile tests
  6827. lt_simple_compile_test_code="int some_variable = 0;"
  6828. # Code to be used in simple link tests
  6829. lt_simple_link_test_code='int main(){return(0);}'
  6830. # If no C compiler was specified, use CC.
  6831. LTCC=${LTCC-"$CC"}
  6832. # If no C compiler flags were specified, use CFLAGS.
  6833. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6834. # Allow CC to be a program name with arguments.
  6835. compiler=$CC
  6836. # Save the default compiler, since it gets overwritten when the other
  6837. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6838. compiler_DEFAULT=$CC
  6839. # save warnings/boilerplate of simple test code
  6840. ac_outfile=conftest.$ac_objext
  6841. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6842. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6843. _lt_compiler_boilerplate=`cat conftest.err`
  6844. $RM conftest*
  6845. ac_outfile=conftest.$ac_objext
  6846. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6847. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6848. _lt_linker_boilerplate=`cat conftest.err`
  6849. $RM -r conftest*
  6850. ## CAVEAT EMPTOR:
  6851. ## There is no encapsulation within the following macros, do not change
  6852. ## the running order or otherwise move them around unless you know exactly
  6853. ## what you are doing...
  6854. if test -n "$compiler"; then
  6855. lt_prog_compiler_no_builtin_flag=
  6856. if test "$GCC" = yes; then
  6857. case $cc_basename in
  6858. nvcc*)
  6859. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6860. *)
  6861. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6862. esac
  6863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6864. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6865. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6866. $as_echo_n "(cached) " >&6
  6867. else
  6868. lt_cv_prog_compiler_rtti_exceptions=no
  6869. ac_outfile=conftest.$ac_objext
  6870. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6871. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6872. # Insert the option either (1) after the last *FLAGS variable, or
  6873. # (2) before a word containing "conftest.", or (3) at the end.
  6874. # Note that $ac_compile itself does not contain backslashes and begins
  6875. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6876. # The option is referenced via a variable to avoid confusing sed.
  6877. lt_compile=`echo "$ac_compile" | $SED \
  6878. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6879. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6880. -e 's:$: $lt_compiler_flag:'`
  6881. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6882. (eval "$lt_compile" 2>conftest.err)
  6883. ac_status=$?
  6884. cat conftest.err >&5
  6885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6886. if (exit $ac_status) && test -s "$ac_outfile"; then
  6887. # The compiler can only warn and ignore the option if not recognized
  6888. # So say no if there are warnings other than the usual output.
  6889. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6890. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6891. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6892. lt_cv_prog_compiler_rtti_exceptions=yes
  6893. fi
  6894. fi
  6895. $RM conftest*
  6896. fi
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6898. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6899. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6900. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6901. else
  6902. :
  6903. fi
  6904. fi
  6905. lt_prog_compiler_wl=
  6906. lt_prog_compiler_pic=
  6907. lt_prog_compiler_static=
  6908. if test "$GCC" = yes; then
  6909. lt_prog_compiler_wl='-Wl,'
  6910. lt_prog_compiler_static='-static'
  6911. case $host_os in
  6912. aix*)
  6913. # All AIX code is PIC.
  6914. if test "$host_cpu" = ia64; then
  6915. # AIX 5 now supports IA64 processor
  6916. lt_prog_compiler_static='-Bstatic'
  6917. fi
  6918. ;;
  6919. amigaos*)
  6920. case $host_cpu in
  6921. powerpc)
  6922. # see comment about AmigaOS4 .so support
  6923. lt_prog_compiler_pic='-fPIC'
  6924. ;;
  6925. m68k)
  6926. # FIXME: we need at least 68020 code to build shared libraries, but
  6927. # adding the `-m68020' flag to GCC prevents building anything better,
  6928. # like `-m68040'.
  6929. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6930. ;;
  6931. esac
  6932. ;;
  6933. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6934. # PIC is the default for these OSes.
  6935. ;;
  6936. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6937. # This hack is so that the source file can tell whether it is being
  6938. # built for inclusion in a dll (and should export symbols for example).
  6939. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6940. # (--disable-auto-import) libraries
  6941. lt_prog_compiler_pic='-DDLL_EXPORT'
  6942. ;;
  6943. darwin* | rhapsody*)
  6944. # PIC is the default on this platform
  6945. # Common symbols not allowed in MH_DYLIB files
  6946. lt_prog_compiler_pic='-fno-common'
  6947. ;;
  6948. haiku*)
  6949. # PIC is the default for Haiku.
  6950. # The "-static" flag exists, but is broken.
  6951. lt_prog_compiler_static=
  6952. ;;
  6953. hpux*)
  6954. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6955. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6956. # sets the default TLS model and affects inlining.
  6957. case $host_cpu in
  6958. hppa*64*)
  6959. # +Z the default
  6960. ;;
  6961. *)
  6962. lt_prog_compiler_pic='-fPIC'
  6963. ;;
  6964. esac
  6965. ;;
  6966. interix[3-9]*)
  6967. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6968. # Instead, we relocate shared libraries at runtime.
  6969. ;;
  6970. msdosdjgpp*)
  6971. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6972. # on systems that don't support them.
  6973. lt_prog_compiler_can_build_shared=no
  6974. enable_shared=no
  6975. ;;
  6976. *nto* | *qnx*)
  6977. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6978. # it will coredump.
  6979. lt_prog_compiler_pic='-fPIC -shared'
  6980. ;;
  6981. sysv4*MP*)
  6982. if test -d /usr/nec; then
  6983. lt_prog_compiler_pic=-Kconform_pic
  6984. fi
  6985. ;;
  6986. *)
  6987. lt_prog_compiler_pic='-fPIC'
  6988. ;;
  6989. esac
  6990. case $cc_basename in
  6991. nvcc*) # Cuda Compiler Driver 2.2
  6992. lt_prog_compiler_wl='-Xlinker '
  6993. if test -n "$lt_prog_compiler_pic"; then
  6994. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6995. fi
  6996. ;;
  6997. esac
  6998. else
  6999. # PORTME Check for flag to pass linker flags through the system compiler.
  7000. case $host_os in
  7001. aix*)
  7002. lt_prog_compiler_wl='-Wl,'
  7003. if test "$host_cpu" = ia64; then
  7004. # AIX 5 now supports IA64 processor
  7005. lt_prog_compiler_static='-Bstatic'
  7006. else
  7007. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7008. fi
  7009. ;;
  7010. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7011. # This hack is so that the source file can tell whether it is being
  7012. # built for inclusion in a dll (and should export symbols for example).
  7013. lt_prog_compiler_pic='-DDLL_EXPORT'
  7014. ;;
  7015. hpux9* | hpux10* | hpux11*)
  7016. lt_prog_compiler_wl='-Wl,'
  7017. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7018. # not for PA HP-UX.
  7019. case $host_cpu in
  7020. hppa*64*|ia64*)
  7021. # +Z the default
  7022. ;;
  7023. *)
  7024. lt_prog_compiler_pic='+Z'
  7025. ;;
  7026. esac
  7027. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7028. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7029. ;;
  7030. irix5* | irix6* | nonstopux*)
  7031. lt_prog_compiler_wl='-Wl,'
  7032. # PIC (with -KPIC) is the default.
  7033. lt_prog_compiler_static='-non_shared'
  7034. ;;
  7035. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7036. case $cc_basename in
  7037. # old Intel for x86_64 which still supported -KPIC.
  7038. ecc*)
  7039. lt_prog_compiler_wl='-Wl,'
  7040. lt_prog_compiler_pic='-KPIC'
  7041. lt_prog_compiler_static='-static'
  7042. ;;
  7043. # icc used to be incompatible with GCC.
  7044. # ICC 10 doesn't accept -KPIC any more.
  7045. icc* | ifort*)
  7046. lt_prog_compiler_wl='-Wl,'
  7047. lt_prog_compiler_pic='-fPIC'
  7048. lt_prog_compiler_static='-static'
  7049. ;;
  7050. # Lahey Fortran 8.1.
  7051. lf95*)
  7052. lt_prog_compiler_wl='-Wl,'
  7053. lt_prog_compiler_pic='--shared'
  7054. lt_prog_compiler_static='--static'
  7055. ;;
  7056. nagfor*)
  7057. # NAG Fortran compiler
  7058. lt_prog_compiler_wl='-Wl,-Wl,,'
  7059. lt_prog_compiler_pic='-PIC'
  7060. lt_prog_compiler_static='-Bstatic'
  7061. ;;
  7062. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7063. # Portland Group compilers (*not* the Pentium gcc compiler,
  7064. # which looks to be a dead project)
  7065. lt_prog_compiler_wl='-Wl,'
  7066. lt_prog_compiler_pic='-fpic'
  7067. lt_prog_compiler_static='-Bstatic'
  7068. ;;
  7069. ccc*)
  7070. lt_prog_compiler_wl='-Wl,'
  7071. # All Alpha code is PIC.
  7072. lt_prog_compiler_static='-non_shared'
  7073. ;;
  7074. xl* | bgxl* | bgf* | mpixl*)
  7075. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7076. lt_prog_compiler_wl='-Wl,'
  7077. lt_prog_compiler_pic='-qpic'
  7078. lt_prog_compiler_static='-qstaticlink'
  7079. ;;
  7080. *)
  7081. case `$CC -V 2>&1 | sed 5q` in
  7082. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7083. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7084. lt_prog_compiler_pic='-KPIC'
  7085. lt_prog_compiler_static='-Bstatic'
  7086. lt_prog_compiler_wl=''
  7087. ;;
  7088. *Sun\ F* | *Sun*Fortran*)
  7089. lt_prog_compiler_pic='-KPIC'
  7090. lt_prog_compiler_static='-Bstatic'
  7091. lt_prog_compiler_wl='-Qoption ld '
  7092. ;;
  7093. *Sun\ C*)
  7094. # Sun C 5.9
  7095. lt_prog_compiler_pic='-KPIC'
  7096. lt_prog_compiler_static='-Bstatic'
  7097. lt_prog_compiler_wl='-Wl,'
  7098. ;;
  7099. *Intel*\ [CF]*Compiler*)
  7100. lt_prog_compiler_wl='-Wl,'
  7101. lt_prog_compiler_pic='-fPIC'
  7102. lt_prog_compiler_static='-static'
  7103. ;;
  7104. *Portland\ Group*)
  7105. lt_prog_compiler_wl='-Wl,'
  7106. lt_prog_compiler_pic='-fpic'
  7107. lt_prog_compiler_static='-Bstatic'
  7108. ;;
  7109. esac
  7110. ;;
  7111. esac
  7112. ;;
  7113. newsos6)
  7114. lt_prog_compiler_pic='-KPIC'
  7115. lt_prog_compiler_static='-Bstatic'
  7116. ;;
  7117. *nto* | *qnx*)
  7118. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7119. # it will coredump.
  7120. lt_prog_compiler_pic='-fPIC -shared'
  7121. ;;
  7122. osf3* | osf4* | osf5*)
  7123. lt_prog_compiler_wl='-Wl,'
  7124. # All OSF/1 code is PIC.
  7125. lt_prog_compiler_static='-non_shared'
  7126. ;;
  7127. rdos*)
  7128. lt_prog_compiler_static='-non_shared'
  7129. ;;
  7130. solaris*)
  7131. lt_prog_compiler_pic='-KPIC'
  7132. lt_prog_compiler_static='-Bstatic'
  7133. case $cc_basename in
  7134. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7135. lt_prog_compiler_wl='-Qoption ld ';;
  7136. *)
  7137. lt_prog_compiler_wl='-Wl,';;
  7138. esac
  7139. ;;
  7140. sunos4*)
  7141. lt_prog_compiler_wl='-Qoption ld '
  7142. lt_prog_compiler_pic='-PIC'
  7143. lt_prog_compiler_static='-Bstatic'
  7144. ;;
  7145. sysv4 | sysv4.2uw2* | sysv4.3*)
  7146. lt_prog_compiler_wl='-Wl,'
  7147. lt_prog_compiler_pic='-KPIC'
  7148. lt_prog_compiler_static='-Bstatic'
  7149. ;;
  7150. sysv4*MP*)
  7151. if test -d /usr/nec ;then
  7152. lt_prog_compiler_pic='-Kconform_pic'
  7153. lt_prog_compiler_static='-Bstatic'
  7154. fi
  7155. ;;
  7156. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7157. lt_prog_compiler_wl='-Wl,'
  7158. lt_prog_compiler_pic='-KPIC'
  7159. lt_prog_compiler_static='-Bstatic'
  7160. ;;
  7161. unicos*)
  7162. lt_prog_compiler_wl='-Wl,'
  7163. lt_prog_compiler_can_build_shared=no
  7164. ;;
  7165. uts4*)
  7166. lt_prog_compiler_pic='-pic'
  7167. lt_prog_compiler_static='-Bstatic'
  7168. ;;
  7169. *)
  7170. lt_prog_compiler_can_build_shared=no
  7171. ;;
  7172. esac
  7173. fi
  7174. case $host_os in
  7175. # For platforms which do not support PIC, -DPIC is meaningless:
  7176. *djgpp*)
  7177. lt_prog_compiler_pic=
  7178. ;;
  7179. *)
  7180. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7181. ;;
  7182. esac
  7183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7184. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7185. if ${lt_cv_prog_compiler_pic+:} false; then :
  7186. $as_echo_n "(cached) " >&6
  7187. else
  7188. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7189. fi
  7190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7191. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7192. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7193. #
  7194. # Check to make sure the PIC flag actually works.
  7195. #
  7196. if test -n "$lt_prog_compiler_pic"; then
  7197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7198. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7199. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7200. $as_echo_n "(cached) " >&6
  7201. else
  7202. lt_cv_prog_compiler_pic_works=no
  7203. ac_outfile=conftest.$ac_objext
  7204. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7205. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7206. # Insert the option either (1) after the last *FLAGS variable, or
  7207. # (2) before a word containing "conftest.", or (3) at the end.
  7208. # Note that $ac_compile itself does not contain backslashes and begins
  7209. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7210. # The option is referenced via a variable to avoid confusing sed.
  7211. lt_compile=`echo "$ac_compile" | $SED \
  7212. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7213. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7214. -e 's:$: $lt_compiler_flag:'`
  7215. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7216. (eval "$lt_compile" 2>conftest.err)
  7217. ac_status=$?
  7218. cat conftest.err >&5
  7219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7220. if (exit $ac_status) && test -s "$ac_outfile"; then
  7221. # The compiler can only warn and ignore the option if not recognized
  7222. # So say no if there are warnings other than the usual output.
  7223. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7224. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7225. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7226. lt_cv_prog_compiler_pic_works=yes
  7227. fi
  7228. fi
  7229. $RM conftest*
  7230. fi
  7231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7232. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7233. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7234. case $lt_prog_compiler_pic in
  7235. "" | " "*) ;;
  7236. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7237. esac
  7238. else
  7239. lt_prog_compiler_pic=
  7240. lt_prog_compiler_can_build_shared=no
  7241. fi
  7242. fi
  7243. #
  7244. # Check to make sure the static flag actually works.
  7245. #
  7246. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7248. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7249. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7250. $as_echo_n "(cached) " >&6
  7251. else
  7252. lt_cv_prog_compiler_static_works=no
  7253. save_LDFLAGS="$LDFLAGS"
  7254. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7255. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7256. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7257. # The linker can only warn and ignore the option if not recognized
  7258. # So say no if there are warnings
  7259. if test -s conftest.err; then
  7260. # Append any errors to the config.log.
  7261. cat conftest.err 1>&5
  7262. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7263. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7264. if diff conftest.exp conftest.er2 >/dev/null; then
  7265. lt_cv_prog_compiler_static_works=yes
  7266. fi
  7267. else
  7268. lt_cv_prog_compiler_static_works=yes
  7269. fi
  7270. fi
  7271. $RM -r conftest*
  7272. LDFLAGS="$save_LDFLAGS"
  7273. fi
  7274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7275. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7276. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7277. :
  7278. else
  7279. lt_prog_compiler_static=
  7280. fi
  7281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7282. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7283. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7284. $as_echo_n "(cached) " >&6
  7285. else
  7286. lt_cv_prog_compiler_c_o=no
  7287. $RM -r conftest 2>/dev/null
  7288. mkdir conftest
  7289. cd conftest
  7290. mkdir out
  7291. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7292. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7293. # Insert the option either (1) after the last *FLAGS variable, or
  7294. # (2) before a word containing "conftest.", or (3) at the end.
  7295. # Note that $ac_compile itself does not contain backslashes and begins
  7296. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7297. lt_compile=`echo "$ac_compile" | $SED \
  7298. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7299. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7300. -e 's:$: $lt_compiler_flag:'`
  7301. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7302. (eval "$lt_compile" 2>out/conftest.err)
  7303. ac_status=$?
  7304. cat out/conftest.err >&5
  7305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7306. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7307. then
  7308. # The compiler can only warn and ignore the option if not recognized
  7309. # So say no if there are warnings
  7310. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7311. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7312. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7313. lt_cv_prog_compiler_c_o=yes
  7314. fi
  7315. fi
  7316. chmod u+w . 2>&5
  7317. $RM conftest*
  7318. # SGI C++ compiler will create directory out/ii_files/ for
  7319. # template instantiation
  7320. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7321. $RM out/* && rmdir out
  7322. cd ..
  7323. $RM -r conftest
  7324. $RM conftest*
  7325. fi
  7326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7327. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7329. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7330. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7331. $as_echo_n "(cached) " >&6
  7332. else
  7333. lt_cv_prog_compiler_c_o=no
  7334. $RM -r conftest 2>/dev/null
  7335. mkdir conftest
  7336. cd conftest
  7337. mkdir out
  7338. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7339. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7340. # Insert the option either (1) after the last *FLAGS variable, or
  7341. # (2) before a word containing "conftest.", or (3) at the end.
  7342. # Note that $ac_compile itself does not contain backslashes and begins
  7343. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7344. lt_compile=`echo "$ac_compile" | $SED \
  7345. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7346. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7347. -e 's:$: $lt_compiler_flag:'`
  7348. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7349. (eval "$lt_compile" 2>out/conftest.err)
  7350. ac_status=$?
  7351. cat out/conftest.err >&5
  7352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7353. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7354. then
  7355. # The compiler can only warn and ignore the option if not recognized
  7356. # So say no if there are warnings
  7357. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7358. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7359. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7360. lt_cv_prog_compiler_c_o=yes
  7361. fi
  7362. fi
  7363. chmod u+w . 2>&5
  7364. $RM conftest*
  7365. # SGI C++ compiler will create directory out/ii_files/ for
  7366. # template instantiation
  7367. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7368. $RM out/* && rmdir out
  7369. cd ..
  7370. $RM -r conftest
  7371. $RM conftest*
  7372. fi
  7373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7374. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7375. hard_links="nottested"
  7376. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7377. # do not overwrite the value of need_locks provided by the user
  7378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7379. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7380. hard_links=yes
  7381. $RM conftest*
  7382. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7383. touch conftest.a
  7384. ln conftest.a conftest.b 2>&5 || hard_links=no
  7385. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7387. $as_echo "$hard_links" >&6; }
  7388. if test "$hard_links" = no; then
  7389. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7390. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7391. need_locks=warn
  7392. fi
  7393. else
  7394. need_locks=no
  7395. fi
  7396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7397. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7398. runpath_var=
  7399. allow_undefined_flag=
  7400. always_export_symbols=no
  7401. archive_cmds=
  7402. archive_expsym_cmds=
  7403. compiler_needs_object=no
  7404. enable_shared_with_static_runtimes=no
  7405. export_dynamic_flag_spec=
  7406. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7407. hardcode_automatic=no
  7408. hardcode_direct=no
  7409. hardcode_direct_absolute=no
  7410. hardcode_libdir_flag_spec=
  7411. hardcode_libdir_separator=
  7412. hardcode_minus_L=no
  7413. hardcode_shlibpath_var=unsupported
  7414. inherit_rpath=no
  7415. link_all_deplibs=unknown
  7416. module_cmds=
  7417. module_expsym_cmds=
  7418. old_archive_from_new_cmds=
  7419. old_archive_from_expsyms_cmds=
  7420. thread_safe_flag_spec=
  7421. whole_archive_flag_spec=
  7422. # include_expsyms should be a list of space-separated symbols to be *always*
  7423. # included in the symbol list
  7424. include_expsyms=
  7425. # exclude_expsyms can be an extended regexp of symbols to exclude
  7426. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7427. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7428. # as well as any symbol that contains `d'.
  7429. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7430. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7431. # platforms (ab)use it in PIC code, but their linkers get confused if
  7432. # the symbol is explicitly referenced. Since portable code cannot
  7433. # rely on this symbol name, it's probably fine to never include it in
  7434. # preloaded symbol tables.
  7435. # Exclude shared library initialization/finalization symbols.
  7436. extract_expsyms_cmds=
  7437. case $host_os in
  7438. cygwin* | mingw* | pw32* | cegcc*)
  7439. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7440. # When not using gcc, we currently assume that we are using
  7441. # Microsoft Visual C++.
  7442. if test "$GCC" != yes; then
  7443. with_gnu_ld=no
  7444. fi
  7445. ;;
  7446. interix*)
  7447. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7448. with_gnu_ld=yes
  7449. ;;
  7450. openbsd*)
  7451. with_gnu_ld=no
  7452. ;;
  7453. esac
  7454. ld_shlibs=yes
  7455. # On some targets, GNU ld is compatible enough with the native linker
  7456. # that we're better off using the native interface for both.
  7457. lt_use_gnu_ld_interface=no
  7458. if test "$with_gnu_ld" = yes; then
  7459. case $host_os in
  7460. aix*)
  7461. # The AIX port of GNU ld has always aspired to compatibility
  7462. # with the native linker. However, as the warning in the GNU ld
  7463. # block says, versions before 2.19.5* couldn't really create working
  7464. # shared libraries, regardless of the interface used.
  7465. case `$LD -v 2>&1` in
  7466. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7467. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7468. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7469. *)
  7470. lt_use_gnu_ld_interface=yes
  7471. ;;
  7472. esac
  7473. ;;
  7474. *)
  7475. lt_use_gnu_ld_interface=yes
  7476. ;;
  7477. esac
  7478. fi
  7479. if test "$lt_use_gnu_ld_interface" = yes; then
  7480. # If archive_cmds runs LD, not CC, wlarc should be empty
  7481. wlarc='${wl}'
  7482. # Set some defaults for GNU ld with shared library support. These
  7483. # are reset later if shared libraries are not supported. Putting them
  7484. # here allows them to be overridden if necessary.
  7485. runpath_var=LD_RUN_PATH
  7486. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7487. export_dynamic_flag_spec='${wl}--export-dynamic'
  7488. # ancient GNU ld didn't support --whole-archive et. al.
  7489. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7490. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7491. else
  7492. whole_archive_flag_spec=
  7493. fi
  7494. supports_anon_versioning=no
  7495. case `$LD -v 2>&1` in
  7496. *GNU\ gold*) supports_anon_versioning=yes ;;
  7497. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7498. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7499. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7500. *\ 2.11.*) ;; # other 2.11 versions
  7501. *) supports_anon_versioning=yes ;;
  7502. esac
  7503. # See if GNU ld supports shared libraries.
  7504. case $host_os in
  7505. aix[3-9]*)
  7506. # On AIX/PPC, the GNU linker is very broken
  7507. if test "$host_cpu" != ia64; then
  7508. ld_shlibs=no
  7509. cat <<_LT_EOF 1>&2
  7510. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7511. *** to be unable to reliably create shared libraries on AIX.
  7512. *** Therefore, libtool is disabling shared libraries support. If you
  7513. *** really care for shared libraries, you may want to install binutils
  7514. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7515. *** You will then need to restart the configuration process.
  7516. _LT_EOF
  7517. fi
  7518. ;;
  7519. amigaos*)
  7520. case $host_cpu in
  7521. powerpc)
  7522. # see comment about AmigaOS4 .so support
  7523. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7524. archive_expsym_cmds=''
  7525. ;;
  7526. m68k)
  7527. 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)'
  7528. hardcode_libdir_flag_spec='-L$libdir'
  7529. hardcode_minus_L=yes
  7530. ;;
  7531. esac
  7532. ;;
  7533. beos*)
  7534. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7535. allow_undefined_flag=unsupported
  7536. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7537. # support --undefined. This deserves some investigation. FIXME
  7538. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7539. else
  7540. ld_shlibs=no
  7541. fi
  7542. ;;
  7543. cygwin* | mingw* | pw32* | cegcc*)
  7544. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7545. # as there is no search path for DLLs.
  7546. hardcode_libdir_flag_spec='-L$libdir'
  7547. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7548. allow_undefined_flag=unsupported
  7549. always_export_symbols=no
  7550. enable_shared_with_static_runtimes=yes
  7551. 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'
  7552. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7553. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7554. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7555. # If the export-symbols file already is a .def file (1st line
  7556. # is EXPORTS), use it as is; otherwise, prepend...
  7557. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7558. cp $export_symbols $output_objdir/$soname.def;
  7559. else
  7560. echo EXPORTS > $output_objdir/$soname.def;
  7561. cat $export_symbols >> $output_objdir/$soname.def;
  7562. fi~
  7563. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7564. else
  7565. ld_shlibs=no
  7566. fi
  7567. ;;
  7568. haiku*)
  7569. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7570. link_all_deplibs=yes
  7571. ;;
  7572. interix[3-9]*)
  7573. hardcode_direct=no
  7574. hardcode_shlibpath_var=no
  7575. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7576. export_dynamic_flag_spec='${wl}-E'
  7577. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7578. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7579. # default) and relocated if they conflict, which is a slow very memory
  7580. # consuming and fragmenting process. To avoid this, we pick a random,
  7581. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7582. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7583. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7584. 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'
  7585. ;;
  7586. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7587. tmp_diet=no
  7588. if test "$host_os" = linux-dietlibc; then
  7589. case $cc_basename in
  7590. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7591. esac
  7592. fi
  7593. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7594. && test "$tmp_diet" = no
  7595. then
  7596. tmp_addflag=' $pic_flag'
  7597. tmp_sharedflag='-shared'
  7598. case $cc_basename,$host_cpu in
  7599. pgcc*) # Portland Group C compiler
  7600. 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'
  7601. tmp_addflag=' $pic_flag'
  7602. ;;
  7603. pgf77* | pgf90* | pgf95* | pgfortran*)
  7604. # Portland Group f77 and f90 compilers
  7605. 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'
  7606. tmp_addflag=' $pic_flag -Mnomain' ;;
  7607. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7608. tmp_addflag=' -i_dynamic' ;;
  7609. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7610. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7611. ifc* | ifort*) # Intel Fortran compiler
  7612. tmp_addflag=' -nofor_main' ;;
  7613. lf95*) # Lahey Fortran 8.1
  7614. whole_archive_flag_spec=
  7615. tmp_sharedflag='--shared' ;;
  7616. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7617. tmp_sharedflag='-qmkshrobj'
  7618. tmp_addflag= ;;
  7619. nvcc*) # Cuda Compiler Driver 2.2
  7620. 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'
  7621. compiler_needs_object=yes
  7622. ;;
  7623. esac
  7624. case `$CC -V 2>&1 | sed 5q` in
  7625. *Sun\ C*) # Sun C 5.9
  7626. 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'
  7627. compiler_needs_object=yes
  7628. tmp_sharedflag='-G' ;;
  7629. *Sun\ F*) # Sun Fortran 8.3
  7630. tmp_sharedflag='-G' ;;
  7631. esac
  7632. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7633. if test "x$supports_anon_versioning" = xyes; then
  7634. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7635. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7636. echo "local: *; };" >> $output_objdir/$libname.ver~
  7637. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7638. fi
  7639. case $cc_basename in
  7640. xlf* | bgf* | bgxlf* | mpixlf*)
  7641. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7642. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7643. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7644. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7645. if test "x$supports_anon_versioning" = xyes; then
  7646. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7647. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7648. echo "local: *; };" >> $output_objdir/$libname.ver~
  7649. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7650. fi
  7651. ;;
  7652. esac
  7653. else
  7654. ld_shlibs=no
  7655. fi
  7656. ;;
  7657. netbsd*)
  7658. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7659. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7660. wlarc=
  7661. else
  7662. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7663. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7664. fi
  7665. ;;
  7666. solaris*)
  7667. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7668. ld_shlibs=no
  7669. cat <<_LT_EOF 1>&2
  7670. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7671. *** create shared libraries on Solaris systems. Therefore, libtool
  7672. *** is disabling shared libraries support. We urge you to upgrade GNU
  7673. *** binutils to release 2.9.1 or newer. Another option is to modify
  7674. *** your PATH or compiler configuration so that the native linker is
  7675. *** used, and then restart.
  7676. _LT_EOF
  7677. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7678. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7679. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7680. else
  7681. ld_shlibs=no
  7682. fi
  7683. ;;
  7684. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7685. case `$LD -v 2>&1` in
  7686. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7687. ld_shlibs=no
  7688. cat <<_LT_EOF 1>&2
  7689. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7690. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7691. *** is disabling shared libraries support. We urge you to upgrade GNU
  7692. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7693. *** your PATH or compiler configuration so that the native linker is
  7694. *** used, and then restart.
  7695. _LT_EOF
  7696. ;;
  7697. *)
  7698. # For security reasons, it is highly recommended that you always
  7699. # use absolute paths for naming shared libraries, and exclude the
  7700. # DT_RUNPATH tag from executables and libraries. But doing so
  7701. # requires that you compile everything twice, which is a pain.
  7702. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7703. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7704. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7705. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7706. else
  7707. ld_shlibs=no
  7708. fi
  7709. ;;
  7710. esac
  7711. ;;
  7712. sunos4*)
  7713. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7714. wlarc=
  7715. hardcode_direct=yes
  7716. hardcode_shlibpath_var=no
  7717. ;;
  7718. *)
  7719. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7720. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7721. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7722. else
  7723. ld_shlibs=no
  7724. fi
  7725. ;;
  7726. esac
  7727. if test "$ld_shlibs" = no; then
  7728. runpath_var=
  7729. hardcode_libdir_flag_spec=
  7730. export_dynamic_flag_spec=
  7731. whole_archive_flag_spec=
  7732. fi
  7733. else
  7734. # PORTME fill in a description of your system's linker (not GNU ld)
  7735. case $host_os in
  7736. aix3*)
  7737. allow_undefined_flag=unsupported
  7738. always_export_symbols=yes
  7739. 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'
  7740. # Note: this linker hardcodes the directories in LIBPATH if there
  7741. # are no directories specified by -L.
  7742. hardcode_minus_L=yes
  7743. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7744. # Neither direct hardcoding nor static linking is supported with a
  7745. # broken collect2.
  7746. hardcode_direct=unsupported
  7747. fi
  7748. ;;
  7749. aix[4-9]*)
  7750. if test "$host_cpu" = ia64; then
  7751. # On IA64, the linker does run time linking by default, so we don't
  7752. # have to do anything special.
  7753. aix_use_runtimelinking=no
  7754. exp_sym_flag='-Bexport'
  7755. no_entry_flag=""
  7756. else
  7757. # If we're using GNU nm, then we don't want the "-C" option.
  7758. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7759. # Also, AIX nm treats weak defined symbols like other global
  7760. # defined symbols, whereas GNU nm marks them as "W".
  7761. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7762. 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'
  7763. else
  7764. 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'
  7765. fi
  7766. aix_use_runtimelinking=no
  7767. # Test if we are trying to use run time linking or normal
  7768. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7769. # need to do runtime linking.
  7770. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7771. for ld_flag in $LDFLAGS; do
  7772. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7773. aix_use_runtimelinking=yes
  7774. break
  7775. fi
  7776. done
  7777. ;;
  7778. esac
  7779. exp_sym_flag='-bexport'
  7780. no_entry_flag='-bnoentry'
  7781. fi
  7782. # When large executables or shared objects are built, AIX ld can
  7783. # have problems creating the table of contents. If linking a library
  7784. # or program results in "error TOC overflow" add -mminimal-toc to
  7785. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7786. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7787. archive_cmds=''
  7788. hardcode_direct=yes
  7789. hardcode_direct_absolute=yes
  7790. hardcode_libdir_separator=':'
  7791. link_all_deplibs=yes
  7792. file_list_spec='${wl}-f,'
  7793. if test "$GCC" = yes; then
  7794. case $host_os in aix4.[012]|aix4.[012].*)
  7795. # We only want to do this on AIX 4.2 and lower, the check
  7796. # below for broken collect2 doesn't work under 4.3+
  7797. collect2name=`${CC} -print-prog-name=collect2`
  7798. if test -f "$collect2name" &&
  7799. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7800. then
  7801. # We have reworked collect2
  7802. :
  7803. else
  7804. # We have old collect2
  7805. hardcode_direct=unsupported
  7806. # It fails to find uninstalled libraries when the uninstalled
  7807. # path is not listed in the libpath. Setting hardcode_minus_L
  7808. # to unsupported forces relinking
  7809. hardcode_minus_L=yes
  7810. hardcode_libdir_flag_spec='-L$libdir'
  7811. hardcode_libdir_separator=
  7812. fi
  7813. ;;
  7814. esac
  7815. shared_flag='-shared'
  7816. if test "$aix_use_runtimelinking" = yes; then
  7817. shared_flag="$shared_flag "'${wl}-G'
  7818. fi
  7819. else
  7820. # not using gcc
  7821. if test "$host_cpu" = ia64; then
  7822. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7823. # chokes on -Wl,-G. The following line is correct:
  7824. shared_flag='-G'
  7825. else
  7826. if test "$aix_use_runtimelinking" = yes; then
  7827. shared_flag='${wl}-G'
  7828. else
  7829. shared_flag='${wl}-bM:SRE'
  7830. fi
  7831. fi
  7832. fi
  7833. export_dynamic_flag_spec='${wl}-bexpall'
  7834. # It seems that -bexpall does not export symbols beginning with
  7835. # underscore (_), so it is better to generate a list of symbols to export.
  7836. always_export_symbols=yes
  7837. if test "$aix_use_runtimelinking" = yes; then
  7838. # Warning - without using the other runtime loading flags (-brtl),
  7839. # -berok will link without error, but may produce a broken library.
  7840. allow_undefined_flag='-berok'
  7841. # Determine the default libpath from the value encoded in an
  7842. # empty executable.
  7843. if test "${lt_cv_aix_libpath+set}" = set; then
  7844. aix_libpath=$lt_cv_aix_libpath
  7845. else
  7846. if ${lt_cv_aix_libpath_+:} false; then :
  7847. $as_echo_n "(cached) " >&6
  7848. else
  7849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7850. /* end confdefs.h. */
  7851. int
  7852. main ()
  7853. {
  7854. ;
  7855. return 0;
  7856. }
  7857. _ACEOF
  7858. if ac_fn_c_try_link "$LINENO"; then :
  7859. lt_aix_libpath_sed='
  7860. /Import File Strings/,/^$/ {
  7861. /^0/ {
  7862. s/^0 *\([^ ]*\) *$/\1/
  7863. p
  7864. }
  7865. }'
  7866. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7867. # Check for a 64-bit object if we didn't find anything.
  7868. if test -z "$lt_cv_aix_libpath_"; then
  7869. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7870. fi
  7871. fi
  7872. rm -f core conftest.err conftest.$ac_objext \
  7873. conftest$ac_exeext conftest.$ac_ext
  7874. if test -z "$lt_cv_aix_libpath_"; then
  7875. lt_cv_aix_libpath_="/usr/lib:/lib"
  7876. fi
  7877. fi
  7878. aix_libpath=$lt_cv_aix_libpath_
  7879. fi
  7880. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7881. 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"
  7882. else
  7883. if test "$host_cpu" = ia64; then
  7884. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7885. allow_undefined_flag="-z nodefs"
  7886. 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"
  7887. else
  7888. # Determine the default libpath from the value encoded in an
  7889. # empty executable.
  7890. if test "${lt_cv_aix_libpath+set}" = set; then
  7891. aix_libpath=$lt_cv_aix_libpath
  7892. else
  7893. if ${lt_cv_aix_libpath_+:} false; then :
  7894. $as_echo_n "(cached) " >&6
  7895. else
  7896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7897. /* end confdefs.h. */
  7898. int
  7899. main ()
  7900. {
  7901. ;
  7902. return 0;
  7903. }
  7904. _ACEOF
  7905. if ac_fn_c_try_link "$LINENO"; then :
  7906. lt_aix_libpath_sed='
  7907. /Import File Strings/,/^$/ {
  7908. /^0/ {
  7909. s/^0 *\([^ ]*\) *$/\1/
  7910. p
  7911. }
  7912. }'
  7913. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7914. # Check for a 64-bit object if we didn't find anything.
  7915. if test -z "$lt_cv_aix_libpath_"; then
  7916. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7917. fi
  7918. fi
  7919. rm -f core conftest.err conftest.$ac_objext \
  7920. conftest$ac_exeext conftest.$ac_ext
  7921. if test -z "$lt_cv_aix_libpath_"; then
  7922. lt_cv_aix_libpath_="/usr/lib:/lib"
  7923. fi
  7924. fi
  7925. aix_libpath=$lt_cv_aix_libpath_
  7926. fi
  7927. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7928. # Warning - without using the other run time loading flags,
  7929. # -berok will link without error, but may produce a broken library.
  7930. no_undefined_flag=' ${wl}-bernotok'
  7931. allow_undefined_flag=' ${wl}-berok'
  7932. if test "$with_gnu_ld" = yes; then
  7933. # We only use this code for GNU lds that support --whole-archive.
  7934. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7935. else
  7936. # Exported symbols can be pulled into shared objects from archives
  7937. whole_archive_flag_spec='$convenience'
  7938. fi
  7939. archive_cmds_need_lc=yes
  7940. # This is similar to how AIX traditionally builds its shared libraries.
  7941. 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'
  7942. fi
  7943. fi
  7944. ;;
  7945. amigaos*)
  7946. case $host_cpu in
  7947. powerpc)
  7948. # see comment about AmigaOS4 .so support
  7949. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7950. archive_expsym_cmds=''
  7951. ;;
  7952. m68k)
  7953. 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)'
  7954. hardcode_libdir_flag_spec='-L$libdir'
  7955. hardcode_minus_L=yes
  7956. ;;
  7957. esac
  7958. ;;
  7959. bsdi[45]*)
  7960. export_dynamic_flag_spec=-rdynamic
  7961. ;;
  7962. cygwin* | mingw* | pw32* | cegcc*)
  7963. # When not using gcc, we currently assume that we are using
  7964. # Microsoft Visual C++.
  7965. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7966. # no search path for DLLs.
  7967. case $cc_basename in
  7968. cl*)
  7969. # Native MSVC
  7970. hardcode_libdir_flag_spec=' '
  7971. allow_undefined_flag=unsupported
  7972. always_export_symbols=yes
  7973. file_list_spec='@'
  7974. # Tell ltmain to make .lib files, not .a files.
  7975. libext=lib
  7976. # Tell ltmain to make .dll files, not .so files.
  7977. shrext_cmds=".dll"
  7978. # FIXME: Setting linknames here is a bad hack.
  7979. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7980. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7981. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7982. else
  7983. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7984. fi~
  7985. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7986. linknames='
  7987. # The linker will not automatically build a static lib if we build a DLL.
  7988. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7989. enable_shared_with_static_runtimes=yes
  7990. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7991. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7992. # Don't use ranlib
  7993. old_postinstall_cmds='chmod 644 $oldlib'
  7994. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7995. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7996. case $lt_outputfile in
  7997. *.exe|*.EXE) ;;
  7998. *)
  7999. lt_outputfile="$lt_outputfile.exe"
  8000. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8001. ;;
  8002. esac~
  8003. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8004. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8005. $RM "$lt_outputfile.manifest";
  8006. fi'
  8007. ;;
  8008. *)
  8009. # Assume MSVC wrapper
  8010. hardcode_libdir_flag_spec=' '
  8011. allow_undefined_flag=unsupported
  8012. # Tell ltmain to make .lib files, not .a files.
  8013. libext=lib
  8014. # Tell ltmain to make .dll files, not .so files.
  8015. shrext_cmds=".dll"
  8016. # FIXME: Setting linknames here is a bad hack.
  8017. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8018. # The linker will automatically build a .lib file if we build a DLL.
  8019. old_archive_from_new_cmds='true'
  8020. # FIXME: Should let the user specify the lib program.
  8021. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8022. enable_shared_with_static_runtimes=yes
  8023. ;;
  8024. esac
  8025. ;;
  8026. darwin* | rhapsody*)
  8027. archive_cmds_need_lc=no
  8028. hardcode_direct=no
  8029. hardcode_automatic=yes
  8030. hardcode_shlibpath_var=unsupported
  8031. if test "$lt_cv_ld_force_load" = "yes"; then
  8032. 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\"`'
  8033. else
  8034. whole_archive_flag_spec=''
  8035. fi
  8036. link_all_deplibs=yes
  8037. allow_undefined_flag="$_lt_dar_allow_undefined"
  8038. case $cc_basename in
  8039. ifort*) _lt_dar_can_shared=yes ;;
  8040. *) _lt_dar_can_shared=$GCC ;;
  8041. esac
  8042. if test "$_lt_dar_can_shared" = "yes"; then
  8043. output_verbose_link_cmd=func_echo_all
  8044. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8045. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8046. 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}"
  8047. 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}"
  8048. else
  8049. ld_shlibs=no
  8050. fi
  8051. ;;
  8052. dgux*)
  8053. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8054. hardcode_libdir_flag_spec='-L$libdir'
  8055. hardcode_shlibpath_var=no
  8056. ;;
  8057. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8058. # support. Future versions do this automatically, but an explicit c++rt0.o
  8059. # does not break anything, and helps significantly (at the cost of a little
  8060. # extra space).
  8061. freebsd2.2*)
  8062. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8063. hardcode_libdir_flag_spec='-R$libdir'
  8064. hardcode_direct=yes
  8065. hardcode_shlibpath_var=no
  8066. ;;
  8067. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8068. freebsd2.*)
  8069. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8070. hardcode_direct=yes
  8071. hardcode_minus_L=yes
  8072. hardcode_shlibpath_var=no
  8073. ;;
  8074. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8075. freebsd* | dragonfly*)
  8076. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8077. hardcode_libdir_flag_spec='-R$libdir'
  8078. hardcode_direct=yes
  8079. hardcode_shlibpath_var=no
  8080. ;;
  8081. hpux9*)
  8082. if test "$GCC" = yes; then
  8083. 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'
  8084. else
  8085. 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'
  8086. fi
  8087. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8088. hardcode_libdir_separator=:
  8089. hardcode_direct=yes
  8090. # hardcode_minus_L: Not really in the search PATH,
  8091. # but as the default location of the library.
  8092. hardcode_minus_L=yes
  8093. export_dynamic_flag_spec='${wl}-E'
  8094. ;;
  8095. hpux10*)
  8096. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8097. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8098. else
  8099. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8100. fi
  8101. if test "$with_gnu_ld" = no; then
  8102. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8103. hardcode_libdir_separator=:
  8104. hardcode_direct=yes
  8105. hardcode_direct_absolute=yes
  8106. export_dynamic_flag_spec='${wl}-E'
  8107. # hardcode_minus_L: Not really in the search PATH,
  8108. # but as the default location of the library.
  8109. hardcode_minus_L=yes
  8110. fi
  8111. ;;
  8112. hpux11*)
  8113. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8114. case $host_cpu in
  8115. hppa*64*)
  8116. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8117. ;;
  8118. ia64*)
  8119. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8120. ;;
  8121. *)
  8122. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8123. ;;
  8124. esac
  8125. else
  8126. case $host_cpu in
  8127. hppa*64*)
  8128. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8129. ;;
  8130. ia64*)
  8131. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8132. ;;
  8133. *)
  8134. # Older versions of the 11.00 compiler do not understand -b yet
  8135. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8137. $as_echo_n "checking if $CC understands -b... " >&6; }
  8138. if ${lt_cv_prog_compiler__b+:} false; then :
  8139. $as_echo_n "(cached) " >&6
  8140. else
  8141. lt_cv_prog_compiler__b=no
  8142. save_LDFLAGS="$LDFLAGS"
  8143. LDFLAGS="$LDFLAGS -b"
  8144. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8145. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8146. # The linker can only warn and ignore the option if not recognized
  8147. # So say no if there are warnings
  8148. if test -s conftest.err; then
  8149. # Append any errors to the config.log.
  8150. cat conftest.err 1>&5
  8151. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8152. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8153. if diff conftest.exp conftest.er2 >/dev/null; then
  8154. lt_cv_prog_compiler__b=yes
  8155. fi
  8156. else
  8157. lt_cv_prog_compiler__b=yes
  8158. fi
  8159. fi
  8160. $RM -r conftest*
  8161. LDFLAGS="$save_LDFLAGS"
  8162. fi
  8163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8164. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8165. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8166. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8167. else
  8168. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8169. fi
  8170. ;;
  8171. esac
  8172. fi
  8173. if test "$with_gnu_ld" = no; then
  8174. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8175. hardcode_libdir_separator=:
  8176. case $host_cpu in
  8177. hppa*64*|ia64*)
  8178. hardcode_direct=no
  8179. hardcode_shlibpath_var=no
  8180. ;;
  8181. *)
  8182. hardcode_direct=yes
  8183. hardcode_direct_absolute=yes
  8184. export_dynamic_flag_spec='${wl}-E'
  8185. # hardcode_minus_L: Not really in the search PATH,
  8186. # but as the default location of the library.
  8187. hardcode_minus_L=yes
  8188. ;;
  8189. esac
  8190. fi
  8191. ;;
  8192. irix5* | irix6* | nonstopux*)
  8193. if test "$GCC" = yes; then
  8194. 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'
  8195. # Try to use the -exported_symbol ld option, if it does not
  8196. # work, assume that -exports_file does not work either and
  8197. # implicitly export all symbols.
  8198. # This should be the same for all languages, so no per-tag cache variable.
  8199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8200. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8201. if ${lt_cv_irix_exported_symbol+:} false; then :
  8202. $as_echo_n "(cached) " >&6
  8203. else
  8204. save_LDFLAGS="$LDFLAGS"
  8205. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8207. /* end confdefs.h. */
  8208. int foo (void) { return 0; }
  8209. _ACEOF
  8210. if ac_fn_c_try_link "$LINENO"; then :
  8211. lt_cv_irix_exported_symbol=yes
  8212. else
  8213. lt_cv_irix_exported_symbol=no
  8214. fi
  8215. rm -f core conftest.err conftest.$ac_objext \
  8216. conftest$ac_exeext conftest.$ac_ext
  8217. LDFLAGS="$save_LDFLAGS"
  8218. fi
  8219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8220. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8221. if test "$lt_cv_irix_exported_symbol" = yes; then
  8222. 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'
  8223. fi
  8224. else
  8225. 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'
  8226. 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'
  8227. fi
  8228. archive_cmds_need_lc='no'
  8229. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8230. hardcode_libdir_separator=:
  8231. inherit_rpath=yes
  8232. link_all_deplibs=yes
  8233. ;;
  8234. netbsd*)
  8235. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8236. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8237. else
  8238. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8239. fi
  8240. hardcode_libdir_flag_spec='-R$libdir'
  8241. hardcode_direct=yes
  8242. hardcode_shlibpath_var=no
  8243. ;;
  8244. newsos6)
  8245. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8246. hardcode_direct=yes
  8247. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8248. hardcode_libdir_separator=:
  8249. hardcode_shlibpath_var=no
  8250. ;;
  8251. *nto* | *qnx*)
  8252. ;;
  8253. openbsd*)
  8254. if test -f /usr/libexec/ld.so; then
  8255. hardcode_direct=yes
  8256. hardcode_shlibpath_var=no
  8257. hardcode_direct_absolute=yes
  8258. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8259. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8260. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8261. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8262. export_dynamic_flag_spec='${wl}-E'
  8263. else
  8264. case $host_os in
  8265. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8266. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8267. hardcode_libdir_flag_spec='-R$libdir'
  8268. ;;
  8269. *)
  8270. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8271. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8272. ;;
  8273. esac
  8274. fi
  8275. else
  8276. ld_shlibs=no
  8277. fi
  8278. ;;
  8279. os2*)
  8280. hardcode_libdir_flag_spec='-L$libdir'
  8281. hardcode_minus_L=yes
  8282. allow_undefined_flag=unsupported
  8283. 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'
  8284. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8285. ;;
  8286. osf3*)
  8287. if test "$GCC" = yes; then
  8288. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8289. 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'
  8290. else
  8291. allow_undefined_flag=' -expect_unresolved \*'
  8292. 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'
  8293. fi
  8294. archive_cmds_need_lc='no'
  8295. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8296. hardcode_libdir_separator=:
  8297. ;;
  8298. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8299. if test "$GCC" = yes; then
  8300. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8301. 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'
  8302. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8303. else
  8304. allow_undefined_flag=' -expect_unresolved \*'
  8305. 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'
  8306. 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~
  8307. $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'
  8308. # Both c and cxx compiler support -rpath directly
  8309. hardcode_libdir_flag_spec='-rpath $libdir'
  8310. fi
  8311. archive_cmds_need_lc='no'
  8312. hardcode_libdir_separator=:
  8313. ;;
  8314. solaris*)
  8315. no_undefined_flag=' -z defs'
  8316. if test "$GCC" = yes; then
  8317. wlarc='${wl}'
  8318. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8319. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8320. $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'
  8321. else
  8322. case `$CC -V 2>&1` in
  8323. *"Compilers 5.0"*)
  8324. wlarc=''
  8325. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8326. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8327. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8328. ;;
  8329. *)
  8330. wlarc='${wl}'
  8331. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8332. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8333. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8334. ;;
  8335. esac
  8336. fi
  8337. hardcode_libdir_flag_spec='-R$libdir'
  8338. hardcode_shlibpath_var=no
  8339. case $host_os in
  8340. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8341. *)
  8342. # The compiler driver will combine and reorder linker options,
  8343. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8344. # but is careful enough not to reorder.
  8345. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8346. if test "$GCC" = yes; then
  8347. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8348. else
  8349. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8350. fi
  8351. ;;
  8352. esac
  8353. link_all_deplibs=yes
  8354. ;;
  8355. sunos4*)
  8356. if test "x$host_vendor" = xsequent; then
  8357. # Use $CC to link under sequent, because it throws in some extra .o
  8358. # files that make .init and .fini sections work.
  8359. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8360. else
  8361. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8362. fi
  8363. hardcode_libdir_flag_spec='-L$libdir'
  8364. hardcode_direct=yes
  8365. hardcode_minus_L=yes
  8366. hardcode_shlibpath_var=no
  8367. ;;
  8368. sysv4)
  8369. case $host_vendor in
  8370. sni)
  8371. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8372. hardcode_direct=yes # is this really true???
  8373. ;;
  8374. siemens)
  8375. ## LD is ld it makes a PLAMLIB
  8376. ## CC just makes a GrossModule.
  8377. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8378. reload_cmds='$CC -r -o $output$reload_objs'
  8379. hardcode_direct=no
  8380. ;;
  8381. motorola)
  8382. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8383. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8384. ;;
  8385. esac
  8386. runpath_var='LD_RUN_PATH'
  8387. hardcode_shlibpath_var=no
  8388. ;;
  8389. sysv4.3*)
  8390. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8391. hardcode_shlibpath_var=no
  8392. export_dynamic_flag_spec='-Bexport'
  8393. ;;
  8394. sysv4*MP*)
  8395. if test -d /usr/nec; then
  8396. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8397. hardcode_shlibpath_var=no
  8398. runpath_var=LD_RUN_PATH
  8399. hardcode_runpath_var=yes
  8400. ld_shlibs=yes
  8401. fi
  8402. ;;
  8403. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8404. no_undefined_flag='${wl}-z,text'
  8405. archive_cmds_need_lc=no
  8406. hardcode_shlibpath_var=no
  8407. runpath_var='LD_RUN_PATH'
  8408. if test "$GCC" = yes; then
  8409. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8410. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8411. else
  8412. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8413. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8414. fi
  8415. ;;
  8416. sysv5* | sco3.2v5* | sco5v6*)
  8417. # Note: We can NOT use -z defs as we might desire, because we do not
  8418. # link with -lc, and that would cause any symbols used from libc to
  8419. # always be unresolved, which means just about no library would
  8420. # ever link correctly. If we're not using GNU ld we use -z text
  8421. # though, which does catch some bad symbols but isn't as heavy-handed
  8422. # as -z defs.
  8423. no_undefined_flag='${wl}-z,text'
  8424. allow_undefined_flag='${wl}-z,nodefs'
  8425. archive_cmds_need_lc=no
  8426. hardcode_shlibpath_var=no
  8427. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8428. hardcode_libdir_separator=':'
  8429. link_all_deplibs=yes
  8430. export_dynamic_flag_spec='${wl}-Bexport'
  8431. runpath_var='LD_RUN_PATH'
  8432. if test "$GCC" = yes; then
  8433. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8434. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8435. else
  8436. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8437. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8438. fi
  8439. ;;
  8440. uts4*)
  8441. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8442. hardcode_libdir_flag_spec='-L$libdir'
  8443. hardcode_shlibpath_var=no
  8444. ;;
  8445. *)
  8446. ld_shlibs=no
  8447. ;;
  8448. esac
  8449. if test x$host_vendor = xsni; then
  8450. case $host in
  8451. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8452. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8453. ;;
  8454. esac
  8455. fi
  8456. fi
  8457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8458. $as_echo "$ld_shlibs" >&6; }
  8459. test "$ld_shlibs" = no && can_build_shared=no
  8460. with_gnu_ld=$with_gnu_ld
  8461. #
  8462. # Do we need to explicitly link libc?
  8463. #
  8464. case "x$archive_cmds_need_lc" in
  8465. x|xyes)
  8466. # Assume -lc should be added
  8467. archive_cmds_need_lc=yes
  8468. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8469. case $archive_cmds in
  8470. *'~'*)
  8471. # FIXME: we may have to deal with multi-command sequences.
  8472. ;;
  8473. '$CC '*)
  8474. # Test whether the compiler implicitly links with -lc since on some
  8475. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8476. # to ld, don't add -lc before -lgcc.
  8477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8478. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8479. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8480. $as_echo_n "(cached) " >&6
  8481. else
  8482. $RM conftest*
  8483. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8484. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8485. (eval $ac_compile) 2>&5
  8486. ac_status=$?
  8487. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8488. test $ac_status = 0; } 2>conftest.err; then
  8489. soname=conftest
  8490. lib=conftest
  8491. libobjs=conftest.$ac_objext
  8492. deplibs=
  8493. wl=$lt_prog_compiler_wl
  8494. pic_flag=$lt_prog_compiler_pic
  8495. compiler_flags=-v
  8496. linker_flags=-v
  8497. verstring=
  8498. output_objdir=.
  8499. libname=conftest
  8500. lt_save_allow_undefined_flag=$allow_undefined_flag
  8501. allow_undefined_flag=
  8502. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8503. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8504. ac_status=$?
  8505. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8506. test $ac_status = 0; }
  8507. then
  8508. lt_cv_archive_cmds_need_lc=no
  8509. else
  8510. lt_cv_archive_cmds_need_lc=yes
  8511. fi
  8512. allow_undefined_flag=$lt_save_allow_undefined_flag
  8513. else
  8514. cat conftest.err 1>&5
  8515. fi
  8516. $RM conftest*
  8517. fi
  8518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8519. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8520. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8521. ;;
  8522. esac
  8523. fi
  8524. ;;
  8525. esac
  8526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8527. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8528. if test "$GCC" = yes; then
  8529. case $host_os in
  8530. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8531. *) lt_awk_arg="/^libraries:/" ;;
  8532. esac
  8533. case $host_os in
  8534. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8535. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8536. esac
  8537. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8538. case $lt_search_path_spec in
  8539. *\;*)
  8540. # if the path contains ";" then we assume it to be the separator
  8541. # otherwise default to the standard path separator (i.e. ":") - it is
  8542. # assumed that no part of a normal pathname contains ";" but that should
  8543. # okay in the real world where ";" in dirpaths is itself problematic.
  8544. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8545. ;;
  8546. *)
  8547. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8548. ;;
  8549. esac
  8550. # Ok, now we have the path, separated by spaces, we can step through it
  8551. # and add multilib dir if necessary...
  8552. lt_tmp_lt_search_path_spec=
  8553. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8554. # ...but if some path already ends with the multilib dir we assume
  8555. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8556. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8557. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8558. lt_multi_os_dir=
  8559. ;;
  8560. esac
  8561. for lt_sys_path in $lt_search_path_spec; do
  8562. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8563. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8564. elif test -n "$lt_multi_os_dir"; then
  8565. test -d "$lt_sys_path" && \
  8566. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8567. fi
  8568. done
  8569. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8570. BEGIN {RS=" "; FS="/|\n";} {
  8571. lt_foo="";
  8572. lt_count=0;
  8573. for (lt_i = NF; lt_i > 0; lt_i--) {
  8574. if ($lt_i != "" && $lt_i != ".") {
  8575. if ($lt_i == "..") {
  8576. lt_count++;
  8577. } else {
  8578. if (lt_count == 0) {
  8579. lt_foo="/" $lt_i lt_foo;
  8580. } else {
  8581. lt_count--;
  8582. }
  8583. }
  8584. }
  8585. }
  8586. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8587. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8588. }'`
  8589. # AWK program above erroneously prepends '/' to C:/dos/paths
  8590. # for these hosts.
  8591. case $host_os in
  8592. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8593. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8594. esac
  8595. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8596. else
  8597. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8598. fi
  8599. library_names_spec=
  8600. libname_spec='lib$name'
  8601. soname_spec=
  8602. shrext_cmds=".so"
  8603. postinstall_cmds=
  8604. postuninstall_cmds=
  8605. finish_cmds=
  8606. finish_eval=
  8607. shlibpath_var=
  8608. shlibpath_overrides_runpath=unknown
  8609. version_type=none
  8610. dynamic_linker="$host_os ld.so"
  8611. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8612. need_lib_prefix=unknown
  8613. hardcode_into_libs=no
  8614. # when you set need_version to no, make sure it does not cause -set_version
  8615. # flags to be left without arguments
  8616. need_version=unknown
  8617. case $host_os in
  8618. aix3*)
  8619. version_type=linux # correct to gnu/linux during the next big refactor
  8620. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8621. shlibpath_var=LIBPATH
  8622. # AIX 3 has no versioning support, so we append a major version to the name.
  8623. soname_spec='${libname}${release}${shared_ext}$major'
  8624. ;;
  8625. aix[4-9]*)
  8626. version_type=linux # correct to gnu/linux during the next big refactor
  8627. need_lib_prefix=no
  8628. need_version=no
  8629. hardcode_into_libs=yes
  8630. if test "$host_cpu" = ia64; then
  8631. # AIX 5 supports IA64
  8632. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8633. shlibpath_var=LD_LIBRARY_PATH
  8634. else
  8635. # With GCC up to 2.95.x, collect2 would create an import file
  8636. # for dependence libraries. The import file would start with
  8637. # the line `#! .'. This would cause the generated library to
  8638. # depend on `.', always an invalid library. This was fixed in
  8639. # development snapshots of GCC prior to 3.0.
  8640. case $host_os in
  8641. aix4 | aix4.[01] | aix4.[01].*)
  8642. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8643. echo ' yes '
  8644. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8645. :
  8646. else
  8647. can_build_shared=no
  8648. fi
  8649. ;;
  8650. esac
  8651. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8652. # soname into executable. Probably we can add versioning support to
  8653. # collect2, so additional links can be useful in future.
  8654. if test "$aix_use_runtimelinking" = yes; then
  8655. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8656. # instead of lib<name>.a to let people know that these are not
  8657. # typical AIX shared libraries.
  8658. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8659. else
  8660. # We preserve .a as extension for shared libraries through AIX4.2
  8661. # and later when we are not doing run time linking.
  8662. library_names_spec='${libname}${release}.a $libname.a'
  8663. soname_spec='${libname}${release}${shared_ext}$major'
  8664. fi
  8665. shlibpath_var=LIBPATH
  8666. fi
  8667. ;;
  8668. amigaos*)
  8669. case $host_cpu in
  8670. powerpc)
  8671. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8672. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8673. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8674. ;;
  8675. m68k)
  8676. library_names_spec='$libname.ixlibrary $libname.a'
  8677. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8678. 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'
  8679. ;;
  8680. esac
  8681. ;;
  8682. beos*)
  8683. library_names_spec='${libname}${shared_ext}'
  8684. dynamic_linker="$host_os ld.so"
  8685. shlibpath_var=LIBRARY_PATH
  8686. ;;
  8687. bsdi[45]*)
  8688. version_type=linux # correct to gnu/linux during the next big refactor
  8689. need_version=no
  8690. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8691. soname_spec='${libname}${release}${shared_ext}$major'
  8692. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8693. shlibpath_var=LD_LIBRARY_PATH
  8694. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8695. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8696. # the default ld.so.conf also contains /usr/contrib/lib and
  8697. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8698. # libtool to hard-code these into programs
  8699. ;;
  8700. cygwin* | mingw* | pw32* | cegcc*)
  8701. version_type=windows
  8702. shrext_cmds=".dll"
  8703. need_version=no
  8704. need_lib_prefix=no
  8705. case $GCC,$cc_basename in
  8706. yes,*)
  8707. # gcc
  8708. library_names_spec='$libname.dll.a'
  8709. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8710. postinstall_cmds='base_file=`basename \${file}`~
  8711. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8712. dldir=$destdir/`dirname \$dlpath`~
  8713. test -d \$dldir || mkdir -p \$dldir~
  8714. $install_prog $dir/$dlname \$dldir/$dlname~
  8715. chmod a+x \$dldir/$dlname~
  8716. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8717. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8718. fi'
  8719. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8720. dlpath=$dir/\$dldll~
  8721. $RM \$dlpath'
  8722. shlibpath_overrides_runpath=yes
  8723. case $host_os in
  8724. cygwin*)
  8725. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8726. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8727. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8728. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8729. ;;
  8730. mingw* | cegcc*)
  8731. # MinGW DLLs use traditional 'lib' prefix
  8732. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8733. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8734. ;;
  8735. pw32*)
  8736. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8737. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8738. ;;
  8739. esac
  8740. dynamic_linker='Win32 ld.exe'
  8741. ;;
  8742. *,cl*)
  8743. # Native MSVC
  8744. libname_spec='$name'
  8745. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8746. library_names_spec='${libname}.dll.lib'
  8747. case $build_os in
  8748. mingw*)
  8749. sys_lib_search_path_spec=
  8750. lt_save_ifs=$IFS
  8751. IFS=';'
  8752. for lt_path in $LIB
  8753. do
  8754. IFS=$lt_save_ifs
  8755. # Let DOS variable expansion print the short 8.3 style file name.
  8756. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8757. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8758. done
  8759. IFS=$lt_save_ifs
  8760. # Convert to MSYS style.
  8761. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8762. ;;
  8763. cygwin*)
  8764. # Convert to unix form, then to dos form, then back to unix form
  8765. # but this time dos style (no spaces!) so that the unix form looks
  8766. # like /cygdrive/c/PROGRA~1:/cygdr...
  8767. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8768. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8769. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8770. ;;
  8771. *)
  8772. sys_lib_search_path_spec="$LIB"
  8773. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8774. # It is most probably a Windows format PATH.
  8775. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8776. else
  8777. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8778. fi
  8779. # FIXME: find the short name or the path components, as spaces are
  8780. # common. (e.g. "Program Files" -> "PROGRA~1")
  8781. ;;
  8782. esac
  8783. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8784. postinstall_cmds='base_file=`basename \${file}`~
  8785. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8786. dldir=$destdir/`dirname \$dlpath`~
  8787. test -d \$dldir || mkdir -p \$dldir~
  8788. $install_prog $dir/$dlname \$dldir/$dlname'
  8789. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8790. dlpath=$dir/\$dldll~
  8791. $RM \$dlpath'
  8792. shlibpath_overrides_runpath=yes
  8793. dynamic_linker='Win32 link.exe'
  8794. ;;
  8795. *)
  8796. # Assume MSVC wrapper
  8797. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8798. dynamic_linker='Win32 ld.exe'
  8799. ;;
  8800. esac
  8801. # FIXME: first we should search . and the directory the executable is in
  8802. shlibpath_var=PATH
  8803. ;;
  8804. darwin* | rhapsody*)
  8805. dynamic_linker="$host_os dyld"
  8806. version_type=darwin
  8807. need_lib_prefix=no
  8808. need_version=no
  8809. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8810. soname_spec='${libname}${release}${major}$shared_ext'
  8811. shlibpath_overrides_runpath=yes
  8812. shlibpath_var=DYLD_LIBRARY_PATH
  8813. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8814. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8815. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8816. ;;
  8817. dgux*)
  8818. version_type=linux # correct to gnu/linux during the next big refactor
  8819. need_lib_prefix=no
  8820. need_version=no
  8821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8822. soname_spec='${libname}${release}${shared_ext}$major'
  8823. shlibpath_var=LD_LIBRARY_PATH
  8824. ;;
  8825. freebsd* | dragonfly*)
  8826. # DragonFly does not have aout. When/if they implement a new
  8827. # versioning mechanism, adjust this.
  8828. if test -x /usr/bin/objformat; then
  8829. objformat=`/usr/bin/objformat`
  8830. else
  8831. case $host_os in
  8832. freebsd[23].*) objformat=aout ;;
  8833. *) objformat=elf ;;
  8834. esac
  8835. fi
  8836. version_type=freebsd-$objformat
  8837. case $version_type in
  8838. freebsd-elf*)
  8839. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8840. need_version=no
  8841. need_lib_prefix=no
  8842. ;;
  8843. freebsd-*)
  8844. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8845. need_version=yes
  8846. ;;
  8847. esac
  8848. shlibpath_var=LD_LIBRARY_PATH
  8849. case $host_os in
  8850. freebsd2.*)
  8851. shlibpath_overrides_runpath=yes
  8852. ;;
  8853. freebsd3.[01]* | freebsdelf3.[01]*)
  8854. shlibpath_overrides_runpath=yes
  8855. hardcode_into_libs=yes
  8856. ;;
  8857. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8858. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8859. shlibpath_overrides_runpath=no
  8860. hardcode_into_libs=yes
  8861. ;;
  8862. *) # from 4.6 on, and DragonFly
  8863. shlibpath_overrides_runpath=yes
  8864. hardcode_into_libs=yes
  8865. ;;
  8866. esac
  8867. ;;
  8868. gnu*)
  8869. version_type=linux # correct to gnu/linux during the next big refactor
  8870. need_lib_prefix=no
  8871. need_version=no
  8872. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8873. soname_spec='${libname}${release}${shared_ext}$major'
  8874. shlibpath_var=LD_LIBRARY_PATH
  8875. shlibpath_overrides_runpath=no
  8876. hardcode_into_libs=yes
  8877. ;;
  8878. haiku*)
  8879. version_type=linux # correct to gnu/linux during the next big refactor
  8880. need_lib_prefix=no
  8881. need_version=no
  8882. dynamic_linker="$host_os runtime_loader"
  8883. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8884. soname_spec='${libname}${release}${shared_ext}$major'
  8885. shlibpath_var=LIBRARY_PATH
  8886. shlibpath_overrides_runpath=yes
  8887. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8888. hardcode_into_libs=yes
  8889. ;;
  8890. hpux9* | hpux10* | hpux11*)
  8891. # Give a soname corresponding to the major version so that dld.sl refuses to
  8892. # link against other versions.
  8893. version_type=sunos
  8894. need_lib_prefix=no
  8895. need_version=no
  8896. case $host_cpu in
  8897. ia64*)
  8898. shrext_cmds='.so'
  8899. hardcode_into_libs=yes
  8900. dynamic_linker="$host_os dld.so"
  8901. shlibpath_var=LD_LIBRARY_PATH
  8902. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8903. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8904. soname_spec='${libname}${release}${shared_ext}$major'
  8905. if test "X$HPUX_IA64_MODE" = X32; then
  8906. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8907. else
  8908. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8909. fi
  8910. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8911. ;;
  8912. hppa*64*)
  8913. shrext_cmds='.sl'
  8914. hardcode_into_libs=yes
  8915. dynamic_linker="$host_os dld.sl"
  8916. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8917. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8918. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8919. soname_spec='${libname}${release}${shared_ext}$major'
  8920. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8921. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8922. ;;
  8923. *)
  8924. shrext_cmds='.sl'
  8925. dynamic_linker="$host_os dld.sl"
  8926. shlibpath_var=SHLIB_PATH
  8927. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8928. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8929. soname_spec='${libname}${release}${shared_ext}$major'
  8930. ;;
  8931. esac
  8932. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8933. postinstall_cmds='chmod 555 $lib'
  8934. # or fails outright, so override atomically:
  8935. install_override_mode=555
  8936. ;;
  8937. interix[3-9]*)
  8938. version_type=linux # correct to gnu/linux during the next big refactor
  8939. need_lib_prefix=no
  8940. need_version=no
  8941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8942. soname_spec='${libname}${release}${shared_ext}$major'
  8943. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8944. shlibpath_var=LD_LIBRARY_PATH
  8945. shlibpath_overrides_runpath=no
  8946. hardcode_into_libs=yes
  8947. ;;
  8948. irix5* | irix6* | nonstopux*)
  8949. case $host_os in
  8950. nonstopux*) version_type=nonstopux ;;
  8951. *)
  8952. if test "$lt_cv_prog_gnu_ld" = yes; then
  8953. version_type=linux # correct to gnu/linux during the next big refactor
  8954. else
  8955. version_type=irix
  8956. fi ;;
  8957. esac
  8958. need_lib_prefix=no
  8959. need_version=no
  8960. soname_spec='${libname}${release}${shared_ext}$major'
  8961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8962. case $host_os in
  8963. irix5* | nonstopux*)
  8964. libsuff= shlibsuff=
  8965. ;;
  8966. *)
  8967. case $LD in # libtool.m4 will add one of these switches to LD
  8968. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8969. libsuff= shlibsuff= libmagic=32-bit;;
  8970. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8971. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8972. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8973. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8974. *) libsuff= shlibsuff= libmagic=never-match;;
  8975. esac
  8976. ;;
  8977. esac
  8978. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8979. shlibpath_overrides_runpath=no
  8980. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8981. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8982. hardcode_into_libs=yes
  8983. ;;
  8984. # No shared lib support for Linux oldld, aout, or coff.
  8985. linux*oldld* | linux*aout* | linux*coff*)
  8986. dynamic_linker=no
  8987. ;;
  8988. # This must be glibc/ELF.
  8989. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8990. version_type=linux # correct to gnu/linux during the next big refactor
  8991. need_lib_prefix=no
  8992. need_version=no
  8993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8994. soname_spec='${libname}${release}${shared_ext}$major'
  8995. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8996. shlibpath_var=LD_LIBRARY_PATH
  8997. shlibpath_overrides_runpath=no
  8998. # Some binutils ld are patched to set DT_RUNPATH
  8999. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9000. $as_echo_n "(cached) " >&6
  9001. else
  9002. lt_cv_shlibpath_overrides_runpath=no
  9003. save_LDFLAGS=$LDFLAGS
  9004. save_libdir=$libdir
  9005. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9006. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9008. /* end confdefs.h. */
  9009. int
  9010. main ()
  9011. {
  9012. ;
  9013. return 0;
  9014. }
  9015. _ACEOF
  9016. if ac_fn_c_try_link "$LINENO"; then :
  9017. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9018. lt_cv_shlibpath_overrides_runpath=yes
  9019. fi
  9020. fi
  9021. rm -f core conftest.err conftest.$ac_objext \
  9022. conftest$ac_exeext conftest.$ac_ext
  9023. LDFLAGS=$save_LDFLAGS
  9024. libdir=$save_libdir
  9025. fi
  9026. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9027. # This implies no fast_install, which is unacceptable.
  9028. # Some rework will be needed to allow for fast_install
  9029. # before this can be enabled.
  9030. hardcode_into_libs=yes
  9031. # Append ld.so.conf contents to the search path
  9032. if test -f /etc/ld.so.conf; then
  9033. 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' ' '`
  9034. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9035. fi
  9036. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9037. # powerpc, because MkLinux only supported shared libraries with the
  9038. # GNU dynamic linker. Since this was broken with cross compilers,
  9039. # most powerpc-linux boxes support dynamic linking these days and
  9040. # people can always --disable-shared, the test was removed, and we
  9041. # assume the GNU/Linux dynamic linker is in use.
  9042. dynamic_linker='GNU/Linux ld.so'
  9043. ;;
  9044. netbsd*)
  9045. version_type=sunos
  9046. need_lib_prefix=no
  9047. need_version=no
  9048. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9049. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9050. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9051. dynamic_linker='NetBSD (a.out) ld.so'
  9052. else
  9053. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9054. soname_spec='${libname}${release}${shared_ext}$major'
  9055. dynamic_linker='NetBSD ld.elf_so'
  9056. fi
  9057. shlibpath_var=LD_LIBRARY_PATH
  9058. shlibpath_overrides_runpath=yes
  9059. hardcode_into_libs=yes
  9060. ;;
  9061. newsos6)
  9062. version_type=linux # correct to gnu/linux during the next big refactor
  9063. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9064. shlibpath_var=LD_LIBRARY_PATH
  9065. shlibpath_overrides_runpath=yes
  9066. ;;
  9067. *nto* | *qnx*)
  9068. version_type=qnx
  9069. need_lib_prefix=no
  9070. need_version=no
  9071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9072. soname_spec='${libname}${release}${shared_ext}$major'
  9073. shlibpath_var=LD_LIBRARY_PATH
  9074. shlibpath_overrides_runpath=no
  9075. hardcode_into_libs=yes
  9076. dynamic_linker='ldqnx.so'
  9077. ;;
  9078. openbsd*)
  9079. version_type=sunos
  9080. sys_lib_dlsearch_path_spec="/usr/lib"
  9081. need_lib_prefix=no
  9082. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9083. case $host_os in
  9084. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9085. *) need_version=no ;;
  9086. esac
  9087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9088. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9089. shlibpath_var=LD_LIBRARY_PATH
  9090. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9091. case $host_os in
  9092. openbsd2.[89] | openbsd2.[89].*)
  9093. shlibpath_overrides_runpath=no
  9094. ;;
  9095. *)
  9096. shlibpath_overrides_runpath=yes
  9097. ;;
  9098. esac
  9099. else
  9100. shlibpath_overrides_runpath=yes
  9101. fi
  9102. ;;
  9103. os2*)
  9104. libname_spec='$name'
  9105. shrext_cmds=".dll"
  9106. need_lib_prefix=no
  9107. library_names_spec='$libname${shared_ext} $libname.a'
  9108. dynamic_linker='OS/2 ld.exe'
  9109. shlibpath_var=LIBPATH
  9110. ;;
  9111. osf3* | osf4* | osf5*)
  9112. version_type=osf
  9113. need_lib_prefix=no
  9114. need_version=no
  9115. soname_spec='${libname}${release}${shared_ext}$major'
  9116. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9117. shlibpath_var=LD_LIBRARY_PATH
  9118. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9119. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9120. ;;
  9121. rdos*)
  9122. dynamic_linker=no
  9123. ;;
  9124. solaris*)
  9125. version_type=linux # correct to gnu/linux during the next big refactor
  9126. need_lib_prefix=no
  9127. need_version=no
  9128. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9129. soname_spec='${libname}${release}${shared_ext}$major'
  9130. shlibpath_var=LD_LIBRARY_PATH
  9131. shlibpath_overrides_runpath=yes
  9132. hardcode_into_libs=yes
  9133. # ldd complains unless libraries are executable
  9134. postinstall_cmds='chmod +x $lib'
  9135. ;;
  9136. sunos4*)
  9137. version_type=sunos
  9138. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9139. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9140. shlibpath_var=LD_LIBRARY_PATH
  9141. shlibpath_overrides_runpath=yes
  9142. if test "$with_gnu_ld" = yes; then
  9143. need_lib_prefix=no
  9144. fi
  9145. need_version=yes
  9146. ;;
  9147. sysv4 | sysv4.3*)
  9148. version_type=linux # correct to gnu/linux during the next big refactor
  9149. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9150. soname_spec='${libname}${release}${shared_ext}$major'
  9151. shlibpath_var=LD_LIBRARY_PATH
  9152. case $host_vendor in
  9153. sni)
  9154. shlibpath_overrides_runpath=no
  9155. need_lib_prefix=no
  9156. runpath_var=LD_RUN_PATH
  9157. ;;
  9158. siemens)
  9159. need_lib_prefix=no
  9160. ;;
  9161. motorola)
  9162. need_lib_prefix=no
  9163. need_version=no
  9164. shlibpath_overrides_runpath=no
  9165. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9166. ;;
  9167. esac
  9168. ;;
  9169. sysv4*MP*)
  9170. if test -d /usr/nec ;then
  9171. version_type=linux # correct to gnu/linux during the next big refactor
  9172. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9173. soname_spec='$libname${shared_ext}.$major'
  9174. shlibpath_var=LD_LIBRARY_PATH
  9175. fi
  9176. ;;
  9177. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9178. version_type=freebsd-elf
  9179. need_lib_prefix=no
  9180. need_version=no
  9181. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9182. soname_spec='${libname}${release}${shared_ext}$major'
  9183. shlibpath_var=LD_LIBRARY_PATH
  9184. shlibpath_overrides_runpath=yes
  9185. hardcode_into_libs=yes
  9186. if test "$with_gnu_ld" = yes; then
  9187. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9188. else
  9189. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9190. case $host_os in
  9191. sco3.2v5*)
  9192. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9193. ;;
  9194. esac
  9195. fi
  9196. sys_lib_dlsearch_path_spec='/usr/lib'
  9197. ;;
  9198. tpf*)
  9199. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9200. version_type=linux # correct to gnu/linux during the next big refactor
  9201. need_lib_prefix=no
  9202. need_version=no
  9203. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9204. shlibpath_var=LD_LIBRARY_PATH
  9205. shlibpath_overrides_runpath=no
  9206. hardcode_into_libs=yes
  9207. ;;
  9208. uts4*)
  9209. version_type=linux # correct to gnu/linux during the next big refactor
  9210. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9211. soname_spec='${libname}${release}${shared_ext}$major'
  9212. shlibpath_var=LD_LIBRARY_PATH
  9213. ;;
  9214. *)
  9215. dynamic_linker=no
  9216. ;;
  9217. esac
  9218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9219. $as_echo "$dynamic_linker" >&6; }
  9220. test "$dynamic_linker" = no && can_build_shared=no
  9221. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9222. if test "$GCC" = yes; then
  9223. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9224. fi
  9225. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9226. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9227. fi
  9228. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9229. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9230. fi
  9231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9232. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9233. hardcode_action=
  9234. if test -n "$hardcode_libdir_flag_spec" ||
  9235. test -n "$runpath_var" ||
  9236. test "X$hardcode_automatic" = "Xyes" ; then
  9237. # We can hardcode non-existent directories.
  9238. if test "$hardcode_direct" != no &&
  9239. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9240. # have to relink, otherwise we might link with an installed library
  9241. # when we should be linking with a yet-to-be-installed one
  9242. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9243. test "$hardcode_minus_L" != no; then
  9244. # Linking always hardcodes the temporary library directory.
  9245. hardcode_action=relink
  9246. else
  9247. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9248. hardcode_action=immediate
  9249. fi
  9250. else
  9251. # We cannot hardcode anything, or else we can only hardcode existing
  9252. # directories.
  9253. hardcode_action=unsupported
  9254. fi
  9255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9256. $as_echo "$hardcode_action" >&6; }
  9257. if test "$hardcode_action" = relink ||
  9258. test "$inherit_rpath" = yes; then
  9259. # Fast installation is not supported
  9260. enable_fast_install=no
  9261. elif test "$shlibpath_overrides_runpath" = yes ||
  9262. test "$enable_shared" = no; then
  9263. # Fast installation is not necessary
  9264. enable_fast_install=needless
  9265. fi
  9266. if test "x$enable_dlopen" != xyes; then
  9267. enable_dlopen=unknown
  9268. enable_dlopen_self=unknown
  9269. enable_dlopen_self_static=unknown
  9270. else
  9271. lt_cv_dlopen=no
  9272. lt_cv_dlopen_libs=
  9273. case $host_os in
  9274. beos*)
  9275. lt_cv_dlopen="load_add_on"
  9276. lt_cv_dlopen_libs=
  9277. lt_cv_dlopen_self=yes
  9278. ;;
  9279. mingw* | pw32* | cegcc*)
  9280. lt_cv_dlopen="LoadLibrary"
  9281. lt_cv_dlopen_libs=
  9282. ;;
  9283. cygwin*)
  9284. lt_cv_dlopen="dlopen"
  9285. lt_cv_dlopen_libs=
  9286. ;;
  9287. darwin*)
  9288. # if libdl is installed we need to link against it
  9289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9290. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9291. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9292. $as_echo_n "(cached) " >&6
  9293. else
  9294. ac_check_lib_save_LIBS=$LIBS
  9295. LIBS="-ldl $LIBS"
  9296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9297. /* end confdefs.h. */
  9298. /* Override any GCC internal prototype to avoid an error.
  9299. Use char because int might match the return type of a GCC
  9300. builtin and then its argument prototype would still apply. */
  9301. #ifdef __cplusplus
  9302. extern "C"
  9303. #endif
  9304. char dlopen ();
  9305. int
  9306. main ()
  9307. {
  9308. return dlopen ();
  9309. ;
  9310. return 0;
  9311. }
  9312. _ACEOF
  9313. if ac_fn_c_try_link "$LINENO"; then :
  9314. ac_cv_lib_dl_dlopen=yes
  9315. else
  9316. ac_cv_lib_dl_dlopen=no
  9317. fi
  9318. rm -f core conftest.err conftest.$ac_objext \
  9319. conftest$ac_exeext conftest.$ac_ext
  9320. LIBS=$ac_check_lib_save_LIBS
  9321. fi
  9322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9323. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9324. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9325. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9326. else
  9327. lt_cv_dlopen="dyld"
  9328. lt_cv_dlopen_libs=
  9329. lt_cv_dlopen_self=yes
  9330. fi
  9331. ;;
  9332. *)
  9333. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9334. if test "x$ac_cv_func_shl_load" = xyes; then :
  9335. lt_cv_dlopen="shl_load"
  9336. else
  9337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9338. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9339. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9340. $as_echo_n "(cached) " >&6
  9341. else
  9342. ac_check_lib_save_LIBS=$LIBS
  9343. LIBS="-ldld $LIBS"
  9344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9345. /* end confdefs.h. */
  9346. /* Override any GCC internal prototype to avoid an error.
  9347. Use char because int might match the return type of a GCC
  9348. builtin and then its argument prototype would still apply. */
  9349. #ifdef __cplusplus
  9350. extern "C"
  9351. #endif
  9352. char shl_load ();
  9353. int
  9354. main ()
  9355. {
  9356. return shl_load ();
  9357. ;
  9358. return 0;
  9359. }
  9360. _ACEOF
  9361. if ac_fn_c_try_link "$LINENO"; then :
  9362. ac_cv_lib_dld_shl_load=yes
  9363. else
  9364. ac_cv_lib_dld_shl_load=no
  9365. fi
  9366. rm -f core conftest.err conftest.$ac_objext \
  9367. conftest$ac_exeext conftest.$ac_ext
  9368. LIBS=$ac_check_lib_save_LIBS
  9369. fi
  9370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9371. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9372. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9373. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9374. else
  9375. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9376. if test "x$ac_cv_func_dlopen" = xyes; then :
  9377. lt_cv_dlopen="dlopen"
  9378. else
  9379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9380. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9381. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9382. $as_echo_n "(cached) " >&6
  9383. else
  9384. ac_check_lib_save_LIBS=$LIBS
  9385. LIBS="-ldl $LIBS"
  9386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9387. /* end confdefs.h. */
  9388. /* Override any GCC internal prototype to avoid an error.
  9389. Use char because int might match the return type of a GCC
  9390. builtin and then its argument prototype would still apply. */
  9391. #ifdef __cplusplus
  9392. extern "C"
  9393. #endif
  9394. char dlopen ();
  9395. int
  9396. main ()
  9397. {
  9398. return dlopen ();
  9399. ;
  9400. return 0;
  9401. }
  9402. _ACEOF
  9403. if ac_fn_c_try_link "$LINENO"; then :
  9404. ac_cv_lib_dl_dlopen=yes
  9405. else
  9406. ac_cv_lib_dl_dlopen=no
  9407. fi
  9408. rm -f core conftest.err conftest.$ac_objext \
  9409. conftest$ac_exeext conftest.$ac_ext
  9410. LIBS=$ac_check_lib_save_LIBS
  9411. fi
  9412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9413. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9414. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9415. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9416. else
  9417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9418. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9419. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9420. $as_echo_n "(cached) " >&6
  9421. else
  9422. ac_check_lib_save_LIBS=$LIBS
  9423. LIBS="-lsvld $LIBS"
  9424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9425. /* end confdefs.h. */
  9426. /* Override any GCC internal prototype to avoid an error.
  9427. Use char because int might match the return type of a GCC
  9428. builtin and then its argument prototype would still apply. */
  9429. #ifdef __cplusplus
  9430. extern "C"
  9431. #endif
  9432. char dlopen ();
  9433. int
  9434. main ()
  9435. {
  9436. return dlopen ();
  9437. ;
  9438. return 0;
  9439. }
  9440. _ACEOF
  9441. if ac_fn_c_try_link "$LINENO"; then :
  9442. ac_cv_lib_svld_dlopen=yes
  9443. else
  9444. ac_cv_lib_svld_dlopen=no
  9445. fi
  9446. rm -f core conftest.err conftest.$ac_objext \
  9447. conftest$ac_exeext conftest.$ac_ext
  9448. LIBS=$ac_check_lib_save_LIBS
  9449. fi
  9450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9451. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9452. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9453. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9454. else
  9455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9456. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9457. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9458. $as_echo_n "(cached) " >&6
  9459. else
  9460. ac_check_lib_save_LIBS=$LIBS
  9461. LIBS="-ldld $LIBS"
  9462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9463. /* end confdefs.h. */
  9464. /* Override any GCC internal prototype to avoid an error.
  9465. Use char because int might match the return type of a GCC
  9466. builtin and then its argument prototype would still apply. */
  9467. #ifdef __cplusplus
  9468. extern "C"
  9469. #endif
  9470. char dld_link ();
  9471. int
  9472. main ()
  9473. {
  9474. return dld_link ();
  9475. ;
  9476. return 0;
  9477. }
  9478. _ACEOF
  9479. if ac_fn_c_try_link "$LINENO"; then :
  9480. ac_cv_lib_dld_dld_link=yes
  9481. else
  9482. ac_cv_lib_dld_dld_link=no
  9483. fi
  9484. rm -f core conftest.err conftest.$ac_objext \
  9485. conftest$ac_exeext conftest.$ac_ext
  9486. LIBS=$ac_check_lib_save_LIBS
  9487. fi
  9488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9489. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9490. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9491. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9492. fi
  9493. fi
  9494. fi
  9495. fi
  9496. fi
  9497. fi
  9498. ;;
  9499. esac
  9500. if test "x$lt_cv_dlopen" != xno; then
  9501. enable_dlopen=yes
  9502. else
  9503. enable_dlopen=no
  9504. fi
  9505. case $lt_cv_dlopen in
  9506. dlopen)
  9507. save_CPPFLAGS="$CPPFLAGS"
  9508. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9509. save_LDFLAGS="$LDFLAGS"
  9510. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9511. save_LIBS="$LIBS"
  9512. LIBS="$lt_cv_dlopen_libs $LIBS"
  9513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9514. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9515. if ${lt_cv_dlopen_self+:} false; then :
  9516. $as_echo_n "(cached) " >&6
  9517. else
  9518. if test "$cross_compiling" = yes; then :
  9519. lt_cv_dlopen_self=cross
  9520. else
  9521. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9522. lt_status=$lt_dlunknown
  9523. cat > conftest.$ac_ext <<_LT_EOF
  9524. #line $LINENO "configure"
  9525. #include "confdefs.h"
  9526. #if HAVE_DLFCN_H
  9527. #include <dlfcn.h>
  9528. #endif
  9529. #include <stdio.h>
  9530. #ifdef RTLD_GLOBAL
  9531. # define LT_DLGLOBAL RTLD_GLOBAL
  9532. #else
  9533. # ifdef DL_GLOBAL
  9534. # define LT_DLGLOBAL DL_GLOBAL
  9535. # else
  9536. # define LT_DLGLOBAL 0
  9537. # endif
  9538. #endif
  9539. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9540. find out it does not work in some platform. */
  9541. #ifndef LT_DLLAZY_OR_NOW
  9542. # ifdef RTLD_LAZY
  9543. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9544. # else
  9545. # ifdef DL_LAZY
  9546. # define LT_DLLAZY_OR_NOW DL_LAZY
  9547. # else
  9548. # ifdef RTLD_NOW
  9549. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9550. # else
  9551. # ifdef DL_NOW
  9552. # define LT_DLLAZY_OR_NOW DL_NOW
  9553. # else
  9554. # define LT_DLLAZY_OR_NOW 0
  9555. # endif
  9556. # endif
  9557. # endif
  9558. # endif
  9559. #endif
  9560. /* When -fvisbility=hidden is used, assume the code has been annotated
  9561. correspondingly for the symbols needed. */
  9562. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9563. int fnord () __attribute__((visibility("default")));
  9564. #endif
  9565. int fnord () { return 42; }
  9566. int main ()
  9567. {
  9568. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9569. int status = $lt_dlunknown;
  9570. if (self)
  9571. {
  9572. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9573. else
  9574. {
  9575. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9576. else puts (dlerror ());
  9577. }
  9578. /* dlclose (self); */
  9579. }
  9580. else
  9581. puts (dlerror ());
  9582. return status;
  9583. }
  9584. _LT_EOF
  9585. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9586. (eval $ac_link) 2>&5
  9587. ac_status=$?
  9588. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9589. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9590. (./conftest; exit; ) >&5 2>/dev/null
  9591. lt_status=$?
  9592. case x$lt_status in
  9593. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9594. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9595. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9596. esac
  9597. else :
  9598. # compilation failed
  9599. lt_cv_dlopen_self=no
  9600. fi
  9601. fi
  9602. rm -fr conftest*
  9603. fi
  9604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9605. $as_echo "$lt_cv_dlopen_self" >&6; }
  9606. if test "x$lt_cv_dlopen_self" = xyes; then
  9607. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9609. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9610. if ${lt_cv_dlopen_self_static+:} false; then :
  9611. $as_echo_n "(cached) " >&6
  9612. else
  9613. if test "$cross_compiling" = yes; then :
  9614. lt_cv_dlopen_self_static=cross
  9615. else
  9616. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9617. lt_status=$lt_dlunknown
  9618. cat > conftest.$ac_ext <<_LT_EOF
  9619. #line $LINENO "configure"
  9620. #include "confdefs.h"
  9621. #if HAVE_DLFCN_H
  9622. #include <dlfcn.h>
  9623. #endif
  9624. #include <stdio.h>
  9625. #ifdef RTLD_GLOBAL
  9626. # define LT_DLGLOBAL RTLD_GLOBAL
  9627. #else
  9628. # ifdef DL_GLOBAL
  9629. # define LT_DLGLOBAL DL_GLOBAL
  9630. # else
  9631. # define LT_DLGLOBAL 0
  9632. # endif
  9633. #endif
  9634. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9635. find out it does not work in some platform. */
  9636. #ifndef LT_DLLAZY_OR_NOW
  9637. # ifdef RTLD_LAZY
  9638. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9639. # else
  9640. # ifdef DL_LAZY
  9641. # define LT_DLLAZY_OR_NOW DL_LAZY
  9642. # else
  9643. # ifdef RTLD_NOW
  9644. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9645. # else
  9646. # ifdef DL_NOW
  9647. # define LT_DLLAZY_OR_NOW DL_NOW
  9648. # else
  9649. # define LT_DLLAZY_OR_NOW 0
  9650. # endif
  9651. # endif
  9652. # endif
  9653. # endif
  9654. #endif
  9655. /* When -fvisbility=hidden is used, assume the code has been annotated
  9656. correspondingly for the symbols needed. */
  9657. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9658. int fnord () __attribute__((visibility("default")));
  9659. #endif
  9660. int fnord () { return 42; }
  9661. int main ()
  9662. {
  9663. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9664. int status = $lt_dlunknown;
  9665. if (self)
  9666. {
  9667. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9668. else
  9669. {
  9670. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9671. else puts (dlerror ());
  9672. }
  9673. /* dlclose (self); */
  9674. }
  9675. else
  9676. puts (dlerror ());
  9677. return status;
  9678. }
  9679. _LT_EOF
  9680. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9681. (eval $ac_link) 2>&5
  9682. ac_status=$?
  9683. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9684. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9685. (./conftest; exit; ) >&5 2>/dev/null
  9686. lt_status=$?
  9687. case x$lt_status in
  9688. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9689. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9690. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9691. esac
  9692. else :
  9693. # compilation failed
  9694. lt_cv_dlopen_self_static=no
  9695. fi
  9696. fi
  9697. rm -fr conftest*
  9698. fi
  9699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9700. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9701. fi
  9702. CPPFLAGS="$save_CPPFLAGS"
  9703. LDFLAGS="$save_LDFLAGS"
  9704. LIBS="$save_LIBS"
  9705. ;;
  9706. esac
  9707. case $lt_cv_dlopen_self in
  9708. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9709. *) enable_dlopen_self=unknown ;;
  9710. esac
  9711. case $lt_cv_dlopen_self_static in
  9712. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9713. *) enable_dlopen_self_static=unknown ;;
  9714. esac
  9715. fi
  9716. striplib=
  9717. old_striplib=
  9718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9719. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9720. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9721. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9722. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9724. $as_echo "yes" >&6; }
  9725. else
  9726. # FIXME - insert some real tests, host_os isn't really good enough
  9727. case $host_os in
  9728. darwin*)
  9729. if test -n "$STRIP" ; then
  9730. striplib="$STRIP -x"
  9731. old_striplib="$STRIP -S"
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9733. $as_echo "yes" >&6; }
  9734. else
  9735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9736. $as_echo "no" >&6; }
  9737. fi
  9738. ;;
  9739. *)
  9740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9741. $as_echo "no" >&6; }
  9742. ;;
  9743. esac
  9744. fi
  9745. # Report which library types will actually be built
  9746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9747. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9749. $as_echo "$can_build_shared" >&6; }
  9750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9751. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9752. test "$can_build_shared" = "no" && enable_shared=no
  9753. # On AIX, shared libraries and static libraries use the same namespace, and
  9754. # are all built from PIC.
  9755. case $host_os in
  9756. aix3*)
  9757. test "$enable_shared" = yes && enable_static=no
  9758. if test -n "$RANLIB"; then
  9759. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9760. postinstall_cmds='$RANLIB $lib'
  9761. fi
  9762. ;;
  9763. aix[4-9]*)
  9764. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9765. test "$enable_shared" = yes && enable_static=no
  9766. fi
  9767. ;;
  9768. esac
  9769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9770. $as_echo "$enable_shared" >&6; }
  9771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9772. $as_echo_n "checking whether to build static libraries... " >&6; }
  9773. # Make sure either enable_shared or enable_static is yes.
  9774. test "$enable_shared" = yes || enable_static=yes
  9775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9776. $as_echo "$enable_static" >&6; }
  9777. fi
  9778. ac_ext=c
  9779. ac_cpp='$CPP $CPPFLAGS'
  9780. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9781. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9782. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9783. CC="$lt_save_CC"
  9784. ac_config_commands="$ac_config_commands libtool"
  9785. # Only expand once:
  9786. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9787. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9788. LT_REVISION=$SDL_INTERFACE_AGE
  9789. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9790. ac_ext=c
  9791. ac_cpp='$CPP $CPPFLAGS'
  9792. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9793. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9794. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9795. if test -n "$ac_tool_prefix"; then
  9796. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9797. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9799. $as_echo_n "checking for $ac_word... " >&6; }
  9800. if ${ac_cv_prog_CC+:} false; then :
  9801. $as_echo_n "(cached) " >&6
  9802. else
  9803. if test -n "$CC"; then
  9804. ac_cv_prog_CC="$CC" # Let the user override the test.
  9805. else
  9806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9807. for as_dir in $PATH
  9808. do
  9809. IFS=$as_save_IFS
  9810. test -z "$as_dir" && as_dir=.
  9811. for ac_exec_ext in '' $ac_executable_extensions; do
  9812. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9813. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9814. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9815. break 2
  9816. fi
  9817. done
  9818. done
  9819. IFS=$as_save_IFS
  9820. fi
  9821. fi
  9822. CC=$ac_cv_prog_CC
  9823. if test -n "$CC"; then
  9824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9825. $as_echo "$CC" >&6; }
  9826. else
  9827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9828. $as_echo "no" >&6; }
  9829. fi
  9830. fi
  9831. if test -z "$ac_cv_prog_CC"; then
  9832. ac_ct_CC=$CC
  9833. # Extract the first word of "gcc", so it can be a program name with args.
  9834. set dummy gcc; ac_word=$2
  9835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9836. $as_echo_n "checking for $ac_word... " >&6; }
  9837. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9838. $as_echo_n "(cached) " >&6
  9839. else
  9840. if test -n "$ac_ct_CC"; then
  9841. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9842. else
  9843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9844. for as_dir in $PATH
  9845. do
  9846. IFS=$as_save_IFS
  9847. test -z "$as_dir" && as_dir=.
  9848. for ac_exec_ext in '' $ac_executable_extensions; do
  9849. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9850. ac_cv_prog_ac_ct_CC="gcc"
  9851. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9852. break 2
  9853. fi
  9854. done
  9855. done
  9856. IFS=$as_save_IFS
  9857. fi
  9858. fi
  9859. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9860. if test -n "$ac_ct_CC"; then
  9861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9862. $as_echo "$ac_ct_CC" >&6; }
  9863. else
  9864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9865. $as_echo "no" >&6; }
  9866. fi
  9867. if test "x$ac_ct_CC" = x; then
  9868. CC=""
  9869. else
  9870. case $cross_compiling:$ac_tool_warned in
  9871. yes:)
  9872. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9873. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9874. ac_tool_warned=yes ;;
  9875. esac
  9876. CC=$ac_ct_CC
  9877. fi
  9878. else
  9879. CC="$ac_cv_prog_CC"
  9880. fi
  9881. if test -z "$CC"; then
  9882. if test -n "$ac_tool_prefix"; then
  9883. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9884. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9886. $as_echo_n "checking for $ac_word... " >&6; }
  9887. if ${ac_cv_prog_CC+:} false; then :
  9888. $as_echo_n "(cached) " >&6
  9889. else
  9890. if test -n "$CC"; then
  9891. ac_cv_prog_CC="$CC" # Let the user override the test.
  9892. else
  9893. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9894. for as_dir in $PATH
  9895. do
  9896. IFS=$as_save_IFS
  9897. test -z "$as_dir" && as_dir=.
  9898. for ac_exec_ext in '' $ac_executable_extensions; do
  9899. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9900. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9901. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9902. break 2
  9903. fi
  9904. done
  9905. done
  9906. IFS=$as_save_IFS
  9907. fi
  9908. fi
  9909. CC=$ac_cv_prog_CC
  9910. if test -n "$CC"; then
  9911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9912. $as_echo "$CC" >&6; }
  9913. else
  9914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9915. $as_echo "no" >&6; }
  9916. fi
  9917. fi
  9918. fi
  9919. if test -z "$CC"; then
  9920. # Extract the first word of "cc", so it can be a program name with args.
  9921. set dummy cc; ac_word=$2
  9922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9923. $as_echo_n "checking for $ac_word... " >&6; }
  9924. if ${ac_cv_prog_CC+:} false; then :
  9925. $as_echo_n "(cached) " >&6
  9926. else
  9927. if test -n "$CC"; then
  9928. ac_cv_prog_CC="$CC" # Let the user override the test.
  9929. else
  9930. ac_prog_rejected=no
  9931. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9932. for as_dir in $PATH
  9933. do
  9934. IFS=$as_save_IFS
  9935. test -z "$as_dir" && as_dir=.
  9936. for ac_exec_ext in '' $ac_executable_extensions; do
  9937. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9938. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9939. ac_prog_rejected=yes
  9940. continue
  9941. fi
  9942. ac_cv_prog_CC="cc"
  9943. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9944. break 2
  9945. fi
  9946. done
  9947. done
  9948. IFS=$as_save_IFS
  9949. if test $ac_prog_rejected = yes; then
  9950. # We found a bogon in the path, so make sure we never use it.
  9951. set dummy $ac_cv_prog_CC
  9952. shift
  9953. if test $# != 0; then
  9954. # We chose a different compiler from the bogus one.
  9955. # However, it has the same basename, so the bogon will be chosen
  9956. # first if we set CC to just the basename; use the full file name.
  9957. shift
  9958. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9959. fi
  9960. fi
  9961. fi
  9962. fi
  9963. CC=$ac_cv_prog_CC
  9964. if test -n "$CC"; then
  9965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9966. $as_echo "$CC" >&6; }
  9967. else
  9968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9969. $as_echo "no" >&6; }
  9970. fi
  9971. fi
  9972. if test -z "$CC"; then
  9973. if test -n "$ac_tool_prefix"; then
  9974. for ac_prog in cl.exe
  9975. do
  9976. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9977. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9979. $as_echo_n "checking for $ac_word... " >&6; }
  9980. if ${ac_cv_prog_CC+:} false; then :
  9981. $as_echo_n "(cached) " >&6
  9982. else
  9983. if test -n "$CC"; then
  9984. ac_cv_prog_CC="$CC" # Let the user override the test.
  9985. else
  9986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9987. for as_dir in $PATH
  9988. do
  9989. IFS=$as_save_IFS
  9990. test -z "$as_dir" && as_dir=.
  9991. for ac_exec_ext in '' $ac_executable_extensions; do
  9992. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9993. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9994. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9995. break 2
  9996. fi
  9997. done
  9998. done
  9999. IFS=$as_save_IFS
  10000. fi
  10001. fi
  10002. CC=$ac_cv_prog_CC
  10003. if test -n "$CC"; then
  10004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10005. $as_echo "$CC" >&6; }
  10006. else
  10007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10008. $as_echo "no" >&6; }
  10009. fi
  10010. test -n "$CC" && break
  10011. done
  10012. fi
  10013. if test -z "$CC"; then
  10014. ac_ct_CC=$CC
  10015. for ac_prog in cl.exe
  10016. do
  10017. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10018. set dummy $ac_prog; ac_word=$2
  10019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10020. $as_echo_n "checking for $ac_word... " >&6; }
  10021. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10022. $as_echo_n "(cached) " >&6
  10023. else
  10024. if test -n "$ac_ct_CC"; then
  10025. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10026. else
  10027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10028. for as_dir in $PATH
  10029. do
  10030. IFS=$as_save_IFS
  10031. test -z "$as_dir" && as_dir=.
  10032. for ac_exec_ext in '' $ac_executable_extensions; do
  10033. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10034. ac_cv_prog_ac_ct_CC="$ac_prog"
  10035. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10036. break 2
  10037. fi
  10038. done
  10039. done
  10040. IFS=$as_save_IFS
  10041. fi
  10042. fi
  10043. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10044. if test -n "$ac_ct_CC"; then
  10045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10046. $as_echo "$ac_ct_CC" >&6; }
  10047. else
  10048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10049. $as_echo "no" >&6; }
  10050. fi
  10051. test -n "$ac_ct_CC" && break
  10052. done
  10053. if test "x$ac_ct_CC" = x; then
  10054. CC=""
  10055. else
  10056. case $cross_compiling:$ac_tool_warned in
  10057. yes:)
  10058. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10059. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10060. ac_tool_warned=yes ;;
  10061. esac
  10062. CC=$ac_ct_CC
  10063. fi
  10064. fi
  10065. fi
  10066. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10067. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10068. as_fn_error $? "no acceptable C compiler found in \$PATH
  10069. See \`config.log' for more details" "$LINENO" 5; }
  10070. # Provide some information about the compiler.
  10071. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10072. set X $ac_compile
  10073. ac_compiler=$2
  10074. for ac_option in --version -v -V -qversion; do
  10075. { { ac_try="$ac_compiler $ac_option >&5"
  10076. case "(($ac_try" in
  10077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10078. *) ac_try_echo=$ac_try;;
  10079. esac
  10080. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10081. $as_echo "$ac_try_echo"; } >&5
  10082. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10083. ac_status=$?
  10084. if test -s conftest.err; then
  10085. sed '10a\
  10086. ... rest of stderr output deleted ...
  10087. 10q' conftest.err >conftest.er1
  10088. cat conftest.er1 >&5
  10089. fi
  10090. rm -f conftest.er1 conftest.err
  10091. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10092. test $ac_status = 0; }
  10093. done
  10094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10095. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10096. if ${ac_cv_c_compiler_gnu+:} false; then :
  10097. $as_echo_n "(cached) " >&6
  10098. else
  10099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10100. /* end confdefs.h. */
  10101. int
  10102. main ()
  10103. {
  10104. #ifndef __GNUC__
  10105. choke me
  10106. #endif
  10107. ;
  10108. return 0;
  10109. }
  10110. _ACEOF
  10111. if ac_fn_c_try_compile "$LINENO"; then :
  10112. ac_compiler_gnu=yes
  10113. else
  10114. ac_compiler_gnu=no
  10115. fi
  10116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10117. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10118. fi
  10119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10120. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10121. if test $ac_compiler_gnu = yes; then
  10122. GCC=yes
  10123. else
  10124. GCC=
  10125. fi
  10126. ac_test_CFLAGS=${CFLAGS+set}
  10127. ac_save_CFLAGS=$CFLAGS
  10128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10129. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10130. if ${ac_cv_prog_cc_g+:} false; then :
  10131. $as_echo_n "(cached) " >&6
  10132. else
  10133. ac_save_c_werror_flag=$ac_c_werror_flag
  10134. ac_c_werror_flag=yes
  10135. ac_cv_prog_cc_g=no
  10136. CFLAGS="-g"
  10137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10138. /* end confdefs.h. */
  10139. int
  10140. main ()
  10141. {
  10142. ;
  10143. return 0;
  10144. }
  10145. _ACEOF
  10146. if ac_fn_c_try_compile "$LINENO"; then :
  10147. ac_cv_prog_cc_g=yes
  10148. else
  10149. CFLAGS=""
  10150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10151. /* end confdefs.h. */
  10152. int
  10153. main ()
  10154. {
  10155. ;
  10156. return 0;
  10157. }
  10158. _ACEOF
  10159. if ac_fn_c_try_compile "$LINENO"; then :
  10160. else
  10161. ac_c_werror_flag=$ac_save_c_werror_flag
  10162. CFLAGS="-g"
  10163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10164. /* end confdefs.h. */
  10165. int
  10166. main ()
  10167. {
  10168. ;
  10169. return 0;
  10170. }
  10171. _ACEOF
  10172. if ac_fn_c_try_compile "$LINENO"; then :
  10173. ac_cv_prog_cc_g=yes
  10174. fi
  10175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10176. fi
  10177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10178. fi
  10179. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10180. ac_c_werror_flag=$ac_save_c_werror_flag
  10181. fi
  10182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10183. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10184. if test "$ac_test_CFLAGS" = set; then
  10185. CFLAGS=$ac_save_CFLAGS
  10186. elif test $ac_cv_prog_cc_g = yes; then
  10187. if test "$GCC" = yes; then
  10188. CFLAGS="-g -O2"
  10189. else
  10190. CFLAGS="-g"
  10191. fi
  10192. else
  10193. if test "$GCC" = yes; then
  10194. CFLAGS="-O2"
  10195. else
  10196. CFLAGS=
  10197. fi
  10198. fi
  10199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10200. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10201. if ${ac_cv_prog_cc_c89+:} false; then :
  10202. $as_echo_n "(cached) " >&6
  10203. else
  10204. ac_cv_prog_cc_c89=no
  10205. ac_save_CC=$CC
  10206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10207. /* end confdefs.h. */
  10208. #include <stdarg.h>
  10209. #include <stdio.h>
  10210. struct stat;
  10211. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10212. struct buf { int x; };
  10213. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10214. static char *e (p, i)
  10215. char **p;
  10216. int i;
  10217. {
  10218. return p[i];
  10219. }
  10220. static char *f (char * (*g) (char **, int), char **p, ...)
  10221. {
  10222. char *s;
  10223. va_list v;
  10224. va_start (v,p);
  10225. s = g (p, va_arg (v,int));
  10226. va_end (v);
  10227. return s;
  10228. }
  10229. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10230. function prototypes and stuff, but not '\xHH' hex character constants.
  10231. These don't provoke an error unfortunately, instead are silently treated
  10232. as 'x'. The following induces an error, until -std is added to get
  10233. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10234. array size at least. It's necessary to write '\x00'==0 to get something
  10235. that's true only with -std. */
  10236. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10237. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10238. inside strings and character constants. */
  10239. #define FOO(x) 'x'
  10240. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10241. int test (int i, double x);
  10242. struct s1 {int (*f) (int a);};
  10243. struct s2 {int (*f) (double a);};
  10244. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10245. int argc;
  10246. char **argv;
  10247. int
  10248. main ()
  10249. {
  10250. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10251. ;
  10252. return 0;
  10253. }
  10254. _ACEOF
  10255. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10256. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10257. do
  10258. CC="$ac_save_CC $ac_arg"
  10259. if ac_fn_c_try_compile "$LINENO"; then :
  10260. ac_cv_prog_cc_c89=$ac_arg
  10261. fi
  10262. rm -f core conftest.err conftest.$ac_objext
  10263. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10264. done
  10265. rm -f conftest.$ac_ext
  10266. CC=$ac_save_CC
  10267. fi
  10268. # AC_CACHE_VAL
  10269. case "x$ac_cv_prog_cc_c89" in
  10270. x)
  10271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10272. $as_echo "none needed" >&6; } ;;
  10273. xno)
  10274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10275. $as_echo "unsupported" >&6; } ;;
  10276. *)
  10277. CC="$CC $ac_cv_prog_cc_c89"
  10278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10279. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10280. esac
  10281. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10282. fi
  10283. ac_ext=c
  10284. ac_cpp='$CPP $CPPFLAGS'
  10285. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10286. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10287. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10288. ac_ext=cpp
  10289. ac_cpp='$CXXCPP $CPPFLAGS'
  10290. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10291. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10292. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10293. if test -z "$CXX"; then
  10294. if test -n "$CCC"; then
  10295. CXX=$CCC
  10296. else
  10297. if test -n "$ac_tool_prefix"; then
  10298. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10299. do
  10300. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10301. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10303. $as_echo_n "checking for $ac_word... " >&6; }
  10304. if ${ac_cv_prog_CXX+:} false; then :
  10305. $as_echo_n "(cached) " >&6
  10306. else
  10307. if test -n "$CXX"; then
  10308. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10309. else
  10310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10311. for as_dir in $PATH
  10312. do
  10313. IFS=$as_save_IFS
  10314. test -z "$as_dir" && as_dir=.
  10315. for ac_exec_ext in '' $ac_executable_extensions; do
  10316. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10317. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10318. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10319. break 2
  10320. fi
  10321. done
  10322. done
  10323. IFS=$as_save_IFS
  10324. fi
  10325. fi
  10326. CXX=$ac_cv_prog_CXX
  10327. if test -n "$CXX"; then
  10328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10329. $as_echo "$CXX" >&6; }
  10330. else
  10331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10332. $as_echo "no" >&6; }
  10333. fi
  10334. test -n "$CXX" && break
  10335. done
  10336. fi
  10337. if test -z "$CXX"; then
  10338. ac_ct_CXX=$CXX
  10339. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10340. do
  10341. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10342. set dummy $ac_prog; ac_word=$2
  10343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10344. $as_echo_n "checking for $ac_word... " >&6; }
  10345. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10346. $as_echo_n "(cached) " >&6
  10347. else
  10348. if test -n "$ac_ct_CXX"; then
  10349. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10350. else
  10351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10352. for as_dir in $PATH
  10353. do
  10354. IFS=$as_save_IFS
  10355. test -z "$as_dir" && as_dir=.
  10356. for ac_exec_ext in '' $ac_executable_extensions; do
  10357. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10358. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10359. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10360. break 2
  10361. fi
  10362. done
  10363. done
  10364. IFS=$as_save_IFS
  10365. fi
  10366. fi
  10367. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10368. if test -n "$ac_ct_CXX"; then
  10369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10370. $as_echo "$ac_ct_CXX" >&6; }
  10371. else
  10372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10373. $as_echo "no" >&6; }
  10374. fi
  10375. test -n "$ac_ct_CXX" && break
  10376. done
  10377. if test "x$ac_ct_CXX" = x; then
  10378. CXX="g++"
  10379. else
  10380. case $cross_compiling:$ac_tool_warned in
  10381. yes:)
  10382. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10383. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10384. ac_tool_warned=yes ;;
  10385. esac
  10386. CXX=$ac_ct_CXX
  10387. fi
  10388. fi
  10389. fi
  10390. fi
  10391. # Provide some information about the compiler.
  10392. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10393. set X $ac_compile
  10394. ac_compiler=$2
  10395. for ac_option in --version -v -V -qversion; do
  10396. { { ac_try="$ac_compiler $ac_option >&5"
  10397. case "(($ac_try" in
  10398. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10399. *) ac_try_echo=$ac_try;;
  10400. esac
  10401. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10402. $as_echo "$ac_try_echo"; } >&5
  10403. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10404. ac_status=$?
  10405. if test -s conftest.err; then
  10406. sed '10a\
  10407. ... rest of stderr output deleted ...
  10408. 10q' conftest.err >conftest.er1
  10409. cat conftest.er1 >&5
  10410. fi
  10411. rm -f conftest.er1 conftest.err
  10412. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10413. test $ac_status = 0; }
  10414. done
  10415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10416. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10417. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10418. $as_echo_n "(cached) " >&6
  10419. else
  10420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10421. /* end confdefs.h. */
  10422. int
  10423. main ()
  10424. {
  10425. #ifndef __GNUC__
  10426. choke me
  10427. #endif
  10428. ;
  10429. return 0;
  10430. }
  10431. _ACEOF
  10432. if ac_fn_cxx_try_compile "$LINENO"; then :
  10433. ac_compiler_gnu=yes
  10434. else
  10435. ac_compiler_gnu=no
  10436. fi
  10437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10438. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10439. fi
  10440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10441. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10442. if test $ac_compiler_gnu = yes; then
  10443. GXX=yes
  10444. else
  10445. GXX=
  10446. fi
  10447. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10448. ac_save_CXXFLAGS=$CXXFLAGS
  10449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10450. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10451. if ${ac_cv_prog_cxx_g+:} false; then :
  10452. $as_echo_n "(cached) " >&6
  10453. else
  10454. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10455. ac_cxx_werror_flag=yes
  10456. ac_cv_prog_cxx_g=no
  10457. CXXFLAGS="-g"
  10458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10459. /* end confdefs.h. */
  10460. int
  10461. main ()
  10462. {
  10463. ;
  10464. return 0;
  10465. }
  10466. _ACEOF
  10467. if ac_fn_cxx_try_compile "$LINENO"; then :
  10468. ac_cv_prog_cxx_g=yes
  10469. else
  10470. CXXFLAGS=""
  10471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10472. /* end confdefs.h. */
  10473. int
  10474. main ()
  10475. {
  10476. ;
  10477. return 0;
  10478. }
  10479. _ACEOF
  10480. if ac_fn_cxx_try_compile "$LINENO"; then :
  10481. else
  10482. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10483. CXXFLAGS="-g"
  10484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10485. /* end confdefs.h. */
  10486. int
  10487. main ()
  10488. {
  10489. ;
  10490. return 0;
  10491. }
  10492. _ACEOF
  10493. if ac_fn_cxx_try_compile "$LINENO"; then :
  10494. ac_cv_prog_cxx_g=yes
  10495. fi
  10496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10497. fi
  10498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10499. fi
  10500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10501. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10502. fi
  10503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10504. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10505. if test "$ac_test_CXXFLAGS" = set; then
  10506. CXXFLAGS=$ac_save_CXXFLAGS
  10507. elif test $ac_cv_prog_cxx_g = yes; then
  10508. if test "$GXX" = yes; then
  10509. CXXFLAGS="-g -O2"
  10510. else
  10511. CXXFLAGS="-g"
  10512. fi
  10513. else
  10514. if test "$GXX" = yes; then
  10515. CXXFLAGS="-O2"
  10516. else
  10517. CXXFLAGS=
  10518. fi
  10519. fi
  10520. ac_ext=c
  10521. ac_cpp='$CPP $CPPFLAGS'
  10522. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10523. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10524. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10525. func_stripname_cnf ()
  10526. {
  10527. case ${2} in
  10528. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10529. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10530. esac
  10531. } # func_stripname_cnf
  10532. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10533. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10534. (test "X$CXX" != "Xg++"))) ; then
  10535. ac_ext=cpp
  10536. ac_cpp='$CXXCPP $CPPFLAGS'
  10537. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10538. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10539. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10541. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10542. if test -z "$CXXCPP"; then
  10543. if ${ac_cv_prog_CXXCPP+:} false; then :
  10544. $as_echo_n "(cached) " >&6
  10545. else
  10546. # Double quotes because CXXCPP needs to be expanded
  10547. for CXXCPP in "$CXX -E" "/lib/cpp"
  10548. do
  10549. ac_preproc_ok=false
  10550. for ac_cxx_preproc_warn_flag in '' yes
  10551. do
  10552. # Use a header file that comes with gcc, so configuring glibc
  10553. # with a fresh cross-compiler works.
  10554. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10555. # <limits.h> exists even on freestanding compilers.
  10556. # On the NeXT, cc -E runs the code through the compiler's parser,
  10557. # not just through cpp. "Syntax error" is here to catch this case.
  10558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10559. /* end confdefs.h. */
  10560. #ifdef __STDC__
  10561. # include <limits.h>
  10562. #else
  10563. # include <assert.h>
  10564. #endif
  10565. Syntax error
  10566. _ACEOF
  10567. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10568. else
  10569. # Broken: fails on valid input.
  10570. continue
  10571. fi
  10572. rm -f conftest.err conftest.i conftest.$ac_ext
  10573. # OK, works on sane cases. Now check whether nonexistent headers
  10574. # can be detected and how.
  10575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10576. /* end confdefs.h. */
  10577. #include <ac_nonexistent.h>
  10578. _ACEOF
  10579. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10580. # Broken: success on invalid input.
  10581. continue
  10582. else
  10583. # Passes both tests.
  10584. ac_preproc_ok=:
  10585. break
  10586. fi
  10587. rm -f conftest.err conftest.i conftest.$ac_ext
  10588. done
  10589. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10590. rm -f conftest.i conftest.err conftest.$ac_ext
  10591. if $ac_preproc_ok; then :
  10592. break
  10593. fi
  10594. done
  10595. ac_cv_prog_CXXCPP=$CXXCPP
  10596. fi
  10597. CXXCPP=$ac_cv_prog_CXXCPP
  10598. else
  10599. ac_cv_prog_CXXCPP=$CXXCPP
  10600. fi
  10601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10602. $as_echo "$CXXCPP" >&6; }
  10603. ac_preproc_ok=false
  10604. for ac_cxx_preproc_warn_flag in '' yes
  10605. do
  10606. # Use a header file that comes with gcc, so configuring glibc
  10607. # with a fresh cross-compiler works.
  10608. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10609. # <limits.h> exists even on freestanding compilers.
  10610. # On the NeXT, cc -E runs the code through the compiler's parser,
  10611. # not just through cpp. "Syntax error" is here to catch this case.
  10612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10613. /* end confdefs.h. */
  10614. #ifdef __STDC__
  10615. # include <limits.h>
  10616. #else
  10617. # include <assert.h>
  10618. #endif
  10619. Syntax error
  10620. _ACEOF
  10621. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10622. else
  10623. # Broken: fails on valid input.
  10624. continue
  10625. fi
  10626. rm -f conftest.err conftest.i conftest.$ac_ext
  10627. # OK, works on sane cases. Now check whether nonexistent headers
  10628. # can be detected and how.
  10629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10630. /* end confdefs.h. */
  10631. #include <ac_nonexistent.h>
  10632. _ACEOF
  10633. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10634. # Broken: success on invalid input.
  10635. continue
  10636. else
  10637. # Passes both tests.
  10638. ac_preproc_ok=:
  10639. break
  10640. fi
  10641. rm -f conftest.err conftest.i conftest.$ac_ext
  10642. done
  10643. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10644. rm -f conftest.i conftest.err conftest.$ac_ext
  10645. if $ac_preproc_ok; then :
  10646. else
  10647. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10648. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10649. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10650. See \`config.log' for more details" "$LINENO" 5; }
  10651. fi
  10652. ac_ext=c
  10653. ac_cpp='$CPP $CPPFLAGS'
  10654. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10655. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10656. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10657. else
  10658. _lt_caught_CXX_error=yes
  10659. fi
  10660. ac_ext=cpp
  10661. ac_cpp='$CXXCPP $CPPFLAGS'
  10662. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10663. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10664. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10665. archive_cmds_need_lc_CXX=no
  10666. allow_undefined_flag_CXX=
  10667. always_export_symbols_CXX=no
  10668. archive_expsym_cmds_CXX=
  10669. compiler_needs_object_CXX=no
  10670. export_dynamic_flag_spec_CXX=
  10671. hardcode_direct_CXX=no
  10672. hardcode_direct_absolute_CXX=no
  10673. hardcode_libdir_flag_spec_CXX=
  10674. hardcode_libdir_separator_CXX=
  10675. hardcode_minus_L_CXX=no
  10676. hardcode_shlibpath_var_CXX=unsupported
  10677. hardcode_automatic_CXX=no
  10678. inherit_rpath_CXX=no
  10679. module_cmds_CXX=
  10680. module_expsym_cmds_CXX=
  10681. link_all_deplibs_CXX=unknown
  10682. old_archive_cmds_CXX=$old_archive_cmds
  10683. reload_flag_CXX=$reload_flag
  10684. reload_cmds_CXX=$reload_cmds
  10685. no_undefined_flag_CXX=
  10686. whole_archive_flag_spec_CXX=
  10687. enable_shared_with_static_runtimes_CXX=no
  10688. # Source file extension for C++ test sources.
  10689. ac_ext=cpp
  10690. # Object file extension for compiled C++ test sources.
  10691. objext=o
  10692. objext_CXX=$objext
  10693. # No sense in running all these tests if we already determined that
  10694. # the CXX compiler isn't working. Some variables (like enable_shared)
  10695. # are currently assumed to apply to all compilers on this platform,
  10696. # and will be corrupted by setting them based on a non-working compiler.
  10697. if test "$_lt_caught_CXX_error" != yes; then
  10698. # Code to be used in simple compile tests
  10699. lt_simple_compile_test_code="int some_variable = 0;"
  10700. # Code to be used in simple link tests
  10701. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10702. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10703. # If no C compiler was specified, use CC.
  10704. LTCC=${LTCC-"$CC"}
  10705. # If no C compiler flags were specified, use CFLAGS.
  10706. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10707. # Allow CC to be a program name with arguments.
  10708. compiler=$CC
  10709. # save warnings/boilerplate of simple test code
  10710. ac_outfile=conftest.$ac_objext
  10711. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10712. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10713. _lt_compiler_boilerplate=`cat conftest.err`
  10714. $RM conftest*
  10715. ac_outfile=conftest.$ac_objext
  10716. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10717. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10718. _lt_linker_boilerplate=`cat conftest.err`
  10719. $RM -r conftest*
  10720. # Allow CC to be a program name with arguments.
  10721. lt_save_CC=$CC
  10722. lt_save_CFLAGS=$CFLAGS
  10723. lt_save_LD=$LD
  10724. lt_save_GCC=$GCC
  10725. GCC=$GXX
  10726. lt_save_with_gnu_ld=$with_gnu_ld
  10727. lt_save_path_LD=$lt_cv_path_LD
  10728. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10729. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10730. else
  10731. $as_unset lt_cv_prog_gnu_ld
  10732. fi
  10733. if test -n "${lt_cv_path_LDCXX+set}"; then
  10734. lt_cv_path_LD=$lt_cv_path_LDCXX
  10735. else
  10736. $as_unset lt_cv_path_LD
  10737. fi
  10738. test -z "${LDCXX+set}" || LD=$LDCXX
  10739. CC=${CXX-"c++"}
  10740. CFLAGS=$CXXFLAGS
  10741. compiler=$CC
  10742. compiler_CXX=$CC
  10743. for cc_temp in $compiler""; do
  10744. case $cc_temp in
  10745. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10746. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10747. \-*) ;;
  10748. *) break;;
  10749. esac
  10750. done
  10751. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10752. if test -n "$compiler"; then
  10753. # We don't want -fno-exception when compiling C++ code, so set the
  10754. # no_builtin_flag separately
  10755. if test "$GXX" = yes; then
  10756. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10757. else
  10758. lt_prog_compiler_no_builtin_flag_CXX=
  10759. fi
  10760. if test "$GXX" = yes; then
  10761. # Set up default GNU C++ configuration
  10762. # Check whether --with-gnu-ld was given.
  10763. if test "${with_gnu_ld+set}" = set; then :
  10764. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10765. else
  10766. with_gnu_ld=no
  10767. fi
  10768. ac_prog=ld
  10769. if test "$GCC" = yes; then
  10770. # Check if gcc -print-prog-name=ld gives a path.
  10771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10772. $as_echo_n "checking for ld used by $CC... " >&6; }
  10773. case $host in
  10774. *-*-mingw*)
  10775. # gcc leaves a trailing carriage return which upsets mingw
  10776. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10777. *)
  10778. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10779. esac
  10780. case $ac_prog in
  10781. # Accept absolute paths.
  10782. [\\/]* | ?:[\\/]*)
  10783. re_direlt='/[^/][^/]*/\.\./'
  10784. # Canonicalize the pathname of ld
  10785. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10786. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10787. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10788. done
  10789. test -z "$LD" && LD="$ac_prog"
  10790. ;;
  10791. "")
  10792. # If it fails, then pretend we aren't using GCC.
  10793. ac_prog=ld
  10794. ;;
  10795. *)
  10796. # If it is relative, then search for the first ld in PATH.
  10797. with_gnu_ld=unknown
  10798. ;;
  10799. esac
  10800. elif test "$with_gnu_ld" = yes; then
  10801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10802. $as_echo_n "checking for GNU ld... " >&6; }
  10803. else
  10804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10805. $as_echo_n "checking for non-GNU ld... " >&6; }
  10806. fi
  10807. if ${lt_cv_path_LD+:} false; then :
  10808. $as_echo_n "(cached) " >&6
  10809. else
  10810. if test -z "$LD"; then
  10811. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10812. for ac_dir in $PATH; do
  10813. IFS="$lt_save_ifs"
  10814. test -z "$ac_dir" && ac_dir=.
  10815. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10816. lt_cv_path_LD="$ac_dir/$ac_prog"
  10817. # Check to see if the program is GNU ld. I'd rather use --version,
  10818. # but apparently some variants of GNU ld only accept -v.
  10819. # Break only if it was the GNU/non-GNU ld that we prefer.
  10820. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10821. *GNU* | *'with BFD'*)
  10822. test "$with_gnu_ld" != no && break
  10823. ;;
  10824. *)
  10825. test "$with_gnu_ld" != yes && break
  10826. ;;
  10827. esac
  10828. fi
  10829. done
  10830. IFS="$lt_save_ifs"
  10831. else
  10832. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10833. fi
  10834. fi
  10835. LD="$lt_cv_path_LD"
  10836. if test -n "$LD"; then
  10837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10838. $as_echo "$LD" >&6; }
  10839. else
  10840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10841. $as_echo "no" >&6; }
  10842. fi
  10843. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10845. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10846. if ${lt_cv_prog_gnu_ld+:} false; then :
  10847. $as_echo_n "(cached) " >&6
  10848. else
  10849. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10850. case `$LD -v 2>&1 </dev/null` in
  10851. *GNU* | *'with BFD'*)
  10852. lt_cv_prog_gnu_ld=yes
  10853. ;;
  10854. *)
  10855. lt_cv_prog_gnu_ld=no
  10856. ;;
  10857. esac
  10858. fi
  10859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10860. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10861. with_gnu_ld=$lt_cv_prog_gnu_ld
  10862. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10863. # archiving commands below assume that GNU ld is being used.
  10864. if test "$with_gnu_ld" = yes; then
  10865. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10866. 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'
  10867. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10868. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10869. # If archive_cmds runs LD, not CC, wlarc should be empty
  10870. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10871. # investigate it a little bit more. (MM)
  10872. wlarc='${wl}'
  10873. # ancient GNU ld didn't support --whole-archive et. al.
  10874. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10875. $GREP 'no-whole-archive' > /dev/null; then
  10876. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10877. else
  10878. whole_archive_flag_spec_CXX=
  10879. fi
  10880. else
  10881. with_gnu_ld=no
  10882. wlarc=
  10883. # A generic and very simple default shared library creation
  10884. # command for GNU C++ for the case where it uses the native
  10885. # linker, instead of GNU ld. If possible, this setting should
  10886. # overridden to take advantage of the native linker features on
  10887. # the platform it is being used on.
  10888. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10889. fi
  10890. # Commands to make compiler produce verbose output that lists
  10891. # what "hidden" libraries, object files and flags are used when
  10892. # linking a shared library.
  10893. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10894. else
  10895. GXX=no
  10896. with_gnu_ld=no
  10897. wlarc=
  10898. fi
  10899. # PORTME: fill in a description of your system's C++ link characteristics
  10900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10901. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10902. ld_shlibs_CXX=yes
  10903. case $host_os in
  10904. aix3*)
  10905. # FIXME: insert proper C++ library support
  10906. ld_shlibs_CXX=no
  10907. ;;
  10908. aix[4-9]*)
  10909. if test "$host_cpu" = ia64; then
  10910. # On IA64, the linker does run time linking by default, so we don't
  10911. # have to do anything special.
  10912. aix_use_runtimelinking=no
  10913. exp_sym_flag='-Bexport'
  10914. no_entry_flag=""
  10915. else
  10916. aix_use_runtimelinking=no
  10917. # Test if we are trying to use run time linking or normal
  10918. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10919. # need to do runtime linking.
  10920. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10921. for ld_flag in $LDFLAGS; do
  10922. case $ld_flag in
  10923. *-brtl*)
  10924. aix_use_runtimelinking=yes
  10925. break
  10926. ;;
  10927. esac
  10928. done
  10929. ;;
  10930. esac
  10931. exp_sym_flag='-bexport'
  10932. no_entry_flag='-bnoentry'
  10933. fi
  10934. # When large executables or shared objects are built, AIX ld can
  10935. # have problems creating the table of contents. If linking a library
  10936. # or program results in "error TOC overflow" add -mminimal-toc to
  10937. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10938. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10939. archive_cmds_CXX=''
  10940. hardcode_direct_CXX=yes
  10941. hardcode_direct_absolute_CXX=yes
  10942. hardcode_libdir_separator_CXX=':'
  10943. link_all_deplibs_CXX=yes
  10944. file_list_spec_CXX='${wl}-f,'
  10945. if test "$GXX" = yes; then
  10946. case $host_os in aix4.[012]|aix4.[012].*)
  10947. # We only want to do this on AIX 4.2 and lower, the check
  10948. # below for broken collect2 doesn't work under 4.3+
  10949. collect2name=`${CC} -print-prog-name=collect2`
  10950. if test -f "$collect2name" &&
  10951. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10952. then
  10953. # We have reworked collect2
  10954. :
  10955. else
  10956. # We have old collect2
  10957. hardcode_direct_CXX=unsupported
  10958. # It fails to find uninstalled libraries when the uninstalled
  10959. # path is not listed in the libpath. Setting hardcode_minus_L
  10960. # to unsupported forces relinking
  10961. hardcode_minus_L_CXX=yes
  10962. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10963. hardcode_libdir_separator_CXX=
  10964. fi
  10965. esac
  10966. shared_flag='-shared'
  10967. if test "$aix_use_runtimelinking" = yes; then
  10968. shared_flag="$shared_flag "'${wl}-G'
  10969. fi
  10970. else
  10971. # not using gcc
  10972. if test "$host_cpu" = ia64; then
  10973. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10974. # chokes on -Wl,-G. The following line is correct:
  10975. shared_flag='-G'
  10976. else
  10977. if test "$aix_use_runtimelinking" = yes; then
  10978. shared_flag='${wl}-G'
  10979. else
  10980. shared_flag='${wl}-bM:SRE'
  10981. fi
  10982. fi
  10983. fi
  10984. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10985. # It seems that -bexpall does not export symbols beginning with
  10986. # underscore (_), so it is better to generate a list of symbols to
  10987. # export.
  10988. always_export_symbols_CXX=yes
  10989. if test "$aix_use_runtimelinking" = yes; then
  10990. # Warning - without using the other runtime loading flags (-brtl),
  10991. # -berok will link without error, but may produce a broken library.
  10992. allow_undefined_flag_CXX='-berok'
  10993. # Determine the default libpath from the value encoded in an empty
  10994. # executable.
  10995. if test "${lt_cv_aix_libpath+set}" = set; then
  10996. aix_libpath=$lt_cv_aix_libpath
  10997. else
  10998. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10999. $as_echo_n "(cached) " >&6
  11000. else
  11001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11002. /* end confdefs.h. */
  11003. int
  11004. main ()
  11005. {
  11006. ;
  11007. return 0;
  11008. }
  11009. _ACEOF
  11010. if ac_fn_cxx_try_link "$LINENO"; then :
  11011. lt_aix_libpath_sed='
  11012. /Import File Strings/,/^$/ {
  11013. /^0/ {
  11014. s/^0 *\([^ ]*\) *$/\1/
  11015. p
  11016. }
  11017. }'
  11018. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11019. # Check for a 64-bit object if we didn't find anything.
  11020. if test -z "$lt_cv_aix_libpath__CXX"; then
  11021. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11022. fi
  11023. fi
  11024. rm -f core conftest.err conftest.$ac_objext \
  11025. conftest$ac_exeext conftest.$ac_ext
  11026. if test -z "$lt_cv_aix_libpath__CXX"; then
  11027. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11028. fi
  11029. fi
  11030. aix_libpath=$lt_cv_aix_libpath__CXX
  11031. fi
  11032. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11033. 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"
  11034. else
  11035. if test "$host_cpu" = ia64; then
  11036. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11037. allow_undefined_flag_CXX="-z nodefs"
  11038. 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"
  11039. else
  11040. # Determine the default libpath from the value encoded in an
  11041. # empty executable.
  11042. if test "${lt_cv_aix_libpath+set}" = set; then
  11043. aix_libpath=$lt_cv_aix_libpath
  11044. else
  11045. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11046. $as_echo_n "(cached) " >&6
  11047. else
  11048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11049. /* end confdefs.h. */
  11050. int
  11051. main ()
  11052. {
  11053. ;
  11054. return 0;
  11055. }
  11056. _ACEOF
  11057. if ac_fn_cxx_try_link "$LINENO"; then :
  11058. lt_aix_libpath_sed='
  11059. /Import File Strings/,/^$/ {
  11060. /^0/ {
  11061. s/^0 *\([^ ]*\) *$/\1/
  11062. p
  11063. }
  11064. }'
  11065. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11066. # Check for a 64-bit object if we didn't find anything.
  11067. if test -z "$lt_cv_aix_libpath__CXX"; then
  11068. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11069. fi
  11070. fi
  11071. rm -f core conftest.err conftest.$ac_objext \
  11072. conftest$ac_exeext conftest.$ac_ext
  11073. if test -z "$lt_cv_aix_libpath__CXX"; then
  11074. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11075. fi
  11076. fi
  11077. aix_libpath=$lt_cv_aix_libpath__CXX
  11078. fi
  11079. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11080. # Warning - without using the other run time loading flags,
  11081. # -berok will link without error, but may produce a broken library.
  11082. no_undefined_flag_CXX=' ${wl}-bernotok'
  11083. allow_undefined_flag_CXX=' ${wl}-berok'
  11084. if test "$with_gnu_ld" = yes; then
  11085. # We only use this code for GNU lds that support --whole-archive.
  11086. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11087. else
  11088. # Exported symbols can be pulled into shared objects from archives
  11089. whole_archive_flag_spec_CXX='$convenience'
  11090. fi
  11091. archive_cmds_need_lc_CXX=yes
  11092. # This is similar to how AIX traditionally builds its shared
  11093. # libraries.
  11094. 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'
  11095. fi
  11096. fi
  11097. ;;
  11098. beos*)
  11099. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11100. allow_undefined_flag_CXX=unsupported
  11101. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11102. # support --undefined. This deserves some investigation. FIXME
  11103. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11104. else
  11105. ld_shlibs_CXX=no
  11106. fi
  11107. ;;
  11108. chorus*)
  11109. case $cc_basename in
  11110. *)
  11111. # FIXME: insert proper C++ library support
  11112. ld_shlibs_CXX=no
  11113. ;;
  11114. esac
  11115. ;;
  11116. cygwin* | mingw* | pw32* | cegcc*)
  11117. case $GXX,$cc_basename in
  11118. ,cl* | no,cl*)
  11119. # Native MSVC
  11120. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11121. # no search path for DLLs.
  11122. hardcode_libdir_flag_spec_CXX=' '
  11123. allow_undefined_flag_CXX=unsupported
  11124. always_export_symbols_CXX=yes
  11125. file_list_spec_CXX='@'
  11126. # Tell ltmain to make .lib files, not .a files.
  11127. libext=lib
  11128. # Tell ltmain to make .dll files, not .so files.
  11129. shrext_cmds=".dll"
  11130. # FIXME: Setting linknames here is a bad hack.
  11131. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11132. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11133. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11134. else
  11135. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11136. fi~
  11137. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11138. linknames='
  11139. # The linker will not automatically build a static lib if we build a DLL.
  11140. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11141. enable_shared_with_static_runtimes_CXX=yes
  11142. # Don't use ranlib
  11143. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11144. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11145. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11146. case $lt_outputfile in
  11147. *.exe|*.EXE) ;;
  11148. *)
  11149. lt_outputfile="$lt_outputfile.exe"
  11150. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11151. ;;
  11152. esac~
  11153. func_to_tool_file "$lt_outputfile"~
  11154. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11155. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11156. $RM "$lt_outputfile.manifest";
  11157. fi'
  11158. ;;
  11159. *)
  11160. # g++
  11161. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11162. # as there is no search path for DLLs.
  11163. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11164. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11165. allow_undefined_flag_CXX=unsupported
  11166. always_export_symbols_CXX=no
  11167. enable_shared_with_static_runtimes_CXX=yes
  11168. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11169. 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'
  11170. # If the export-symbols file already is a .def file (1st line
  11171. # is EXPORTS), use it as is; otherwise, prepend...
  11172. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11173. cp $export_symbols $output_objdir/$soname.def;
  11174. else
  11175. echo EXPORTS > $output_objdir/$soname.def;
  11176. cat $export_symbols >> $output_objdir/$soname.def;
  11177. fi~
  11178. $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'
  11179. else
  11180. ld_shlibs_CXX=no
  11181. fi
  11182. ;;
  11183. esac
  11184. ;;
  11185. darwin* | rhapsody*)
  11186. archive_cmds_need_lc_CXX=no
  11187. hardcode_direct_CXX=no
  11188. hardcode_automatic_CXX=yes
  11189. hardcode_shlibpath_var_CXX=unsupported
  11190. if test "$lt_cv_ld_force_load" = "yes"; then
  11191. 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\"`'
  11192. else
  11193. whole_archive_flag_spec_CXX=''
  11194. fi
  11195. link_all_deplibs_CXX=yes
  11196. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11197. case $cc_basename in
  11198. ifort*) _lt_dar_can_shared=yes ;;
  11199. *) _lt_dar_can_shared=$GCC ;;
  11200. esac
  11201. if test "$_lt_dar_can_shared" = "yes"; then
  11202. output_verbose_link_cmd=func_echo_all
  11203. 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}"
  11204. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11205. 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}"
  11206. 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}"
  11207. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11208. 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}"
  11209. 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}"
  11210. fi
  11211. else
  11212. ld_shlibs_CXX=no
  11213. fi
  11214. ;;
  11215. dgux*)
  11216. case $cc_basename in
  11217. ec++*)
  11218. # FIXME: insert proper C++ library support
  11219. ld_shlibs_CXX=no
  11220. ;;
  11221. ghcx*)
  11222. # Green Hills C++ Compiler
  11223. # FIXME: insert proper C++ library support
  11224. ld_shlibs_CXX=no
  11225. ;;
  11226. *)
  11227. # FIXME: insert proper C++ library support
  11228. ld_shlibs_CXX=no
  11229. ;;
  11230. esac
  11231. ;;
  11232. freebsd2.*)
  11233. # C++ shared libraries reported to be fairly broken before
  11234. # switch to ELF
  11235. ld_shlibs_CXX=no
  11236. ;;
  11237. freebsd-elf*)
  11238. archive_cmds_need_lc_CXX=no
  11239. ;;
  11240. freebsd* | dragonfly*)
  11241. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11242. # conventions
  11243. ld_shlibs_CXX=yes
  11244. ;;
  11245. gnu*)
  11246. ;;
  11247. haiku*)
  11248. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11249. link_all_deplibs_CXX=yes
  11250. ;;
  11251. hpux9*)
  11252. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11253. hardcode_libdir_separator_CXX=:
  11254. export_dynamic_flag_spec_CXX='${wl}-E'
  11255. hardcode_direct_CXX=yes
  11256. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11257. # but as the default
  11258. # location of the library.
  11259. case $cc_basename in
  11260. CC*)
  11261. # FIXME: insert proper C++ library support
  11262. ld_shlibs_CXX=no
  11263. ;;
  11264. aCC*)
  11265. 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'
  11266. # Commands to make compiler produce verbose output that lists
  11267. # what "hidden" libraries, object files and flags are used when
  11268. # linking a shared library.
  11269. #
  11270. # There doesn't appear to be a way to prevent this compiler from
  11271. # explicitly linking system object files so we need to strip them
  11272. # from the output so that they don't get included in the library
  11273. # dependencies.
  11274. 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"'
  11275. ;;
  11276. *)
  11277. if test "$GXX" = yes; then
  11278. 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'
  11279. else
  11280. # FIXME: insert proper C++ library support
  11281. ld_shlibs_CXX=no
  11282. fi
  11283. ;;
  11284. esac
  11285. ;;
  11286. hpux10*|hpux11*)
  11287. if test $with_gnu_ld = no; then
  11288. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11289. hardcode_libdir_separator_CXX=:
  11290. case $host_cpu in
  11291. hppa*64*|ia64*)
  11292. ;;
  11293. *)
  11294. export_dynamic_flag_spec_CXX='${wl}-E'
  11295. ;;
  11296. esac
  11297. fi
  11298. case $host_cpu in
  11299. hppa*64*|ia64*)
  11300. hardcode_direct_CXX=no
  11301. hardcode_shlibpath_var_CXX=no
  11302. ;;
  11303. *)
  11304. hardcode_direct_CXX=yes
  11305. hardcode_direct_absolute_CXX=yes
  11306. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11307. # but as the default
  11308. # location of the library.
  11309. ;;
  11310. esac
  11311. case $cc_basename in
  11312. CC*)
  11313. # FIXME: insert proper C++ library support
  11314. ld_shlibs_CXX=no
  11315. ;;
  11316. aCC*)
  11317. case $host_cpu in
  11318. hppa*64*)
  11319. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11320. ;;
  11321. ia64*)
  11322. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11323. ;;
  11324. *)
  11325. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11326. ;;
  11327. esac
  11328. # Commands to make compiler produce verbose output that lists
  11329. # what "hidden" libraries, object files and flags are used when
  11330. # linking a shared library.
  11331. #
  11332. # There doesn't appear to be a way to prevent this compiler from
  11333. # explicitly linking system object files so we need to strip them
  11334. # from the output so that they don't get included in the library
  11335. # dependencies.
  11336. 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"'
  11337. ;;
  11338. *)
  11339. if test "$GXX" = yes; then
  11340. if test $with_gnu_ld = no; then
  11341. case $host_cpu in
  11342. hppa*64*)
  11343. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11344. ;;
  11345. ia64*)
  11346. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11347. ;;
  11348. *)
  11349. 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'
  11350. ;;
  11351. esac
  11352. fi
  11353. else
  11354. # FIXME: insert proper C++ library support
  11355. ld_shlibs_CXX=no
  11356. fi
  11357. ;;
  11358. esac
  11359. ;;
  11360. interix[3-9]*)
  11361. hardcode_direct_CXX=no
  11362. hardcode_shlibpath_var_CXX=no
  11363. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11364. export_dynamic_flag_spec_CXX='${wl}-E'
  11365. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11366. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11367. # default) and relocated if they conflict, which is a slow very memory
  11368. # consuming and fragmenting process. To avoid this, we pick a random,
  11369. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11370. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11371. 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'
  11372. 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'
  11373. ;;
  11374. irix5* | irix6*)
  11375. case $cc_basename in
  11376. CC*)
  11377. # SGI C++
  11378. 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'
  11379. # Archives containing C++ object files must be created using
  11380. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11381. # necessary to make sure instantiated templates are included
  11382. # in the archive.
  11383. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11384. ;;
  11385. *)
  11386. if test "$GXX" = yes; then
  11387. if test "$with_gnu_ld" = no; then
  11388. 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'
  11389. else
  11390. 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'
  11391. fi
  11392. fi
  11393. link_all_deplibs_CXX=yes
  11394. ;;
  11395. esac
  11396. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11397. hardcode_libdir_separator_CXX=:
  11398. inherit_rpath_CXX=yes
  11399. ;;
  11400. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11401. case $cc_basename in
  11402. KCC*)
  11403. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11404. # KCC will only create a shared library if the output file
  11405. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11406. # to its proper name (with version) after linking.
  11407. 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'
  11408. 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'
  11409. # Commands to make compiler produce verbose output that lists
  11410. # what "hidden" libraries, object files and flags are used when
  11411. # linking a shared library.
  11412. #
  11413. # There doesn't appear to be a way to prevent this compiler from
  11414. # explicitly linking system object files so we need to strip them
  11415. # from the output so that they don't get included in the library
  11416. # dependencies.
  11417. 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"'
  11418. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11419. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11420. # Archives containing C++ object files must be created using
  11421. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11422. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11423. ;;
  11424. icpc* | ecpc* )
  11425. # Intel C++
  11426. with_gnu_ld=yes
  11427. # version 8.0 and above of icpc choke on multiply defined symbols
  11428. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11429. # earlier do not add the objects themselves.
  11430. case `$CC -V 2>&1` in
  11431. *"Version 7."*)
  11432. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11433. 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'
  11434. ;;
  11435. *) # Version 8.0 or newer
  11436. tmp_idyn=
  11437. case $host_cpu in
  11438. ia64*) tmp_idyn=' -i_dynamic';;
  11439. esac
  11440. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11441. 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'
  11442. ;;
  11443. esac
  11444. archive_cmds_need_lc_CXX=no
  11445. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11446. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11447. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11448. ;;
  11449. pgCC* | pgcpp*)
  11450. # Portland Group C++ compiler
  11451. case `$CC -V` in
  11452. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11453. prelink_cmds_CXX='tpldir=Template.dir~
  11454. rm -rf $tpldir~
  11455. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11456. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11457. old_archive_cmds_CXX='tpldir=Template.dir~
  11458. rm -rf $tpldir~
  11459. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11460. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11461. $RANLIB $oldlib'
  11462. archive_cmds_CXX='tpldir=Template.dir~
  11463. rm -rf $tpldir~
  11464. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11465. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11466. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11467. rm -rf $tpldir~
  11468. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11469. $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'
  11470. ;;
  11471. *) # Version 6 and above use weak symbols
  11472. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11473. 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'
  11474. ;;
  11475. esac
  11476. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11477. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11478. 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'
  11479. ;;
  11480. cxx*)
  11481. # Compaq C++
  11482. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11483. 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'
  11484. runpath_var=LD_RUN_PATH
  11485. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11486. hardcode_libdir_separator_CXX=:
  11487. # Commands to make compiler produce verbose output that lists
  11488. # what "hidden" libraries, object files and flags are used when
  11489. # linking a shared library.
  11490. #
  11491. # There doesn't appear to be a way to prevent this compiler from
  11492. # explicitly linking system object files so we need to strip them
  11493. # from the output so that they don't get included in the library
  11494. # dependencies.
  11495. 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'
  11496. ;;
  11497. xl* | mpixl* | bgxl*)
  11498. # IBM XL 8.0 on PPC, with GNU ld
  11499. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11500. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11501. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11502. if test "x$supports_anon_versioning" = xyes; then
  11503. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11504. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11505. echo "local: *; };" >> $output_objdir/$libname.ver~
  11506. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11507. fi
  11508. ;;
  11509. *)
  11510. case `$CC -V 2>&1 | sed 5q` in
  11511. *Sun\ C*)
  11512. # Sun C++ 5.9
  11513. no_undefined_flag_CXX=' -zdefs'
  11514. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11515. 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'
  11516. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11517. 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'
  11518. compiler_needs_object_CXX=yes
  11519. # Not sure whether something based on
  11520. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11521. # would be better.
  11522. output_verbose_link_cmd='func_echo_all'
  11523. # Archives containing C++ object files must be created using
  11524. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11525. # necessary to make sure instantiated templates are included
  11526. # in the archive.
  11527. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11528. ;;
  11529. esac
  11530. ;;
  11531. esac
  11532. ;;
  11533. lynxos*)
  11534. # FIXME: insert proper C++ library support
  11535. ld_shlibs_CXX=no
  11536. ;;
  11537. m88k*)
  11538. # FIXME: insert proper C++ library support
  11539. ld_shlibs_CXX=no
  11540. ;;
  11541. mvs*)
  11542. case $cc_basename in
  11543. cxx*)
  11544. # FIXME: insert proper C++ library support
  11545. ld_shlibs_CXX=no
  11546. ;;
  11547. *)
  11548. # FIXME: insert proper C++ library support
  11549. ld_shlibs_CXX=no
  11550. ;;
  11551. esac
  11552. ;;
  11553. netbsd*)
  11554. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11555. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11556. wlarc=
  11557. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11558. hardcode_direct_CXX=yes
  11559. hardcode_shlibpath_var_CXX=no
  11560. fi
  11561. # Workaround some broken pre-1.5 toolchains
  11562. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11563. ;;
  11564. *nto* | *qnx*)
  11565. ld_shlibs_CXX=yes
  11566. ;;
  11567. openbsd2*)
  11568. # C++ shared libraries are fairly broken
  11569. ld_shlibs_CXX=no
  11570. ;;
  11571. openbsd*)
  11572. if test -f /usr/libexec/ld.so; then
  11573. hardcode_direct_CXX=yes
  11574. hardcode_shlibpath_var_CXX=no
  11575. hardcode_direct_absolute_CXX=yes
  11576. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11577. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11578. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11579. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11580. export_dynamic_flag_spec_CXX='${wl}-E'
  11581. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11582. fi
  11583. output_verbose_link_cmd=func_echo_all
  11584. else
  11585. ld_shlibs_CXX=no
  11586. fi
  11587. ;;
  11588. osf3* | osf4* | osf5*)
  11589. case $cc_basename in
  11590. KCC*)
  11591. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11592. # KCC will only create a shared library if the output file
  11593. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11594. # to its proper name (with version) after linking.
  11595. 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'
  11596. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11597. hardcode_libdir_separator_CXX=:
  11598. # Archives containing C++ object files must be created using
  11599. # the KAI C++ compiler.
  11600. case $host in
  11601. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11602. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11603. esac
  11604. ;;
  11605. RCC*)
  11606. # Rational C++ 2.4.1
  11607. # FIXME: insert proper C++ library support
  11608. ld_shlibs_CXX=no
  11609. ;;
  11610. cxx*)
  11611. case $host in
  11612. osf3*)
  11613. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11614. 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'
  11615. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11616. ;;
  11617. *)
  11618. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11619. 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'
  11620. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11621. echo "-hidden">> $lib.exp~
  11622. $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~
  11623. $RM $lib.exp'
  11624. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11625. ;;
  11626. esac
  11627. hardcode_libdir_separator_CXX=:
  11628. # Commands to make compiler produce verbose output that lists
  11629. # what "hidden" libraries, object files and flags are used when
  11630. # linking a shared library.
  11631. #
  11632. # There doesn't appear to be a way to prevent this compiler from
  11633. # explicitly linking system object files so we need to strip them
  11634. # from the output so that they don't get included in the library
  11635. # dependencies.
  11636. 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"'
  11637. ;;
  11638. *)
  11639. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11640. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11641. case $host in
  11642. osf3*)
  11643. 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'
  11644. ;;
  11645. *)
  11646. 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'
  11647. ;;
  11648. esac
  11649. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11650. hardcode_libdir_separator_CXX=:
  11651. # Commands to make compiler produce verbose output that lists
  11652. # what "hidden" libraries, object files and flags are used when
  11653. # linking a shared library.
  11654. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11655. else
  11656. # FIXME: insert proper C++ library support
  11657. ld_shlibs_CXX=no
  11658. fi
  11659. ;;
  11660. esac
  11661. ;;
  11662. psos*)
  11663. # FIXME: insert proper C++ library support
  11664. ld_shlibs_CXX=no
  11665. ;;
  11666. sunos4*)
  11667. case $cc_basename in
  11668. CC*)
  11669. # Sun C++ 4.x
  11670. # FIXME: insert proper C++ library support
  11671. ld_shlibs_CXX=no
  11672. ;;
  11673. lcc*)
  11674. # Lucid
  11675. # FIXME: insert proper C++ library support
  11676. ld_shlibs_CXX=no
  11677. ;;
  11678. *)
  11679. # FIXME: insert proper C++ library support
  11680. ld_shlibs_CXX=no
  11681. ;;
  11682. esac
  11683. ;;
  11684. solaris*)
  11685. case $cc_basename in
  11686. CC* | sunCC*)
  11687. # Sun C++ 4.2, 5.x and Centerline C++
  11688. archive_cmds_need_lc_CXX=yes
  11689. no_undefined_flag_CXX=' -zdefs'
  11690. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11691. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11692. $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'
  11693. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11694. hardcode_shlibpath_var_CXX=no
  11695. case $host_os in
  11696. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11697. *)
  11698. # The compiler driver will combine and reorder linker options,
  11699. # but understands `-z linker_flag'.
  11700. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11701. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11702. ;;
  11703. esac
  11704. link_all_deplibs_CXX=yes
  11705. output_verbose_link_cmd='func_echo_all'
  11706. # Archives containing C++ object files must be created using
  11707. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11708. # necessary to make sure instantiated templates are included
  11709. # in the archive.
  11710. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11711. ;;
  11712. gcx*)
  11713. # Green Hills C++ Compiler
  11714. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11715. # The C++ compiler must be used to create the archive.
  11716. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11717. ;;
  11718. *)
  11719. # GNU C++ compiler with Solaris linker
  11720. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11721. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11722. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11723. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11724. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11725. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11726. # Commands to make compiler produce verbose output that lists
  11727. # what "hidden" libraries, object files and flags are used when
  11728. # linking a shared library.
  11729. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11730. else
  11731. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11732. # platform.
  11733. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11734. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11735. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11736. # Commands to make compiler produce verbose output that lists
  11737. # what "hidden" libraries, object files and flags are used when
  11738. # linking a shared library.
  11739. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11740. fi
  11741. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11742. case $host_os in
  11743. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11744. *)
  11745. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11746. ;;
  11747. esac
  11748. fi
  11749. ;;
  11750. esac
  11751. ;;
  11752. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11753. no_undefined_flag_CXX='${wl}-z,text'
  11754. archive_cmds_need_lc_CXX=no
  11755. hardcode_shlibpath_var_CXX=no
  11756. runpath_var='LD_RUN_PATH'
  11757. case $cc_basename in
  11758. CC*)
  11759. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11760. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11761. ;;
  11762. *)
  11763. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11764. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11765. ;;
  11766. esac
  11767. ;;
  11768. sysv5* | sco3.2v5* | sco5v6*)
  11769. # Note: We can NOT use -z defs as we might desire, because we do not
  11770. # link with -lc, and that would cause any symbols used from libc to
  11771. # always be unresolved, which means just about no library would
  11772. # ever link correctly. If we're not using GNU ld we use -z text
  11773. # though, which does catch some bad symbols but isn't as heavy-handed
  11774. # as -z defs.
  11775. no_undefined_flag_CXX='${wl}-z,text'
  11776. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11777. archive_cmds_need_lc_CXX=no
  11778. hardcode_shlibpath_var_CXX=no
  11779. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11780. hardcode_libdir_separator_CXX=':'
  11781. link_all_deplibs_CXX=yes
  11782. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11783. runpath_var='LD_RUN_PATH'
  11784. case $cc_basename in
  11785. CC*)
  11786. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11787. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11788. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11789. '"$old_archive_cmds_CXX"
  11790. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11791. '"$reload_cmds_CXX"
  11792. ;;
  11793. *)
  11794. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11795. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11796. ;;
  11797. esac
  11798. ;;
  11799. tandem*)
  11800. case $cc_basename in
  11801. NCC*)
  11802. # NonStop-UX NCC 3.20
  11803. # FIXME: insert proper C++ library support
  11804. ld_shlibs_CXX=no
  11805. ;;
  11806. *)
  11807. # FIXME: insert proper C++ library support
  11808. ld_shlibs_CXX=no
  11809. ;;
  11810. esac
  11811. ;;
  11812. vxworks*)
  11813. # FIXME: insert proper C++ library support
  11814. ld_shlibs_CXX=no
  11815. ;;
  11816. *)
  11817. # FIXME: insert proper C++ library support
  11818. ld_shlibs_CXX=no
  11819. ;;
  11820. esac
  11821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11822. $as_echo "$ld_shlibs_CXX" >&6; }
  11823. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11824. GCC_CXX="$GXX"
  11825. LD_CXX="$LD"
  11826. ## CAVEAT EMPTOR:
  11827. ## There is no encapsulation within the following macros, do not change
  11828. ## the running order or otherwise move them around unless you know exactly
  11829. ## what you are doing...
  11830. # Dependencies to place before and after the object being linked:
  11831. predep_objects_CXX=
  11832. postdep_objects_CXX=
  11833. predeps_CXX=
  11834. postdeps_CXX=
  11835. compiler_lib_search_path_CXX=
  11836. cat > conftest.$ac_ext <<_LT_EOF
  11837. class Foo
  11838. {
  11839. public:
  11840. Foo (void) { a = 0; }
  11841. private:
  11842. int a;
  11843. };
  11844. _LT_EOF
  11845. _lt_libdeps_save_CFLAGS=$CFLAGS
  11846. case "$CC $CFLAGS " in #(
  11847. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11848. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11849. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11850. esac
  11851. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11852. (eval $ac_compile) 2>&5
  11853. ac_status=$?
  11854. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11855. test $ac_status = 0; }; then
  11856. # Parse the compiler output and extract the necessary
  11857. # objects, libraries and library flags.
  11858. # Sentinel used to keep track of whether or not we are before
  11859. # the conftest object file.
  11860. pre_test_object_deps_done=no
  11861. for p in `eval "$output_verbose_link_cmd"`; do
  11862. case ${prev}${p} in
  11863. -L* | -R* | -l*)
  11864. # Some compilers place space between "-{L,R}" and the path.
  11865. # Remove the space.
  11866. if test $p = "-L" ||
  11867. test $p = "-R"; then
  11868. prev=$p
  11869. continue
  11870. fi
  11871. # Expand the sysroot to ease extracting the directories later.
  11872. if test -z "$prev"; then
  11873. case $p in
  11874. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11875. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11876. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11877. esac
  11878. fi
  11879. case $p in
  11880. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11881. esac
  11882. if test "$pre_test_object_deps_done" = no; then
  11883. case ${prev} in
  11884. -L | -R)
  11885. # Internal compiler library paths should come after those
  11886. # provided the user. The postdeps already come after the
  11887. # user supplied libs so there is no need to process them.
  11888. if test -z "$compiler_lib_search_path_CXX"; then
  11889. compiler_lib_search_path_CXX="${prev}${p}"
  11890. else
  11891. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11892. fi
  11893. ;;
  11894. # The "-l" case would never come before the object being
  11895. # linked, so don't bother handling this case.
  11896. esac
  11897. else
  11898. if test -z "$postdeps_CXX"; then
  11899. postdeps_CXX="${prev}${p}"
  11900. else
  11901. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11902. fi
  11903. fi
  11904. prev=
  11905. ;;
  11906. *.lto.$objext) ;; # Ignore GCC LTO objects
  11907. *.$objext)
  11908. # This assumes that the test object file only shows up
  11909. # once in the compiler output.
  11910. if test "$p" = "conftest.$objext"; then
  11911. pre_test_object_deps_done=yes
  11912. continue
  11913. fi
  11914. if test "$pre_test_object_deps_done" = no; then
  11915. if test -z "$predep_objects_CXX"; then
  11916. predep_objects_CXX="$p"
  11917. else
  11918. predep_objects_CXX="$predep_objects_CXX $p"
  11919. fi
  11920. else
  11921. if test -z "$postdep_objects_CXX"; then
  11922. postdep_objects_CXX="$p"
  11923. else
  11924. postdep_objects_CXX="$postdep_objects_CXX $p"
  11925. fi
  11926. fi
  11927. ;;
  11928. *) ;; # Ignore the rest.
  11929. esac
  11930. done
  11931. # Clean up.
  11932. rm -f a.out a.exe
  11933. else
  11934. echo "libtool.m4: error: problem compiling CXX test program"
  11935. fi
  11936. $RM -f confest.$objext
  11937. CFLAGS=$_lt_libdeps_save_CFLAGS
  11938. # PORTME: override above test on systems where it is broken
  11939. case $host_os in
  11940. interix[3-9]*)
  11941. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11942. # hack all around it, let's just trust "g++" to DTRT.
  11943. predep_objects_CXX=
  11944. postdep_objects_CXX=
  11945. postdeps_CXX=
  11946. ;;
  11947. linux*)
  11948. case `$CC -V 2>&1 | sed 5q` in
  11949. *Sun\ C*)
  11950. # Sun C++ 5.9
  11951. # The more standards-conforming stlport4 library is
  11952. # incompatible with the Cstd library. Avoid specifying
  11953. # it if it's in CXXFLAGS. Ignore libCrun as
  11954. # -library=stlport4 depends on it.
  11955. case " $CXX $CXXFLAGS " in
  11956. *" -library=stlport4 "*)
  11957. solaris_use_stlport4=yes
  11958. ;;
  11959. esac
  11960. if test "$solaris_use_stlport4" != yes; then
  11961. postdeps_CXX='-library=Cstd -library=Crun'
  11962. fi
  11963. ;;
  11964. esac
  11965. ;;
  11966. solaris*)
  11967. case $cc_basename in
  11968. CC* | sunCC*)
  11969. # The more standards-conforming stlport4 library is
  11970. # incompatible with the Cstd library. Avoid specifying
  11971. # it if it's in CXXFLAGS. Ignore libCrun as
  11972. # -library=stlport4 depends on it.
  11973. case " $CXX $CXXFLAGS " in
  11974. *" -library=stlport4 "*)
  11975. solaris_use_stlport4=yes
  11976. ;;
  11977. esac
  11978. # Adding this requires a known-good setup of shared libraries for
  11979. # Sun compiler versions before 5.6, else PIC objects from an old
  11980. # archive will be linked into the output, leading to subtle bugs.
  11981. if test "$solaris_use_stlport4" != yes; then
  11982. postdeps_CXX='-library=Cstd -library=Crun'
  11983. fi
  11984. ;;
  11985. esac
  11986. ;;
  11987. esac
  11988. case " $postdeps_CXX " in
  11989. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11990. esac
  11991. compiler_lib_search_dirs_CXX=
  11992. if test -n "${compiler_lib_search_path_CXX}"; then
  11993. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11994. fi
  11995. lt_prog_compiler_wl_CXX=
  11996. lt_prog_compiler_pic_CXX=
  11997. lt_prog_compiler_static_CXX=
  11998. # C++ specific cases for pic, static, wl, etc.
  11999. if test "$GXX" = yes; then
  12000. lt_prog_compiler_wl_CXX='-Wl,'
  12001. lt_prog_compiler_static_CXX='-static'
  12002. case $host_os in
  12003. aix*)
  12004. # All AIX code is PIC.
  12005. if test "$host_cpu" = ia64; then
  12006. # AIX 5 now supports IA64 processor
  12007. lt_prog_compiler_static_CXX='-Bstatic'
  12008. fi
  12009. ;;
  12010. amigaos*)
  12011. case $host_cpu in
  12012. powerpc)
  12013. # see comment about AmigaOS4 .so support
  12014. lt_prog_compiler_pic_CXX='-fPIC'
  12015. ;;
  12016. m68k)
  12017. # FIXME: we need at least 68020 code to build shared libraries, but
  12018. # adding the `-m68020' flag to GCC prevents building anything better,
  12019. # like `-m68040'.
  12020. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12021. ;;
  12022. esac
  12023. ;;
  12024. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12025. # PIC is the default for these OSes.
  12026. ;;
  12027. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12028. # This hack is so that the source file can tell whether it is being
  12029. # built for inclusion in a dll (and should export symbols for example).
  12030. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12031. # (--disable-auto-import) libraries
  12032. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12033. ;;
  12034. darwin* | rhapsody*)
  12035. # PIC is the default on this platform
  12036. # Common symbols not allowed in MH_DYLIB files
  12037. lt_prog_compiler_pic_CXX='-fno-common'
  12038. ;;
  12039. *djgpp*)
  12040. # DJGPP does not support shared libraries at all
  12041. lt_prog_compiler_pic_CXX=
  12042. ;;
  12043. haiku*)
  12044. # PIC is the default for Haiku.
  12045. # The "-static" flag exists, but is broken.
  12046. lt_prog_compiler_static_CXX=
  12047. ;;
  12048. interix[3-9]*)
  12049. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12050. # Instead, we relocate shared libraries at runtime.
  12051. ;;
  12052. sysv4*MP*)
  12053. if test -d /usr/nec; then
  12054. lt_prog_compiler_pic_CXX=-Kconform_pic
  12055. fi
  12056. ;;
  12057. hpux*)
  12058. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12059. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12060. # sets the default TLS model and affects inlining.
  12061. case $host_cpu in
  12062. hppa*64*)
  12063. ;;
  12064. *)
  12065. lt_prog_compiler_pic_CXX='-fPIC'
  12066. ;;
  12067. esac
  12068. ;;
  12069. *qnx* | *nto*)
  12070. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12071. # it will coredump.
  12072. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12073. ;;
  12074. *)
  12075. lt_prog_compiler_pic_CXX='-fPIC'
  12076. ;;
  12077. esac
  12078. else
  12079. case $host_os in
  12080. aix[4-9]*)
  12081. # All AIX code is PIC.
  12082. if test "$host_cpu" = ia64; then
  12083. # AIX 5 now supports IA64 processor
  12084. lt_prog_compiler_static_CXX='-Bstatic'
  12085. else
  12086. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12087. fi
  12088. ;;
  12089. chorus*)
  12090. case $cc_basename in
  12091. cxch68*)
  12092. # Green Hills C++ Compiler
  12093. # _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"
  12094. ;;
  12095. esac
  12096. ;;
  12097. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12098. # This hack is so that the source file can tell whether it is being
  12099. # built for inclusion in a dll (and should export symbols for example).
  12100. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12101. ;;
  12102. dgux*)
  12103. case $cc_basename in
  12104. ec++*)
  12105. lt_prog_compiler_pic_CXX='-KPIC'
  12106. ;;
  12107. ghcx*)
  12108. # Green Hills C++ Compiler
  12109. lt_prog_compiler_pic_CXX='-pic'
  12110. ;;
  12111. *)
  12112. ;;
  12113. esac
  12114. ;;
  12115. freebsd* | dragonfly*)
  12116. # FreeBSD uses GNU C++
  12117. ;;
  12118. hpux9* | hpux10* | hpux11*)
  12119. case $cc_basename in
  12120. CC*)
  12121. lt_prog_compiler_wl_CXX='-Wl,'
  12122. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12123. if test "$host_cpu" != ia64; then
  12124. lt_prog_compiler_pic_CXX='+Z'
  12125. fi
  12126. ;;
  12127. aCC*)
  12128. lt_prog_compiler_wl_CXX='-Wl,'
  12129. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12130. case $host_cpu in
  12131. hppa*64*|ia64*)
  12132. # +Z the default
  12133. ;;
  12134. *)
  12135. lt_prog_compiler_pic_CXX='+Z'
  12136. ;;
  12137. esac
  12138. ;;
  12139. *)
  12140. ;;
  12141. esac
  12142. ;;
  12143. interix*)
  12144. # This is c89, which is MS Visual C++ (no shared libs)
  12145. # Anyone wants to do a port?
  12146. ;;
  12147. irix5* | irix6* | nonstopux*)
  12148. case $cc_basename in
  12149. CC*)
  12150. lt_prog_compiler_wl_CXX='-Wl,'
  12151. lt_prog_compiler_static_CXX='-non_shared'
  12152. # CC pic flag -KPIC is the default.
  12153. ;;
  12154. *)
  12155. ;;
  12156. esac
  12157. ;;
  12158. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12159. case $cc_basename in
  12160. KCC*)
  12161. # KAI C++ Compiler
  12162. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12163. lt_prog_compiler_pic_CXX='-fPIC'
  12164. ;;
  12165. ecpc* )
  12166. # old Intel C++ for x86_64 which still supported -KPIC.
  12167. lt_prog_compiler_wl_CXX='-Wl,'
  12168. lt_prog_compiler_pic_CXX='-KPIC'
  12169. lt_prog_compiler_static_CXX='-static'
  12170. ;;
  12171. icpc* )
  12172. # Intel C++, used to be incompatible with GCC.
  12173. # ICC 10 doesn't accept -KPIC any more.
  12174. lt_prog_compiler_wl_CXX='-Wl,'
  12175. lt_prog_compiler_pic_CXX='-fPIC'
  12176. lt_prog_compiler_static_CXX='-static'
  12177. ;;
  12178. pgCC* | pgcpp*)
  12179. # Portland Group C++ compiler
  12180. lt_prog_compiler_wl_CXX='-Wl,'
  12181. lt_prog_compiler_pic_CXX='-fpic'
  12182. lt_prog_compiler_static_CXX='-Bstatic'
  12183. ;;
  12184. cxx*)
  12185. # Compaq C++
  12186. # Make sure the PIC flag is empty. It appears that all Alpha
  12187. # Linux and Compaq Tru64 Unix objects are PIC.
  12188. lt_prog_compiler_pic_CXX=
  12189. lt_prog_compiler_static_CXX='-non_shared'
  12190. ;;
  12191. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12192. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12193. lt_prog_compiler_wl_CXX='-Wl,'
  12194. lt_prog_compiler_pic_CXX='-qpic'
  12195. lt_prog_compiler_static_CXX='-qstaticlink'
  12196. ;;
  12197. *)
  12198. case `$CC -V 2>&1 | sed 5q` in
  12199. *Sun\ C*)
  12200. # Sun C++ 5.9
  12201. lt_prog_compiler_pic_CXX='-KPIC'
  12202. lt_prog_compiler_static_CXX='-Bstatic'
  12203. lt_prog_compiler_wl_CXX='-Qoption ld '
  12204. ;;
  12205. esac
  12206. ;;
  12207. esac
  12208. ;;
  12209. lynxos*)
  12210. ;;
  12211. m88k*)
  12212. ;;
  12213. mvs*)
  12214. case $cc_basename in
  12215. cxx*)
  12216. lt_prog_compiler_pic_CXX='-W c,exportall'
  12217. ;;
  12218. *)
  12219. ;;
  12220. esac
  12221. ;;
  12222. netbsd*)
  12223. ;;
  12224. *qnx* | *nto*)
  12225. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12226. # it will coredump.
  12227. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12228. ;;
  12229. osf3* | osf4* | osf5*)
  12230. case $cc_basename in
  12231. KCC*)
  12232. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12233. ;;
  12234. RCC*)
  12235. # Rational C++ 2.4.1
  12236. lt_prog_compiler_pic_CXX='-pic'
  12237. ;;
  12238. cxx*)
  12239. # Digital/Compaq C++
  12240. lt_prog_compiler_wl_CXX='-Wl,'
  12241. # Make sure the PIC flag is empty. It appears that all Alpha
  12242. # Linux and Compaq Tru64 Unix objects are PIC.
  12243. lt_prog_compiler_pic_CXX=
  12244. lt_prog_compiler_static_CXX='-non_shared'
  12245. ;;
  12246. *)
  12247. ;;
  12248. esac
  12249. ;;
  12250. psos*)
  12251. ;;
  12252. solaris*)
  12253. case $cc_basename in
  12254. CC* | sunCC*)
  12255. # Sun C++ 4.2, 5.x and Centerline C++
  12256. lt_prog_compiler_pic_CXX='-KPIC'
  12257. lt_prog_compiler_static_CXX='-Bstatic'
  12258. lt_prog_compiler_wl_CXX='-Qoption ld '
  12259. ;;
  12260. gcx*)
  12261. # Green Hills C++ Compiler
  12262. lt_prog_compiler_pic_CXX='-PIC'
  12263. ;;
  12264. *)
  12265. ;;
  12266. esac
  12267. ;;
  12268. sunos4*)
  12269. case $cc_basename in
  12270. CC*)
  12271. # Sun C++ 4.x
  12272. lt_prog_compiler_pic_CXX='-pic'
  12273. lt_prog_compiler_static_CXX='-Bstatic'
  12274. ;;
  12275. lcc*)
  12276. # Lucid
  12277. lt_prog_compiler_pic_CXX='-pic'
  12278. ;;
  12279. *)
  12280. ;;
  12281. esac
  12282. ;;
  12283. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12284. case $cc_basename in
  12285. CC*)
  12286. lt_prog_compiler_wl_CXX='-Wl,'
  12287. lt_prog_compiler_pic_CXX='-KPIC'
  12288. lt_prog_compiler_static_CXX='-Bstatic'
  12289. ;;
  12290. esac
  12291. ;;
  12292. tandem*)
  12293. case $cc_basename in
  12294. NCC*)
  12295. # NonStop-UX NCC 3.20
  12296. lt_prog_compiler_pic_CXX='-KPIC'
  12297. ;;
  12298. *)
  12299. ;;
  12300. esac
  12301. ;;
  12302. vxworks*)
  12303. ;;
  12304. *)
  12305. lt_prog_compiler_can_build_shared_CXX=no
  12306. ;;
  12307. esac
  12308. fi
  12309. case $host_os in
  12310. # For platforms which do not support PIC, -DPIC is meaningless:
  12311. *djgpp*)
  12312. lt_prog_compiler_pic_CXX=
  12313. ;;
  12314. *)
  12315. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12316. ;;
  12317. esac
  12318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12319. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12320. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12321. $as_echo_n "(cached) " >&6
  12322. else
  12323. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12324. fi
  12325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12326. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12327. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12328. #
  12329. # Check to make sure the PIC flag actually works.
  12330. #
  12331. if test -n "$lt_prog_compiler_pic_CXX"; then
  12332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12333. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12334. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12335. $as_echo_n "(cached) " >&6
  12336. else
  12337. lt_cv_prog_compiler_pic_works_CXX=no
  12338. ac_outfile=conftest.$ac_objext
  12339. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12340. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12341. # Insert the option either (1) after the last *FLAGS variable, or
  12342. # (2) before a word containing "conftest.", or (3) at the end.
  12343. # Note that $ac_compile itself does not contain backslashes and begins
  12344. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12345. # The option is referenced via a variable to avoid confusing sed.
  12346. lt_compile=`echo "$ac_compile" | $SED \
  12347. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12348. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12349. -e 's:$: $lt_compiler_flag:'`
  12350. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12351. (eval "$lt_compile" 2>conftest.err)
  12352. ac_status=$?
  12353. cat conftest.err >&5
  12354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12355. if (exit $ac_status) && test -s "$ac_outfile"; then
  12356. # The compiler can only warn and ignore the option if not recognized
  12357. # So say no if there are warnings other than the usual output.
  12358. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12359. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12360. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12361. lt_cv_prog_compiler_pic_works_CXX=yes
  12362. fi
  12363. fi
  12364. $RM conftest*
  12365. fi
  12366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12367. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12368. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12369. case $lt_prog_compiler_pic_CXX in
  12370. "" | " "*) ;;
  12371. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12372. esac
  12373. else
  12374. lt_prog_compiler_pic_CXX=
  12375. lt_prog_compiler_can_build_shared_CXX=no
  12376. fi
  12377. fi
  12378. #
  12379. # Check to make sure the static flag actually works.
  12380. #
  12381. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12383. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12384. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12385. $as_echo_n "(cached) " >&6
  12386. else
  12387. lt_cv_prog_compiler_static_works_CXX=no
  12388. save_LDFLAGS="$LDFLAGS"
  12389. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12390. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12391. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12392. # The linker can only warn and ignore the option if not recognized
  12393. # So say no if there are warnings
  12394. if test -s conftest.err; then
  12395. # Append any errors to the config.log.
  12396. cat conftest.err 1>&5
  12397. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12398. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12399. if diff conftest.exp conftest.er2 >/dev/null; then
  12400. lt_cv_prog_compiler_static_works_CXX=yes
  12401. fi
  12402. else
  12403. lt_cv_prog_compiler_static_works_CXX=yes
  12404. fi
  12405. fi
  12406. $RM -r conftest*
  12407. LDFLAGS="$save_LDFLAGS"
  12408. fi
  12409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12410. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12411. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12412. :
  12413. else
  12414. lt_prog_compiler_static_CXX=
  12415. fi
  12416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12417. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12418. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12419. $as_echo_n "(cached) " >&6
  12420. else
  12421. lt_cv_prog_compiler_c_o_CXX=no
  12422. $RM -r conftest 2>/dev/null
  12423. mkdir conftest
  12424. cd conftest
  12425. mkdir out
  12426. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12427. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12428. # Insert the option either (1) after the last *FLAGS variable, or
  12429. # (2) before a word containing "conftest.", or (3) at the end.
  12430. # Note that $ac_compile itself does not contain backslashes and begins
  12431. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12432. lt_compile=`echo "$ac_compile" | $SED \
  12433. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12434. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12435. -e 's:$: $lt_compiler_flag:'`
  12436. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12437. (eval "$lt_compile" 2>out/conftest.err)
  12438. ac_status=$?
  12439. cat out/conftest.err >&5
  12440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12441. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12442. then
  12443. # The compiler can only warn and ignore the option if not recognized
  12444. # So say no if there are warnings
  12445. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12446. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12447. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12448. lt_cv_prog_compiler_c_o_CXX=yes
  12449. fi
  12450. fi
  12451. chmod u+w . 2>&5
  12452. $RM conftest*
  12453. # SGI C++ compiler will create directory out/ii_files/ for
  12454. # template instantiation
  12455. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12456. $RM out/* && rmdir out
  12457. cd ..
  12458. $RM -r conftest
  12459. $RM conftest*
  12460. fi
  12461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12462. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12464. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12465. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12466. $as_echo_n "(cached) " >&6
  12467. else
  12468. lt_cv_prog_compiler_c_o_CXX=no
  12469. $RM -r conftest 2>/dev/null
  12470. mkdir conftest
  12471. cd conftest
  12472. mkdir out
  12473. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12474. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12475. # Insert the option either (1) after the last *FLAGS variable, or
  12476. # (2) before a word containing "conftest.", or (3) at the end.
  12477. # Note that $ac_compile itself does not contain backslashes and begins
  12478. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12479. lt_compile=`echo "$ac_compile" | $SED \
  12480. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12481. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12482. -e 's:$: $lt_compiler_flag:'`
  12483. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12484. (eval "$lt_compile" 2>out/conftest.err)
  12485. ac_status=$?
  12486. cat out/conftest.err >&5
  12487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12488. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12489. then
  12490. # The compiler can only warn and ignore the option if not recognized
  12491. # So say no if there are warnings
  12492. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12493. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12494. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12495. lt_cv_prog_compiler_c_o_CXX=yes
  12496. fi
  12497. fi
  12498. chmod u+w . 2>&5
  12499. $RM conftest*
  12500. # SGI C++ compiler will create directory out/ii_files/ for
  12501. # template instantiation
  12502. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12503. $RM out/* && rmdir out
  12504. cd ..
  12505. $RM -r conftest
  12506. $RM conftest*
  12507. fi
  12508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12509. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12510. hard_links="nottested"
  12511. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12512. # do not overwrite the value of need_locks provided by the user
  12513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12514. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12515. hard_links=yes
  12516. $RM conftest*
  12517. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12518. touch conftest.a
  12519. ln conftest.a conftest.b 2>&5 || hard_links=no
  12520. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12522. $as_echo "$hard_links" >&6; }
  12523. if test "$hard_links" = no; then
  12524. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12525. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12526. need_locks=warn
  12527. fi
  12528. else
  12529. need_locks=no
  12530. fi
  12531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12532. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12533. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12534. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12535. case $host_os in
  12536. aix[4-9]*)
  12537. # If we're using GNU nm, then we don't want the "-C" option.
  12538. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12539. # Also, AIX nm treats weak defined symbols like other global defined
  12540. # symbols, whereas GNU nm marks them as "W".
  12541. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12542. 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'
  12543. else
  12544. 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'
  12545. fi
  12546. ;;
  12547. pw32*)
  12548. export_symbols_cmds_CXX="$ltdll_cmds"
  12549. ;;
  12550. cygwin* | mingw* | cegcc*)
  12551. case $cc_basename in
  12552. cl*)
  12553. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12554. ;;
  12555. *)
  12556. 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'
  12557. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12558. ;;
  12559. esac
  12560. ;;
  12561. *)
  12562. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12563. ;;
  12564. esac
  12565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12566. $as_echo "$ld_shlibs_CXX" >&6; }
  12567. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12568. with_gnu_ld_CXX=$with_gnu_ld
  12569. #
  12570. # Do we need to explicitly link libc?
  12571. #
  12572. case "x$archive_cmds_need_lc_CXX" in
  12573. x|xyes)
  12574. # Assume -lc should be added
  12575. archive_cmds_need_lc_CXX=yes
  12576. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12577. case $archive_cmds_CXX in
  12578. *'~'*)
  12579. # FIXME: we may have to deal with multi-command sequences.
  12580. ;;
  12581. '$CC '*)
  12582. # Test whether the compiler implicitly links with -lc since on some
  12583. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12584. # to ld, don't add -lc before -lgcc.
  12585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12586. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12587. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12588. $as_echo_n "(cached) " >&6
  12589. else
  12590. $RM conftest*
  12591. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12592. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12593. (eval $ac_compile) 2>&5
  12594. ac_status=$?
  12595. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12596. test $ac_status = 0; } 2>conftest.err; then
  12597. soname=conftest
  12598. lib=conftest
  12599. libobjs=conftest.$ac_objext
  12600. deplibs=
  12601. wl=$lt_prog_compiler_wl_CXX
  12602. pic_flag=$lt_prog_compiler_pic_CXX
  12603. compiler_flags=-v
  12604. linker_flags=-v
  12605. verstring=
  12606. output_objdir=.
  12607. libname=conftest
  12608. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12609. allow_undefined_flag_CXX=
  12610. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12611. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12612. ac_status=$?
  12613. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12614. test $ac_status = 0; }
  12615. then
  12616. lt_cv_archive_cmds_need_lc_CXX=no
  12617. else
  12618. lt_cv_archive_cmds_need_lc_CXX=yes
  12619. fi
  12620. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12621. else
  12622. cat conftest.err 1>&5
  12623. fi
  12624. $RM conftest*
  12625. fi
  12626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12627. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12628. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12629. ;;
  12630. esac
  12631. fi
  12632. ;;
  12633. esac
  12634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12635. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12636. library_names_spec=
  12637. libname_spec='lib$name'
  12638. soname_spec=
  12639. shrext_cmds=".so"
  12640. postinstall_cmds=
  12641. postuninstall_cmds=
  12642. finish_cmds=
  12643. finish_eval=
  12644. shlibpath_var=
  12645. shlibpath_overrides_runpath=unknown
  12646. version_type=none
  12647. dynamic_linker="$host_os ld.so"
  12648. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12649. need_lib_prefix=unknown
  12650. hardcode_into_libs=no
  12651. # when you set need_version to no, make sure it does not cause -set_version
  12652. # flags to be left without arguments
  12653. need_version=unknown
  12654. case $host_os in
  12655. aix3*)
  12656. version_type=linux # correct to gnu/linux during the next big refactor
  12657. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12658. shlibpath_var=LIBPATH
  12659. # AIX 3 has no versioning support, so we append a major version to the name.
  12660. soname_spec='${libname}${release}${shared_ext}$major'
  12661. ;;
  12662. aix[4-9]*)
  12663. version_type=linux # correct to gnu/linux during the next big refactor
  12664. need_lib_prefix=no
  12665. need_version=no
  12666. hardcode_into_libs=yes
  12667. if test "$host_cpu" = ia64; then
  12668. # AIX 5 supports IA64
  12669. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12670. shlibpath_var=LD_LIBRARY_PATH
  12671. else
  12672. # With GCC up to 2.95.x, collect2 would create an import file
  12673. # for dependence libraries. The import file would start with
  12674. # the line `#! .'. This would cause the generated library to
  12675. # depend on `.', always an invalid library. This was fixed in
  12676. # development snapshots of GCC prior to 3.0.
  12677. case $host_os in
  12678. aix4 | aix4.[01] | aix4.[01].*)
  12679. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12680. echo ' yes '
  12681. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12682. :
  12683. else
  12684. can_build_shared=no
  12685. fi
  12686. ;;
  12687. esac
  12688. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12689. # soname into executable. Probably we can add versioning support to
  12690. # collect2, so additional links can be useful in future.
  12691. if test "$aix_use_runtimelinking" = yes; then
  12692. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12693. # instead of lib<name>.a to let people know that these are not
  12694. # typical AIX shared libraries.
  12695. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12696. else
  12697. # We preserve .a as extension for shared libraries through AIX4.2
  12698. # and later when we are not doing run time linking.
  12699. library_names_spec='${libname}${release}.a $libname.a'
  12700. soname_spec='${libname}${release}${shared_ext}$major'
  12701. fi
  12702. shlibpath_var=LIBPATH
  12703. fi
  12704. ;;
  12705. amigaos*)
  12706. case $host_cpu in
  12707. powerpc)
  12708. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12709. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12710. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12711. ;;
  12712. m68k)
  12713. library_names_spec='$libname.ixlibrary $libname.a'
  12714. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12715. 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'
  12716. ;;
  12717. esac
  12718. ;;
  12719. beos*)
  12720. library_names_spec='${libname}${shared_ext}'
  12721. dynamic_linker="$host_os ld.so"
  12722. shlibpath_var=LIBRARY_PATH
  12723. ;;
  12724. bsdi[45]*)
  12725. version_type=linux # correct to gnu/linux during the next big refactor
  12726. need_version=no
  12727. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12728. soname_spec='${libname}${release}${shared_ext}$major'
  12729. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12730. shlibpath_var=LD_LIBRARY_PATH
  12731. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12732. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12733. # the default ld.so.conf also contains /usr/contrib/lib and
  12734. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12735. # libtool to hard-code these into programs
  12736. ;;
  12737. cygwin* | mingw* | pw32* | cegcc*)
  12738. version_type=windows
  12739. shrext_cmds=".dll"
  12740. need_version=no
  12741. need_lib_prefix=no
  12742. case $GCC,$cc_basename in
  12743. yes,*)
  12744. # gcc
  12745. library_names_spec='$libname.dll.a'
  12746. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12747. postinstall_cmds='base_file=`basename \${file}`~
  12748. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12749. dldir=$destdir/`dirname \$dlpath`~
  12750. test -d \$dldir || mkdir -p \$dldir~
  12751. $install_prog $dir/$dlname \$dldir/$dlname~
  12752. chmod a+x \$dldir/$dlname~
  12753. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12754. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12755. fi'
  12756. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12757. dlpath=$dir/\$dldll~
  12758. $RM \$dlpath'
  12759. shlibpath_overrides_runpath=yes
  12760. case $host_os in
  12761. cygwin*)
  12762. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12763. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12764. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12765. ;;
  12766. mingw* | cegcc*)
  12767. # MinGW DLLs use traditional 'lib' prefix
  12768. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12769. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12770. ;;
  12771. pw32*)
  12772. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12773. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12774. ;;
  12775. esac
  12776. dynamic_linker='Win32 ld.exe'
  12777. ;;
  12778. *,cl*)
  12779. # Native MSVC
  12780. libname_spec='$name'
  12781. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12782. library_names_spec='${libname}.dll.lib'
  12783. case $build_os in
  12784. mingw*)
  12785. sys_lib_search_path_spec=
  12786. lt_save_ifs=$IFS
  12787. IFS=';'
  12788. for lt_path in $LIB
  12789. do
  12790. IFS=$lt_save_ifs
  12791. # Let DOS variable expansion print the short 8.3 style file name.
  12792. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12793. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12794. done
  12795. IFS=$lt_save_ifs
  12796. # Convert to MSYS style.
  12797. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12798. ;;
  12799. cygwin*)
  12800. # Convert to unix form, then to dos form, then back to unix form
  12801. # but this time dos style (no spaces!) so that the unix form looks
  12802. # like /cygdrive/c/PROGRA~1:/cygdr...
  12803. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12804. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12805. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12806. ;;
  12807. *)
  12808. sys_lib_search_path_spec="$LIB"
  12809. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12810. # It is most probably a Windows format PATH.
  12811. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12812. else
  12813. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12814. fi
  12815. # FIXME: find the short name or the path components, as spaces are
  12816. # common. (e.g. "Program Files" -> "PROGRA~1")
  12817. ;;
  12818. esac
  12819. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12820. postinstall_cmds='base_file=`basename \${file}`~
  12821. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12822. dldir=$destdir/`dirname \$dlpath`~
  12823. test -d \$dldir || mkdir -p \$dldir~
  12824. $install_prog $dir/$dlname \$dldir/$dlname'
  12825. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12826. dlpath=$dir/\$dldll~
  12827. $RM \$dlpath'
  12828. shlibpath_overrides_runpath=yes
  12829. dynamic_linker='Win32 link.exe'
  12830. ;;
  12831. *)
  12832. # Assume MSVC wrapper
  12833. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12834. dynamic_linker='Win32 ld.exe'
  12835. ;;
  12836. esac
  12837. # FIXME: first we should search . and the directory the executable is in
  12838. shlibpath_var=PATH
  12839. ;;
  12840. darwin* | rhapsody*)
  12841. dynamic_linker="$host_os dyld"
  12842. version_type=darwin
  12843. need_lib_prefix=no
  12844. need_version=no
  12845. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12846. soname_spec='${libname}${release}${major}$shared_ext'
  12847. shlibpath_overrides_runpath=yes
  12848. shlibpath_var=DYLD_LIBRARY_PATH
  12849. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12850. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12851. ;;
  12852. dgux*)
  12853. version_type=linux # correct to gnu/linux during the next big refactor
  12854. need_lib_prefix=no
  12855. need_version=no
  12856. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12857. soname_spec='${libname}${release}${shared_ext}$major'
  12858. shlibpath_var=LD_LIBRARY_PATH
  12859. ;;
  12860. freebsd* | dragonfly*)
  12861. # DragonFly does not have aout. When/if they implement a new
  12862. # versioning mechanism, adjust this.
  12863. if test -x /usr/bin/objformat; then
  12864. objformat=`/usr/bin/objformat`
  12865. else
  12866. case $host_os in
  12867. freebsd[23].*) objformat=aout ;;
  12868. *) objformat=elf ;;
  12869. esac
  12870. fi
  12871. version_type=freebsd-$objformat
  12872. case $version_type in
  12873. freebsd-elf*)
  12874. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12875. need_version=no
  12876. need_lib_prefix=no
  12877. ;;
  12878. freebsd-*)
  12879. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12880. need_version=yes
  12881. ;;
  12882. esac
  12883. shlibpath_var=LD_LIBRARY_PATH
  12884. case $host_os in
  12885. freebsd2.*)
  12886. shlibpath_overrides_runpath=yes
  12887. ;;
  12888. freebsd3.[01]* | freebsdelf3.[01]*)
  12889. shlibpath_overrides_runpath=yes
  12890. hardcode_into_libs=yes
  12891. ;;
  12892. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12893. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12894. shlibpath_overrides_runpath=no
  12895. hardcode_into_libs=yes
  12896. ;;
  12897. *) # from 4.6 on, and DragonFly
  12898. shlibpath_overrides_runpath=yes
  12899. hardcode_into_libs=yes
  12900. ;;
  12901. esac
  12902. ;;
  12903. gnu*)
  12904. version_type=linux # correct to gnu/linux during the next big refactor
  12905. need_lib_prefix=no
  12906. need_version=no
  12907. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12908. soname_spec='${libname}${release}${shared_ext}$major'
  12909. shlibpath_var=LD_LIBRARY_PATH
  12910. shlibpath_overrides_runpath=no
  12911. hardcode_into_libs=yes
  12912. ;;
  12913. haiku*)
  12914. version_type=linux # correct to gnu/linux during the next big refactor
  12915. need_lib_prefix=no
  12916. need_version=no
  12917. dynamic_linker="$host_os runtime_loader"
  12918. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12919. soname_spec='${libname}${release}${shared_ext}$major'
  12920. shlibpath_var=LIBRARY_PATH
  12921. shlibpath_overrides_runpath=yes
  12922. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12923. hardcode_into_libs=yes
  12924. ;;
  12925. hpux9* | hpux10* | hpux11*)
  12926. # Give a soname corresponding to the major version so that dld.sl refuses to
  12927. # link against other versions.
  12928. version_type=sunos
  12929. need_lib_prefix=no
  12930. need_version=no
  12931. case $host_cpu in
  12932. ia64*)
  12933. shrext_cmds='.so'
  12934. hardcode_into_libs=yes
  12935. dynamic_linker="$host_os dld.so"
  12936. shlibpath_var=LD_LIBRARY_PATH
  12937. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12938. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12939. soname_spec='${libname}${release}${shared_ext}$major'
  12940. if test "X$HPUX_IA64_MODE" = X32; then
  12941. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12942. else
  12943. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12944. fi
  12945. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12946. ;;
  12947. hppa*64*)
  12948. shrext_cmds='.sl'
  12949. hardcode_into_libs=yes
  12950. dynamic_linker="$host_os dld.sl"
  12951. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12952. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12953. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12954. soname_spec='${libname}${release}${shared_ext}$major'
  12955. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12956. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12957. ;;
  12958. *)
  12959. shrext_cmds='.sl'
  12960. dynamic_linker="$host_os dld.sl"
  12961. shlibpath_var=SHLIB_PATH
  12962. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12963. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12964. soname_spec='${libname}${release}${shared_ext}$major'
  12965. ;;
  12966. esac
  12967. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12968. postinstall_cmds='chmod 555 $lib'
  12969. # or fails outright, so override atomically:
  12970. install_override_mode=555
  12971. ;;
  12972. interix[3-9]*)
  12973. version_type=linux # correct to gnu/linux during the next big refactor
  12974. need_lib_prefix=no
  12975. need_version=no
  12976. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12977. soname_spec='${libname}${release}${shared_ext}$major'
  12978. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12979. shlibpath_var=LD_LIBRARY_PATH
  12980. shlibpath_overrides_runpath=no
  12981. hardcode_into_libs=yes
  12982. ;;
  12983. irix5* | irix6* | nonstopux*)
  12984. case $host_os in
  12985. nonstopux*) version_type=nonstopux ;;
  12986. *)
  12987. if test "$lt_cv_prog_gnu_ld" = yes; then
  12988. version_type=linux # correct to gnu/linux during the next big refactor
  12989. else
  12990. version_type=irix
  12991. fi ;;
  12992. esac
  12993. need_lib_prefix=no
  12994. need_version=no
  12995. soname_spec='${libname}${release}${shared_ext}$major'
  12996. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12997. case $host_os in
  12998. irix5* | nonstopux*)
  12999. libsuff= shlibsuff=
  13000. ;;
  13001. *)
  13002. case $LD in # libtool.m4 will add one of these switches to LD
  13003. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13004. libsuff= shlibsuff= libmagic=32-bit;;
  13005. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13006. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13007. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13008. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13009. *) libsuff= shlibsuff= libmagic=never-match;;
  13010. esac
  13011. ;;
  13012. esac
  13013. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13014. shlibpath_overrides_runpath=no
  13015. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13016. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13017. hardcode_into_libs=yes
  13018. ;;
  13019. # No shared lib support for Linux oldld, aout, or coff.
  13020. linux*oldld* | linux*aout* | linux*coff*)
  13021. dynamic_linker=no
  13022. ;;
  13023. # This must be glibc/ELF.
  13024. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13025. version_type=linux # correct to gnu/linux during the next big refactor
  13026. need_lib_prefix=no
  13027. need_version=no
  13028. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13029. soname_spec='${libname}${release}${shared_ext}$major'
  13030. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13031. shlibpath_var=LD_LIBRARY_PATH
  13032. shlibpath_overrides_runpath=no
  13033. # Some binutils ld are patched to set DT_RUNPATH
  13034. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13035. $as_echo_n "(cached) " >&6
  13036. else
  13037. lt_cv_shlibpath_overrides_runpath=no
  13038. save_LDFLAGS=$LDFLAGS
  13039. save_libdir=$libdir
  13040. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13041. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13043. /* end confdefs.h. */
  13044. int
  13045. main ()
  13046. {
  13047. ;
  13048. return 0;
  13049. }
  13050. _ACEOF
  13051. if ac_fn_cxx_try_link "$LINENO"; then :
  13052. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13053. lt_cv_shlibpath_overrides_runpath=yes
  13054. fi
  13055. fi
  13056. rm -f core conftest.err conftest.$ac_objext \
  13057. conftest$ac_exeext conftest.$ac_ext
  13058. LDFLAGS=$save_LDFLAGS
  13059. libdir=$save_libdir
  13060. fi
  13061. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13062. # This implies no fast_install, which is unacceptable.
  13063. # Some rework will be needed to allow for fast_install
  13064. # before this can be enabled.
  13065. hardcode_into_libs=yes
  13066. # Append ld.so.conf contents to the search path
  13067. if test -f /etc/ld.so.conf; then
  13068. 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' ' '`
  13069. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13070. fi
  13071. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13072. # powerpc, because MkLinux only supported shared libraries with the
  13073. # GNU dynamic linker. Since this was broken with cross compilers,
  13074. # most powerpc-linux boxes support dynamic linking these days and
  13075. # people can always --disable-shared, the test was removed, and we
  13076. # assume the GNU/Linux dynamic linker is in use.
  13077. dynamic_linker='GNU/Linux ld.so'
  13078. ;;
  13079. netbsd*)
  13080. version_type=sunos
  13081. need_lib_prefix=no
  13082. need_version=no
  13083. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13085. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13086. dynamic_linker='NetBSD (a.out) ld.so'
  13087. else
  13088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13089. soname_spec='${libname}${release}${shared_ext}$major'
  13090. dynamic_linker='NetBSD ld.elf_so'
  13091. fi
  13092. shlibpath_var=LD_LIBRARY_PATH
  13093. shlibpath_overrides_runpath=yes
  13094. hardcode_into_libs=yes
  13095. ;;
  13096. newsos6)
  13097. version_type=linux # correct to gnu/linux during the next big refactor
  13098. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13099. shlibpath_var=LD_LIBRARY_PATH
  13100. shlibpath_overrides_runpath=yes
  13101. ;;
  13102. *nto* | *qnx*)
  13103. version_type=qnx
  13104. need_lib_prefix=no
  13105. need_version=no
  13106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13107. soname_spec='${libname}${release}${shared_ext}$major'
  13108. shlibpath_var=LD_LIBRARY_PATH
  13109. shlibpath_overrides_runpath=no
  13110. hardcode_into_libs=yes
  13111. dynamic_linker='ldqnx.so'
  13112. ;;
  13113. openbsd*)
  13114. version_type=sunos
  13115. sys_lib_dlsearch_path_spec="/usr/lib"
  13116. need_lib_prefix=no
  13117. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13118. case $host_os in
  13119. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13120. *) need_version=no ;;
  13121. esac
  13122. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13123. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13124. shlibpath_var=LD_LIBRARY_PATH
  13125. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13126. case $host_os in
  13127. openbsd2.[89] | openbsd2.[89].*)
  13128. shlibpath_overrides_runpath=no
  13129. ;;
  13130. *)
  13131. shlibpath_overrides_runpath=yes
  13132. ;;
  13133. esac
  13134. else
  13135. shlibpath_overrides_runpath=yes
  13136. fi
  13137. ;;
  13138. os2*)
  13139. libname_spec='$name'
  13140. shrext_cmds=".dll"
  13141. need_lib_prefix=no
  13142. library_names_spec='$libname${shared_ext} $libname.a'
  13143. dynamic_linker='OS/2 ld.exe'
  13144. shlibpath_var=LIBPATH
  13145. ;;
  13146. osf3* | osf4* | osf5*)
  13147. version_type=osf
  13148. need_lib_prefix=no
  13149. need_version=no
  13150. soname_spec='${libname}${release}${shared_ext}$major'
  13151. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13152. shlibpath_var=LD_LIBRARY_PATH
  13153. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13154. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13155. ;;
  13156. rdos*)
  13157. dynamic_linker=no
  13158. ;;
  13159. solaris*)
  13160. version_type=linux # correct to gnu/linux during the next big refactor
  13161. need_lib_prefix=no
  13162. need_version=no
  13163. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13164. soname_spec='${libname}${release}${shared_ext}$major'
  13165. shlibpath_var=LD_LIBRARY_PATH
  13166. shlibpath_overrides_runpath=yes
  13167. hardcode_into_libs=yes
  13168. # ldd complains unless libraries are executable
  13169. postinstall_cmds='chmod +x $lib'
  13170. ;;
  13171. sunos4*)
  13172. version_type=sunos
  13173. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13174. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13175. shlibpath_var=LD_LIBRARY_PATH
  13176. shlibpath_overrides_runpath=yes
  13177. if test "$with_gnu_ld" = yes; then
  13178. need_lib_prefix=no
  13179. fi
  13180. need_version=yes
  13181. ;;
  13182. sysv4 | sysv4.3*)
  13183. version_type=linux # correct to gnu/linux during the next big refactor
  13184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13185. soname_spec='${libname}${release}${shared_ext}$major'
  13186. shlibpath_var=LD_LIBRARY_PATH
  13187. case $host_vendor in
  13188. sni)
  13189. shlibpath_overrides_runpath=no
  13190. need_lib_prefix=no
  13191. runpath_var=LD_RUN_PATH
  13192. ;;
  13193. siemens)
  13194. need_lib_prefix=no
  13195. ;;
  13196. motorola)
  13197. need_lib_prefix=no
  13198. need_version=no
  13199. shlibpath_overrides_runpath=no
  13200. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13201. ;;
  13202. esac
  13203. ;;
  13204. sysv4*MP*)
  13205. if test -d /usr/nec ;then
  13206. version_type=linux # correct to gnu/linux during the next big refactor
  13207. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13208. soname_spec='$libname${shared_ext}.$major'
  13209. shlibpath_var=LD_LIBRARY_PATH
  13210. fi
  13211. ;;
  13212. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13213. version_type=freebsd-elf
  13214. need_lib_prefix=no
  13215. need_version=no
  13216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13217. soname_spec='${libname}${release}${shared_ext}$major'
  13218. shlibpath_var=LD_LIBRARY_PATH
  13219. shlibpath_overrides_runpath=yes
  13220. hardcode_into_libs=yes
  13221. if test "$with_gnu_ld" = yes; then
  13222. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13223. else
  13224. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13225. case $host_os in
  13226. sco3.2v5*)
  13227. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13228. ;;
  13229. esac
  13230. fi
  13231. sys_lib_dlsearch_path_spec='/usr/lib'
  13232. ;;
  13233. tpf*)
  13234. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13235. version_type=linux # correct to gnu/linux during the next big refactor
  13236. need_lib_prefix=no
  13237. need_version=no
  13238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13239. shlibpath_var=LD_LIBRARY_PATH
  13240. shlibpath_overrides_runpath=no
  13241. hardcode_into_libs=yes
  13242. ;;
  13243. uts4*)
  13244. version_type=linux # correct to gnu/linux during the next big refactor
  13245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13246. soname_spec='${libname}${release}${shared_ext}$major'
  13247. shlibpath_var=LD_LIBRARY_PATH
  13248. ;;
  13249. *)
  13250. dynamic_linker=no
  13251. ;;
  13252. esac
  13253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13254. $as_echo "$dynamic_linker" >&6; }
  13255. test "$dynamic_linker" = no && can_build_shared=no
  13256. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13257. if test "$GCC" = yes; then
  13258. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13259. fi
  13260. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13261. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13262. fi
  13263. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13264. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13265. fi
  13266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13267. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13268. hardcode_action_CXX=
  13269. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13270. test -n "$runpath_var_CXX" ||
  13271. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13272. # We can hardcode non-existent directories.
  13273. if test "$hardcode_direct_CXX" != no &&
  13274. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13275. # have to relink, otherwise we might link with an installed library
  13276. # when we should be linking with a yet-to-be-installed one
  13277. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13278. test "$hardcode_minus_L_CXX" != no; then
  13279. # Linking always hardcodes the temporary library directory.
  13280. hardcode_action_CXX=relink
  13281. else
  13282. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13283. hardcode_action_CXX=immediate
  13284. fi
  13285. else
  13286. # We cannot hardcode anything, or else we can only hardcode existing
  13287. # directories.
  13288. hardcode_action_CXX=unsupported
  13289. fi
  13290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13291. $as_echo "$hardcode_action_CXX" >&6; }
  13292. if test "$hardcode_action_CXX" = relink ||
  13293. test "$inherit_rpath_CXX" = yes; then
  13294. # Fast installation is not supported
  13295. enable_fast_install=no
  13296. elif test "$shlibpath_overrides_runpath" = yes ||
  13297. test "$enable_shared" = no; then
  13298. # Fast installation is not necessary
  13299. enable_fast_install=needless
  13300. fi
  13301. fi # test -n "$compiler"
  13302. CC=$lt_save_CC
  13303. CFLAGS=$lt_save_CFLAGS
  13304. LDCXX=$LD
  13305. LD=$lt_save_LD
  13306. GCC=$lt_save_GCC
  13307. with_gnu_ld=$lt_save_with_gnu_ld
  13308. lt_cv_path_LDCXX=$lt_cv_path_LD
  13309. lt_cv_path_LD=$lt_save_path_LD
  13310. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13311. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13312. fi # test "$_lt_caught_CXX_error" != yes
  13313. ac_ext=c
  13314. ac_cpp='$CPP $CPPFLAGS'
  13315. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13316. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13317. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13318. # Find a good install program. We prefer a C program (faster),
  13319. # so one script is as good as another. But avoid the broken or
  13320. # incompatible versions:
  13321. # SysV /etc/install, /usr/sbin/install
  13322. # SunOS /usr/etc/install
  13323. # IRIX /sbin/install
  13324. # AIX /bin/install
  13325. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13326. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13327. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13328. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13329. # OS/2's system install, which has a completely different semantic
  13330. # ./install, which can be erroneously created by make from ./install.sh.
  13331. # Reject install programs that cannot install multiple files.
  13332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13333. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13334. if test -z "$INSTALL"; then
  13335. if ${ac_cv_path_install+:} false; then :
  13336. $as_echo_n "(cached) " >&6
  13337. else
  13338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13339. for as_dir in $PATH
  13340. do
  13341. IFS=$as_save_IFS
  13342. test -z "$as_dir" && as_dir=.
  13343. # Account for people who put trailing slashes in PATH elements.
  13344. case $as_dir/ in #((
  13345. ./ | .// | /[cC]/* | \
  13346. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13347. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13348. /usr/ucb/* ) ;;
  13349. *)
  13350. # OSF1 and SCO ODT 3.0 have their own names for install.
  13351. # Don't use installbsd from OSF since it installs stuff as root
  13352. # by default.
  13353. for ac_prog in ginstall scoinst install; do
  13354. for ac_exec_ext in '' $ac_executable_extensions; do
  13355. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13356. if test $ac_prog = install &&
  13357. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13358. # AIX install. It has an incompatible calling convention.
  13359. :
  13360. elif test $ac_prog = install &&
  13361. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13362. # program-specific install script used by HP pwplus--don't use.
  13363. :
  13364. else
  13365. rm -rf conftest.one conftest.two conftest.dir
  13366. echo one > conftest.one
  13367. echo two > conftest.two
  13368. mkdir conftest.dir
  13369. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13370. test -s conftest.one && test -s conftest.two &&
  13371. test -s conftest.dir/conftest.one &&
  13372. test -s conftest.dir/conftest.two
  13373. then
  13374. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13375. break 3
  13376. fi
  13377. fi
  13378. fi
  13379. done
  13380. done
  13381. ;;
  13382. esac
  13383. done
  13384. IFS=$as_save_IFS
  13385. rm -rf conftest.one conftest.two conftest.dir
  13386. fi
  13387. if test "${ac_cv_path_install+set}" = set; then
  13388. INSTALL=$ac_cv_path_install
  13389. else
  13390. # As a last resort, use the slow shell script. Don't cache a
  13391. # value for INSTALL within a source directory, because that will
  13392. # break other packages using the cache if that directory is
  13393. # removed, or if the value is a relative name.
  13394. INSTALL=$ac_install_sh
  13395. fi
  13396. fi
  13397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13398. $as_echo "$INSTALL" >&6; }
  13399. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13400. # It thinks the first close brace ends the variable substitution.
  13401. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13402. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13403. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13405. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13406. set x ${MAKE-make}
  13407. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13408. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13409. $as_echo_n "(cached) " >&6
  13410. else
  13411. cat >conftest.make <<\_ACEOF
  13412. SHELL = /bin/sh
  13413. all:
  13414. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13415. _ACEOF
  13416. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13417. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13418. *@@@%%%=?*=@@@%%%*)
  13419. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13420. *)
  13421. eval ac_cv_prog_make_${ac_make}_set=no;;
  13422. esac
  13423. rm -f conftest.make
  13424. fi
  13425. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13427. $as_echo "yes" >&6; }
  13428. SET_MAKE=
  13429. else
  13430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13431. $as_echo "no" >&6; }
  13432. SET_MAKE="MAKE=${MAKE-make}"
  13433. fi
  13434. if test -n "$ac_tool_prefix"; then
  13435. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13436. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13438. $as_echo_n "checking for $ac_word... " >&6; }
  13439. if ${ac_cv_prog_WINDRES+:} false; then :
  13440. $as_echo_n "(cached) " >&6
  13441. else
  13442. if test -n "$WINDRES"; then
  13443. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13444. else
  13445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13446. for as_dir in $PATH
  13447. do
  13448. IFS=$as_save_IFS
  13449. test -z "$as_dir" && as_dir=.
  13450. for ac_exec_ext in '' $ac_executable_extensions; do
  13451. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13452. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13454. break 2
  13455. fi
  13456. done
  13457. done
  13458. IFS=$as_save_IFS
  13459. fi
  13460. fi
  13461. WINDRES=$ac_cv_prog_WINDRES
  13462. if test -n "$WINDRES"; then
  13463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13464. $as_echo "$WINDRES" >&6; }
  13465. else
  13466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13467. $as_echo "no" >&6; }
  13468. fi
  13469. fi
  13470. if test -z "$ac_cv_prog_WINDRES"; then
  13471. ac_ct_WINDRES=$WINDRES
  13472. # Extract the first word of "windres", so it can be a program name with args.
  13473. set dummy windres; ac_word=$2
  13474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13475. $as_echo_n "checking for $ac_word... " >&6; }
  13476. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13477. $as_echo_n "(cached) " >&6
  13478. else
  13479. if test -n "$ac_ct_WINDRES"; then
  13480. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13481. else
  13482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13483. for as_dir in $PATH
  13484. do
  13485. IFS=$as_save_IFS
  13486. test -z "$as_dir" && as_dir=.
  13487. for ac_exec_ext in '' $ac_executable_extensions; do
  13488. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13489. ac_cv_prog_ac_ct_WINDRES="windres"
  13490. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13491. break 2
  13492. fi
  13493. done
  13494. done
  13495. IFS=$as_save_IFS
  13496. fi
  13497. fi
  13498. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13499. if test -n "$ac_ct_WINDRES"; then
  13500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13501. $as_echo "$ac_ct_WINDRES" >&6; }
  13502. else
  13503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13504. $as_echo "no" >&6; }
  13505. fi
  13506. if test "x$ac_ct_WINDRES" = x; then
  13507. WINDRES=":"
  13508. else
  13509. case $cross_compiling:$ac_tool_warned in
  13510. yes:)
  13511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13512. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13513. ac_tool_warned=yes ;;
  13514. esac
  13515. WINDRES=$ac_ct_WINDRES
  13516. fi
  13517. else
  13518. WINDRES="$ac_cv_prog_WINDRES"
  13519. fi
  13520. case "$host" in
  13521. *-*-mingw32*)
  13522. # Except on msys, where make can't handle full pathnames (bug 1972)
  13523. ;;
  13524. *)
  13525. srcdir=`cd $srcdir && pwd`
  13526. ;;
  13527. esac
  13528. INCLUDE="-I$srcdir/include"
  13529. if test x$srcdir != x.; then
  13530. INCLUDE="-Iinclude $INCLUDE"
  13531. elif test -d .hg; then
  13532. as_fn_error $? "
  13533. *** When building from Mercurial you should configure and build in a
  13534. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13535. " "$LINENO" 5
  13536. fi
  13537. BASE_CFLAGS=""
  13538. BASE_LDFLAGS=""
  13539. case "$host" in
  13540. *-*-cygwin*)
  13541. # We build SDL on cygwin without the UNIX emulation layer
  13542. save_CFLAGS="$CFLAGS"
  13543. have_no_cygwin=no
  13544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13545. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13546. CFLAGS="$save_CFLAGS -mno-cygwin"
  13547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13548. /* end confdefs.h. */
  13549. int
  13550. main ()
  13551. {
  13552. ;
  13553. return 0;
  13554. }
  13555. _ACEOF
  13556. if ac_fn_c_try_compile "$LINENO"; then :
  13557. have_no_cygwin=yes
  13558. fi
  13559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13561. $as_echo "$have_no_cygwin" >&6; }
  13562. CFLAGS="$save_CFLAGS"
  13563. if test x$have_no_cygwin = xyes; then
  13564. BASE_CFLAGS="-mno-cygwin"
  13565. BASE_LDFLAGS="-mno-cygwin"
  13566. fi
  13567. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13568. ;;
  13569. esac
  13570. # Uncomment the following line if you want to force SDL and applications
  13571. # built with it to be compiled for a particular architecture.
  13572. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13573. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13574. # The default optimization for SDL is -O3 (Bug #31)
  13575. if test "x$orig_CFLAGS" = x; then
  13576. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13577. fi
  13578. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13579. BUILD_LDFLAGS="$LDFLAGS"
  13580. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13581. ## These are common directories to find software packages
  13582. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13583. # if test -d $path/include; then
  13584. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13585. # fi
  13586. # if test -d $path/lib; then
  13587. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13588. # fi
  13589. #done
  13590. SDL_CFLAGS="$BASE_CFLAGS"
  13591. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13592. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13593. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13594. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13595. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13596. find_lib()
  13597. {
  13598. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13599. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13600. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13601. if test "$cross_compiling" = yes; then
  13602. host_lib_path=""
  13603. else
  13604. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13605. fi
  13606. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13607. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13608. if test x$lib != x; then
  13609. echo $lib
  13610. return
  13611. fi
  13612. done
  13613. }
  13614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13615. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13616. if ${ac_cv_c_const+:} false; then :
  13617. $as_echo_n "(cached) " >&6
  13618. else
  13619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13620. /* end confdefs.h. */
  13621. int
  13622. main ()
  13623. {
  13624. #ifndef __cplusplus
  13625. /* Ultrix mips cc rejects this sort of thing. */
  13626. typedef int charset[2];
  13627. const charset cs = { 0, 0 };
  13628. /* SunOS 4.1.1 cc rejects this. */
  13629. char const *const *pcpcc;
  13630. char **ppc;
  13631. /* NEC SVR4.0.2 mips cc rejects this. */
  13632. struct point {int x, y;};
  13633. static struct point const zero = {0,0};
  13634. /* AIX XL C 1.02.0.0 rejects this.
  13635. It does not let you subtract one const X* pointer from another in
  13636. an arm of an if-expression whose if-part is not a constant
  13637. expression */
  13638. const char *g = "string";
  13639. pcpcc = &g + (g ? g-g : 0);
  13640. /* HPUX 7.0 cc rejects these. */
  13641. ++pcpcc;
  13642. ppc = (char**) pcpcc;
  13643. pcpcc = (char const *const *) ppc;
  13644. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13645. char tx;
  13646. char *t = &tx;
  13647. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13648. *t++ = 0;
  13649. if (s) return 0;
  13650. }
  13651. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13652. int x[] = {25, 17};
  13653. const int *foo = &x[0];
  13654. ++foo;
  13655. }
  13656. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13657. typedef const int *iptr;
  13658. iptr p = 0;
  13659. ++p;
  13660. }
  13661. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13662. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13663. struct s { int j; const int *ap[3]; } bx;
  13664. struct s *b = &bx; b->j = 5;
  13665. }
  13666. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13667. const int foo = 10;
  13668. if (!foo) return 0;
  13669. }
  13670. return !cs[0] && !zero.x;
  13671. #endif
  13672. ;
  13673. return 0;
  13674. }
  13675. _ACEOF
  13676. if ac_fn_c_try_compile "$LINENO"; then :
  13677. ac_cv_c_const=yes
  13678. else
  13679. ac_cv_c_const=no
  13680. fi
  13681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13682. fi
  13683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13684. $as_echo "$ac_cv_c_const" >&6; }
  13685. if test $ac_cv_c_const = no; then
  13686. $as_echo "#define const /**/" >>confdefs.h
  13687. fi
  13688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13689. $as_echo_n "checking for inline... " >&6; }
  13690. if ${ac_cv_c_inline+:} false; then :
  13691. $as_echo_n "(cached) " >&6
  13692. else
  13693. ac_cv_c_inline=no
  13694. for ac_kw in inline __inline__ __inline; do
  13695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13696. /* end confdefs.h. */
  13697. #ifndef __cplusplus
  13698. typedef int foo_t;
  13699. static $ac_kw foo_t static_foo () {return 0; }
  13700. $ac_kw foo_t foo () {return 0; }
  13701. #endif
  13702. _ACEOF
  13703. if ac_fn_c_try_compile "$LINENO"; then :
  13704. ac_cv_c_inline=$ac_kw
  13705. fi
  13706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13707. test "$ac_cv_c_inline" != no && break
  13708. done
  13709. fi
  13710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13711. $as_echo "$ac_cv_c_inline" >&6; }
  13712. case $ac_cv_c_inline in
  13713. inline | yes) ;;
  13714. *)
  13715. case $ac_cv_c_inline in
  13716. no) ac_val=;;
  13717. *) ac_val=$ac_cv_c_inline;;
  13718. esac
  13719. cat >>confdefs.h <<_ACEOF
  13720. #ifndef __cplusplus
  13721. #define inline $ac_val
  13722. #endif
  13723. _ACEOF
  13724. ;;
  13725. esac
  13726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13727. $as_echo_n "checking for working volatile... " >&6; }
  13728. if ${ac_cv_c_volatile+:} false; then :
  13729. $as_echo_n "(cached) " >&6
  13730. else
  13731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13732. /* end confdefs.h. */
  13733. int
  13734. main ()
  13735. {
  13736. volatile int x;
  13737. int * volatile y = (int *) 0;
  13738. return !x && !y;
  13739. ;
  13740. return 0;
  13741. }
  13742. _ACEOF
  13743. if ac_fn_c_try_compile "$LINENO"; then :
  13744. ac_cv_c_volatile=yes
  13745. else
  13746. ac_cv_c_volatile=no
  13747. fi
  13748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13749. fi
  13750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13751. $as_echo "$ac_cv_c_volatile" >&6; }
  13752. if test $ac_cv_c_volatile = no; then
  13753. $as_echo "#define volatile /**/" >>confdefs.h
  13754. fi
  13755. # Check whether --enable-assertions was given.
  13756. if test "${enable_assertions+set}" = set; then :
  13757. enableval=$enable_assertions;
  13758. else
  13759. enable_assertions=auto
  13760. fi
  13761. case "$enable_assertions" in
  13762. auto) # Use optimization settings to determine assertion level
  13763. ;;
  13764. disabled)
  13765. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13766. ;;
  13767. release)
  13768. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13769. ;;
  13770. enabled)
  13771. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13772. ;;
  13773. paranoid)
  13774. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13775. ;;
  13776. *)
  13777. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13778. ;;
  13779. esac
  13780. # Check whether --enable-dependency-tracking was given.
  13781. if test "${enable_dependency_tracking+set}" = set; then :
  13782. enableval=$enable_dependency_tracking;
  13783. else
  13784. enable_dependency_tracking=yes
  13785. fi
  13786. if test x$enable_dependency_tracking = xyes; then
  13787. have_gcc_mmd_mt=no
  13788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13789. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13791. /* end confdefs.h. */
  13792. #if !defined(__GNUC__) || __GNUC__ < 3
  13793. #error Dependency tracking requires GCC 3.0 or newer
  13794. #endif
  13795. int
  13796. main ()
  13797. {
  13798. ;
  13799. return 0;
  13800. }
  13801. _ACEOF
  13802. if ac_fn_c_try_compile "$LINENO"; then :
  13803. have_gcc_mmd_mt=yes
  13804. fi
  13805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13807. $as_echo "$have_gcc_mmd_mt" >&6; }
  13808. if test x$have_gcc_mmd_mt = xyes; then
  13809. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13810. fi
  13811. fi
  13812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13813. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13814. have_no_undefined=no
  13815. case "$host" in
  13816. *-*-openbsd*)
  13817. ;;
  13818. *)
  13819. save_LDFLAGS="$LDFLAGS"
  13820. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13822. /* end confdefs.h. */
  13823. int
  13824. main ()
  13825. {
  13826. ;
  13827. return 0;
  13828. }
  13829. _ACEOF
  13830. if ac_fn_c_try_link "$LINENO"; then :
  13831. have_no_undefined=yes
  13832. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13833. fi
  13834. rm -f core conftest.err conftest.$ac_objext \
  13835. conftest$ac_exeext conftest.$ac_ext
  13836. LDFLAGS="$save_LDFLAGS"
  13837. ;;
  13838. esac
  13839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13840. $as_echo "$have_no_undefined" >&6; }
  13841. # Check whether --enable-libc was given.
  13842. if test "${enable_libc+set}" = set; then :
  13843. enableval=$enable_libc;
  13844. else
  13845. enable_libc=yes
  13846. fi
  13847. if test x$enable_libc = xyes; then
  13848. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13850. $as_echo_n "checking for ANSI C header files... " >&6; }
  13851. if ${ac_cv_header_stdc+:} false; then :
  13852. $as_echo_n "(cached) " >&6
  13853. else
  13854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13855. /* end confdefs.h. */
  13856. #include <stdlib.h>
  13857. #include <stdarg.h>
  13858. #include <string.h>
  13859. #include <float.h>
  13860. int
  13861. main ()
  13862. {
  13863. ;
  13864. return 0;
  13865. }
  13866. _ACEOF
  13867. if ac_fn_c_try_compile "$LINENO"; then :
  13868. ac_cv_header_stdc=yes
  13869. else
  13870. ac_cv_header_stdc=no
  13871. fi
  13872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13873. if test $ac_cv_header_stdc = yes; then
  13874. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13876. /* end confdefs.h. */
  13877. #include <string.h>
  13878. _ACEOF
  13879. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13880. $EGREP "memchr" >/dev/null 2>&1; then :
  13881. else
  13882. ac_cv_header_stdc=no
  13883. fi
  13884. rm -f conftest*
  13885. fi
  13886. if test $ac_cv_header_stdc = yes; then
  13887. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13889. /* end confdefs.h. */
  13890. #include <stdlib.h>
  13891. _ACEOF
  13892. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13893. $EGREP "free" >/dev/null 2>&1; then :
  13894. else
  13895. ac_cv_header_stdc=no
  13896. fi
  13897. rm -f conftest*
  13898. fi
  13899. if test $ac_cv_header_stdc = yes; then
  13900. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13901. if test "$cross_compiling" = yes; then :
  13902. :
  13903. else
  13904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13905. /* end confdefs.h. */
  13906. #include <ctype.h>
  13907. #include <stdlib.h>
  13908. #if ((' ' & 0x0FF) == 0x020)
  13909. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13910. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13911. #else
  13912. # define ISLOWER(c) \
  13913. (('a' <= (c) && (c) <= 'i') \
  13914. || ('j' <= (c) && (c) <= 'r') \
  13915. || ('s' <= (c) && (c) <= 'z'))
  13916. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13917. #endif
  13918. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13919. int
  13920. main ()
  13921. {
  13922. int i;
  13923. for (i = 0; i < 256; i++)
  13924. if (XOR (islower (i), ISLOWER (i))
  13925. || toupper (i) != TOUPPER (i))
  13926. return 2;
  13927. return 0;
  13928. }
  13929. _ACEOF
  13930. if ac_fn_c_try_run "$LINENO"; then :
  13931. else
  13932. ac_cv_header_stdc=no
  13933. fi
  13934. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13935. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13936. fi
  13937. fi
  13938. fi
  13939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13940. $as_echo "$ac_cv_header_stdc" >&6; }
  13941. if test $ac_cv_header_stdc = yes; then
  13942. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13943. fi
  13944. 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
  13945. do :
  13946. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13947. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13948. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13949. cat >>confdefs.h <<_ACEOF
  13950. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13951. _ACEOF
  13952. fi
  13953. done
  13954. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13955. if test "x$ac_cv_type_size_t" = xyes; then :
  13956. else
  13957. cat >>confdefs.h <<_ACEOF
  13958. #define size_t unsigned int
  13959. _ACEOF
  13960. fi
  13961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13962. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13963. if ${ac_cv_define_M_PI+:} false; then :
  13964. $as_echo_n "(cached) " >&6
  13965. else
  13966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13967. /* end confdefs.h. */
  13968. #include <math.h>
  13969. #ifdef M_PI
  13970. YES_IS_DEFINED
  13971. #endif
  13972. _ACEOF
  13973. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13974. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13975. ac_cv_define_M_PI=yes
  13976. else
  13977. ac_cv_define_M_PI=no
  13978. fi
  13979. rm -f conftest*
  13980. fi
  13981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  13982. $as_echo "$ac_cv_define_M_PI" >&6; }
  13983. if test "$ac_cv_define_M_PI" = "yes" ; then
  13984. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  13985. fi
  13986. case "$host" in
  13987. *-*-cygwin* | *-*-mingw32*)
  13988. ;;
  13989. *)
  13990. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13991. # for constant arguments. Useless!
  13992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13993. $as_echo_n "checking for working alloca.h... " >&6; }
  13994. if ${ac_cv_working_alloca_h+:} false; then :
  13995. $as_echo_n "(cached) " >&6
  13996. else
  13997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13998. /* end confdefs.h. */
  13999. #include <alloca.h>
  14000. int
  14001. main ()
  14002. {
  14003. char *p = (char *) alloca (2 * sizeof (int));
  14004. if (p) return 0;
  14005. ;
  14006. return 0;
  14007. }
  14008. _ACEOF
  14009. if ac_fn_c_try_link "$LINENO"; then :
  14010. ac_cv_working_alloca_h=yes
  14011. else
  14012. ac_cv_working_alloca_h=no
  14013. fi
  14014. rm -f core conftest.err conftest.$ac_objext \
  14015. conftest$ac_exeext conftest.$ac_ext
  14016. fi
  14017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14018. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14019. if test $ac_cv_working_alloca_h = yes; then
  14020. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14021. fi
  14022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14023. $as_echo_n "checking for alloca... " >&6; }
  14024. if ${ac_cv_func_alloca_works+:} false; then :
  14025. $as_echo_n "(cached) " >&6
  14026. else
  14027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14028. /* end confdefs.h. */
  14029. #ifdef __GNUC__
  14030. # define alloca __builtin_alloca
  14031. #else
  14032. # ifdef _MSC_VER
  14033. # include <malloc.h>
  14034. # define alloca _alloca
  14035. # else
  14036. # ifdef HAVE_ALLOCA_H
  14037. # include <alloca.h>
  14038. # else
  14039. # ifdef _AIX
  14040. #pragma alloca
  14041. # else
  14042. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14043. void *alloca (size_t);
  14044. # endif
  14045. # endif
  14046. # endif
  14047. # endif
  14048. #endif
  14049. int
  14050. main ()
  14051. {
  14052. char *p = (char *) alloca (1);
  14053. if (p) return 0;
  14054. ;
  14055. return 0;
  14056. }
  14057. _ACEOF
  14058. if ac_fn_c_try_link "$LINENO"; then :
  14059. ac_cv_func_alloca_works=yes
  14060. else
  14061. ac_cv_func_alloca_works=no
  14062. fi
  14063. rm -f core conftest.err conftest.$ac_objext \
  14064. conftest$ac_exeext conftest.$ac_ext
  14065. fi
  14066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14067. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14068. if test $ac_cv_func_alloca_works = yes; then
  14069. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14070. else
  14071. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14072. # that cause trouble. Some versions do not even contain alloca or
  14073. # contain a buggy version. If you still want to use their alloca,
  14074. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14075. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14076. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14078. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14079. if ${ac_cv_os_cray+:} false; then :
  14080. $as_echo_n "(cached) " >&6
  14081. else
  14082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14083. /* end confdefs.h. */
  14084. #if defined CRAY && ! defined CRAY2
  14085. webecray
  14086. #else
  14087. wenotbecray
  14088. #endif
  14089. _ACEOF
  14090. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14091. $EGREP "webecray" >/dev/null 2>&1; then :
  14092. ac_cv_os_cray=yes
  14093. else
  14094. ac_cv_os_cray=no
  14095. fi
  14096. rm -f conftest*
  14097. fi
  14098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14099. $as_echo "$ac_cv_os_cray" >&6; }
  14100. if test $ac_cv_os_cray = yes; then
  14101. for ac_func in _getb67 GETB67 getb67; do
  14102. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14103. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14104. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14105. cat >>confdefs.h <<_ACEOF
  14106. #define CRAY_STACKSEG_END $ac_func
  14107. _ACEOF
  14108. break
  14109. fi
  14110. done
  14111. fi
  14112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14113. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14114. if ${ac_cv_c_stack_direction+:} false; then :
  14115. $as_echo_n "(cached) " >&6
  14116. else
  14117. if test "$cross_compiling" = yes; then :
  14118. ac_cv_c_stack_direction=0
  14119. else
  14120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14121. /* end confdefs.h. */
  14122. $ac_includes_default
  14123. int
  14124. find_stack_direction (int *addr, int depth)
  14125. {
  14126. int dir, dummy = 0;
  14127. if (! addr)
  14128. addr = &dummy;
  14129. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14130. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14131. return dir + dummy;
  14132. }
  14133. int
  14134. main (int argc, char **argv)
  14135. {
  14136. return find_stack_direction (0, argc + !argv + 20) < 0;
  14137. }
  14138. _ACEOF
  14139. if ac_fn_c_try_run "$LINENO"; then :
  14140. ac_cv_c_stack_direction=1
  14141. else
  14142. ac_cv_c_stack_direction=-1
  14143. fi
  14144. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14145. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14146. fi
  14147. fi
  14148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14149. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14150. cat >>confdefs.h <<_ACEOF
  14151. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14152. _ACEOF
  14153. fi
  14154. ;;
  14155. esac
  14156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14157. $as_echo_n "checking for working memcmp... " >&6; }
  14158. if ${ac_cv_func_memcmp_working+:} false; then :
  14159. $as_echo_n "(cached) " >&6
  14160. else
  14161. if test "$cross_compiling" = yes; then :
  14162. ac_cv_func_memcmp_working=no
  14163. else
  14164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14165. /* end confdefs.h. */
  14166. $ac_includes_default
  14167. int
  14168. main ()
  14169. {
  14170. /* Some versions of memcmp are not 8-bit clean. */
  14171. char c0 = '\100', c1 = '\200', c2 = '\201';
  14172. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14173. return 1;
  14174. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14175. or more and with at least one buffer not starting on a 4-byte boundary.
  14176. William Lewis provided this test program. */
  14177. {
  14178. char foo[21];
  14179. char bar[21];
  14180. int i;
  14181. for (i = 0; i < 4; i++)
  14182. {
  14183. char *a = foo + i;
  14184. char *b = bar + i;
  14185. strcpy (a, "--------01111111");
  14186. strcpy (b, "--------10000000");
  14187. if (memcmp (a, b, 16) >= 0)
  14188. return 1;
  14189. }
  14190. return 0;
  14191. }
  14192. ;
  14193. return 0;
  14194. }
  14195. _ACEOF
  14196. if ac_fn_c_try_run "$LINENO"; then :
  14197. ac_cv_func_memcmp_working=yes
  14198. else
  14199. ac_cv_func_memcmp_working=no
  14200. fi
  14201. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14202. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14203. fi
  14204. fi
  14205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14206. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14207. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14208. *" memcmp.$ac_objext "* ) ;;
  14209. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14210. ;;
  14211. esac
  14212. if test x$ac_cv_func_memcmp_working = xyes; then
  14213. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14214. fi
  14215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14216. $as_echo_n "checking for working strtod... " >&6; }
  14217. if ${ac_cv_func_strtod+:} false; then :
  14218. $as_echo_n "(cached) " >&6
  14219. else
  14220. if test "$cross_compiling" = yes; then :
  14221. ac_cv_func_strtod=no
  14222. else
  14223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14224. /* end confdefs.h. */
  14225. $ac_includes_default
  14226. #ifndef strtod
  14227. double strtod ();
  14228. #endif
  14229. int
  14230. main()
  14231. {
  14232. {
  14233. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14234. char *string = " +69";
  14235. char *term;
  14236. double value;
  14237. value = strtod (string, &term);
  14238. if (value != 69 || term != (string + 4))
  14239. return 1;
  14240. }
  14241. {
  14242. /* Under Solaris 2.4, strtod returns the wrong value for the
  14243. terminating character under some conditions. */
  14244. char *string = "NaN";
  14245. char *term;
  14246. strtod (string, &term);
  14247. if (term != string && *(term - 1) == 0)
  14248. return 1;
  14249. }
  14250. return 0;
  14251. }
  14252. _ACEOF
  14253. if ac_fn_c_try_run "$LINENO"; then :
  14254. ac_cv_func_strtod=yes
  14255. else
  14256. ac_cv_func_strtod=no
  14257. fi
  14258. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14259. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14260. fi
  14261. fi
  14262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14263. $as_echo "$ac_cv_func_strtod" >&6; }
  14264. if test $ac_cv_func_strtod = no; then
  14265. case " $LIBOBJS " in
  14266. *" strtod.$ac_objext "* ) ;;
  14267. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14268. ;;
  14269. esac
  14270. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14271. if test "x$ac_cv_func_pow" = xyes; then :
  14272. fi
  14273. if test $ac_cv_func_pow = no; then
  14274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14275. $as_echo_n "checking for pow in -lm... " >&6; }
  14276. if ${ac_cv_lib_m_pow+:} false; then :
  14277. $as_echo_n "(cached) " >&6
  14278. else
  14279. ac_check_lib_save_LIBS=$LIBS
  14280. LIBS="-lm $LIBS"
  14281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14282. /* end confdefs.h. */
  14283. /* Override any GCC internal prototype to avoid an error.
  14284. Use char because int might match the return type of a GCC
  14285. builtin and then its argument prototype would still apply. */
  14286. #ifdef __cplusplus
  14287. extern "C"
  14288. #endif
  14289. char pow ();
  14290. int
  14291. main ()
  14292. {
  14293. return pow ();
  14294. ;
  14295. return 0;
  14296. }
  14297. _ACEOF
  14298. if ac_fn_c_try_link "$LINENO"; then :
  14299. ac_cv_lib_m_pow=yes
  14300. else
  14301. ac_cv_lib_m_pow=no
  14302. fi
  14303. rm -f core conftest.err conftest.$ac_objext \
  14304. conftest$ac_exeext conftest.$ac_ext
  14305. LIBS=$ac_check_lib_save_LIBS
  14306. fi
  14307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14308. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14309. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14310. POW_LIB=-lm
  14311. else
  14312. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14313. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14314. fi
  14315. fi
  14316. fi
  14317. if test x$ac_cv_func_strtod = xyes; then
  14318. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14319. fi
  14320. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14321. if test "x$ac_cv_func_mprotect" = xyes; then :
  14322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14323. /* end confdefs.h. */
  14324. #include <sys/types.h>
  14325. #include <sys/mman.h>
  14326. int
  14327. main ()
  14328. {
  14329. ;
  14330. return 0;
  14331. }
  14332. _ACEOF
  14333. if ac_fn_c_try_compile "$LINENO"; then :
  14334. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14335. fi
  14336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14337. fi
  14338. 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
  14339. do :
  14340. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14341. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14342. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14343. cat >>confdefs.h <<_ACEOF
  14344. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14345. _ACEOF
  14346. fi
  14347. done
  14348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14349. $as_echo_n "checking for pow in -lm... " >&6; }
  14350. if ${ac_cv_lib_m_pow+:} false; then :
  14351. $as_echo_n "(cached) " >&6
  14352. else
  14353. ac_check_lib_save_LIBS=$LIBS
  14354. LIBS="-lm $LIBS"
  14355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14356. /* end confdefs.h. */
  14357. /* Override any GCC internal prototype to avoid an error.
  14358. Use char because int might match the return type of a GCC
  14359. builtin and then its argument prototype would still apply. */
  14360. #ifdef __cplusplus
  14361. extern "C"
  14362. #endif
  14363. char pow ();
  14364. int
  14365. main ()
  14366. {
  14367. return pow ();
  14368. ;
  14369. return 0;
  14370. }
  14371. _ACEOF
  14372. if ac_fn_c_try_link "$LINENO"; then :
  14373. ac_cv_lib_m_pow=yes
  14374. else
  14375. ac_cv_lib_m_pow=no
  14376. fi
  14377. rm -f core conftest.err conftest.$ac_objext \
  14378. conftest$ac_exeext conftest.$ac_ext
  14379. LIBS=$ac_check_lib_save_LIBS
  14380. fi
  14381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14382. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14383. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14384. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14385. fi
  14386. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
  14387. do :
  14388. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14389. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14390. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14391. cat >>confdefs.h <<_ACEOF
  14392. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14393. _ACEOF
  14394. fi
  14395. done
  14396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14397. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14398. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14399. $as_echo_n "(cached) " >&6
  14400. else
  14401. ac_check_lib_save_LIBS=$LIBS
  14402. LIBS="-liconv $LIBS"
  14403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14404. /* end confdefs.h. */
  14405. /* Override any GCC internal prototype to avoid an error.
  14406. Use char because int might match the return type of a GCC
  14407. builtin and then its argument prototype would still apply. */
  14408. #ifdef __cplusplus
  14409. extern "C"
  14410. #endif
  14411. char iconv_open ();
  14412. int
  14413. main ()
  14414. {
  14415. return iconv_open ();
  14416. ;
  14417. return 0;
  14418. }
  14419. _ACEOF
  14420. if ac_fn_c_try_link "$LINENO"; then :
  14421. ac_cv_lib_iconv_iconv_open=yes
  14422. else
  14423. ac_cv_lib_iconv_iconv_open=no
  14424. fi
  14425. rm -f core conftest.err conftest.$ac_objext \
  14426. conftest$ac_exeext conftest.$ac_ext
  14427. LIBS=$ac_check_lib_save_LIBS
  14428. fi
  14429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14430. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14431. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14432. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14433. fi
  14434. for ac_func in iconv
  14435. do :
  14436. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14437. if test "x$ac_cv_func_iconv" = xyes; then :
  14438. cat >>confdefs.h <<_ACEOF
  14439. #define HAVE_ICONV 1
  14440. _ACEOF
  14441. fi
  14442. done
  14443. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14444. "
  14445. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14446. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14447. fi
  14448. fi
  14449. # Check whether --enable-gcc-atomics was given.
  14450. if test "${enable_gcc_atomics+set}" = set; then :
  14451. enableval=$enable_gcc_atomics;
  14452. else
  14453. enable_gcc_atomics=yes
  14454. fi
  14455. if test x$enable_gcc_atomics = xyes; then
  14456. have_gcc_atomics=no
  14457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14458. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14460. /* end confdefs.h. */
  14461. int
  14462. main ()
  14463. {
  14464. int a;
  14465. void *x, *y, *z;
  14466. __sync_lock_test_and_set(&a, 4);
  14467. __sync_lock_test_and_set(&x, y);
  14468. __sync_fetch_and_add(&a, 1);
  14469. __sync_bool_compare_and_swap(&a, 5, 10);
  14470. __sync_bool_compare_and_swap(&x, y, z);
  14471. ;
  14472. return 0;
  14473. }
  14474. _ACEOF
  14475. if ac_fn_c_try_link "$LINENO"; then :
  14476. have_gcc_atomics=yes
  14477. fi
  14478. rm -f core conftest.err conftest.$ac_objext \
  14479. conftest$ac_exeext conftest.$ac_ext
  14480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14481. $as_echo "$have_gcc_atomics" >&6; }
  14482. if test x$have_gcc_atomics = xyes; then
  14483. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14484. else
  14485. # See if we have the minimum operation needed for GCC atomics
  14486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14487. /* end confdefs.h. */
  14488. int
  14489. main ()
  14490. {
  14491. int a;
  14492. __sync_lock_test_and_set(&a, 1);
  14493. __sync_lock_release(&a);
  14494. ;
  14495. return 0;
  14496. }
  14497. _ACEOF
  14498. if ac_fn_c_try_link "$LINENO"; then :
  14499. have_gcc_sync_lock_test_and_set=yes
  14500. fi
  14501. rm -f core conftest.err conftest.$ac_objext \
  14502. conftest$ac_exeext conftest.$ac_ext
  14503. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14504. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14505. fi
  14506. fi
  14507. fi
  14508. # Standard C sources
  14509. SOURCES="$SOURCES $srcdir/src/*.c"
  14510. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14511. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14512. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14513. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14514. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14515. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14516. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14517. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14518. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14519. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14520. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14521. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14522. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14523. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14524. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14525. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14526. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14527. # Check whether --enable-atomic was given.
  14528. if test "${enable_atomic+set}" = set; then :
  14529. enableval=$enable_atomic;
  14530. else
  14531. enable_atomic=yes
  14532. fi
  14533. if test x$enable_atomic != xyes; then
  14534. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14535. else
  14536. SUMMARY_modules="${SUMMARY_modules} atomic"
  14537. fi
  14538. # Check whether --enable-audio was given.
  14539. if test "${enable_audio+set}" = set; then :
  14540. enableval=$enable_audio;
  14541. else
  14542. enable_audio=yes
  14543. fi
  14544. if test x$enable_audio != xyes; then
  14545. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14546. else
  14547. SUMMARY_modules="${SUMMARY_modules} audio"
  14548. fi
  14549. # Check whether --enable-video was given.
  14550. if test "${enable_video+set}" = set; then :
  14551. enableval=$enable_video;
  14552. else
  14553. enable_video=yes
  14554. fi
  14555. if test x$enable_video != xyes; then
  14556. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14557. else
  14558. SUMMARY_modules="${SUMMARY_modules} video"
  14559. fi
  14560. # Check whether --enable-render was given.
  14561. if test "${enable_render+set}" = set; then :
  14562. enableval=$enable_render;
  14563. else
  14564. enable_render=yes
  14565. fi
  14566. if test x$enable_render != xyes; then
  14567. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14568. else
  14569. SUMMARY_modules="${SUMMARY_modules} render"
  14570. fi
  14571. # Check whether --enable-events was given.
  14572. if test "${enable_events+set}" = set; then :
  14573. enableval=$enable_events;
  14574. else
  14575. enable_events=yes
  14576. fi
  14577. if test x$enable_events != xyes; then
  14578. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14579. else
  14580. SUMMARY_modules="${SUMMARY_modules} events"
  14581. fi
  14582. # Check whether --enable-joystick was given.
  14583. if test "${enable_joystick+set}" = set; then :
  14584. enableval=$enable_joystick;
  14585. else
  14586. enable_joystick=yes
  14587. fi
  14588. if test x$enable_joystick != xyes; then
  14589. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14590. else
  14591. SUMMARY_modules="${SUMMARY_modules} joystick"
  14592. fi
  14593. # Check whether --enable-haptic was given.
  14594. if test "${enable_haptic+set}" = set; then :
  14595. enableval=$enable_haptic;
  14596. else
  14597. enable_haptic=yes
  14598. fi
  14599. if test x$enable_haptic != xyes; then
  14600. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14601. else
  14602. SUMMARY_modules="${SUMMARY_modules} haptic"
  14603. fi
  14604. # Check whether --enable-power was given.
  14605. if test "${enable_power+set}" = set; then :
  14606. enableval=$enable_power;
  14607. else
  14608. enable_power=yes
  14609. fi
  14610. if test x$enable_power != xyes; then
  14611. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14612. else
  14613. SUMMARY_modules="${SUMMARY_modules} power"
  14614. fi
  14615. # Check whether --enable-filesystem was given.
  14616. if test "${enable_filesystem+set}" = set; then :
  14617. enableval=$enable_filesystem;
  14618. else
  14619. enable_filesystem=yes
  14620. fi
  14621. if test x$enable_filesystem != xyes; then
  14622. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14623. else
  14624. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14625. fi
  14626. # Check whether --enable-threads was given.
  14627. if test "${enable_threads+set}" = set; then :
  14628. enableval=$enable_threads;
  14629. else
  14630. enable_threads=yes
  14631. fi
  14632. if test x$enable_threads != xyes; then
  14633. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14634. else
  14635. SUMMARY_modules="${SUMMARY_modules} threads"
  14636. fi
  14637. # Check whether --enable-timers was given.
  14638. if test "${enable_timers+set}" = set; then :
  14639. enableval=$enable_timers;
  14640. else
  14641. enable_timers=yes
  14642. fi
  14643. if test x$enable_timers != xyes; then
  14644. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14645. else
  14646. SUMMARY_modules="${SUMMARY_modules} timers"
  14647. fi
  14648. # Check whether --enable-file was given.
  14649. if test "${enable_file+set}" = set; then :
  14650. enableval=$enable_file;
  14651. else
  14652. enable_file=yes
  14653. fi
  14654. if test x$enable_file != xyes; then
  14655. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14656. else
  14657. SUMMARY_modules="${SUMMARY_modules} file"
  14658. fi
  14659. # Check whether --enable-loadso was given.
  14660. if test "${enable_loadso+set}" = set; then :
  14661. enableval=$enable_loadso;
  14662. else
  14663. enable_loadso=yes
  14664. fi
  14665. if test x$enable_loadso != xyes; then
  14666. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14667. else
  14668. SUMMARY_modules="${SUMMARY_modules} loadso"
  14669. fi
  14670. # Check whether --enable-cpuinfo was given.
  14671. if test "${enable_cpuinfo+set}" = set; then :
  14672. enableval=$enable_cpuinfo;
  14673. else
  14674. enable_cpuinfo=yes
  14675. fi
  14676. if test x$enable_cpuinfo != xyes; then
  14677. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14678. else
  14679. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14680. fi
  14681. # Check whether --enable-assembly was given.
  14682. if test "${enable_assembly+set}" = set; then :
  14683. enableval=$enable_assembly;
  14684. else
  14685. enable_assembly=yes
  14686. fi
  14687. if test x$enable_assembly = xyes; then
  14688. SUMMARY_modules="${SUMMARY_modules} assembly"
  14689. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14690. # Make sure that we don't generate floating point code that would
  14691. # cause illegal instruction exceptions on older processors
  14692. case "$host" in
  14693. *-*-darwin*)
  14694. # Don't need to worry about Apple hardware, it's all SSE capable
  14695. default_ssemath=yes
  14696. ;;
  14697. *64-*-*)
  14698. # x86 64-bit architectures all have SSE instructions
  14699. default_ssemath=yes
  14700. ;;
  14701. *)
  14702. default_ssemath=no
  14703. ;;
  14704. esac
  14705. # Check whether --enable-ssemath was given.
  14706. if test "${enable_ssemath+set}" = set; then :
  14707. enableval=$enable_ssemath;
  14708. else
  14709. enable_ssemath=$default_ssemath
  14710. fi
  14711. if test x$enable_ssemath = xno; then
  14712. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
  14713. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14714. fi
  14715. fi
  14716. # Check whether --enable-mmx was given.
  14717. if test "${enable_mmx+set}" = set; then :
  14718. enableval=$enable_mmx;
  14719. else
  14720. enable_mmx=yes
  14721. fi
  14722. if test x$enable_mmx = xyes; then
  14723. save_CFLAGS="$CFLAGS"
  14724. have_gcc_mmx=no
  14725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14726. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14727. mmx_CFLAGS="-mmmx"
  14728. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14730. /* end confdefs.h. */
  14731. #ifdef __MINGW32__
  14732. #include <_mingw.h>
  14733. #ifdef __MINGW64_VERSION_MAJOR
  14734. #include <intrin.h>
  14735. #else
  14736. #include <mmintrin.h>
  14737. #endif
  14738. #else
  14739. #include <mmintrin.h>
  14740. #endif
  14741. #ifndef __MMX__
  14742. #error Assembler CPP flag not enabled
  14743. #endif
  14744. int
  14745. main ()
  14746. {
  14747. ;
  14748. return 0;
  14749. }
  14750. _ACEOF
  14751. if ac_fn_c_try_compile "$LINENO"; then :
  14752. have_gcc_mmx=yes
  14753. fi
  14754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14756. $as_echo "$have_gcc_mmx" >&6; }
  14757. CFLAGS="$save_CFLAGS"
  14758. if test x$have_gcc_mmx = xyes; then
  14759. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14760. SUMMARY_math="${SUMMARY_math} mmx"
  14761. fi
  14762. fi
  14763. # Check whether --enable-3dnow was given.
  14764. if test "${enable_3dnow+set}" = set; then :
  14765. enableval=$enable_3dnow;
  14766. else
  14767. enable_3dnow=yes
  14768. fi
  14769. if test x$enable_3dnow = xyes; then
  14770. save_CFLAGS="$CFLAGS"
  14771. have_gcc_3dnow=no
  14772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14773. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14774. amd3dnow_CFLAGS="-m3dnow"
  14775. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14777. /* end confdefs.h. */
  14778. #include <mm3dnow.h>
  14779. #ifndef __3dNOW__
  14780. #error Assembler CPP flag not enabled
  14781. #endif
  14782. int
  14783. main ()
  14784. {
  14785. void *p = 0;
  14786. _m_prefetch(p);
  14787. ;
  14788. return 0;
  14789. }
  14790. _ACEOF
  14791. if ac_fn_c_try_link "$LINENO"; then :
  14792. have_gcc_3dnow=yes
  14793. fi
  14794. rm -f core conftest.err conftest.$ac_objext \
  14795. conftest$ac_exeext conftest.$ac_ext
  14796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14797. $as_echo "$have_gcc_3dnow" >&6; }
  14798. CFLAGS="$save_CFLAGS"
  14799. if test x$have_gcc_3dnow = xyes; then
  14800. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14801. SUMMARY_math="${SUMMARY_math} 3dnow"
  14802. fi
  14803. fi
  14804. # Check whether --enable-sse was given.
  14805. if test "${enable_sse+set}" = set; then :
  14806. enableval=$enable_sse;
  14807. else
  14808. enable_sse=yes
  14809. fi
  14810. if test x$enable_sse = xyes; then
  14811. save_CFLAGS="$CFLAGS"
  14812. have_gcc_sse=no
  14813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14814. $as_echo_n "checking for GCC -msse option... " >&6; }
  14815. sse_CFLAGS="-msse"
  14816. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14818. /* end confdefs.h. */
  14819. #ifdef __MINGW32__
  14820. #include <_mingw.h>
  14821. #ifdef __MINGW64_VERSION_MAJOR
  14822. #include <intrin.h>
  14823. #else
  14824. #include <xmmintrin.h>
  14825. #endif
  14826. #else
  14827. #include <xmmintrin.h>
  14828. #endif
  14829. #ifndef __SSE__
  14830. #error Assembler CPP flag not enabled
  14831. #endif
  14832. int
  14833. main ()
  14834. {
  14835. ;
  14836. return 0;
  14837. }
  14838. _ACEOF
  14839. if ac_fn_c_try_compile "$LINENO"; then :
  14840. have_gcc_sse=yes
  14841. fi
  14842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14844. $as_echo "$have_gcc_sse" >&6; }
  14845. CFLAGS="$save_CFLAGS"
  14846. if test x$have_gcc_sse = xyes; then
  14847. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14848. SUMMARY_math="${SUMMARY_math} sse"
  14849. fi
  14850. fi
  14851. # Check whether --enable-sse2 was given.
  14852. if test "${enable_sse2+set}" = set; then :
  14853. enableval=$enable_sse2;
  14854. else
  14855. enable_sse2=$default_ssemath
  14856. fi
  14857. if test x$enable_sse2 = xyes; then
  14858. save_CFLAGS="$CFLAGS"
  14859. have_gcc_sse2=no
  14860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14861. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14862. sse2_CFLAGS="-msse2"
  14863. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14865. /* end confdefs.h. */
  14866. #ifdef __MINGW32__
  14867. #include <_mingw.h>
  14868. #ifdef __MINGW64_VERSION_MAJOR
  14869. #include <intrin.h>
  14870. #else
  14871. #include <emmintrin.h>
  14872. #endif
  14873. #else
  14874. #include <emmintrin.h>
  14875. #endif
  14876. #ifndef __SSE2__
  14877. #error Assembler CPP flag not enabled
  14878. #endif
  14879. int
  14880. main ()
  14881. {
  14882. ;
  14883. return 0;
  14884. }
  14885. _ACEOF
  14886. if ac_fn_c_try_compile "$LINENO"; then :
  14887. have_gcc_sse2=yes
  14888. fi
  14889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14891. $as_echo "$have_gcc_sse2" >&6; }
  14892. CFLAGS="$save_CFLAGS"
  14893. if test x$have_gcc_sse2 = xyes; then
  14894. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14895. SUMMARY_math="${SUMMARY_math} sse2"
  14896. fi
  14897. fi
  14898. # Check whether --enable-altivec was given.
  14899. if test "${enable_altivec+set}" = set; then :
  14900. enableval=$enable_altivec;
  14901. else
  14902. enable_altivec=yes
  14903. fi
  14904. if test x$enable_altivec = xyes; then
  14905. save_CFLAGS="$CFLAGS"
  14906. have_gcc_altivec=no
  14907. have_altivec_h_hdr=no
  14908. altivec_CFLAGS="-maltivec"
  14909. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14911. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14913. /* end confdefs.h. */
  14914. #include <altivec.h>
  14915. vector unsigned int vzero() {
  14916. return vec_splat_u32(0);
  14917. }
  14918. int
  14919. main ()
  14920. {
  14921. ;
  14922. return 0;
  14923. }
  14924. _ACEOF
  14925. if ac_fn_c_try_compile "$LINENO"; then :
  14926. have_gcc_altivec=yes
  14927. have_altivec_h_hdr=yes
  14928. fi
  14929. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14931. $as_echo "$have_gcc_altivec" >&6; }
  14932. if test x$have_gcc_altivec = xno; then
  14933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  14934. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  14935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14936. /* end confdefs.h. */
  14937. vector unsigned int vzero() {
  14938. return vec_splat_u32(0);
  14939. }
  14940. int
  14941. main ()
  14942. {
  14943. ;
  14944. return 0;
  14945. }
  14946. _ACEOF
  14947. if ac_fn_c_try_compile "$LINENO"; then :
  14948. have_gcc_altivec=yes
  14949. fi
  14950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14952. $as_echo "$have_gcc_altivec" >&6; }
  14953. fi
  14954. if test x$have_gcc_altivec = xno; then
  14955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  14956. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  14957. altivec_CFLAGS="-faltivec"
  14958. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14960. /* end confdefs.h. */
  14961. #include <altivec.h>
  14962. vector unsigned int vzero() {
  14963. return vec_splat_u32(0);
  14964. }
  14965. int
  14966. main ()
  14967. {
  14968. ;
  14969. return 0;
  14970. }
  14971. _ACEOF
  14972. if ac_fn_c_try_compile "$LINENO"; then :
  14973. have_gcc_altivec=yes
  14974. have_altivec_h_hdr=yes
  14975. fi
  14976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14978. $as_echo "$have_gcc_altivec" >&6; }
  14979. fi
  14980. if test x$have_gcc_altivec = xno; then
  14981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  14982. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  14983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14984. /* end confdefs.h. */
  14985. vector unsigned int vzero() {
  14986. return vec_splat_u32(0);
  14987. }
  14988. int
  14989. main ()
  14990. {
  14991. ;
  14992. return 0;
  14993. }
  14994. _ACEOF
  14995. if ac_fn_c_try_compile "$LINENO"; then :
  14996. have_gcc_altivec=yes
  14997. fi
  14998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15000. $as_echo "$have_gcc_altivec" >&6; }
  15001. fi
  15002. CFLAGS="$save_CFLAGS"
  15003. if test x$have_gcc_altivec = xyes; then
  15004. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15005. if test x$have_altivec_h_hdr = xyes; then
  15006. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15007. fi
  15008. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15009. SUMMARY_math="${SUMMARY_math} altivec"
  15010. fi
  15011. fi
  15012. fi
  15013. CheckOSS()
  15014. {
  15015. # Check whether --enable-oss was given.
  15016. if test "${enable_oss+set}" = set; then :
  15017. enableval=$enable_oss;
  15018. else
  15019. enable_oss=maybe
  15020. fi
  15021. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15022. # use sndio instead. So on there, we default to disabled. You can force
  15023. # it on if you really want, though.
  15024. if test x$enable_oss = xmaybe; then
  15025. enable_oss=yes
  15026. case "$host" in
  15027. *-*-openbsd*)
  15028. enable_oss=no;;
  15029. esac
  15030. fi
  15031. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15033. $as_echo_n "checking for OSS audio support... " >&6; }
  15034. have_oss=no
  15035. if test x$have_oss != xyes; then
  15036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15037. /* end confdefs.h. */
  15038. #include <sys/soundcard.h>
  15039. int
  15040. main ()
  15041. {
  15042. int arg = SNDCTL_DSP_SETFRAGMENT;
  15043. ;
  15044. return 0;
  15045. }
  15046. _ACEOF
  15047. if ac_fn_c_try_compile "$LINENO"; then :
  15048. have_oss=yes
  15049. fi
  15050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15051. fi
  15052. if test x$have_oss != xyes; then
  15053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15054. /* end confdefs.h. */
  15055. #include <soundcard.h>
  15056. int
  15057. main ()
  15058. {
  15059. int arg = SNDCTL_DSP_SETFRAGMENT;
  15060. ;
  15061. return 0;
  15062. }
  15063. _ACEOF
  15064. if ac_fn_c_try_compile "$LINENO"; then :
  15065. have_oss=yes
  15066. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15067. fi
  15068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15069. fi
  15070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15071. $as_echo "$have_oss" >&6; }
  15072. if test x$have_oss = xyes; then
  15073. SUMMARY_audio="${SUMMARY_audio} oss"
  15074. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15075. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15076. have_audio=yes
  15077. # We may need to link with ossaudio emulation library
  15078. case "$host" in
  15079. *-*-openbsd*|*-*-netbsd*)
  15080. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15081. esac
  15082. fi
  15083. fi
  15084. }
  15085. CheckALSA()
  15086. {
  15087. # Check whether --enable-alsa was given.
  15088. if test "${enable_alsa+set}" = set; then :
  15089. enableval=$enable_alsa;
  15090. else
  15091. enable_alsa=yes
  15092. fi
  15093. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15094. alsa_save_CFLAGS="$CFLAGS"
  15095. alsa_save_LDFLAGS="$LDFLAGS"
  15096. alsa_save_LIBS="$LIBS"
  15097. alsa_found=yes
  15098. # Check whether --with-alsa-prefix was given.
  15099. if test "${with_alsa_prefix+set}" = set; then :
  15100. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15101. else
  15102. alsa_prefix=""
  15103. fi
  15104. # Check whether --with-alsa-inc-prefix was given.
  15105. if test "${with_alsa_inc_prefix+set}" = set; then :
  15106. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15107. else
  15108. alsa_inc_prefix=""
  15109. fi
  15110. # Check whether --enable-alsatest was given.
  15111. if test "${enable_alsatest+set}" = set; then :
  15112. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15113. else
  15114. enable_alsatest=yes
  15115. fi
  15116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15117. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15118. if test "$alsa_inc_prefix" != "" ; then
  15119. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15120. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15121. fi
  15122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15123. $as_echo "$ALSA_CFLAGS" >&6; }
  15124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15125. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15126. if test "$alsa_prefix" != "" ; then
  15127. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15128. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15129. fi
  15130. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15131. LIBS=`echo $LIBS | sed 's/-lm//'`
  15132. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15133. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15134. LIBS=`echo $LIBS | sed 's/ //'`
  15135. LIBS="$ALSA_LIBS $LIBS"
  15136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15137. $as_echo "$ALSA_LIBS" >&6; }
  15138. min_alsa_version=1.0.11
  15139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15140. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15141. no_alsa=""
  15142. alsa_min_major_version=`echo $min_alsa_version | \
  15143. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15144. alsa_min_minor_version=`echo $min_alsa_version | \
  15145. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15146. alsa_min_micro_version=`echo $min_alsa_version | \
  15147. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15148. ac_ext=c
  15149. ac_cpp='$CPP $CPPFLAGS'
  15150. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15151. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15152. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15154. /* end confdefs.h. */
  15155. #include <alsa/asoundlib.h>
  15156. int
  15157. main ()
  15158. {
  15159. /* ensure backward compatibility */
  15160. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15161. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15162. #endif
  15163. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15164. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15165. #endif
  15166. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15167. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15168. #endif
  15169. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15170. exit(0);
  15171. # else
  15172. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15173. # error not present
  15174. # endif
  15175. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15176. exit(0);
  15177. # else
  15178. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15179. # error not present
  15180. # endif
  15181. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15182. # error not present
  15183. # endif
  15184. # endif
  15185. # endif
  15186. exit(0);
  15187. ;
  15188. return 0;
  15189. }
  15190. _ACEOF
  15191. if ac_fn_c_try_compile "$LINENO"; then :
  15192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15193. $as_echo "found." >&6; }
  15194. else
  15195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15196. $as_echo "not present." >&6; }
  15197. alsa_found=no
  15198. fi
  15199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15200. ac_ext=c
  15201. ac_cpp='$CPP $CPPFLAGS'
  15202. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15203. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15204. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15205. if test "x$enable_alsatest" = "xyes"; then
  15206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15207. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15208. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15209. $as_echo_n "(cached) " >&6
  15210. else
  15211. ac_check_lib_save_LIBS=$LIBS
  15212. LIBS="-lasound $LIBS"
  15213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15214. /* end confdefs.h. */
  15215. /* Override any GCC internal prototype to avoid an error.
  15216. Use char because int might match the return type of a GCC
  15217. builtin and then its argument prototype would still apply. */
  15218. #ifdef __cplusplus
  15219. extern "C"
  15220. #endif
  15221. char snd_ctl_open ();
  15222. int
  15223. main ()
  15224. {
  15225. return snd_ctl_open ();
  15226. ;
  15227. return 0;
  15228. }
  15229. _ACEOF
  15230. if ac_fn_c_try_link "$LINENO"; then :
  15231. ac_cv_lib_asound_snd_ctl_open=yes
  15232. else
  15233. ac_cv_lib_asound_snd_ctl_open=no
  15234. fi
  15235. rm -f core conftest.err conftest.$ac_objext \
  15236. conftest$ac_exeext conftest.$ac_ext
  15237. LIBS=$ac_check_lib_save_LIBS
  15238. fi
  15239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15240. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15241. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15242. cat >>confdefs.h <<_ACEOF
  15243. #define HAVE_LIBASOUND 1
  15244. _ACEOF
  15245. LIBS="-lasound $LIBS"
  15246. else
  15247. alsa_found=no
  15248. fi
  15249. fi
  15250. if test "x$alsa_found" = "xyes" ; then
  15251. have_alsa=yes
  15252. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15253. LIBS=`echo $LIBS | sed 's/ //'`
  15254. LIBS="-lasound $LIBS"
  15255. fi
  15256. if test "x$alsa_found" = "xno" ; then
  15257. have_alsa=no
  15258. CFLAGS="$alsa_save_CFLAGS"
  15259. LDFLAGS="$alsa_save_LDFLAGS"
  15260. LIBS="$alsa_save_LIBS"
  15261. ALSA_CFLAGS=""
  15262. ALSA_LIBS=""
  15263. fi
  15264. # Restore all flags from before the ALSA detection runs
  15265. CFLAGS="$alsa_save_CFLAGS"
  15266. LDFLAGS="$alsa_save_LDFLAGS"
  15267. LIBS="$alsa_save_LIBS"
  15268. if test x$have_alsa = xyes; then
  15269. # Check whether --enable-alsa-shared was given.
  15270. if test "${enable_alsa_shared+set}" = set; then :
  15271. enableval=$enable_alsa_shared;
  15272. else
  15273. enable_alsa_shared=yes
  15274. fi
  15275. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15276. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15277. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15278. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15279. if test x$have_loadso != xyes && \
  15280. test x$enable_alsa_shared = xyes; then
  15281. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15282. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15283. fi
  15284. if test x$have_loadso = xyes && \
  15285. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15286. echo "-- dynamic libasound -> $alsa_lib"
  15287. cat >>confdefs.h <<_ACEOF
  15288. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15289. _ACEOF
  15290. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15291. else
  15292. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15293. SUMMARY_audio="${SUMMARY_audio} alsa"
  15294. fi
  15295. have_audio=yes
  15296. fi
  15297. fi
  15298. }
  15299. CheckESD()
  15300. {
  15301. # Check whether --enable-esd was given.
  15302. if test "${enable_esd+set}" = set; then :
  15303. enableval=$enable_esd;
  15304. else
  15305. enable_esd=yes
  15306. fi
  15307. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15308. # Check whether --with-esd-prefix was given.
  15309. if test "${with_esd_prefix+set}" = set; then :
  15310. withval=$with_esd_prefix; esd_prefix="$withval"
  15311. else
  15312. esd_prefix=""
  15313. fi
  15314. # Check whether --with-esd-exec-prefix was given.
  15315. if test "${with_esd_exec_prefix+set}" = set; then :
  15316. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15317. else
  15318. esd_exec_prefix=""
  15319. fi
  15320. # Check whether --enable-esdtest was given.
  15321. if test "${enable_esdtest+set}" = set; then :
  15322. enableval=$enable_esdtest;
  15323. else
  15324. enable_esdtest=yes
  15325. fi
  15326. if test x$esd_exec_prefix != x ; then
  15327. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15328. if test x${ESD_CONFIG+set} != xset ; then
  15329. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15330. fi
  15331. fi
  15332. if test x$esd_prefix != x ; then
  15333. esd_args="$esd_args --prefix=$esd_prefix"
  15334. if test x${ESD_CONFIG+set} != xset ; then
  15335. ESD_CONFIG=$esd_prefix/bin/esd-config
  15336. fi
  15337. fi
  15338. # Extract the first word of "esd-config", so it can be a program name with args.
  15339. set dummy esd-config; ac_word=$2
  15340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15341. $as_echo_n "checking for $ac_word... " >&6; }
  15342. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15343. $as_echo_n "(cached) " >&6
  15344. else
  15345. case $ESD_CONFIG in
  15346. [\\/]* | ?:[\\/]*)
  15347. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15348. ;;
  15349. *)
  15350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15351. for as_dir in $PATH
  15352. do
  15353. IFS=$as_save_IFS
  15354. test -z "$as_dir" && as_dir=.
  15355. for ac_exec_ext in '' $ac_executable_extensions; do
  15356. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15357. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15358. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15359. break 2
  15360. fi
  15361. done
  15362. done
  15363. IFS=$as_save_IFS
  15364. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15365. ;;
  15366. esac
  15367. fi
  15368. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15369. if test -n "$ESD_CONFIG"; then
  15370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15371. $as_echo "$ESD_CONFIG" >&6; }
  15372. else
  15373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15374. $as_echo "no" >&6; }
  15375. fi
  15376. min_esd_version=0.2.8
  15377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15378. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15379. no_esd=""
  15380. if test "$ESD_CONFIG" = "no" ; then
  15381. no_esd=yes
  15382. else
  15383. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15384. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15385. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15386. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15387. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15388. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15389. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15390. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15391. if test "x$enable_esdtest" = "xyes" ; then
  15392. ac_save_CFLAGS="$CFLAGS"
  15393. ac_save_LIBS="$LIBS"
  15394. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15395. LIBS="$LIBS $ESD_LIBS"
  15396. rm -f conf.esdtest
  15397. if test "$cross_compiling" = yes; then :
  15398. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15399. else
  15400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15401. /* end confdefs.h. */
  15402. #include <stdio.h>
  15403. #include <stdlib.h>
  15404. #include <string.h>
  15405. #include <esd.h>
  15406. char*
  15407. my_strdup (char *str)
  15408. {
  15409. char *new_str;
  15410. if (str)
  15411. {
  15412. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15413. strcpy (new_str, str);
  15414. }
  15415. else
  15416. new_str = NULL;
  15417. return new_str;
  15418. }
  15419. int main ()
  15420. {
  15421. int major, minor, micro;
  15422. char *tmp_version;
  15423. system ("touch conf.esdtest");
  15424. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15425. tmp_version = my_strdup("$min_esd_version");
  15426. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15427. printf("%s, bad version string\n", "$min_esd_version");
  15428. exit(1);
  15429. }
  15430. if (($esd_major_version > major) ||
  15431. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15432. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15433. {
  15434. return 0;
  15435. }
  15436. else
  15437. {
  15438. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15439. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15440. printf("*** best to upgrade to the required version.\n");
  15441. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15442. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15443. printf("*** config.cache before re-running configure\n");
  15444. return 1;
  15445. }
  15446. }
  15447. _ACEOF
  15448. if ac_fn_c_try_run "$LINENO"; then :
  15449. else
  15450. no_esd=yes
  15451. fi
  15452. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15453. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15454. fi
  15455. CFLAGS="$ac_save_CFLAGS"
  15456. LIBS="$ac_save_LIBS"
  15457. fi
  15458. fi
  15459. if test "x$no_esd" = x ; then
  15460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15461. $as_echo "yes" >&6; }
  15462. have_esd=yes
  15463. else
  15464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15465. $as_echo "no" >&6; }
  15466. if test "$ESD_CONFIG" = "no" ; then
  15467. echo "*** The esd-config script installed by ESD could not be found"
  15468. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15469. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15470. echo "*** full path to esd-config."
  15471. else
  15472. if test -f conf.esdtest ; then
  15473. :
  15474. else
  15475. echo "*** Could not run ESD test program, checking why..."
  15476. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15477. LIBS="$LIBS $ESD_LIBS"
  15478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15479. /* end confdefs.h. */
  15480. #include <stdio.h>
  15481. #include <esd.h>
  15482. int
  15483. main ()
  15484. {
  15485. return 0;
  15486. ;
  15487. return 0;
  15488. }
  15489. _ACEOF
  15490. if ac_fn_c_try_link "$LINENO"; then :
  15491. echo "*** The test program compiled, but did not run. This usually means"
  15492. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15493. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15494. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15495. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15496. echo "*** is required on your system"
  15497. echo "***"
  15498. echo "*** If you have an old version installed, it is best to remove it, although"
  15499. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15500. else
  15501. echo "*** The test program failed to compile or link. See the file config.log for the"
  15502. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15503. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15504. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15505. fi
  15506. rm -f core conftest.err conftest.$ac_objext \
  15507. conftest$ac_exeext conftest.$ac_ext
  15508. CFLAGS="$ac_save_CFLAGS"
  15509. LIBS="$ac_save_LIBS"
  15510. fi
  15511. fi
  15512. ESD_CFLAGS=""
  15513. ESD_LIBS=""
  15514. have_esd=no
  15515. fi
  15516. rm -f conf.esdtest
  15517. if test x$have_esd = xyes; then
  15518. # Check whether --enable-esd-shared was given.
  15519. if test "${enable_esd_shared+set}" = set; then :
  15520. enableval=$enable_esd_shared;
  15521. else
  15522. enable_esd_shared=yes
  15523. fi
  15524. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15525. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15526. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15527. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15528. if test x$have_loadso != xyes && \
  15529. test x$enable_esd_shared = xyes; then
  15530. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15531. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15532. fi
  15533. if test x$have_loadso = xyes && \
  15534. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15535. echo "-- dynamic libesd -> $esd_lib"
  15536. cat >>confdefs.h <<_ACEOF
  15537. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15538. _ACEOF
  15539. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15540. else
  15541. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15542. SUMMARY_audio="${SUMMARY_audio} esd"
  15543. fi
  15544. have_audio=yes
  15545. fi
  15546. fi
  15547. }
  15548. CheckPulseAudio()
  15549. {
  15550. # Check whether --enable-pulseaudio was given.
  15551. if test "${enable_pulseaudio+set}" = set; then :
  15552. enableval=$enable_pulseaudio;
  15553. else
  15554. enable_pulseaudio=yes
  15555. fi
  15556. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15557. audio_pulseaudio=no
  15558. PULSEAUDIO_REQUIRED_VERSION=0.9
  15559. # Extract the first word of "pkg-config", so it can be a program name with args.
  15560. set dummy pkg-config; ac_word=$2
  15561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15562. $as_echo_n "checking for $ac_word... " >&6; }
  15563. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15564. $as_echo_n "(cached) " >&6
  15565. else
  15566. case $PKG_CONFIG in
  15567. [\\/]* | ?:[\\/]*)
  15568. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15569. ;;
  15570. *)
  15571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15572. for as_dir in $PATH
  15573. do
  15574. IFS=$as_save_IFS
  15575. test -z "$as_dir" && as_dir=.
  15576. for ac_exec_ext in '' $ac_executable_extensions; do
  15577. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15578. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15580. break 2
  15581. fi
  15582. done
  15583. done
  15584. IFS=$as_save_IFS
  15585. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15586. ;;
  15587. esac
  15588. fi
  15589. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15590. if test -n "$PKG_CONFIG"; then
  15591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15592. $as_echo "$PKG_CONFIG" >&6; }
  15593. else
  15594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15595. $as_echo "no" >&6; }
  15596. fi
  15597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15598. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15599. if test x$PKG_CONFIG != xno; then
  15600. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15601. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15602. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15603. audio_pulseaudio=yes
  15604. fi
  15605. fi
  15606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15607. $as_echo "$audio_pulseaudio" >&6; }
  15608. if test x$audio_pulseaudio = xyes; then
  15609. # Check whether --enable-pulseaudio-shared was given.
  15610. if test "${enable_pulseaudio_shared+set}" = set; then :
  15611. enableval=$enable_pulseaudio_shared;
  15612. else
  15613. enable_pulseaudio_shared=yes
  15614. fi
  15615. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15616. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15617. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15618. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15619. if test x$have_loadso != xyes && \
  15620. test x$enable_pulseaudio_shared = xyes; then
  15621. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15622. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15623. fi
  15624. if test x$have_loadso = xyes && \
  15625. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15626. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15627. cat >>confdefs.h <<_ACEOF
  15628. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15629. _ACEOF
  15630. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15631. case "$host" in
  15632. # On Solaris, pulseaudio must be linked deferred explicitly
  15633. # to prevent undefined symbol failures.
  15634. *-*-solaris*)
  15635. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15636. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15637. esac
  15638. else
  15639. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15640. SUMMARY_audio="${SUMMARY_audio} pulse"
  15641. fi
  15642. have_audio=yes
  15643. fi
  15644. fi
  15645. }
  15646. CheckARTSC()
  15647. {
  15648. # Check whether --enable-arts was given.
  15649. if test "${enable_arts+set}" = set; then :
  15650. enableval=$enable_arts;
  15651. else
  15652. enable_arts=yes
  15653. fi
  15654. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15655. # Extract the first word of "artsc-config", so it can be a program name with args.
  15656. set dummy artsc-config; ac_word=$2
  15657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15658. $as_echo_n "checking for $ac_word... " >&6; }
  15659. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15660. $as_echo_n "(cached) " >&6
  15661. else
  15662. case $ARTSCONFIG in
  15663. [\\/]* | ?:[\\/]*)
  15664. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15665. ;;
  15666. *)
  15667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15668. for as_dir in $PATH
  15669. do
  15670. IFS=$as_save_IFS
  15671. test -z "$as_dir" && as_dir=.
  15672. for ac_exec_ext in '' $ac_executable_extensions; do
  15673. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15674. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15675. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15676. break 2
  15677. fi
  15678. done
  15679. done
  15680. IFS=$as_save_IFS
  15681. ;;
  15682. esac
  15683. fi
  15684. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15685. if test -n "$ARTSCONFIG"; then
  15686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15687. $as_echo "$ARTSCONFIG" >&6; }
  15688. else
  15689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15690. $as_echo "no" >&6; }
  15691. fi
  15692. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15693. : # arts isn't installed
  15694. else
  15695. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15696. ARTS_LIBS=`$ARTSCONFIG --libs`
  15697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15698. $as_echo_n "checking for aRts development environment... " >&6; }
  15699. audio_arts=no
  15700. save_CFLAGS="$CFLAGS"
  15701. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15703. /* end confdefs.h. */
  15704. #include <artsc.h>
  15705. int
  15706. main ()
  15707. {
  15708. arts_stream_t stream;
  15709. ;
  15710. return 0;
  15711. }
  15712. _ACEOF
  15713. if ac_fn_c_try_compile "$LINENO"; then :
  15714. audio_arts=yes
  15715. fi
  15716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15717. CFLAGS="$save_CFLAGS"
  15718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15719. $as_echo "$audio_arts" >&6; }
  15720. if test x$audio_arts = xyes; then
  15721. # Check whether --enable-arts-shared was given.
  15722. if test "${enable_arts_shared+set}" = set; then :
  15723. enableval=$enable_arts_shared;
  15724. else
  15725. enable_arts_shared=yes
  15726. fi
  15727. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15728. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15729. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15730. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15731. if test x$have_loadso != xyes && \
  15732. test x$enable_arts_shared = xyes; then
  15733. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15734. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15735. fi
  15736. if test x$have_loadso = xyes && \
  15737. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15738. echo "-- dynamic libartsc -> $arts_lib"
  15739. cat >>confdefs.h <<_ACEOF
  15740. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15741. _ACEOF
  15742. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15743. else
  15744. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15745. SUMMARY_audio="${SUMMARY_audio} arts"
  15746. fi
  15747. have_audio=yes
  15748. fi
  15749. fi
  15750. fi
  15751. }
  15752. CheckNAS()
  15753. {
  15754. # Check whether --enable-nas was given.
  15755. if test "${enable_nas+set}" = set; then :
  15756. enableval=$enable_nas;
  15757. else
  15758. enable_nas=yes
  15759. fi
  15760. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15761. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15762. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15763. have_nas_hdr=yes
  15764. fi
  15765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15766. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15767. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15768. $as_echo_n "(cached) " >&6
  15769. else
  15770. ac_check_lib_save_LIBS=$LIBS
  15771. LIBS="-laudio $LIBS"
  15772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15773. /* end confdefs.h. */
  15774. /* Override any GCC internal prototype to avoid an error.
  15775. Use char because int might match the return type of a GCC
  15776. builtin and then its argument prototype would still apply. */
  15777. #ifdef __cplusplus
  15778. extern "C"
  15779. #endif
  15780. char AuOpenServer ();
  15781. int
  15782. main ()
  15783. {
  15784. return AuOpenServer ();
  15785. ;
  15786. return 0;
  15787. }
  15788. _ACEOF
  15789. if ac_fn_c_try_link "$LINENO"; then :
  15790. ac_cv_lib_audio_AuOpenServer=yes
  15791. else
  15792. ac_cv_lib_audio_AuOpenServer=no
  15793. fi
  15794. rm -f core conftest.err conftest.$ac_objext \
  15795. conftest$ac_exeext conftest.$ac_ext
  15796. LIBS=$ac_check_lib_save_LIBS
  15797. fi
  15798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15799. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15800. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15801. have_nas_lib=yes
  15802. fi
  15803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15804. $as_echo_n "checking for NAS audio support... " >&6; }
  15805. have_nas=no
  15806. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15807. have_nas=yes
  15808. NAS_LIBS="-laudio"
  15809. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15810. have_nas=yes
  15811. NAS_CFLAGS="-I/usr/X11R6/include/"
  15812. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15813. fi
  15814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15815. $as_echo "$have_nas" >&6; }
  15816. if test x$have_nas = xyes; then
  15817. # Check whether --enable-nas-shared was given.
  15818. if test "${enable_nas_shared+set}" = set; then :
  15819. enableval=$enable_nas_shared;
  15820. else
  15821. enable_nas_shared=yes
  15822. fi
  15823. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15824. if test x$have_loadso != xyes && \
  15825. test x$enable_nas_shared = xyes; then
  15826. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15827. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15828. fi
  15829. if test x$have_loadso = xyes && \
  15830. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15831. echo "-- dynamic libaudio -> $nas_lib"
  15832. cat >>confdefs.h <<_ACEOF
  15833. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15834. _ACEOF
  15835. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  15836. else
  15837. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  15838. SUMMARY_audio="${SUMMARY_audio} nas"
  15839. fi
  15840. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  15841. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  15842. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  15843. have_audio=yes
  15844. fi
  15845. fi
  15846. }
  15847. CheckSNDIO()
  15848. {
  15849. # Check whether --enable-sndio was given.
  15850. if test "${enable_sndio+set}" = set; then :
  15851. enableval=$enable_sndio;
  15852. else
  15853. enable_sndio=yes
  15854. fi
  15855. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  15856. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  15857. if test "x$ac_cv_header_sndio_h" = xyes; then :
  15858. have_sndio_hdr=yes
  15859. fi
  15860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  15861. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  15862. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  15863. $as_echo_n "(cached) " >&6
  15864. else
  15865. ac_check_lib_save_LIBS=$LIBS
  15866. LIBS="-lsndio $LIBS"
  15867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15868. /* end confdefs.h. */
  15869. /* Override any GCC internal prototype to avoid an error.
  15870. Use char because int might match the return type of a GCC
  15871. builtin and then its argument prototype would still apply. */
  15872. #ifdef __cplusplus
  15873. extern "C"
  15874. #endif
  15875. char sio_open ();
  15876. int
  15877. main ()
  15878. {
  15879. return sio_open ();
  15880. ;
  15881. return 0;
  15882. }
  15883. _ACEOF
  15884. if ac_fn_c_try_link "$LINENO"; then :
  15885. ac_cv_lib_sndio_sio_open=yes
  15886. else
  15887. ac_cv_lib_sndio_sio_open=no
  15888. fi
  15889. rm -f core conftest.err conftest.$ac_objext \
  15890. conftest$ac_exeext conftest.$ac_ext
  15891. LIBS=$ac_check_lib_save_LIBS
  15892. fi
  15893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  15894. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  15895. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  15896. have_sndio_lib=yes
  15897. fi
  15898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  15899. $as_echo_n "checking for sndio audio support... " >&6; }
  15900. have_sndio=no
  15901. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  15902. have_sndio=yes
  15903. SNDIO_LIBS="-lsndio"
  15904. fi
  15905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  15906. $as_echo "$have_sndio" >&6; }
  15907. if test x$have_sndio = xyes; then
  15908. # Check whether --enable-sndio-shared was given.
  15909. if test "${enable_sndio_shared+set}" = set; then :
  15910. enableval=$enable_sndio_shared;
  15911. else
  15912. enable_sndio_shared=yes
  15913. fi
  15914. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15915. if test x$have_loadso != xyes && \
  15916. test x$enable_sndio_shared = xyes; then
  15917. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  15918. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  15919. fi
  15920. if test x$have_loadso = xyes && \
  15921. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  15922. echo "-- dynamic libsndio -> $sndio_lib"
  15923. cat >>confdefs.h <<_ACEOF
  15924. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  15925. _ACEOF
  15926. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  15927. else
  15928. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  15929. SUMMARY_audio="${SUMMARY_audio} sndio"
  15930. fi
  15931. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  15932. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  15933. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  15934. have_audio=yes
  15935. fi
  15936. fi
  15937. }
  15938. CheckDiskAudio()
  15939. {
  15940. # Check whether --enable-diskaudio was given.
  15941. if test "${enable_diskaudio+set}" = set; then :
  15942. enableval=$enable_diskaudio;
  15943. else
  15944. enable_diskaudio=yes
  15945. fi
  15946. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  15947. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  15948. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  15949. SUMMARY_audio="${SUMMARY_audio} disk"
  15950. fi
  15951. }
  15952. CheckDummyAudio()
  15953. {
  15954. # Check whether --enable-dummyaudio was given.
  15955. if test "${enable_dummyaudio+set}" = set; then :
  15956. enableval=$enable_dummyaudio;
  15957. else
  15958. enable_dummyaudio=yes
  15959. fi
  15960. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  15961. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  15962. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  15963. SUMMARY_audio="${SUMMARY_audio} dummy"
  15964. fi
  15965. }
  15966. CheckVisibilityHidden()
  15967. {
  15968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  15969. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  15970. have_gcc_fvisibility=no
  15971. visibility_CFLAGS="-fvisibility=hidden"
  15972. save_CFLAGS="$CFLAGS"
  15973. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  15974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15975. /* end confdefs.h. */
  15976. #if !defined(__GNUC__) || __GNUC__ < 4
  15977. #error SDL only uses visibility attributes in GCC 4 or newer
  15978. #endif
  15979. int
  15980. main ()
  15981. {
  15982. ;
  15983. return 0;
  15984. }
  15985. _ACEOF
  15986. if ac_fn_c_try_compile "$LINENO"; then :
  15987. have_gcc_fvisibility=yes
  15988. fi
  15989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  15991. $as_echo "$have_gcc_fvisibility" >&6; }
  15992. CFLAGS="$save_CFLAGS"
  15993. if test x$have_gcc_fvisibility = xyes; then
  15994. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  15995. fi
  15996. }
  15997. CheckStackBoundary()
  15998. {
  15999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16000. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16001. have_gcc_preferred_stack_boundary=no
  16002. save_CFLAGS="$CFLAGS"
  16003. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16005. /* end confdefs.h. */
  16006. int x = 0;
  16007. int
  16008. main ()
  16009. {
  16010. ;
  16011. return 0;
  16012. }
  16013. _ACEOF
  16014. if ac_fn_c_try_compile "$LINENO"; then :
  16015. have_gcc_preferred_stack_boundary=yes
  16016. fi
  16017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16019. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16020. CFLAGS="$save_CFLAGS"
  16021. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16022. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16023. fi
  16024. }
  16025. CheckDeclarationAfterStatement()
  16026. {
  16027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16028. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16029. have_gcc_declaration_after_statement=no
  16030. save_CFLAGS="$CFLAGS"
  16031. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16033. /* end confdefs.h. */
  16034. int x = 0;
  16035. int
  16036. main ()
  16037. {
  16038. ;
  16039. return 0;
  16040. }
  16041. _ACEOF
  16042. if ac_fn_c_try_compile "$LINENO"; then :
  16043. have_gcc_declaration_after_statement=yes
  16044. fi
  16045. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16047. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16048. CFLAGS="$save_CFLAGS"
  16049. if test x$have_gcc_declaration_after_statement = xyes; then
  16050. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16051. fi
  16052. }
  16053. CheckWarnAll()
  16054. {
  16055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16056. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16057. have_gcc_Wall=no
  16058. save_CFLAGS="$CFLAGS"
  16059. CFLAGS="$save_CFLAGS -Wall"
  16060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16061. /* end confdefs.h. */
  16062. int x = 0;
  16063. int
  16064. main ()
  16065. {
  16066. ;
  16067. return 0;
  16068. }
  16069. _ACEOF
  16070. if ac_fn_c_try_compile "$LINENO"; then :
  16071. have_gcc_Wall=yes
  16072. fi
  16073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16075. $as_echo "$have_gcc_Wall" >&6; }
  16076. CFLAGS="$save_CFLAGS"
  16077. if test x$have_gcc_Wall = xyes; then
  16078. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16080. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16081. need_gcc_Wno_multichar=no
  16082. case "$host" in
  16083. *-*-haiku*)
  16084. need_gcc_Wno_multichar=yes
  16085. ;;
  16086. esac
  16087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16088. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16089. if test x$need_gcc_Wno_multichar = xyes; then
  16090. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16091. fi
  16092. fi
  16093. }
  16094. CheckWayland()
  16095. {
  16096. # Check whether --enable-video-wayland was given.
  16097. if test "${enable_video_wayland+set}" = set; then :
  16098. enableval=$enable_video_wayland;
  16099. else
  16100. enable_video_wayland=yes
  16101. fi
  16102. # Check whether --enable-video-wayland-qt-touch was given.
  16103. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16104. enableval=$enable_video_wayland_qt_touch;
  16105. else
  16106. enable_video_wayland_qt_touch=yes
  16107. fi
  16108. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16109. # Extract the first word of "pkg-config", so it can be a program name with args.
  16110. set dummy pkg-config; ac_word=$2
  16111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16112. $as_echo_n "checking for $ac_word... " >&6; }
  16113. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16114. $as_echo_n "(cached) " >&6
  16115. else
  16116. case $PKG_CONFIG in
  16117. [\\/]* | ?:[\\/]*)
  16118. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16119. ;;
  16120. *)
  16121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16122. for as_dir in $PATH
  16123. do
  16124. IFS=$as_save_IFS
  16125. test -z "$as_dir" && as_dir=.
  16126. for ac_exec_ext in '' $ac_executable_extensions; do
  16127. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16128. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16129. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16130. break 2
  16131. fi
  16132. done
  16133. done
  16134. IFS=$as_save_IFS
  16135. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16136. ;;
  16137. esac
  16138. fi
  16139. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16140. if test -n "$PKG_CONFIG"; then
  16141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16142. $as_echo "$PKG_CONFIG" >&6; }
  16143. else
  16144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16145. $as_echo "no" >&6; }
  16146. fi
  16147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16148. $as_echo_n "checking for Wayland support... " >&6; }
  16149. video_wayland=no
  16150. if test x$PKG_CONFIG != xno && \
  16151. test x$video_opengl_egl = xyes && \
  16152. test x$video_opengles_v2 = xyes; then
  16153. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16154. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16155. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16156. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16157. WAYLAND_CORE_PROTOCOL_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-client`
  16158. WAYLAND_PROTOCOLS_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
  16159. video_wayland=yes
  16160. fi
  16161. fi
  16162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16163. $as_echo "$video_wayland" >&6; }
  16164. if test x$video_wayland = xyes; then
  16165. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16166. if test x$enable_video_wayland_qt_touch = xyes; then
  16167. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16168. fi
  16169. WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1"
  16170. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16171. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16172. # Check whether --enable-wayland-shared was given.
  16173. if test "${enable_wayland_shared+set}" = set; then :
  16174. enableval=$enable_wayland_shared;
  16175. else
  16176. enable_wayland_shared=maybe
  16177. fi
  16178. case "$host" in
  16179. *)
  16180. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16181. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16182. if test x$wayland_egl_lib = x; then
  16183. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16184. fi
  16185. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16186. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16187. ;;
  16188. esac
  16189. if test x$enable_wayland_shared = xmaybe; then
  16190. enable_wayland_shared=yes
  16191. fi
  16192. if test x$have_loadso != xyes && \
  16193. test x$enable_wayland_shared = xyes; then
  16194. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16195. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16196. enable_wayland_shared=no
  16197. fi
  16198. if test x$have_loadso = xyes && \
  16199. test x$enable_wayland_shared = xyes && \
  16200. test x$wayland_client_lib != x && \
  16201. test x$wayland_egl_lib != x && \
  16202. test x$wayland_cursor_lib != x && \
  16203. test x$xkbcommon_lib != x; then
  16204. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16205. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16206. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16207. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16208. cat >>confdefs.h <<_ACEOF
  16209. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16210. _ACEOF
  16211. cat >>confdefs.h <<_ACEOF
  16212. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16213. _ACEOF
  16214. cat >>confdefs.h <<_ACEOF
  16215. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16216. _ACEOF
  16217. cat >>confdefs.h <<_ACEOF
  16218. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16219. _ACEOF
  16220. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16221. else
  16222. enable_wayland_shared=no
  16223. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16224. SUMMARY_video="${SUMMARY_video} wayland"
  16225. fi
  16226. have_video=yes
  16227. fi
  16228. fi
  16229. }
  16230. CheckMir()
  16231. {
  16232. # Check whether --enable-video-mir was given.
  16233. if test "${enable_video_mir+set}" = set; then :
  16234. enableval=$enable_video_mir;
  16235. else
  16236. enable_video_mir=yes
  16237. fi
  16238. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16239. # Extract the first word of "pkg-config", so it can be a program name with args.
  16240. set dummy pkg-config; ac_word=$2
  16241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16242. $as_echo_n "checking for $ac_word... " >&6; }
  16243. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16244. $as_echo_n "(cached) " >&6
  16245. else
  16246. case $PKG_CONFIG in
  16247. [\\/]* | ?:[\\/]*)
  16248. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16249. ;;
  16250. *)
  16251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16252. for as_dir in $PATH
  16253. do
  16254. IFS=$as_save_IFS
  16255. test -z "$as_dir" && as_dir=.
  16256. for ac_exec_ext in '' $ac_executable_extensions; do
  16257. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16258. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16259. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16260. break 2
  16261. fi
  16262. done
  16263. done
  16264. IFS=$as_save_IFS
  16265. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16266. ;;
  16267. esac
  16268. fi
  16269. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16270. if test -n "$PKG_CONFIG"; then
  16271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16272. $as_echo "$PKG_CONFIG" >&6; }
  16273. else
  16274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16275. $as_echo "no" >&6; }
  16276. fi
  16277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16278. $as_echo_n "checking for Mir support... " >&6; }
  16279. video_mir=no
  16280. if test x$PKG_CONFIG != xno; then
  16281. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16282. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16283. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16284. save_CFLAGS="$CFLAGS"
  16285. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16287. /* end confdefs.h. */
  16288. #include <mir_toolkit/mir_client_library.h>
  16289. int
  16290. main ()
  16291. {
  16292. MirTouchAction actions = mir_touch_actions
  16293. ;
  16294. return 0;
  16295. }
  16296. _ACEOF
  16297. if ac_fn_c_try_compile "$LINENO"; then :
  16298. video_mir=yes
  16299. fi
  16300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16301. CFLAGS="$save_CFLAGS"
  16302. fi
  16303. fi
  16304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16305. $as_echo "$video_mir" >&6; }
  16306. if test x$video_mir = xyes; then
  16307. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16308. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16309. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16310. # Check whether --enable-mir-shared was given.
  16311. if test "${enable_mir_shared+set}" = set; then :
  16312. enableval=$enable_mir_shared;
  16313. else
  16314. enable_mir_shared=maybe
  16315. fi
  16316. case "$host" in
  16317. *)
  16318. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16319. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16320. ;;
  16321. esac
  16322. if test x$enable_mir_shared = xmaybe; then
  16323. enable_mir_shared=yes
  16324. fi
  16325. if test x$have_loadso != xyes && \
  16326. test x$enable_mir_shared = xyes; then
  16327. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16328. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16329. enable_mir_shared=no
  16330. fi
  16331. if test x$have_loadso = xyes && \
  16332. test x$enable_mir_shared = xyes && \
  16333. test x$mirclient_lib != x && \
  16334. test x$xkbcommon_lib != x; then
  16335. echo "-- dynamic libmirclient -> $mirclient_lib"
  16336. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16337. cat >>confdefs.h <<_ACEOF
  16338. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16339. _ACEOF
  16340. cat >>confdefs.h <<_ACEOF
  16341. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16342. _ACEOF
  16343. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16344. else
  16345. enable_mir_shared=no
  16346. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16347. SUMMARY_video="${SUMMARY_video} mir"
  16348. fi
  16349. have_video=yes
  16350. fi
  16351. fi
  16352. }
  16353. CheckNativeClient()
  16354. {
  16355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16356. /* end confdefs.h. */
  16357. #if !defined(__native_client__)
  16358. #error "NO NACL"
  16359. #endif
  16360. int
  16361. main ()
  16362. {
  16363. ;
  16364. return 0;
  16365. }
  16366. _ACEOF
  16367. if ac_fn_c_try_compile "$LINENO"; then :
  16368. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16369. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16370. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16371. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16372. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16373. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16374. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16375. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16376. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16377. SUMMARY_audio="${SUMMARY_audio} nacl"
  16378. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16379. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16380. fi
  16381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16382. }
  16383. CheckX11()
  16384. {
  16385. # Check whether --enable-video-x11 was given.
  16386. if test "${enable_video_x11+set}" = set; then :
  16387. enableval=$enable_video_x11;
  16388. else
  16389. enable_video_x11=yes
  16390. fi
  16391. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16392. case "$host" in
  16393. *-*-darwin*)
  16394. # This isn't necessary for X11, but fixes GLX detection
  16395. if test "x$x_includes" = xNONE && \
  16396. test "x$x_libraries" = xNONE && \
  16397. test -d /usr/X11R6/include && \
  16398. test -d /usr/X11R6/lib; then
  16399. x_includes="/usr/X11R6/include"
  16400. x_libraries="/usr/X11R6/lib"
  16401. fi
  16402. ;;
  16403. esac
  16404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16405. $as_echo_n "checking for X... " >&6; }
  16406. # Check whether --with-x was given.
  16407. if test "${with_x+set}" = set; then :
  16408. withval=$with_x;
  16409. fi
  16410. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16411. if test "x$with_x" = xno; then
  16412. # The user explicitly disabled X.
  16413. have_x=disabled
  16414. else
  16415. case $x_includes,$x_libraries in #(
  16416. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16417. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16418. $as_echo_n "(cached) " >&6
  16419. else
  16420. # One or both of the vars are not set, and there is no cached value.
  16421. ac_x_includes=no ac_x_libraries=no
  16422. rm -f -r conftest.dir
  16423. if mkdir conftest.dir; then
  16424. cd conftest.dir
  16425. cat >Imakefile <<'_ACEOF'
  16426. incroot:
  16427. @echo incroot='${INCROOT}'
  16428. usrlibdir:
  16429. @echo usrlibdir='${USRLIBDIR}'
  16430. libdir:
  16431. @echo libdir='${LIBDIR}'
  16432. _ACEOF
  16433. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16434. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16435. for ac_var in incroot usrlibdir libdir; do
  16436. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16437. done
  16438. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16439. for ac_extension in a so sl dylib la dll; do
  16440. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16441. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16442. ac_im_usrlibdir=$ac_im_libdir; break
  16443. fi
  16444. done
  16445. # Screen out bogus values from the imake configuration. They are
  16446. # bogus both because they are the default anyway, and because
  16447. # using them would break gcc on systems where it needs fixed includes.
  16448. case $ac_im_incroot in
  16449. /usr/include) ac_x_includes= ;;
  16450. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16451. esac
  16452. case $ac_im_usrlibdir in
  16453. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16454. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16455. esac
  16456. fi
  16457. cd ..
  16458. rm -f -r conftest.dir
  16459. fi
  16460. # Standard set of common directories for X headers.
  16461. # Check X11 before X11Rn because it is often a symlink to the current release.
  16462. ac_x_header_dirs='
  16463. /usr/X11/include
  16464. /usr/X11R7/include
  16465. /usr/X11R6/include
  16466. /usr/X11R5/include
  16467. /usr/X11R4/include
  16468. /usr/include/X11
  16469. /usr/include/X11R7
  16470. /usr/include/X11R6
  16471. /usr/include/X11R5
  16472. /usr/include/X11R4
  16473. /usr/local/X11/include
  16474. /usr/local/X11R7/include
  16475. /usr/local/X11R6/include
  16476. /usr/local/X11R5/include
  16477. /usr/local/X11R4/include
  16478. /usr/local/include/X11
  16479. /usr/local/include/X11R7
  16480. /usr/local/include/X11R6
  16481. /usr/local/include/X11R5
  16482. /usr/local/include/X11R4
  16483. /usr/X386/include
  16484. /usr/x386/include
  16485. /usr/XFree86/include/X11
  16486. /usr/include
  16487. /usr/local/include
  16488. /usr/unsupported/include
  16489. /usr/athena/include
  16490. /usr/local/x11r5/include
  16491. /usr/lpp/Xamples/include
  16492. /usr/openwin/include
  16493. /usr/openwin/share/include'
  16494. if test "$ac_x_includes" = no; then
  16495. # Guess where to find include files, by looking for Xlib.h.
  16496. # First, try using that file with no special directory specified.
  16497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16498. /* end confdefs.h. */
  16499. #include <X11/Xlib.h>
  16500. _ACEOF
  16501. if ac_fn_c_try_cpp "$LINENO"; then :
  16502. # We can compile using X headers with no special include directory.
  16503. ac_x_includes=
  16504. else
  16505. for ac_dir in $ac_x_header_dirs; do
  16506. if test -r "$ac_dir/X11/Xlib.h"; then
  16507. ac_x_includes=$ac_dir
  16508. break
  16509. fi
  16510. done
  16511. fi
  16512. rm -f conftest.err conftest.i conftest.$ac_ext
  16513. fi # $ac_x_includes = no
  16514. if test "$ac_x_libraries" = no; then
  16515. # Check for the libraries.
  16516. # See if we find them without any special options.
  16517. # Don't add to $LIBS permanently.
  16518. ac_save_LIBS=$LIBS
  16519. LIBS="-lX11 $LIBS"
  16520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16521. /* end confdefs.h. */
  16522. #include <X11/Xlib.h>
  16523. int
  16524. main ()
  16525. {
  16526. XrmInitialize ()
  16527. ;
  16528. return 0;
  16529. }
  16530. _ACEOF
  16531. if ac_fn_c_try_link "$LINENO"; then :
  16532. LIBS=$ac_save_LIBS
  16533. # We can link X programs with no special library path.
  16534. ac_x_libraries=
  16535. else
  16536. LIBS=$ac_save_LIBS
  16537. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16538. do
  16539. # Don't even attempt the hair of trying to link an X program!
  16540. for ac_extension in a so sl dylib la dll; do
  16541. if test -r "$ac_dir/libX11.$ac_extension"; then
  16542. ac_x_libraries=$ac_dir
  16543. break 2
  16544. fi
  16545. done
  16546. done
  16547. fi
  16548. rm -f core conftest.err conftest.$ac_objext \
  16549. conftest$ac_exeext conftest.$ac_ext
  16550. fi # $ac_x_libraries = no
  16551. case $ac_x_includes,$ac_x_libraries in #(
  16552. no,* | *,no | *\'*)
  16553. # Didn't find X, or a directory has "'" in its name.
  16554. ac_cv_have_x="have_x=no";; #(
  16555. *)
  16556. # Record where we found X for the cache.
  16557. ac_cv_have_x="have_x=yes\
  16558. ac_x_includes='$ac_x_includes'\
  16559. ac_x_libraries='$ac_x_libraries'"
  16560. esac
  16561. fi
  16562. ;; #(
  16563. *) have_x=yes;;
  16564. esac
  16565. eval "$ac_cv_have_x"
  16566. fi # $with_x != no
  16567. if test "$have_x" != yes; then
  16568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16569. $as_echo "$have_x" >&6; }
  16570. no_x=yes
  16571. else
  16572. # If each of the values was on the command line, it overrides each guess.
  16573. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16574. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16575. # Update the cache value to reflect the command line values.
  16576. ac_cv_have_x="have_x=yes\
  16577. ac_x_includes='$x_includes'\
  16578. ac_x_libraries='$x_libraries'"
  16579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16580. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16581. fi
  16582. if test "$no_x" = yes; then
  16583. # Not all programs may use this symbol, but it does not hurt to define it.
  16584. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16585. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16586. else
  16587. if test -n "$x_includes"; then
  16588. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16589. fi
  16590. # It would also be nice to do this for all -L options, not just this one.
  16591. if test -n "$x_libraries"; then
  16592. X_LIBS="$X_LIBS -L$x_libraries"
  16593. # For Solaris; some versions of Sun CC require a space after -R and
  16594. # others require no space. Words are not sufficient . . . .
  16595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16596. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16597. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16598. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16599. ac_c_werror_flag=yes
  16600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16601. /* end confdefs.h. */
  16602. int
  16603. main ()
  16604. {
  16605. ;
  16606. return 0;
  16607. }
  16608. _ACEOF
  16609. if ac_fn_c_try_link "$LINENO"; then :
  16610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16611. $as_echo "no" >&6; }
  16612. X_LIBS="$X_LIBS -R$x_libraries"
  16613. else
  16614. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16616. /* end confdefs.h. */
  16617. int
  16618. main ()
  16619. {
  16620. ;
  16621. return 0;
  16622. }
  16623. _ACEOF
  16624. if ac_fn_c_try_link "$LINENO"; then :
  16625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16626. $as_echo "yes" >&6; }
  16627. X_LIBS="$X_LIBS -R $x_libraries"
  16628. else
  16629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16630. $as_echo "neither works" >&6; }
  16631. fi
  16632. rm -f core conftest.err conftest.$ac_objext \
  16633. conftest$ac_exeext conftest.$ac_ext
  16634. fi
  16635. rm -f core conftest.err conftest.$ac_objext \
  16636. conftest$ac_exeext conftest.$ac_ext
  16637. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16638. LIBS=$ac_xsave_LIBS
  16639. fi
  16640. # Check for system-dependent libraries X programs must link with.
  16641. # Do this before checking for the system-independent R6 libraries
  16642. # (-lICE), since we may need -lsocket or whatever for X linking.
  16643. if test "$ISC" = yes; then
  16644. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16645. else
  16646. # Martyn Johnson says this is needed for Ultrix, if the X
  16647. # libraries were built with DECnet support. And Karl Berry says
  16648. # the Alpha needs dnet_stub (dnet does not exist).
  16649. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16651. /* end confdefs.h. */
  16652. /* Override any GCC internal prototype to avoid an error.
  16653. Use char because int might match the return type of a GCC
  16654. builtin and then its argument prototype would still apply. */
  16655. #ifdef __cplusplus
  16656. extern "C"
  16657. #endif
  16658. char XOpenDisplay ();
  16659. int
  16660. main ()
  16661. {
  16662. return XOpenDisplay ();
  16663. ;
  16664. return 0;
  16665. }
  16666. _ACEOF
  16667. if ac_fn_c_try_link "$LINENO"; then :
  16668. else
  16669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16670. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16671. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16672. $as_echo_n "(cached) " >&6
  16673. else
  16674. ac_check_lib_save_LIBS=$LIBS
  16675. LIBS="-ldnet $LIBS"
  16676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16677. /* end confdefs.h. */
  16678. /* Override any GCC internal prototype to avoid an error.
  16679. Use char because int might match the return type of a GCC
  16680. builtin and then its argument prototype would still apply. */
  16681. #ifdef __cplusplus
  16682. extern "C"
  16683. #endif
  16684. char dnet_ntoa ();
  16685. int
  16686. main ()
  16687. {
  16688. return dnet_ntoa ();
  16689. ;
  16690. return 0;
  16691. }
  16692. _ACEOF
  16693. if ac_fn_c_try_link "$LINENO"; then :
  16694. ac_cv_lib_dnet_dnet_ntoa=yes
  16695. else
  16696. ac_cv_lib_dnet_dnet_ntoa=no
  16697. fi
  16698. rm -f core conftest.err conftest.$ac_objext \
  16699. conftest$ac_exeext conftest.$ac_ext
  16700. LIBS=$ac_check_lib_save_LIBS
  16701. fi
  16702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16703. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  16704. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  16705. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16706. fi
  16707. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  16709. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  16710. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  16711. $as_echo_n "(cached) " >&6
  16712. else
  16713. ac_check_lib_save_LIBS=$LIBS
  16714. LIBS="-ldnet_stub $LIBS"
  16715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16716. /* end confdefs.h. */
  16717. /* Override any GCC internal prototype to avoid an error.
  16718. Use char because int might match the return type of a GCC
  16719. builtin and then its argument prototype would still apply. */
  16720. #ifdef __cplusplus
  16721. extern "C"
  16722. #endif
  16723. char dnet_ntoa ();
  16724. int
  16725. main ()
  16726. {
  16727. return dnet_ntoa ();
  16728. ;
  16729. return 0;
  16730. }
  16731. _ACEOF
  16732. if ac_fn_c_try_link "$LINENO"; then :
  16733. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16734. else
  16735. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16736. fi
  16737. rm -f core conftest.err conftest.$ac_objext \
  16738. conftest$ac_exeext conftest.$ac_ext
  16739. LIBS=$ac_check_lib_save_LIBS
  16740. fi
  16741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16742. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  16743. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  16744. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16745. fi
  16746. fi
  16747. fi
  16748. rm -f core conftest.err conftest.$ac_objext \
  16749. conftest$ac_exeext conftest.$ac_ext
  16750. LIBS="$ac_xsave_LIBS"
  16751. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  16752. # to get the SysV transport functions.
  16753. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  16754. # needs -lnsl.
  16755. # The nsl library prevents programs from opening the X display
  16756. # on Irix 5.2, according to T.E. Dickey.
  16757. # The functions gethostbyname, getservbyname, and inet_addr are
  16758. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  16759. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16760. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16761. fi
  16762. if test $ac_cv_func_gethostbyname = no; then
  16763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16764. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16765. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16766. $as_echo_n "(cached) " >&6
  16767. else
  16768. ac_check_lib_save_LIBS=$LIBS
  16769. LIBS="-lnsl $LIBS"
  16770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16771. /* end confdefs.h. */
  16772. /* Override any GCC internal prototype to avoid an error.
  16773. Use char because int might match the return type of a GCC
  16774. builtin and then its argument prototype would still apply. */
  16775. #ifdef __cplusplus
  16776. extern "C"
  16777. #endif
  16778. char gethostbyname ();
  16779. int
  16780. main ()
  16781. {
  16782. return gethostbyname ();
  16783. ;
  16784. return 0;
  16785. }
  16786. _ACEOF
  16787. if ac_fn_c_try_link "$LINENO"; then :
  16788. ac_cv_lib_nsl_gethostbyname=yes
  16789. else
  16790. ac_cv_lib_nsl_gethostbyname=no
  16791. fi
  16792. rm -f core conftest.err conftest.$ac_objext \
  16793. conftest$ac_exeext conftest.$ac_ext
  16794. LIBS=$ac_check_lib_save_LIBS
  16795. fi
  16796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16797. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16798. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16799. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  16800. fi
  16801. if test $ac_cv_lib_nsl_gethostbyname = no; then
  16802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  16803. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  16804. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  16805. $as_echo_n "(cached) " >&6
  16806. else
  16807. ac_check_lib_save_LIBS=$LIBS
  16808. LIBS="-lbsd $LIBS"
  16809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16810. /* end confdefs.h. */
  16811. /* Override any GCC internal prototype to avoid an error.
  16812. Use char because int might match the return type of a GCC
  16813. builtin and then its argument prototype would still apply. */
  16814. #ifdef __cplusplus
  16815. extern "C"
  16816. #endif
  16817. char gethostbyname ();
  16818. int
  16819. main ()
  16820. {
  16821. return gethostbyname ();
  16822. ;
  16823. return 0;
  16824. }
  16825. _ACEOF
  16826. if ac_fn_c_try_link "$LINENO"; then :
  16827. ac_cv_lib_bsd_gethostbyname=yes
  16828. else
  16829. ac_cv_lib_bsd_gethostbyname=no
  16830. fi
  16831. rm -f core conftest.err conftest.$ac_objext \
  16832. conftest$ac_exeext conftest.$ac_ext
  16833. LIBS=$ac_check_lib_save_LIBS
  16834. fi
  16835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  16836. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  16837. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  16838. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  16839. fi
  16840. fi
  16841. fi
  16842. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  16843. # socket/setsockopt and other routines are undefined under SCO ODT
  16844. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  16845. # on later versions), says Simon Leinen: it contains gethostby*
  16846. # variants that don't use the name server (or something). -lsocket
  16847. # must be given before -lnsl if both are needed. We assume that
  16848. # if connect needs -lnsl, so does gethostbyname.
  16849. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  16850. if test "x$ac_cv_func_connect" = xyes; then :
  16851. fi
  16852. if test $ac_cv_func_connect = no; then
  16853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  16854. $as_echo_n "checking for connect in -lsocket... " >&6; }
  16855. if ${ac_cv_lib_socket_connect+:} false; then :
  16856. $as_echo_n "(cached) " >&6
  16857. else
  16858. ac_check_lib_save_LIBS=$LIBS
  16859. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  16860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16861. /* end confdefs.h. */
  16862. /* Override any GCC internal prototype to avoid an error.
  16863. Use char because int might match the return type of a GCC
  16864. builtin and then its argument prototype would still apply. */
  16865. #ifdef __cplusplus
  16866. extern "C"
  16867. #endif
  16868. char connect ();
  16869. int
  16870. main ()
  16871. {
  16872. return connect ();
  16873. ;
  16874. return 0;
  16875. }
  16876. _ACEOF
  16877. if ac_fn_c_try_link "$LINENO"; then :
  16878. ac_cv_lib_socket_connect=yes
  16879. else
  16880. ac_cv_lib_socket_connect=no
  16881. fi
  16882. rm -f core conftest.err conftest.$ac_objext \
  16883. conftest$ac_exeext conftest.$ac_ext
  16884. LIBS=$ac_check_lib_save_LIBS
  16885. fi
  16886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  16887. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  16888. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  16889. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  16890. fi
  16891. fi
  16892. # Guillermo Gomez says -lposix is necessary on A/UX.
  16893. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  16894. if test "x$ac_cv_func_remove" = xyes; then :
  16895. fi
  16896. if test $ac_cv_func_remove = no; then
  16897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  16898. $as_echo_n "checking for remove in -lposix... " >&6; }
  16899. if ${ac_cv_lib_posix_remove+:} false; then :
  16900. $as_echo_n "(cached) " >&6
  16901. else
  16902. ac_check_lib_save_LIBS=$LIBS
  16903. LIBS="-lposix $LIBS"
  16904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16905. /* end confdefs.h. */
  16906. /* Override any GCC internal prototype to avoid an error.
  16907. Use char because int might match the return type of a GCC
  16908. builtin and then its argument prototype would still apply. */
  16909. #ifdef __cplusplus
  16910. extern "C"
  16911. #endif
  16912. char remove ();
  16913. int
  16914. main ()
  16915. {
  16916. return remove ();
  16917. ;
  16918. return 0;
  16919. }
  16920. _ACEOF
  16921. if ac_fn_c_try_link "$LINENO"; then :
  16922. ac_cv_lib_posix_remove=yes
  16923. else
  16924. ac_cv_lib_posix_remove=no
  16925. fi
  16926. rm -f core conftest.err conftest.$ac_objext \
  16927. conftest$ac_exeext conftest.$ac_ext
  16928. LIBS=$ac_check_lib_save_LIBS
  16929. fi
  16930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  16931. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  16932. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  16933. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  16934. fi
  16935. fi
  16936. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  16937. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  16938. if test "x$ac_cv_func_shmat" = xyes; then :
  16939. fi
  16940. if test $ac_cv_func_shmat = no; then
  16941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  16942. $as_echo_n "checking for shmat in -lipc... " >&6; }
  16943. if ${ac_cv_lib_ipc_shmat+:} false; then :
  16944. $as_echo_n "(cached) " >&6
  16945. else
  16946. ac_check_lib_save_LIBS=$LIBS
  16947. LIBS="-lipc $LIBS"
  16948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16949. /* end confdefs.h. */
  16950. /* Override any GCC internal prototype to avoid an error.
  16951. Use char because int might match the return type of a GCC
  16952. builtin and then its argument prototype would still apply. */
  16953. #ifdef __cplusplus
  16954. extern "C"
  16955. #endif
  16956. char shmat ();
  16957. int
  16958. main ()
  16959. {
  16960. return shmat ();
  16961. ;
  16962. return 0;
  16963. }
  16964. _ACEOF
  16965. if ac_fn_c_try_link "$LINENO"; then :
  16966. ac_cv_lib_ipc_shmat=yes
  16967. else
  16968. ac_cv_lib_ipc_shmat=no
  16969. fi
  16970. rm -f core conftest.err conftest.$ac_objext \
  16971. conftest$ac_exeext conftest.$ac_ext
  16972. LIBS=$ac_check_lib_save_LIBS
  16973. fi
  16974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  16975. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  16976. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  16977. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  16978. fi
  16979. fi
  16980. fi
  16981. # Check for libraries that X11R6 Xt/Xaw programs need.
  16982. ac_save_LDFLAGS=$LDFLAGS
  16983. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  16984. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  16985. # check for ICE first), but we must link in the order -lSM -lICE or
  16986. # we get undefined symbols. So assume we have SM if we have ICE.
  16987. # These have to be linked with before -lX11, unlike the other
  16988. # libraries we check for below, so use a different variable.
  16989. # John Interrante, Karl Berry
  16990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  16991. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  16992. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  16993. $as_echo_n "(cached) " >&6
  16994. else
  16995. ac_check_lib_save_LIBS=$LIBS
  16996. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  16997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16998. /* end confdefs.h. */
  16999. /* Override any GCC internal prototype to avoid an error.
  17000. Use char because int might match the return type of a GCC
  17001. builtin and then its argument prototype would still apply. */
  17002. #ifdef __cplusplus
  17003. extern "C"
  17004. #endif
  17005. char IceConnectionNumber ();
  17006. int
  17007. main ()
  17008. {
  17009. return IceConnectionNumber ();
  17010. ;
  17011. return 0;
  17012. }
  17013. _ACEOF
  17014. if ac_fn_c_try_link "$LINENO"; then :
  17015. ac_cv_lib_ICE_IceConnectionNumber=yes
  17016. else
  17017. ac_cv_lib_ICE_IceConnectionNumber=no
  17018. fi
  17019. rm -f core conftest.err conftest.$ac_objext \
  17020. conftest$ac_exeext conftest.$ac_ext
  17021. LIBS=$ac_check_lib_save_LIBS
  17022. fi
  17023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17024. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17025. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17026. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17027. fi
  17028. LDFLAGS=$ac_save_LDFLAGS
  17029. fi
  17030. if test x$have_x = xyes; then
  17031. # Check whether --enable-x11-shared was given.
  17032. if test "${enable_x11_shared+set}" = set; then :
  17033. enableval=$enable_x11_shared;
  17034. else
  17035. enable_x11_shared=maybe
  17036. fi
  17037. case "$host" in
  17038. *-*-darwin*)
  17039. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17040. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17041. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17042. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17043. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17044. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17045. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17046. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17047. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17048. ;;
  17049. *-*-openbsd*)
  17050. x11_lib='libX11.so'
  17051. x11ext_lib='libXext.so'
  17052. xcursor_lib='libXcursor.so'
  17053. xinerama_lib='libXinerama.so'
  17054. xinput_lib='libXi.so'
  17055. xrandr_lib='libXrandr.so'
  17056. xrender_lib='libXrender.so'
  17057. xss_lib='libXss.so'
  17058. xvidmode_lib='libXxf86vm.so'
  17059. ;;
  17060. *)
  17061. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17062. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17063. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17064. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17065. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17066. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17067. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17068. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17069. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17070. ;;
  17071. esac
  17072. if test x$ac_cv_func_shmat != xyes; then
  17073. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17074. fi
  17075. CFLAGS="$CFLAGS $X_CFLAGS"
  17076. LDFLAGS="$LDFLAGS $X_LIBS"
  17077. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17078. #include <X11/Xproto.h>
  17079. "
  17080. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17081. have_xext_h_hdr=yes
  17082. else
  17083. have_xext_h_hdr=no
  17084. fi
  17085. if test x$have_xext_h_hdr != xyes; then
  17086. as_fn_error $? "
  17087. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17088. " "$LINENO" 5
  17089. fi
  17090. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17091. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17092. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17093. # Needed so SDL applications can include SDL_syswm.h
  17094. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17095. if test x$enable_x11_shared = xmaybe; then
  17096. enable_x11_shared=yes
  17097. fi
  17098. if test x$have_loadso != xyes && \
  17099. test x$enable_x11_shared = xyes; then
  17100. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17101. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17102. enable_x11_shared=no
  17103. fi
  17104. if test x$have_loadso = xyes && \
  17105. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17106. echo "-- dynamic libX11 -> $x11_lib"
  17107. echo "-- dynamic libX11ext -> $x11ext_lib"
  17108. cat >>confdefs.h <<_ACEOF
  17109. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17110. _ACEOF
  17111. cat >>confdefs.h <<_ACEOF
  17112. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17113. _ACEOF
  17114. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17115. else
  17116. enable_x11_shared=no
  17117. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17118. SUMMARY_video="${SUMMARY_video} x11"
  17119. fi
  17120. have_video=yes
  17121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17122. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17123. have_const_param_XextAddDisplay=no
  17124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17125. /* end confdefs.h. */
  17126. #include <X11/Xlib.h>
  17127. #include <X11/Xproto.h>
  17128. #include <X11/extensions/Xext.h>
  17129. #include <X11/extensions/extutil.h>
  17130. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17131. int
  17132. main ()
  17133. {
  17134. ;
  17135. return 0;
  17136. }
  17137. _ACEOF
  17138. if ac_fn_c_try_compile "$LINENO"; then :
  17139. have_const_param_XextAddDisplay=yes
  17140. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17141. fi
  17142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17144. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17146. $as_echo_n "checking for XGenericEvent... " >&6; }
  17147. have_XGenericEvent=no
  17148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17149. /* end confdefs.h. */
  17150. #include <X11/Xlib.h>
  17151. int
  17152. main ()
  17153. {
  17154. Display *display;
  17155. XEvent event;
  17156. XGenericEventCookie *cookie = &event.xcookie;
  17157. XNextEvent(display, &event);
  17158. XGetEventData(display, cookie);
  17159. XFreeEventData(display, cookie);
  17160. ;
  17161. return 0;
  17162. }
  17163. _ACEOF
  17164. if ac_fn_c_try_compile "$LINENO"; then :
  17165. have_XGenericEvent=yes
  17166. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17167. fi
  17168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17170. $as_echo "$have_XGenericEvent" >&6; }
  17171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17172. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17173. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17174. $as_echo_n "(cached) " >&6
  17175. else
  17176. ac_check_lib_save_LIBS=$LIBS
  17177. LIBS="-lX11 $LIBS"
  17178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17179. /* end confdefs.h. */
  17180. /* Override any GCC internal prototype to avoid an error.
  17181. Use char because int might match the return type of a GCC
  17182. builtin and then its argument prototype would still apply. */
  17183. #ifdef __cplusplus
  17184. extern "C"
  17185. #endif
  17186. char XkbKeycodeToKeysym ();
  17187. int
  17188. main ()
  17189. {
  17190. return XkbKeycodeToKeysym ();
  17191. ;
  17192. return 0;
  17193. }
  17194. _ACEOF
  17195. if ac_fn_c_try_link "$LINENO"; then :
  17196. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17197. else
  17198. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17199. fi
  17200. rm -f core conftest.err conftest.$ac_objext \
  17201. conftest$ac_exeext conftest.$ac_ext
  17202. LIBS=$ac_check_lib_save_LIBS
  17203. fi
  17204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17205. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17206. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17207. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17208. fi
  17209. # Check whether --enable-video-x11-xcursor was given.
  17210. if test "${enable_video_x11_xcursor+set}" = set; then :
  17211. enableval=$enable_video_x11_xcursor;
  17212. else
  17213. enable_video_x11_xcursor=yes
  17214. fi
  17215. if test x$enable_video_x11_xcursor = xyes; then
  17216. definitely_enable_video_x11_xcursor=no
  17217. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17218. "
  17219. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17220. have_xcursor_h_hdr=yes
  17221. else
  17222. have_xcursor_h_hdr=no
  17223. fi
  17224. if test x$have_xcursor_h_hdr = xyes; then
  17225. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17226. echo "-- dynamic libXcursor -> $xcursor_lib"
  17227. cat >>confdefs.h <<_ACEOF
  17228. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17229. _ACEOF
  17230. definitely_enable_video_x11_xcursor=yes
  17231. else
  17232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17233. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17234. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17235. $as_echo_n "(cached) " >&6
  17236. else
  17237. ac_check_lib_save_LIBS=$LIBS
  17238. LIBS="-lXcursor $LIBS"
  17239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17240. /* end confdefs.h. */
  17241. /* Override any GCC internal prototype to avoid an error.
  17242. Use char because int might match the return type of a GCC
  17243. builtin and then its argument prototype would still apply. */
  17244. #ifdef __cplusplus
  17245. extern "C"
  17246. #endif
  17247. char XcursorImageCreate ();
  17248. int
  17249. main ()
  17250. {
  17251. return XcursorImageCreate ();
  17252. ;
  17253. return 0;
  17254. }
  17255. _ACEOF
  17256. if ac_fn_c_try_link "$LINENO"; then :
  17257. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17258. else
  17259. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17260. fi
  17261. rm -f core conftest.err conftest.$ac_objext \
  17262. conftest$ac_exeext conftest.$ac_ext
  17263. LIBS=$ac_check_lib_save_LIBS
  17264. fi
  17265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17266. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17267. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17268. have_xcursor_lib=yes
  17269. fi
  17270. if test x$have_xcursor_lib = xyes ; then
  17271. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17272. definitely_enable_video_x11_xcursor=yes
  17273. fi
  17274. fi
  17275. fi
  17276. fi
  17277. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17278. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17279. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17280. fi
  17281. # Check whether --enable-video-x11-xdbe was given.
  17282. if test "${enable_video_x11_xdbe+set}" = set; then :
  17283. enableval=$enable_video_x11_xdbe;
  17284. else
  17285. enable_video_x11_xdbe=yes
  17286. fi
  17287. if test x$enable_video_x11_xdbe = xyes; then
  17288. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17289. "
  17290. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17291. have_dbe_h_hdr=yes
  17292. else
  17293. have_dbe_h_hdr=no
  17294. fi
  17295. if test x$have_dbe_h_hdr = xyes; then
  17296. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17297. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17298. fi
  17299. fi
  17300. # Check whether --enable-video-x11-xinerama was given.
  17301. if test "${enable_video_x11_xinerama+set}" = set; then :
  17302. enableval=$enable_video_x11_xinerama;
  17303. else
  17304. enable_video_x11_xinerama=yes
  17305. fi
  17306. if test x$enable_video_x11_xinerama = xyes; then
  17307. definitely_enable_video_x11_xinerama=no
  17308. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17309. "
  17310. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17311. have_xinerama_h_hdr=yes
  17312. else
  17313. have_xinerama_h_hdr=no
  17314. fi
  17315. if test x$have_xinerama_h_hdr = xyes; then
  17316. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17317. echo "-- dynamic libXinerama -> $xinerama_lib"
  17318. cat >>confdefs.h <<_ACEOF
  17319. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17320. _ACEOF
  17321. definitely_enable_video_x11_xinerama=yes
  17322. else
  17323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17324. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17325. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17326. $as_echo_n "(cached) " >&6
  17327. else
  17328. ac_check_lib_save_LIBS=$LIBS
  17329. LIBS="-lXinerama $LIBS"
  17330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17331. /* end confdefs.h. */
  17332. /* Override any GCC internal prototype to avoid an error.
  17333. Use char because int might match the return type of a GCC
  17334. builtin and then its argument prototype would still apply. */
  17335. #ifdef __cplusplus
  17336. extern "C"
  17337. #endif
  17338. char XineramaQueryExtension ();
  17339. int
  17340. main ()
  17341. {
  17342. return XineramaQueryExtension ();
  17343. ;
  17344. return 0;
  17345. }
  17346. _ACEOF
  17347. if ac_fn_c_try_link "$LINENO"; then :
  17348. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17349. else
  17350. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17351. fi
  17352. rm -f core conftest.err conftest.$ac_objext \
  17353. conftest$ac_exeext conftest.$ac_ext
  17354. LIBS=$ac_check_lib_save_LIBS
  17355. fi
  17356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17357. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17358. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17359. have_xinerama_lib=yes
  17360. fi
  17361. if test x$have_xinerama_lib = xyes ; then
  17362. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17363. definitely_enable_video_x11_xinerama=yes
  17364. fi
  17365. fi
  17366. fi
  17367. fi
  17368. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17369. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17370. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17371. fi
  17372. # Check whether --enable-video-x11-xinput was given.
  17373. if test "${enable_video_x11_xinput+set}" = set; then :
  17374. enableval=$enable_video_x11_xinput;
  17375. else
  17376. enable_video_x11_xinput=yes
  17377. fi
  17378. if test x$enable_video_x11_xinput = xyes; then
  17379. definitely_enable_video_x11_xinput=no
  17380. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17381. "
  17382. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17383. have_xinput_h_hdr=yes
  17384. else
  17385. have_xinput_h_hdr=no
  17386. fi
  17387. if test x$have_xinput_h_hdr = xyes; then
  17388. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17389. echo "-- dynamic libXi -> $xinput_lib"
  17390. cat >>confdefs.h <<_ACEOF
  17391. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17392. _ACEOF
  17393. definitely_enable_video_x11_xinput=yes
  17394. else
  17395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17396. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17397. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17398. $as_echo_n "(cached) " >&6
  17399. else
  17400. ac_check_lib_save_LIBS=$LIBS
  17401. LIBS="-lXi $LIBS"
  17402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17403. /* end confdefs.h. */
  17404. /* Override any GCC internal prototype to avoid an error.
  17405. Use char because int might match the return type of a GCC
  17406. builtin and then its argument prototype would still apply. */
  17407. #ifdef __cplusplus
  17408. extern "C"
  17409. #endif
  17410. char XOpenDevice ();
  17411. int
  17412. main ()
  17413. {
  17414. return XOpenDevice ();
  17415. ;
  17416. return 0;
  17417. }
  17418. _ACEOF
  17419. if ac_fn_c_try_link "$LINENO"; then :
  17420. ac_cv_lib_Xi_XOpenDevice=yes
  17421. else
  17422. ac_cv_lib_Xi_XOpenDevice=no
  17423. fi
  17424. rm -f core conftest.err conftest.$ac_objext \
  17425. conftest$ac_exeext conftest.$ac_ext
  17426. LIBS=$ac_check_lib_save_LIBS
  17427. fi
  17428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17429. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17430. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17431. have_xinput_lib=yes
  17432. fi
  17433. if test x$have_xinput_lib = xyes ; then
  17434. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17435. definitely_enable_video_x11_xinput=yes
  17436. fi
  17437. fi
  17438. fi
  17439. fi
  17440. if test x$definitely_enable_video_x11_xinput = xyes; then
  17441. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17442. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17444. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17445. have_xinput2_multitouch=no
  17446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17447. /* end confdefs.h. */
  17448. #include <X11/Xlib.h>
  17449. #include <X11/Xproto.h>
  17450. #include <X11/extensions/XInput2.h>
  17451. int
  17452. main ()
  17453. {
  17454. int event_type = XI_TouchBegin;
  17455. XITouchClassInfo *t;
  17456. ;
  17457. return 0;
  17458. }
  17459. _ACEOF
  17460. if ac_fn_c_try_compile "$LINENO"; then :
  17461. have_xinput2_multitouch=yes
  17462. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17463. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17464. fi
  17465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17467. $as_echo "$have_xinput2_multitouch" >&6; }
  17468. fi
  17469. # Check whether --enable-video-x11-xrandr was given.
  17470. if test "${enable_video_x11_xrandr+set}" = set; then :
  17471. enableval=$enable_video_x11_xrandr;
  17472. else
  17473. enable_video_x11_xrandr=yes
  17474. fi
  17475. if test x$enable_video_x11_xrandr = xyes; then
  17476. definitely_enable_video_x11_xrandr=no
  17477. have_xrandr_h_hdr=no
  17478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17479. /* end confdefs.h. */
  17480. #include <X11/Xlib.h>
  17481. #include <X11/extensions/Xrandr.h>
  17482. int
  17483. main ()
  17484. {
  17485. XRRScreenResources *res = NULL;
  17486. ;
  17487. return 0;
  17488. }
  17489. _ACEOF
  17490. if ac_fn_c_try_compile "$LINENO"; then :
  17491. have_xrandr_h_hdr=yes
  17492. fi
  17493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17494. if test x$have_xrandr_h_hdr = xyes; then
  17495. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17496. echo "-- dynamic libXrandr -> $xrandr_lib"
  17497. cat >>confdefs.h <<_ACEOF
  17498. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17499. _ACEOF
  17500. definitely_enable_video_x11_xrandr=yes
  17501. else
  17502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17503. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17504. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17505. $as_echo_n "(cached) " >&6
  17506. else
  17507. ac_check_lib_save_LIBS=$LIBS
  17508. LIBS="-lXrandr $LIBS"
  17509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17510. /* end confdefs.h. */
  17511. /* Override any GCC internal prototype to avoid an error.
  17512. Use char because int might match the return type of a GCC
  17513. builtin and then its argument prototype would still apply. */
  17514. #ifdef __cplusplus
  17515. extern "C"
  17516. #endif
  17517. char XRRQueryExtension ();
  17518. int
  17519. main ()
  17520. {
  17521. return XRRQueryExtension ();
  17522. ;
  17523. return 0;
  17524. }
  17525. _ACEOF
  17526. if ac_fn_c_try_link "$LINENO"; then :
  17527. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17528. else
  17529. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17530. fi
  17531. rm -f core conftest.err conftest.$ac_objext \
  17532. conftest$ac_exeext conftest.$ac_ext
  17533. LIBS=$ac_check_lib_save_LIBS
  17534. fi
  17535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17536. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17537. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17538. have_xrandr_lib=yes
  17539. fi
  17540. if test x$have_xrandr_lib = xyes ; then
  17541. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17542. definitely_enable_video_x11_xrandr=yes
  17543. fi
  17544. fi
  17545. fi
  17546. fi
  17547. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17548. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17549. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17550. fi
  17551. # Check whether --enable-video-x11-scrnsaver was given.
  17552. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17553. enableval=$enable_video_x11_scrnsaver;
  17554. else
  17555. enable_video_x11_scrnsaver=yes
  17556. fi
  17557. if test x$enable_video_x11_scrnsaver = xyes; then
  17558. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17559. "
  17560. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17561. have_scrnsaver_h_hdr=yes
  17562. else
  17563. have_scrnsaver_h_hdr=no
  17564. fi
  17565. if test x$have_scrnsaver_h_hdr = xyes; then
  17566. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17567. echo "-- dynamic libXss -> $xss_lib"
  17568. cat >>confdefs.h <<_ACEOF
  17569. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17570. _ACEOF
  17571. definitely_enable_video_x11_scrnsaver=yes
  17572. else
  17573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17574. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17575. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17576. $as_echo_n "(cached) " >&6
  17577. else
  17578. ac_check_lib_save_LIBS=$LIBS
  17579. LIBS="-lXss $LIBS"
  17580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17581. /* end confdefs.h. */
  17582. /* Override any GCC internal prototype to avoid an error.
  17583. Use char because int might match the return type of a GCC
  17584. builtin and then its argument prototype would still apply. */
  17585. #ifdef __cplusplus
  17586. extern "C"
  17587. #endif
  17588. char XScreenSaverSuspend ();
  17589. int
  17590. main ()
  17591. {
  17592. return XScreenSaverSuspend ();
  17593. ;
  17594. return 0;
  17595. }
  17596. _ACEOF
  17597. if ac_fn_c_try_link "$LINENO"; then :
  17598. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17599. else
  17600. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17601. fi
  17602. rm -f core conftest.err conftest.$ac_objext \
  17603. conftest$ac_exeext conftest.$ac_ext
  17604. LIBS=$ac_check_lib_save_LIBS
  17605. fi
  17606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17607. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17608. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17609. have_xss_lib=yes
  17610. fi
  17611. if test x$have_xss_lib = xyes ; then
  17612. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17613. definitely_enable_video_x11_scrnsaver=yes
  17614. fi
  17615. fi
  17616. fi
  17617. fi
  17618. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17619. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17620. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17621. fi
  17622. # Check whether --enable-video-x11-xshape was given.
  17623. if test "${enable_video_x11_xshape+set}" = set; then :
  17624. enableval=$enable_video_x11_xshape;
  17625. else
  17626. enable_video_x11_xshape=yes
  17627. fi
  17628. if test x$enable_video_x11_xshape = xyes; then
  17629. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17630. "
  17631. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17632. have_shape_h_hdr=yes
  17633. else
  17634. have_shape_h_hdr=no
  17635. fi
  17636. if test x$have_shape_h_hdr = xyes; then
  17637. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17638. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  17639. fi
  17640. fi
  17641. # Check whether --enable-video-x11-vm was given.
  17642. if test "${enable_video_x11_vm+set}" = set; then :
  17643. enableval=$enable_video_x11_vm;
  17644. else
  17645. enable_video_x11_vm=yes
  17646. fi
  17647. if test x$enable_video_x11_vm = xyes; then
  17648. definitely_enable_video_x11_vm=no
  17649. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17650. "
  17651. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17652. have_vm_h_hdr=yes
  17653. else
  17654. have_vm_h_hdr=no
  17655. fi
  17656. if test x$have_vm_h_hdr = xyes; then
  17657. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17658. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17659. cat >>confdefs.h <<_ACEOF
  17660. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17661. _ACEOF
  17662. definitely_enable_video_x11_vm=yes
  17663. else
  17664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17665. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17666. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17667. $as_echo_n "(cached) " >&6
  17668. else
  17669. ac_check_lib_save_LIBS=$LIBS
  17670. LIBS="-lXxf86vm $LIBS"
  17671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17672. /* end confdefs.h. */
  17673. /* Override any GCC internal prototype to avoid an error.
  17674. Use char because int might match the return type of a GCC
  17675. builtin and then its argument prototype would still apply. */
  17676. #ifdef __cplusplus
  17677. extern "C"
  17678. #endif
  17679. char XF86VidModeQueryVersion ();
  17680. int
  17681. main ()
  17682. {
  17683. return XF86VidModeQueryVersion ();
  17684. ;
  17685. return 0;
  17686. }
  17687. _ACEOF
  17688. if ac_fn_c_try_link "$LINENO"; then :
  17689. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17690. else
  17691. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17692. fi
  17693. rm -f core conftest.err conftest.$ac_objext \
  17694. conftest$ac_exeext conftest.$ac_ext
  17695. LIBS=$ac_check_lib_save_LIBS
  17696. fi
  17697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17698. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17699. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  17700. have_vm_lib=yes
  17701. fi
  17702. if test x$have_vm_lib = xyes ; then
  17703. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  17704. definitely_enable_video_x11_vm=yes
  17705. fi
  17706. fi
  17707. fi
  17708. fi
  17709. if test x$definitely_enable_video_x11_vm = xyes; then
  17710. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  17711. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  17712. fi
  17713. fi
  17714. fi
  17715. }
  17716. CheckVivanteVideo()
  17717. {
  17718. # Check whether --enable-video-vivante was given.
  17719. if test "${enable_video_vivante+set}" = set; then :
  17720. enableval=$enable_video_vivante;
  17721. else
  17722. enable_video_vivante=yes
  17723. fi
  17724. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  17725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  17726. $as_echo_n "checking for Vivante VDK API... " >&6; }
  17727. have_vivante_vdk=no
  17728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17729. /* end confdefs.h. */
  17730. #define LINUX
  17731. #define EGL_API_FB
  17732. #include <gc_vdk.h>
  17733. int
  17734. main ()
  17735. {
  17736. ;
  17737. return 0;
  17738. }
  17739. _ACEOF
  17740. if ac_fn_c_try_compile "$LINENO"; then :
  17741. have_vivante_vdk=yes
  17742. fi
  17743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  17745. $as_echo "$have_vivante_vdk" >&6; }
  17746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  17747. $as_echo_n "checking for Vivante FB API... " >&6; }
  17748. have_vivante_egl=no
  17749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17750. /* end confdefs.h. */
  17751. #define LINUX
  17752. #define EGL_API_FB
  17753. #include <EGL/eglvivante.h>
  17754. int
  17755. main ()
  17756. {
  17757. ;
  17758. return 0;
  17759. }
  17760. _ACEOF
  17761. if ac_fn_c_try_compile "$LINENO"; then :
  17762. have_vivante_egl=yes
  17763. fi
  17764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  17766. $as_echo "$have_vivante_egl" >&6; }
  17767. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  17768. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  17769. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  17770. if test x$have_vivante_vdk = xyes; then
  17771. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  17772. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  17773. fi
  17774. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  17775. SUMMARY_video="${SUMMARY_video} vivante"
  17776. have_video=yes
  17777. fi
  17778. fi
  17779. }
  17780. CheckHaikuVideo()
  17781. {
  17782. if test x$enable_video = xyes; then
  17783. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  17784. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  17785. have_video=yes
  17786. SUMMARY_video="${SUMMARY_video} haiku"
  17787. fi
  17788. }
  17789. CheckCOCOA()
  17790. {
  17791. # Check whether --enable-video-cocoa was given.
  17792. if test "${enable_video_cocoa+set}" = set; then :
  17793. enableval=$enable_video_cocoa;
  17794. else
  17795. enable_video_cocoa=yes
  17796. fi
  17797. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  17798. save_CFLAGS="$CFLAGS"
  17799. CFLAGS="$CFLAGS -x objective-c"
  17800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  17801. $as_echo_n "checking for Cocoa framework... " >&6; }
  17802. have_cocoa=no
  17803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17804. /* end confdefs.h. */
  17805. #import <Cocoa/Cocoa.h>
  17806. int
  17807. main ()
  17808. {
  17809. ;
  17810. return 0;
  17811. }
  17812. _ACEOF
  17813. if ac_fn_c_try_compile "$LINENO"; then :
  17814. have_cocoa=yes
  17815. fi
  17816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  17818. $as_echo "$have_cocoa" >&6; }
  17819. CFLAGS="$save_CFLAGS"
  17820. if test x$have_cocoa = xyes; then
  17821. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  17822. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  17823. SUMMARY_video="${SUMMARY_video} cocoa"
  17824. have_video=yes
  17825. fi
  17826. fi
  17827. }
  17828. CheckDirectFB()
  17829. {
  17830. # Check whether --enable-video-directfb was given.
  17831. if test "${enable_video_directfb+set}" = set; then :
  17832. enableval=$enable_video_directfb;
  17833. else
  17834. enable_video_directfb=no
  17835. fi
  17836. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  17837. video_directfb=no
  17838. DIRECTFB_REQUIRED_VERSION=1.0.0
  17839. for ac_prog in directfb-config
  17840. do
  17841. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17842. set dummy $ac_prog; ac_word=$2
  17843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17844. $as_echo_n "checking for $ac_word... " >&6; }
  17845. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  17846. $as_echo_n "(cached) " >&6
  17847. else
  17848. case $DIRECTFBCONFIG in
  17849. [\\/]* | ?:[\\/]*)
  17850. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  17851. ;;
  17852. *)
  17853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17854. as_dummy="$prefix/bin:$PATH"
  17855. for as_dir in $as_dummy
  17856. do
  17857. IFS=$as_save_IFS
  17858. test -z "$as_dir" && as_dir=.
  17859. for ac_exec_ext in '' $ac_executable_extensions; do
  17860. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17861. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17862. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17863. break 2
  17864. fi
  17865. done
  17866. done
  17867. IFS=$as_save_IFS
  17868. ;;
  17869. esac
  17870. fi
  17871. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  17872. if test -n "$DIRECTFBCONFIG"; then
  17873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  17874. $as_echo "$DIRECTFBCONFIG" >&6; }
  17875. else
  17876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17877. $as_echo "no" >&6; }
  17878. fi
  17879. test -n "$DIRECTFBCONFIG" && break
  17880. done
  17881. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  17882. if test x$DIRECTFBCONFIG = xno; then
  17883. # Extract the first word of "pkg-config", so it can be a program name with args.
  17884. set dummy pkg-config; ac_word=$2
  17885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17886. $as_echo_n "checking for $ac_word... " >&6; }
  17887. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17888. $as_echo_n "(cached) " >&6
  17889. else
  17890. case $PKG_CONFIG in
  17891. [\\/]* | ?:[\\/]*)
  17892. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17893. ;;
  17894. *)
  17895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17896. for as_dir in $PATH
  17897. do
  17898. IFS=$as_save_IFS
  17899. test -z "$as_dir" && as_dir=.
  17900. for ac_exec_ext in '' $ac_executable_extensions; do
  17901. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17902. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17903. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17904. break 2
  17905. fi
  17906. done
  17907. done
  17908. IFS=$as_save_IFS
  17909. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17910. ;;
  17911. esac
  17912. fi
  17913. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17914. if test -n "$PKG_CONFIG"; then
  17915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17916. $as_echo "$PKG_CONFIG" >&6; }
  17917. else
  17918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17919. $as_echo "no" >&6; }
  17920. fi
  17921. if test x$PKG_CONFIG != xno; then
  17922. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  17923. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  17924. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  17925. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  17926. video_directfb=yes
  17927. fi
  17928. fi
  17929. else
  17930. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  17931. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17932. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  17933. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17934. if test $HAVE_VERSION -ge $NEED_VERSION; then
  17935. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  17936. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  17937. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  17938. video_directfb=yes
  17939. fi
  17940. fi
  17941. if test x$video_directfb = xyes; then
  17942. # SuSE 11.1 installs directfb-config without directfb-devel
  17943. save_CPPFLAGS="$CPPFLAGS"
  17944. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  17945. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  17946. if test "x$ac_cv_header_directfb_h" = xyes; then :
  17947. have_directfb_hdr=yes
  17948. else
  17949. have_directfb_hdr=no
  17950. fi
  17951. CPPFLAGS="$save_CPPFLAGS"
  17952. video_directfb=$have_directfb_hdr
  17953. fi
  17954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  17955. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  17956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  17957. $as_echo "$video_directfb" >&6; }
  17958. if test x$video_directfb = xyes; then
  17959. # Check whether --enable-directfb-shared was given.
  17960. if test "${enable_directfb_shared+set}" = set; then :
  17961. enableval=$enable_directfb_shared;
  17962. else
  17963. enable_directfb_shared=yes
  17964. fi
  17965. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  17966. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  17967. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  17968. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  17969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  17970. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  17971. directfb_shared=no
  17972. directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  17973. # | sed 's/.*\/\(.*\)/\1/; q'`]
  17974. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  17975. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  17976. if test x$have_loadso != xyes && \
  17977. test x$enable_directfb_shared = xyes; then
  17978. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  17979. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  17980. fi
  17981. if test x$have_loadso = xyes && \
  17982. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  17983. directfb_shared=yes
  17984. echo "-- $directfb_lib_spec -> $directfb_lib"
  17985. cat >>confdefs.h <<_ACEOF
  17986. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  17987. _ACEOF
  17988. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  17989. else
  17990. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  17991. SUMMARY_video="${SUMMARY_video} directfb"
  17992. fi
  17993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  17994. $as_echo "$directfb_shared" >&6; }
  17995. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  17996. have_video=yes
  17997. fi
  17998. fi
  17999. }
  18000. CheckFusionSound()
  18001. {
  18002. # Check whether --enable-fusionsound was given.
  18003. if test "${enable_fusionsound+set}" = set; then :
  18004. enableval=$enable_fusionsound;
  18005. else
  18006. enable_fusionsound=no
  18007. fi
  18008. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  18009. fusionsound=no
  18010. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  18011. # Extract the first word of "pkg-config", so it can be a program name with args.
  18012. set dummy pkg-config; ac_word=$2
  18013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18014. $as_echo_n "checking for $ac_word... " >&6; }
  18015. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18016. $as_echo_n "(cached) " >&6
  18017. else
  18018. case $PKG_CONFIG in
  18019. [\\/]* | ?:[\\/]*)
  18020. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18021. ;;
  18022. *)
  18023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18024. for as_dir in $PATH
  18025. do
  18026. IFS=$as_save_IFS
  18027. test -z "$as_dir" && as_dir=.
  18028. for ac_exec_ext in '' $ac_executable_extensions; do
  18029. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18030. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18031. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18032. break 2
  18033. fi
  18034. done
  18035. done
  18036. IFS=$as_save_IFS
  18037. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18038. ;;
  18039. esac
  18040. fi
  18041. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18042. if test -n "$PKG_CONFIG"; then
  18043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18044. $as_echo "$PKG_CONFIG" >&6; }
  18045. else
  18046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18047. $as_echo "no" >&6; }
  18048. fi
  18049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  18050. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  18051. if test x$PKG_CONFIG != xno; then
  18052. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  18053. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  18054. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  18055. fusionsound=yes
  18056. fi
  18057. fi
  18058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  18059. $as_echo "$fusionsound" >&6; }
  18060. if test x$fusionsound = xyes; then
  18061. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  18062. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  18063. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  18064. # Check whether --enable-fusionsound-shared was given.
  18065. if test "${enable_fusionsound_shared+set}" = set; then :
  18066. enableval=$enable_fusionsound_shared;
  18067. else
  18068. enable_fusionsound_shared=yes
  18069. fi
  18070. fusionsound_shared=no
  18071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  18072. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  18073. if test x$have_loadso != xyes && \
  18074. test x$enable_fusionsound_shared = xyes; then
  18075. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  18076. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  18077. fi
  18078. if test x$have_loadso = xyes && \
  18079. test x$enable_fusionsound_shared = xyes; then
  18080. cat >>confdefs.h <<_ACEOF
  18081. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  18082. _ACEOF
  18083. fusionsound_shared=yes
  18084. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  18085. else
  18086. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  18087. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  18088. fi
  18089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  18090. $as_echo "$fusionsound_shared" >&6; }
  18091. have_audio=yes
  18092. fi
  18093. fi
  18094. }
  18095. CheckDummyVideo()
  18096. {
  18097. # Check whether --enable-video-dummy was given.
  18098. if test "${enable_video_dummy+set}" = set; then :
  18099. enableval=$enable_video_dummy;
  18100. else
  18101. enable_video_dummy=yes
  18102. fi
  18103. if test x$enable_video_dummy = xyes; then
  18104. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18105. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18106. have_video=yes
  18107. SUMMARY_video="${SUMMARY_video} dummy"
  18108. fi
  18109. }
  18110. # Check whether --enable-video-opengl was given.
  18111. if test "${enable_video_opengl+set}" = set; then :
  18112. enableval=$enable_video_opengl;
  18113. else
  18114. enable_video_opengl=yes
  18115. fi
  18116. CheckOpenGLX11()
  18117. {
  18118. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18120. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18121. video_opengl=no
  18122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18123. /* end confdefs.h. */
  18124. #include <GL/gl.h>
  18125. #include <GL/glx.h>
  18126. int
  18127. main ()
  18128. {
  18129. ;
  18130. return 0;
  18131. }
  18132. _ACEOF
  18133. if ac_fn_c_try_compile "$LINENO"; then :
  18134. video_opengl=yes
  18135. fi
  18136. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18138. $as_echo "$video_opengl" >&6; }
  18139. if test x$video_opengl = xyes; then
  18140. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18141. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18142. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18143. SUMMARY_video="${SUMMARY_video} opengl"
  18144. fi
  18145. fi
  18146. }
  18147. # Check whether --enable-video-opengles was given.
  18148. if test "${enable_video_opengles+set}" = set; then :
  18149. enableval=$enable_video_opengles;
  18150. else
  18151. enable_video_opengles=yes
  18152. fi
  18153. # Check whether --enable-video-opengles1 was given.
  18154. if test "${enable_video_opengles1+set}" = set; then :
  18155. enableval=$enable_video_opengles1;
  18156. else
  18157. enable_video_opengles1=yes
  18158. fi
  18159. # Check whether --enable-video-opengles2 was given.
  18160. if test "${enable_video_opengles2+set}" = set; then :
  18161. enableval=$enable_video_opengles2;
  18162. else
  18163. enable_video_opengles2=yes
  18164. fi
  18165. CheckOpenGLESX11()
  18166. {
  18167. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18169. $as_echo_n "checking for EGL support... " >&6; }
  18170. video_opengl_egl=no
  18171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18172. /* end confdefs.h. */
  18173. #define LINUX
  18174. #define EGL_API_FB
  18175. #include <EGL/egl.h>
  18176. #include <EGL/eglext.h>
  18177. int
  18178. main ()
  18179. {
  18180. ;
  18181. return 0;
  18182. }
  18183. _ACEOF
  18184. if ac_fn_c_try_compile "$LINENO"; then :
  18185. video_opengl_egl=yes
  18186. fi
  18187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18189. $as_echo "$video_opengl_egl" >&6; }
  18190. if test x$video_opengl_egl = xyes; then
  18191. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18192. fi
  18193. if test x$enable_video_opengles1 = xyes; then
  18194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18195. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18196. video_opengles_v1=no
  18197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18198. /* end confdefs.h. */
  18199. #include <GLES/gl.h>
  18200. #include <GLES/glext.h>
  18201. int
  18202. main ()
  18203. {
  18204. ;
  18205. return 0;
  18206. }
  18207. _ACEOF
  18208. if ac_fn_c_try_compile "$LINENO"; then :
  18209. video_opengles_v1=yes
  18210. fi
  18211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18213. $as_echo "$video_opengles_v1" >&6; }
  18214. if test x$video_opengles_v1 = xyes; then
  18215. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18216. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18217. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18218. fi
  18219. fi
  18220. if test x$enable_video_opengles2 = xyes; then
  18221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18222. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18223. video_opengles_v2=no
  18224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18225. /* end confdefs.h. */
  18226. #include <GLES2/gl2.h>
  18227. #include <GLES2/gl2ext.h>
  18228. int
  18229. main ()
  18230. {
  18231. ;
  18232. return 0;
  18233. }
  18234. _ACEOF
  18235. if ac_fn_c_try_compile "$LINENO"; then :
  18236. video_opengles_v2=yes
  18237. fi
  18238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18240. $as_echo "$video_opengles_v2" >&6; }
  18241. if test x$video_opengles_v2 = xyes; then
  18242. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18243. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18244. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18245. fi
  18246. fi
  18247. fi
  18248. }
  18249. CheckWINDOWSGL()
  18250. {
  18251. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18252. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18253. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18254. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18255. SUMMARY_video="${SUMMARY_video} opengl"
  18256. fi
  18257. }
  18258. CheckWINDOWSGLES()
  18259. {
  18260. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18262. $as_echo_n "checking for EGL support... " >&6; }
  18263. video_opengl_egl=no
  18264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18265. /* end confdefs.h. */
  18266. #include <EGL/egl.h>
  18267. int
  18268. main ()
  18269. {
  18270. ;
  18271. return 0;
  18272. }
  18273. _ACEOF
  18274. if ac_fn_c_try_compile "$LINENO"; then :
  18275. video_opengl_egl=yes
  18276. fi
  18277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18279. $as_echo "$video_opengl_egl" >&6; }
  18280. if test x$video_opengl_egl = xyes; then
  18281. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18282. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18283. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18284. fi
  18285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18286. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18287. video_opengles_v2=no
  18288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18289. /* end confdefs.h. */
  18290. #include <GLES2/gl2.h>
  18291. #include <GLES2/gl2ext.h>
  18292. int
  18293. main ()
  18294. {
  18295. ;
  18296. return 0;
  18297. }
  18298. _ACEOF
  18299. if ac_fn_c_try_compile "$LINENO"; then :
  18300. video_opengles_v2=yes
  18301. fi
  18302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18304. $as_echo "$video_opengles_v2" >&6; }
  18305. if test x$video_opengles_v2 = xyes; then
  18306. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18307. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18308. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18309. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18310. fi
  18311. fi
  18312. }
  18313. CheckHaikuGL()
  18314. {
  18315. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18316. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18317. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18318. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18319. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18320. SUMMARY_video="${SUMMARY_video} opengl"
  18321. fi
  18322. }
  18323. CheckMacGL()
  18324. {
  18325. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18326. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18327. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18328. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18329. SUMMARY_video="${SUMMARY_video} opengl"
  18330. fi
  18331. }
  18332. CheckEmscriptenGLES()
  18333. {
  18334. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18336. $as_echo_n "checking for EGL support... " >&6; }
  18337. video_opengl_egl=no
  18338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18339. /* end confdefs.h. */
  18340. #include <EGL/egl.h>
  18341. int
  18342. main ()
  18343. {
  18344. ;
  18345. return 0;
  18346. }
  18347. _ACEOF
  18348. if ac_fn_c_try_compile "$LINENO"; then :
  18349. video_opengl_egl=yes
  18350. fi
  18351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18353. $as_echo "$video_opengl_egl" >&6; }
  18354. if test x$video_opengl_egl = xyes; then
  18355. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18356. fi
  18357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18358. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18359. video_opengles_v2=no
  18360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18361. /* end confdefs.h. */
  18362. #include <GLES2/gl2.h>
  18363. #include <GLES2/gl2ext.h>
  18364. int
  18365. main ()
  18366. {
  18367. ;
  18368. return 0;
  18369. }
  18370. _ACEOF
  18371. if ac_fn_c_try_compile "$LINENO"; then :
  18372. video_opengles_v2=yes
  18373. fi
  18374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18376. $as_echo "$video_opengles_v2" >&6; }
  18377. if test x$video_opengles_v2 = xyes; then
  18378. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18379. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18380. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18381. fi
  18382. fi
  18383. }
  18384. CheckInputEvents()
  18385. {
  18386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18387. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18388. use_input_events=no
  18389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18390. /* end confdefs.h. */
  18391. #include <linux/input.h>
  18392. int
  18393. main ()
  18394. {
  18395. #ifndef EVIOCGNAME
  18396. #error EVIOCGNAME() ioctl not available
  18397. #endif
  18398. ;
  18399. return 0;
  18400. }
  18401. _ACEOF
  18402. if ac_fn_c_try_compile "$LINENO"; then :
  18403. use_input_events=yes
  18404. fi
  18405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18407. $as_echo "$use_input_events" >&6; }
  18408. if test x$use_input_events = xyes; then
  18409. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18410. SUMMARY_input="${SUMMARY_input} linuxev"
  18411. fi
  18412. }
  18413. CheckInputKD()
  18414. {
  18415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18416. $as_echo_n "checking for Linux kd.h... " >&6; }
  18417. use_input_kd=no
  18418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18419. /* end confdefs.h. */
  18420. #include <linux/kd.h>
  18421. #include <linux/keyboard.h>
  18422. int
  18423. main ()
  18424. {
  18425. struct kbentry kbe;
  18426. kbe.kb_table = KG_CTRL;
  18427. ioctl(0, KDGKBENT, &kbe);
  18428. ;
  18429. return 0;
  18430. }
  18431. _ACEOF
  18432. if ac_fn_c_try_compile "$LINENO"; then :
  18433. use_input_kd=yes
  18434. fi
  18435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18437. $as_echo "$use_input_kd" >&6; }
  18438. if test x$use_input_kd = xyes; then
  18439. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18440. SUMMARY_input="${SUMMARY_input} linuxkd"
  18441. fi
  18442. }
  18443. CheckLibUDev()
  18444. {
  18445. # Check whether --enable-libudev was given.
  18446. if test "${enable_libudev+set}" = set; then :
  18447. enableval=$enable_libudev;
  18448. else
  18449. enable_libudev=yes
  18450. fi
  18451. if test x$enable_libudev = xyes; then
  18452. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18453. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18454. have_libudev_h_hdr=yes
  18455. else
  18456. have_libudev_h_hdr=no
  18457. fi
  18458. if test x$have_libudev_h_hdr = xyes; then
  18459. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18460. fi
  18461. fi
  18462. }
  18463. CheckDBus()
  18464. {
  18465. # Check whether --enable-dbus was given.
  18466. if test "${enable_dbus+set}" = set; then :
  18467. enableval=$enable_dbus;
  18468. else
  18469. enable_dbus=yes
  18470. fi
  18471. if test x$enable_dbus = xyes; then
  18472. # Extract the first word of "pkg-config", so it can be a program name with args.
  18473. set dummy pkg-config; ac_word=$2
  18474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18475. $as_echo_n "checking for $ac_word... " >&6; }
  18476. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18477. $as_echo_n "(cached) " >&6
  18478. else
  18479. case $PKG_CONFIG in
  18480. [\\/]* | ?:[\\/]*)
  18481. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18482. ;;
  18483. *)
  18484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18485. for as_dir in $PATH
  18486. do
  18487. IFS=$as_save_IFS
  18488. test -z "$as_dir" && as_dir=.
  18489. for ac_exec_ext in '' $ac_executable_extensions; do
  18490. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18491. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18492. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18493. break 2
  18494. fi
  18495. done
  18496. done
  18497. IFS=$as_save_IFS
  18498. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18499. ;;
  18500. esac
  18501. fi
  18502. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18503. if test -n "$PKG_CONFIG"; then
  18504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18505. $as_echo "$PKG_CONFIG" >&6; }
  18506. else
  18507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18508. $as_echo "no" >&6; }
  18509. fi
  18510. if test x$PKG_CONFIG != xno; then
  18511. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18512. save_CFLAGS="$CFLAGS"
  18513. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18514. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18515. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18516. have_dbus_dbus_h_hdr=yes
  18517. else
  18518. have_dbus_dbus_h_hdr=no
  18519. fi
  18520. CFLAGS="$save_CFLAGS"
  18521. if test x$have_dbus_dbus_h_hdr = xyes; then
  18522. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18523. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18524. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  18525. fi
  18526. fi
  18527. fi
  18528. }
  18529. CheckIME()
  18530. {
  18531. # Check whether --enable-ime was given.
  18532. if test "${enable_ime+set}" = set; then :
  18533. enableval=$enable_ime;
  18534. else
  18535. enable_ime=yes
  18536. fi
  18537. if test x$enable_ime = xyes; then
  18538. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  18539. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  18540. fi
  18541. }
  18542. CheckIBus()
  18543. {
  18544. # Check whether --enable-ibus was given.
  18545. if test "${enable_ibus+set}" = set; then :
  18546. enableval=$enable_ibus;
  18547. else
  18548. enable_ibus=yes
  18549. fi
  18550. if test x$enable_ibus = xyes; then
  18551. # Extract the first word of "pkg-config", so it can be a program name with args.
  18552. set dummy pkg-config; ac_word=$2
  18553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18554. $as_echo_n "checking for $ac_word... " >&6; }
  18555. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18556. $as_echo_n "(cached) " >&6
  18557. else
  18558. case $PKG_CONFIG in
  18559. [\\/]* | ?:[\\/]*)
  18560. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18561. ;;
  18562. *)
  18563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18564. for as_dir in $PATH
  18565. do
  18566. IFS=$as_save_IFS
  18567. test -z "$as_dir" && as_dir=.
  18568. for ac_exec_ext in '' $ac_executable_extensions; do
  18569. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18570. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18571. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18572. break 2
  18573. fi
  18574. done
  18575. done
  18576. IFS=$as_save_IFS
  18577. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18578. ;;
  18579. esac
  18580. fi
  18581. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18582. if test -n "$PKG_CONFIG"; then
  18583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18584. $as_echo "$PKG_CONFIG" >&6; }
  18585. else
  18586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18587. $as_echo "no" >&6; }
  18588. fi
  18589. if test x$PKG_CONFIG != xno; then
  18590. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  18591. save_CFLAGS="$CFLAGS"
  18592. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  18593. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  18594. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  18595. have_ibus_ibus_h_hdr=yes
  18596. else
  18597. have_ibus_ibus_h_hdr=no
  18598. fi
  18599. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  18600. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  18601. have_inotify_inotify_h_hdr=yes
  18602. else
  18603. have_inotify_inotify_h_hdr=no
  18604. fi
  18605. CFLAGS="$save_CFLAGS"
  18606. if test x$have_ibus_ibus_h_hdr = xyes; then
  18607. if test x$enable_ime != xyes; then
  18608. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  18609. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  18610. have_ibus_ibus_h_hdr=no
  18611. elif test x$enable_dbus != xyes; then
  18612. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  18613. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  18614. have_ibus_ibus_h_hdr=no
  18615. elif test x$have_inotify_inotify_h_hdr != xyes; then
  18616. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  18617. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  18618. have_ibus_ibus_h_hdr=no
  18619. else
  18620. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  18621. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  18622. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  18623. fi
  18624. fi
  18625. fi
  18626. fi
  18627. }
  18628. CheckFcitx()
  18629. {
  18630. # Check whether --enable-fcitx was given.
  18631. if test "${enable_fcitx+set}" = set; then :
  18632. enableval=$enable_fcitx;
  18633. else
  18634. enable_fcitx=yes
  18635. fi
  18636. if test x$enable_fcitx = xyes; then
  18637. # Extract the first word of "pkg-config", so it can be a program name with args.
  18638. set dummy pkg-config; ac_word=$2
  18639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18640. $as_echo_n "checking for $ac_word... " >&6; }
  18641. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18642. $as_echo_n "(cached) " >&6
  18643. else
  18644. case $PKG_CONFIG in
  18645. [\\/]* | ?:[\\/]*)
  18646. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18647. ;;
  18648. *)
  18649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18650. for as_dir in $PATH
  18651. do
  18652. IFS=$as_save_IFS
  18653. test -z "$as_dir" && as_dir=.
  18654. for ac_exec_ext in '' $ac_executable_extensions; do
  18655. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18656. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18657. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18658. break 2
  18659. fi
  18660. done
  18661. done
  18662. IFS=$as_save_IFS
  18663. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18664. ;;
  18665. esac
  18666. fi
  18667. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18668. if test -n "$PKG_CONFIG"; then
  18669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18670. $as_echo "$PKG_CONFIG" >&6; }
  18671. else
  18672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18673. $as_echo "no" >&6; }
  18674. fi
  18675. if test x$PKG_CONFIG != xno; then
  18676. FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
  18677. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  18678. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  18679. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  18680. have_fcitx_frontend_h_hdr=yes
  18681. else
  18682. have_fcitx_frontend_h_hdr=no
  18683. fi
  18684. CFLAGS="$save_CFLAGS"
  18685. if test x$have_fcitx_frontend_h_hdr = xyes; then
  18686. if test x$enable_ime != xyes; then
  18687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  18688. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  18689. have_fcitx_frontend_h_hdr=no
  18690. elif test x$enable_dbus != xyes; then
  18691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  18692. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  18693. have_fcitx_frontend_h_hdr=no
  18694. else
  18695. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  18696. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  18697. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  18698. fi
  18699. fi
  18700. fi
  18701. fi
  18702. }
  18703. CheckTslib()
  18704. {
  18705. # Check whether --enable-input-tslib was given.
  18706. if test "${enable_input_tslib+set}" = set; then :
  18707. enableval=$enable_input_tslib;
  18708. else
  18709. enable_input_tslib=yes
  18710. fi
  18711. if test x$enable_input_tslib = xyes; then
  18712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  18713. $as_echo_n "checking for Touchscreen library support... " >&6; }
  18714. enable_input_tslib=no
  18715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18716. /* end confdefs.h. */
  18717. #include "tslib.h"
  18718. int
  18719. main ()
  18720. {
  18721. ;
  18722. return 0;
  18723. }
  18724. _ACEOF
  18725. if ac_fn_c_try_compile "$LINENO"; then :
  18726. enable_input_tslib=yes
  18727. fi
  18728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  18730. $as_echo "$enable_input_tslib" >&6; }
  18731. if test x$enable_input_tslib = xyes; then
  18732. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  18733. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  18734. SUMMARY_input="${SUMMARY_input} ts"
  18735. fi
  18736. fi
  18737. }
  18738. CheckPTHREAD()
  18739. {
  18740. # Check whether --enable-pthreads was given.
  18741. if test "${enable_pthreads+set}" = set; then :
  18742. enableval=$enable_pthreads;
  18743. else
  18744. enable_pthreads=yes
  18745. fi
  18746. # Check whether --enable-pthread-sem was given.
  18747. if test "${enable_pthread_sem+set}" = set; then :
  18748. enableval=$enable_pthread_sem;
  18749. else
  18750. enable_pthread_sem=yes
  18751. fi
  18752. case "$host" in
  18753. *-*-androideabi*)
  18754. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18755. pthread_lib=""
  18756. ;;
  18757. *-*-linux*|*-*-uclinux*)
  18758. pthread_cflags="-D_REENTRANT"
  18759. pthread_lib="-lpthread"
  18760. ;;
  18761. *-*-bsdi*)
  18762. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18763. pthread_lib=""
  18764. ;;
  18765. *-*-darwin*)
  18766. pthread_cflags="-D_THREAD_SAFE"
  18767. # causes Carbon.p complaints?
  18768. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18769. ;;
  18770. *-*-freebsd*|*-*-dragonfly*)
  18771. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18772. pthread_lib="-pthread"
  18773. ;;
  18774. *-*-netbsd*)
  18775. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18776. pthread_lib="-lpthread"
  18777. ;;
  18778. *-*-openbsd*)
  18779. pthread_cflags="-D_REENTRANT"
  18780. pthread_lib="-pthread"
  18781. ;;
  18782. *-*-solaris2.9)
  18783. # From Solaris 9+, posix4's preferred name is rt.
  18784. pthread_cflags="-D_REENTRANT"
  18785. pthread_lib="-lpthread -lrt"
  18786. ;;
  18787. *-*-solaris2.10)
  18788. # Solaris 10+ merged pthread into libc.
  18789. pthread_cflags="-D_REENTRANT"
  18790. pthread_lib="-lrt"
  18791. ;;
  18792. *-*-solaris*)
  18793. # Solaris 11+ merged rt into libc.
  18794. pthread_cflags="-D_REENTRANT"
  18795. pthread_lib=""
  18796. ;;
  18797. *-*-sysv5*)
  18798. pthread_cflags="-D_REENTRANT -Kthread"
  18799. pthread_lib=""
  18800. ;;
  18801. *-*-aix*)
  18802. pthread_cflags="-D_REENTRANT -mthreads"
  18803. pthread_lib="-lpthread"
  18804. ;;
  18805. *-*-hpux11*)
  18806. pthread_cflags="-D_REENTRANT"
  18807. pthread_lib="-L/usr/lib -lpthread"
  18808. ;;
  18809. *-*-haiku*)
  18810. pthread_cflags="-D_REENTRANT"
  18811. pthread_lib=""
  18812. ;;
  18813. *)
  18814. pthread_cflags="-D_REENTRANT"
  18815. pthread_lib="-lpthread"
  18816. ;;
  18817. esac
  18818. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  18819. # Save the original compiler flags and libraries
  18820. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18821. # Add the pthread compiler flags and libraries
  18822. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18823. # Check to see if we have pthread support on this system
  18824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  18825. $as_echo_n "checking for pthreads... " >&6; }
  18826. use_pthreads=no
  18827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18828. /* end confdefs.h. */
  18829. #include <pthread.h>
  18830. int
  18831. main ()
  18832. {
  18833. pthread_attr_t type;
  18834. pthread_attr_init(&type);
  18835. ;
  18836. return 0;
  18837. }
  18838. _ACEOF
  18839. if ac_fn_c_try_link "$LINENO"; then :
  18840. use_pthreads=yes
  18841. fi
  18842. rm -f core conftest.err conftest.$ac_objext \
  18843. conftest$ac_exeext conftest.$ac_ext
  18844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  18845. $as_echo "$use_pthreads" >&6; }
  18846. # Restore the compiler flags and libraries
  18847. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18848. # Do futher testing if we have pthread support...
  18849. if test x$use_pthreads = xyes; then
  18850. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  18851. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  18852. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  18853. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  18854. # Save the original compiler flags and libraries
  18855. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18856. # Add the pthread compiler flags and libraries
  18857. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18858. # Check to see if recursive mutexes are available
  18859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  18860. $as_echo_n "checking for recursive mutexes... " >&6; }
  18861. has_recursive_mutexes=no
  18862. if test x$has_recursive_mutexes = xno; then
  18863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18864. /* end confdefs.h. */
  18865. #define _GNU_SOURCE 1
  18866. #include <pthread.h>
  18867. int
  18868. main ()
  18869. {
  18870. pthread_mutexattr_t attr;
  18871. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  18872. ;
  18873. return 0;
  18874. }
  18875. _ACEOF
  18876. if ac_fn_c_try_link "$LINENO"; then :
  18877. has_recursive_mutexes=yes
  18878. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  18879. fi
  18880. rm -f core conftest.err conftest.$ac_objext \
  18881. conftest$ac_exeext conftest.$ac_ext
  18882. fi
  18883. if test x$has_recursive_mutexes = xno; then
  18884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18885. /* end confdefs.h. */
  18886. #define _GNU_SOURCE 1
  18887. #include <pthread.h>
  18888. int
  18889. main ()
  18890. {
  18891. pthread_mutexattr_t attr;
  18892. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  18893. ;
  18894. return 0;
  18895. }
  18896. _ACEOF
  18897. if ac_fn_c_try_link "$LINENO"; then :
  18898. has_recursive_mutexes=yes
  18899. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  18900. fi
  18901. rm -f core conftest.err conftest.$ac_objext \
  18902. conftest$ac_exeext conftest.$ac_ext
  18903. fi
  18904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  18905. $as_echo "$has_recursive_mutexes" >&6; }
  18906. # Check to see if pthread semaphore support is missing
  18907. if test x$enable_pthread_sem = xyes; then
  18908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  18909. $as_echo_n "checking for pthread semaphores... " >&6; }
  18910. have_pthread_sem=no
  18911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18912. /* end confdefs.h. */
  18913. #include <pthread.h>
  18914. #include <semaphore.h>
  18915. int
  18916. main ()
  18917. {
  18918. ;
  18919. return 0;
  18920. }
  18921. _ACEOF
  18922. if ac_fn_c_try_compile "$LINENO"; then :
  18923. have_pthread_sem=yes
  18924. fi
  18925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  18927. $as_echo "$have_pthread_sem" >&6; }
  18928. fi
  18929. if test x$have_pthread_sem = xyes; then
  18930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  18931. $as_echo_n "checking for sem_timedwait... " >&6; }
  18932. have_sem_timedwait=no
  18933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18934. /* end confdefs.h. */
  18935. #include <pthread.h>
  18936. #include <semaphore.h>
  18937. int
  18938. main ()
  18939. {
  18940. sem_timedwait(NULL, NULL);
  18941. ;
  18942. return 0;
  18943. }
  18944. _ACEOF
  18945. if ac_fn_c_try_link "$LINENO"; then :
  18946. have_sem_timedwait=yes
  18947. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  18948. fi
  18949. rm -f core conftest.err conftest.$ac_objext \
  18950. conftest$ac_exeext conftest.$ac_ext
  18951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  18952. $as_echo "$have_sem_timedwait" >&6; }
  18953. fi
  18954. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  18955. "
  18956. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  18957. have_pthread_np_h=yes
  18958. else
  18959. have_pthread_np_h=no
  18960. fi
  18961. if test x$have_pthread_np_h = xyes; then
  18962. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  18963. fi
  18964. # Check to see if pthread naming is available
  18965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  18966. $as_echo_n "checking for pthread_setname_np... " >&6; }
  18967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18968. /* end confdefs.h. */
  18969. /* Override any GCC internal prototype to avoid an error.
  18970. Use char because int might match the return type of a GCC
  18971. builtin and then its argument prototype would still apply. */
  18972. #ifdef __cplusplus
  18973. extern "C"
  18974. #endif
  18975. char pthread_setname_np ();
  18976. int
  18977. main ()
  18978. {
  18979. return pthread_setname_np ();
  18980. ;
  18981. return 0;
  18982. }
  18983. _ACEOF
  18984. if ac_fn_c_try_link "$LINENO"; then :
  18985. has_pthread_setname_np=yes
  18986. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  18987. else
  18988. has_pthread_setname_np=no
  18989. fi
  18990. rm -f core conftest.err conftest.$ac_objext \
  18991. conftest$ac_exeext conftest.$ac_ext
  18992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  18993. $as_echo "$has_pthread_setname_np" >&6; }
  18994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  18995. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  18996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18997. /* end confdefs.h. */
  18998. /* Override any GCC internal prototype to avoid an error.
  18999. Use char because int might match the return type of a GCC
  19000. builtin and then its argument prototype would still apply. */
  19001. #ifdef __cplusplus
  19002. extern "C"
  19003. #endif
  19004. char pthread_set_name_np ();
  19005. int
  19006. main ()
  19007. {
  19008. return pthread_set_name_np ();
  19009. ;
  19010. return 0;
  19011. }
  19012. _ACEOF
  19013. if ac_fn_c_try_link "$LINENO"; then :
  19014. has_pthread_set_name_np=yes
  19015. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19016. else
  19017. has_pthread_set_name_np=no
  19018. fi
  19019. rm -f core conftest.err conftest.$ac_objext \
  19020. conftest$ac_exeext conftest.$ac_ext
  19021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19022. $as_echo "$has_pthread_set_name_np" >&6; }
  19023. # Restore the compiler flags and libraries
  19024. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19025. # Basic thread creation functions
  19026. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19027. # Semaphores
  19028. # We can fake these with mutexes and condition variables if necessary
  19029. if test x$have_pthread_sem = xyes; then
  19030. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19031. else
  19032. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19033. fi
  19034. # Mutexes
  19035. # We can fake these with semaphores if necessary
  19036. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19037. # Condition variables
  19038. # We can fake these with semaphores and mutexes if necessary
  19039. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19040. # Thread local storage
  19041. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19042. have_threads=yes
  19043. fi
  19044. fi
  19045. }
  19046. CheckWINDOWS()
  19047. {
  19048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19049. $as_echo_n "checking Windows compiler... " >&6; }
  19050. have_win32_gcc=no
  19051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19052. /* end confdefs.h. */
  19053. #include <windows.h>
  19054. int
  19055. main ()
  19056. {
  19057. ;
  19058. return 0;
  19059. }
  19060. _ACEOF
  19061. if ac_fn_c_try_compile "$LINENO"; then :
  19062. have_win32_gcc=yes
  19063. fi
  19064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19066. $as_echo "$have_win32_gcc" >&6; }
  19067. if test x$have_win32_gcc != xyes; then
  19068. as_fn_error $? "
  19069. *** Your compiler ($CC) does not produce Windows executables!
  19070. " "$LINENO" 5
  19071. fi
  19072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19073. $as_echo_n "checking Windows CE... " >&6; }
  19074. have_wince=no
  19075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19076. /* end confdefs.h. */
  19077. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19078. #error This is not Windows CE
  19079. #endif
  19080. int
  19081. main ()
  19082. {
  19083. ;
  19084. return 0;
  19085. }
  19086. _ACEOF
  19087. if ac_fn_c_try_compile "$LINENO"; then :
  19088. have_wince=yes
  19089. as_fn_error $? "
  19090. *** Sorry, Windows CE is no longer supported.
  19091. " "$LINENO" 5
  19092. fi
  19093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19095. $as_echo "$have_wince" >&6; }
  19096. # This fixes Windows stack alignment with newer GCC
  19097. CheckStackBoundary
  19098. }
  19099. CheckDIRECTX()
  19100. {
  19101. # Check whether --enable-directx was given.
  19102. if test "${enable_directx+set}" = set; then :
  19103. enableval=$enable_directx;
  19104. else
  19105. enable_directx=yes
  19106. fi
  19107. if test x$enable_directx = xyes; then
  19108. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19109. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19110. have_d3d=yes
  19111. fi
  19112. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19113. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19114. have_d3d11=yes
  19115. fi
  19116. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19117. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19118. have_ddraw=yes
  19119. fi
  19120. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19121. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19122. have_dsound=yes
  19123. fi
  19124. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19125. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19126. have_dinput=yes
  19127. fi
  19128. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19129. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19130. have_dxgi=yes
  19131. fi
  19132. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  19133. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  19134. have_xaudio2=yes
  19135. fi
  19136. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19137. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19138. have_xinput=yes
  19139. fi
  19140. if test x$have_ddraw = xyes; then
  19141. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19142. fi
  19143. if test x$have_dinput = xyes; then
  19144. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19145. fi
  19146. if test x$have_dsound = xyes; then
  19147. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19148. fi
  19149. if test x$have_dxgi = xyes; then
  19150. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19151. fi
  19152. if test x$have_xinput = xyes; then
  19153. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19154. fi
  19155. SUMMARY_video="${SUMMARY_video} directx"
  19156. SUMMARY_audio="${SUMMARY_audio} directx"
  19157. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19158. # FIXME: ...so force it off for now.
  19159. case "$host" in
  19160. *-*-cygwin*)
  19161. have_dinput=false
  19162. ;;
  19163. esac
  19164. fi
  19165. }
  19166. CheckDLOPEN()
  19167. {
  19168. # Check whether --enable-sdl-dlopen was given.
  19169. if test "${enable_sdl_dlopen+set}" = set; then :
  19170. enableval=$enable_sdl_dlopen;
  19171. else
  19172. enable_sdl_dlopen=yes
  19173. fi
  19174. if test x$enable_sdl_dlopen = xyes; then
  19175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19176. $as_echo_n "checking for dlopen... " >&6; }
  19177. have_dlopen=no
  19178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19179. /* end confdefs.h. */
  19180. #include <dlfcn.h>
  19181. int
  19182. main ()
  19183. {
  19184. void *handle = dlopen("", RTLD_NOW);
  19185. const char *loaderror = (char *) dlerror();
  19186. ;
  19187. return 0;
  19188. }
  19189. _ACEOF
  19190. if ac_fn_c_try_compile "$LINENO"; then :
  19191. have_dlopen=yes
  19192. fi
  19193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19195. $as_echo "$have_dlopen" >&6; }
  19196. if test x$have_dlopen = xyes; then
  19197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19198. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19199. if ${ac_cv_lib_c_dlopen+:} false; then :
  19200. $as_echo_n "(cached) " >&6
  19201. else
  19202. ac_check_lib_save_LIBS=$LIBS
  19203. LIBS="-lc $LIBS"
  19204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19205. /* end confdefs.h. */
  19206. /* Override any GCC internal prototype to avoid an error.
  19207. Use char because int might match the return type of a GCC
  19208. builtin and then its argument prototype would still apply. */
  19209. #ifdef __cplusplus
  19210. extern "C"
  19211. #endif
  19212. char dlopen ();
  19213. int
  19214. main ()
  19215. {
  19216. return dlopen ();
  19217. ;
  19218. return 0;
  19219. }
  19220. _ACEOF
  19221. if ac_fn_c_try_link "$LINENO"; then :
  19222. ac_cv_lib_c_dlopen=yes
  19223. else
  19224. ac_cv_lib_c_dlopen=no
  19225. fi
  19226. rm -f core conftest.err conftest.$ac_objext \
  19227. conftest$ac_exeext conftest.$ac_ext
  19228. LIBS=$ac_check_lib_save_LIBS
  19229. fi
  19230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19231. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19232. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19233. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19234. else
  19235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19236. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19237. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19238. $as_echo_n "(cached) " >&6
  19239. else
  19240. ac_check_lib_save_LIBS=$LIBS
  19241. LIBS="-ldl $LIBS"
  19242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19243. /* end confdefs.h. */
  19244. /* Override any GCC internal prototype to avoid an error.
  19245. Use char because int might match the return type of a GCC
  19246. builtin and then its argument prototype would still apply. */
  19247. #ifdef __cplusplus
  19248. extern "C"
  19249. #endif
  19250. char dlopen ();
  19251. int
  19252. main ()
  19253. {
  19254. return dlopen ();
  19255. ;
  19256. return 0;
  19257. }
  19258. _ACEOF
  19259. if ac_fn_c_try_link "$LINENO"; then :
  19260. ac_cv_lib_dl_dlopen=yes
  19261. else
  19262. ac_cv_lib_dl_dlopen=no
  19263. fi
  19264. rm -f core conftest.err conftest.$ac_objext \
  19265. conftest$ac_exeext conftest.$ac_ext
  19266. LIBS=$ac_check_lib_save_LIBS
  19267. fi
  19268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19269. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19270. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19271. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19272. else
  19273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19274. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19275. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19276. $as_echo_n "(cached) " >&6
  19277. else
  19278. ac_check_lib_save_LIBS=$LIBS
  19279. LIBS="-lltdl $LIBS"
  19280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19281. /* end confdefs.h. */
  19282. /* Override any GCC internal prototype to avoid an error.
  19283. Use char because int might match the return type of a GCC
  19284. builtin and then its argument prototype would still apply. */
  19285. #ifdef __cplusplus
  19286. extern "C"
  19287. #endif
  19288. char dlopen ();
  19289. int
  19290. main ()
  19291. {
  19292. return dlopen ();
  19293. ;
  19294. return 0;
  19295. }
  19296. _ACEOF
  19297. if ac_fn_c_try_link "$LINENO"; then :
  19298. ac_cv_lib_ltdl_dlopen=yes
  19299. else
  19300. ac_cv_lib_ltdl_dlopen=no
  19301. fi
  19302. rm -f core conftest.err conftest.$ac_objext \
  19303. conftest$ac_exeext conftest.$ac_ext
  19304. LIBS=$ac_check_lib_save_LIBS
  19305. fi
  19306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19307. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19308. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19309. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19310. fi
  19311. fi
  19312. fi
  19313. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19314. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19315. have_loadso=yes
  19316. fi
  19317. fi
  19318. }
  19319. CheckUSBHID()
  19320. {
  19321. case "$host" in
  19322. *-*-*bsd*)
  19323. if test x$enable_joystick = xyes; then
  19324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19325. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19326. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19327. $as_echo_n "(cached) " >&6
  19328. else
  19329. ac_check_lib_save_LIBS=$LIBS
  19330. LIBS="-lusbhid $LIBS"
  19331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19332. /* end confdefs.h. */
  19333. /* Override any GCC internal prototype to avoid an error.
  19334. Use char because int might match the return type of a GCC
  19335. builtin and then its argument prototype would still apply. */
  19336. #ifdef __cplusplus
  19337. extern "C"
  19338. #endif
  19339. char hid_init ();
  19340. int
  19341. main ()
  19342. {
  19343. return hid_init ();
  19344. ;
  19345. return 0;
  19346. }
  19347. _ACEOF
  19348. if ac_fn_c_try_link "$LINENO"; then :
  19349. ac_cv_lib_usbhid_hid_init=yes
  19350. else
  19351. ac_cv_lib_usbhid_hid_init=no
  19352. fi
  19353. rm -f core conftest.err conftest.$ac_objext \
  19354. conftest$ac_exeext conftest.$ac_ext
  19355. LIBS=$ac_check_lib_save_LIBS
  19356. fi
  19357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19358. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19359. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  19360. have_libusbhid=yes
  19361. fi
  19362. if test x$have_libusbhid = xyes; then
  19363. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  19364. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  19365. USB_CFLAGS="-DHAVE_USBHID_H"
  19366. fi
  19367. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  19368. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  19369. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  19370. fi
  19371. USB_LIBS="$USB_LIBS -lusbhid"
  19372. else
  19373. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  19374. if test "x$ac_cv_header_usb_h" = xyes; then :
  19375. USB_CFLAGS="-DHAVE_USB_H"
  19376. fi
  19377. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  19378. if test "x$ac_cv_header_libusb_h" = xyes; then :
  19379. USB_CFLAGS="-DHAVE_LIBUSB_H"
  19380. fi
  19381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  19382. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  19383. if ${ac_cv_lib_usb_hid_init+:} false; then :
  19384. $as_echo_n "(cached) " >&6
  19385. else
  19386. ac_check_lib_save_LIBS=$LIBS
  19387. LIBS="-lusb $LIBS"
  19388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19389. /* end confdefs.h. */
  19390. /* Override any GCC internal prototype to avoid an error.
  19391. Use char because int might match the return type of a GCC
  19392. builtin and then its argument prototype would still apply. */
  19393. #ifdef __cplusplus
  19394. extern "C"
  19395. #endif
  19396. char hid_init ();
  19397. int
  19398. main ()
  19399. {
  19400. return hid_init ();
  19401. ;
  19402. return 0;
  19403. }
  19404. _ACEOF
  19405. if ac_fn_c_try_link "$LINENO"; then :
  19406. ac_cv_lib_usb_hid_init=yes
  19407. else
  19408. ac_cv_lib_usb_hid_init=no
  19409. fi
  19410. rm -f core conftest.err conftest.$ac_objext \
  19411. conftest$ac_exeext conftest.$ac_ext
  19412. LIBS=$ac_check_lib_save_LIBS
  19413. fi
  19414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  19415. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  19416. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  19417. USB_LIBS="$USB_LIBS -lusb"
  19418. fi
  19419. fi
  19420. save_CFLAGS="$CFLAGS"
  19421. CFLAGS="$CFLAGS $USB_CFLAGS"
  19422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  19423. $as_echo_n "checking for usbhid... " >&6; }
  19424. have_usbhid=no
  19425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19426. /* end confdefs.h. */
  19427. #include <sys/types.h>
  19428. #if defined(HAVE_USB_H)
  19429. #include <usb.h>
  19430. #endif
  19431. #ifdef __DragonFly__
  19432. # include <bus/usb/usb.h>
  19433. # include <bus/usb/usbhid.h>
  19434. #else
  19435. # include <dev/usb/usb.h>
  19436. # include <dev/usb/usbhid.h>
  19437. #endif
  19438. #if defined(HAVE_USBHID_H)
  19439. #include <usbhid.h>
  19440. #elif defined(HAVE_LIBUSB_H)
  19441. #include <libusb.h>
  19442. #elif defined(HAVE_LIBUSBHID_H)
  19443. #include <libusbhid.h>
  19444. #endif
  19445. int
  19446. main ()
  19447. {
  19448. struct report_desc *repdesc;
  19449. struct usb_ctl_report *repbuf;
  19450. hid_kind_t hidkind;
  19451. ;
  19452. return 0;
  19453. }
  19454. _ACEOF
  19455. if ac_fn_c_try_compile "$LINENO"; then :
  19456. have_usbhid=yes
  19457. fi
  19458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  19460. $as_echo "$have_usbhid" >&6; }
  19461. if test x$have_usbhid = xyes; then
  19462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  19463. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  19464. have_usbhid_ucr_data=no
  19465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19466. /* end confdefs.h. */
  19467. #include <sys/types.h>
  19468. #if defined(HAVE_USB_H)
  19469. #include <usb.h>
  19470. #endif
  19471. #ifdef __DragonFly__
  19472. # include <bus/usb/usb.h>
  19473. # include <bus/usb/usbhid.h>
  19474. #else
  19475. # include <dev/usb/usb.h>
  19476. # include <dev/usb/usbhid.h>
  19477. #endif
  19478. #if defined(HAVE_USBHID_H)
  19479. #include <usbhid.h>
  19480. #elif defined(HAVE_LIBUSB_H)
  19481. #include <libusb.h>
  19482. #elif defined(HAVE_LIBUSBHID_H)
  19483. #include <libusbhid.h>
  19484. #endif
  19485. int
  19486. main ()
  19487. {
  19488. struct usb_ctl_report buf;
  19489. if (buf.ucr_data) { }
  19490. ;
  19491. return 0;
  19492. }
  19493. _ACEOF
  19494. if ac_fn_c_try_compile "$LINENO"; then :
  19495. have_usbhid_ucr_data=yes
  19496. fi
  19497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19498. if test x$have_usbhid_ucr_data = xyes; then
  19499. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  19500. fi
  19501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  19502. $as_echo "$have_usbhid_ucr_data" >&6; }
  19503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  19504. $as_echo_n "checking for new usbhid API... " >&6; }
  19505. have_usbhid_new=no
  19506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19507. /* end confdefs.h. */
  19508. #include <sys/types.h>
  19509. #if defined(HAVE_USB_H)
  19510. #include <usb.h>
  19511. #endif
  19512. #ifdef __DragonFly__
  19513. #include <bus/usb/usb.h>
  19514. #include <bus/usb/usbhid.h>
  19515. #else
  19516. #include <dev/usb/usb.h>
  19517. #include <dev/usb/usbhid.h>
  19518. #endif
  19519. #if defined(HAVE_USBHID_H)
  19520. #include <usbhid.h>
  19521. #elif defined(HAVE_LIBUSB_H)
  19522. #include <libusb.h>
  19523. #elif defined(HAVE_LIBUSBHID_H)
  19524. #include <libusbhid.h>
  19525. #endif
  19526. int
  19527. main ()
  19528. {
  19529. report_desc_t d;
  19530. hid_start_parse(d, 1, 1);
  19531. ;
  19532. return 0;
  19533. }
  19534. _ACEOF
  19535. if ac_fn_c_try_compile "$LINENO"; then :
  19536. have_usbhid_new=yes
  19537. fi
  19538. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19539. if test x$have_usbhid_new = xyes; then
  19540. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  19541. fi
  19542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  19543. $as_echo "$have_usbhid_new" >&6; }
  19544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  19545. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  19546. have_machine_joystick=no
  19547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19548. /* end confdefs.h. */
  19549. #include <machine/joystick.h>
  19550. int
  19551. main ()
  19552. {
  19553. struct joystick t;
  19554. ;
  19555. return 0;
  19556. }
  19557. _ACEOF
  19558. if ac_fn_c_try_compile "$LINENO"; then :
  19559. have_machine_joystick=yes
  19560. fi
  19561. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19562. if test x$have_machine_joystick = xyes; then
  19563. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  19564. fi
  19565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  19566. $as_echo "$have_machine_joystick" >&6; }
  19567. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  19568. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  19569. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  19570. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  19571. have_joystick=yes
  19572. fi
  19573. CFLAGS="$save_CFLAGS"
  19574. fi
  19575. ;;
  19576. esac
  19577. }
  19578. CheckClockGettime()
  19579. {
  19580. # Check whether --enable-clock_gettime was given.
  19581. if test "${enable_clock_gettime+set}" = set; then :
  19582. enableval=$enable_clock_gettime;
  19583. else
  19584. enable_clock_gettime=yes
  19585. fi
  19586. if test x$enable_clock_gettime = xyes; then
  19587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  19588. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  19589. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  19590. $as_echo_n "(cached) " >&6
  19591. else
  19592. ac_check_lib_save_LIBS=$LIBS
  19593. LIBS="-lrt $LIBS"
  19594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19595. /* end confdefs.h. */
  19596. /* Override any GCC internal prototype to avoid an error.
  19597. Use char because int might match the return type of a GCC
  19598. builtin and then its argument prototype would still apply. */
  19599. #ifdef __cplusplus
  19600. extern "C"
  19601. #endif
  19602. char clock_gettime ();
  19603. int
  19604. main ()
  19605. {
  19606. return clock_gettime ();
  19607. ;
  19608. return 0;
  19609. }
  19610. _ACEOF
  19611. if ac_fn_c_try_link "$LINENO"; then :
  19612. ac_cv_lib_rt_clock_gettime=yes
  19613. else
  19614. ac_cv_lib_rt_clock_gettime=no
  19615. fi
  19616. rm -f core conftest.err conftest.$ac_objext \
  19617. conftest$ac_exeext conftest.$ac_ext
  19618. LIBS=$ac_check_lib_save_LIBS
  19619. fi
  19620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  19621. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  19622. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  19623. have_clock_gettime=yes
  19624. fi
  19625. if test x$have_clock_gettime = xyes; then
  19626. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19627. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  19628. else
  19629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  19630. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  19631. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  19632. $as_echo_n "(cached) " >&6
  19633. else
  19634. ac_check_lib_save_LIBS=$LIBS
  19635. LIBS="-lc $LIBS"
  19636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19637. /* end confdefs.h. */
  19638. /* Override any GCC internal prototype to avoid an error.
  19639. Use char because int might match the return type of a GCC
  19640. builtin and then its argument prototype would still apply. */
  19641. #ifdef __cplusplus
  19642. extern "C"
  19643. #endif
  19644. char clock_gettime ();
  19645. int
  19646. main ()
  19647. {
  19648. return clock_gettime ();
  19649. ;
  19650. return 0;
  19651. }
  19652. _ACEOF
  19653. if ac_fn_c_try_link "$LINENO"; then :
  19654. ac_cv_lib_c_clock_gettime=yes
  19655. else
  19656. ac_cv_lib_c_clock_gettime=no
  19657. fi
  19658. rm -f core conftest.err conftest.$ac_objext \
  19659. conftest$ac_exeext conftest.$ac_ext
  19660. LIBS=$ac_check_lib_save_LIBS
  19661. fi
  19662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  19663. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  19664. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  19665. have_clock_gettime=yes
  19666. fi
  19667. if test x$have_clock_gettime = xyes; then
  19668. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19669. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19670. fi
  19671. fi
  19672. fi
  19673. }
  19674. CheckLinuxVersion()
  19675. {
  19676. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  19677. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  19678. have_linux_version_h=yes
  19679. fi
  19680. if test x$have_linux_version_h = xyes; then
  19681. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  19682. fi
  19683. }
  19684. CheckRPATH()
  19685. {
  19686. # Check whether --enable-rpath was given.
  19687. if test "${enable_rpath+set}" = set; then :
  19688. enableval=$enable_rpath;
  19689. else
  19690. enable_rpath=yes
  19691. fi
  19692. }
  19693. CheckWarnAll
  19694. case "$host" in
  19695. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  19696. case "$host" in
  19697. *-raspberry-linux*)
  19698. # Raspberry Pi
  19699. ARCH=linux
  19700. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19701. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19702. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19703. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19704. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  19705. if test x$enable_video = xyes; then
  19706. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19707. # FIXME: confdefs? Not AC_DEFINE?
  19708. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19709. SUMMARY_video="${SUMMARY_video} rpi"
  19710. fi
  19711. ;;
  19712. *-*-androideabi*)
  19713. # Android
  19714. ARCH=android
  19715. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  19716. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  19717. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  19718. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  19719. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  19720. if test x$enable_video = xyes; then
  19721. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  19722. # FIXME: confdefs? Not AC_DEFINE?
  19723. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  19724. SUMMARY_video="${SUMMARY_video} android"
  19725. fi
  19726. ;;
  19727. *-*-linux*) ARCH=linux ;;
  19728. *-*-uclinux*) ARCH=linux ;;
  19729. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  19730. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  19731. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  19732. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  19733. *-*-bsdi*) ARCH=bsdi ;;
  19734. *-*-freebsd*) ARCH=freebsd ;;
  19735. *-*-dragonfly*) ARCH=freebsd ;;
  19736. *-raspberry-netbsd*)
  19737. # Raspberry Pi
  19738. ARCH=netbsd
  19739. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  19740. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19741. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19742. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19743. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host -ldl"
  19744. if test x$enable_video = xyes; then
  19745. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19746. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19747. SUMMARY_video="${SUMMARY_video} raspberry"
  19748. fi
  19749. ;;
  19750. *-*-netbsd*) ARCH=netbsd ;;
  19751. *-*-openbsd*) ARCH=openbsd ;;
  19752. *-*-sysv5*) ARCH=sysv5 ;;
  19753. *-*-solaris*) ARCH=solaris ;;
  19754. *-*-hpux*) ARCH=hpux ;;
  19755. *-*-aix*) ARCH=aix ;;
  19756. *-*-minix*) ARCH=minix ;;
  19757. esac
  19758. CheckVisibilityHidden
  19759. CheckDeclarationAfterStatement
  19760. CheckDummyVideo
  19761. CheckDiskAudio
  19762. CheckDummyAudio
  19763. CheckDLOPEN
  19764. CheckOSS
  19765. CheckALSA
  19766. CheckPulseAudio
  19767. CheckARTSC
  19768. CheckESD
  19769. CheckNAS
  19770. CheckSNDIO
  19771. CheckX11
  19772. CheckDirectFB
  19773. CheckFusionSound
  19774. CheckOpenGLX11
  19775. CheckOpenGLESX11
  19776. CheckMir
  19777. CheckWayland
  19778. CheckLibUDev
  19779. CheckDBus
  19780. CheckIME
  19781. CheckIBus
  19782. CheckFcitx
  19783. case $ARCH in
  19784. linux)
  19785. CheckInputEvents
  19786. CheckInputKD
  19787. ;;
  19788. esac
  19789. CheckTslib
  19790. CheckUSBHID
  19791. CheckPTHREAD
  19792. CheckClockGettime
  19793. CheckLinuxVersion
  19794. CheckRPATH
  19795. CheckVivanteVideo
  19796. # Set up files for the audio library
  19797. if test x$enable_audio = xyes; then
  19798. case $ARCH in
  19799. sysv5|solaris|hpux)
  19800. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  19801. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  19802. have_audio=yes
  19803. ;;
  19804. netbsd) # Don't use this on OpenBSD, it's busted.
  19805. $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
  19806. SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  19807. have_audio=yes
  19808. ;;
  19809. aix)
  19810. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  19811. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  19812. have_audio=yes
  19813. ;;
  19814. android)
  19815. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  19816. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  19817. SUMMARY_audio="${SUMMARY_audio} android"
  19818. have_audio=yes
  19819. ;;
  19820. esac
  19821. fi
  19822. # Set up files for the joystick library
  19823. if test x$enable_joystick = xyes; then
  19824. case $ARCH in
  19825. linux)
  19826. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  19827. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  19828. have_joystick=yes
  19829. ;;
  19830. android)
  19831. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  19832. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  19833. have_joystick=yes
  19834. ;;
  19835. esac
  19836. fi
  19837. # Set up files for the haptic library
  19838. if test x$enable_haptic = xyes; then
  19839. if test x$use_input_events = xyes; then
  19840. case $ARCH in
  19841. linux)
  19842. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  19843. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  19844. have_haptic=yes
  19845. ;;
  19846. esac
  19847. fi
  19848. fi
  19849. # Set up files for the power library
  19850. if test x$enable_power = xyes; then
  19851. case $ARCH in
  19852. linux)
  19853. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  19854. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  19855. have_power=yes
  19856. ;;
  19857. android)
  19858. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  19859. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  19860. have_power=yes
  19861. ;;
  19862. esac
  19863. fi
  19864. # Set up files for the filesystem library
  19865. if test x$enable_filesystem = xyes; then
  19866. case $ARCH in
  19867. android)
  19868. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  19869. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  19870. have_filesystem=yes
  19871. ;;
  19872. *)
  19873. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  19874. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  19875. have_filesystem=yes
  19876. ;;
  19877. esac
  19878. fi
  19879. # Set up files for the timer library
  19880. if test x$enable_timers = xyes; then
  19881. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19882. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19883. have_timers=yes
  19884. fi
  19885. # Set up files for udev hotplugging support
  19886. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  19887. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  19888. fi
  19889. # Set up files for evdev input
  19890. if test x$use_input_events = xyes; then
  19891. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  19892. fi
  19893. ;;
  19894. *-*-cygwin* | *-*-mingw32*)
  19895. ARCH=win32
  19896. if test "$build" != "$host"; then # cross-compiling
  19897. # Default cross-compile location
  19898. ac_default_prefix=/usr/local/cross-tools/$host
  19899. else
  19900. # Look for the location of the tools and install there
  19901. if test "$BUILD_PREFIX" != ""; then
  19902. ac_default_prefix=$BUILD_PREFIX
  19903. fi
  19904. fi
  19905. CheckDummyVideo
  19906. CheckDiskAudio
  19907. CheckDummyAudio
  19908. CheckWINDOWS
  19909. CheckWINDOWSGL
  19910. CheckWINDOWSGLES
  19911. CheckDIRECTX
  19912. # Set up the core platform files
  19913. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  19914. # Set up files for the video library
  19915. if test x$enable_video = xyes; then
  19916. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  19917. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  19918. have_video=yes
  19919. # Check whether --enable-render-d3d was given.
  19920. if test "${enable_render_d3d+set}" = set; then :
  19921. enableval=$enable_render_d3d;
  19922. else
  19923. enable_render_d3d=yes
  19924. fi
  19925. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  19926. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  19927. fi
  19928. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  19929. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  19930. fi
  19931. fi
  19932. # Set up files for the audio library
  19933. if test x$enable_audio = xyes; then
  19934. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  19935. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  19936. if test x$have_dsound = xyes; then
  19937. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  19938. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  19939. fi
  19940. if test x$have_xaudio2 = xyes; then
  19941. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  19942. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  19943. fi
  19944. have_audio=yes
  19945. fi
  19946. # Set up files for the joystick library
  19947. if test x$enable_joystick = xyes; then
  19948. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  19949. if test x$have_xinput = xyes; then
  19950. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  19951. fi
  19952. if test x$have_dinput = xyes; then
  19953. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  19954. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  19955. fi
  19956. else
  19957. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  19958. fi
  19959. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  19960. have_joystick=yes
  19961. fi
  19962. if test x$enable_haptic = xyes; then
  19963. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  19964. if test x$have_xinput = xyes; then
  19965. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  19966. fi
  19967. if test x$have_dinput = xyes; then
  19968. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  19969. fi
  19970. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  19971. have_haptic=yes
  19972. fi
  19973. fi
  19974. if test x$enable_power = xyes; then
  19975. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  19976. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  19977. have_power=yes
  19978. fi
  19979. if test x$enable_filesystem = xyes; then
  19980. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  19981. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  19982. have_filesystem=yes
  19983. fi
  19984. # Set up files for the thread library
  19985. if test x$enable_threads = xyes; then
  19986. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  19987. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  19988. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  19989. have_threads=yes
  19990. fi
  19991. # Set up files for the timer library
  19992. if test x$enable_timers = xyes; then
  19993. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  19994. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  19995. have_timers=yes
  19996. fi
  19997. # Set up files for the shared object loading library
  19998. if test x$enable_loadso = xyes; then
  19999. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  20000. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  20001. have_loadso=yes
  20002. fi
  20003. # Set up the system libraries we need
  20004. if test -f /lib/w32api/libuuid.a; then
  20005. LIBUUID=/lib/w32api/libuuid.a
  20006. else
  20007. LIBUUID=-luuid
  20008. fi
  20009. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
  20010. # The Windows platform requires special setup
  20011. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  20012. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  20013. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  20014. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  20015. # Check to see if this is a mingw or cygwin build
  20016. have_mingw32=
  20017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  20018. $as_echo_n "checking for main in -lmingw32... " >&6; }
  20019. if ${ac_cv_lib_mingw32_main+:} false; then :
  20020. $as_echo_n "(cached) " >&6
  20021. else
  20022. ac_check_lib_save_LIBS=$LIBS
  20023. LIBS="-lmingw32 $LIBS"
  20024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20025. /* end confdefs.h. */
  20026. int
  20027. main ()
  20028. {
  20029. return main ();
  20030. ;
  20031. return 0;
  20032. }
  20033. _ACEOF
  20034. if ac_fn_c_try_link "$LINENO"; then :
  20035. ac_cv_lib_mingw32_main=yes
  20036. else
  20037. ac_cv_lib_mingw32_main=no
  20038. fi
  20039. rm -f core conftest.err conftest.$ac_objext \
  20040. conftest$ac_exeext conftest.$ac_ext
  20041. LIBS=$ac_check_lib_save_LIBS
  20042. fi
  20043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  20044. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  20045. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  20046. have_mingw32=yes
  20047. fi
  20048. if test x$have_mingw32 = xyes; then
  20049. SDL_LIBS="-lmingw32 $SDL_LIBS"
  20050. else
  20051. SDL_LIBS="-lcygwin $SDL_LIBS"
  20052. fi
  20053. ;;
  20054. *-*-beos*)
  20055. as_fn_error $? "
  20056. *** BeOS support has been removed as of SDL 2.0.2.
  20057. " "$LINENO" 5
  20058. ;;
  20059. *-*-haiku*)
  20060. ARCH=haiku
  20061. ac_default_prefix=/boot/system
  20062. CheckDummyVideo
  20063. CheckDiskAudio
  20064. CheckDummyAudio
  20065. CheckHaikuVideo
  20066. CheckHaikuGL
  20067. CheckPTHREAD
  20068. # Set up files for the audio library
  20069. if test x$enable_audio = xyes; then
  20070. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  20071. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  20072. have_audio=yes
  20073. fi
  20074. # Set up files for the joystick library
  20075. if test x$enable_joystick = xyes; then
  20076. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  20077. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  20078. have_joystick=yes
  20079. fi
  20080. # Set up files for the timer library
  20081. if test x$enable_timers = xyes; then
  20082. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  20083. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  20084. have_timers=yes
  20085. fi
  20086. # Set up files for the shared object loading library
  20087. if test x$enable_loadso = xyes; then
  20088. $as_echo "#define SDL_LOADSO_HAIKU 1" >>confdefs.h
  20089. SOURCES="$SOURCES $srcdir/src/loadso/haiku/*.c"
  20090. have_loadso=yes
  20091. fi
  20092. # Set up files for the system power library
  20093. if test x$enable_power = xyes; then
  20094. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  20095. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  20096. have_power=yes
  20097. fi
  20098. # Set up files for the system filesystem library
  20099. if test x$enable_filesystem = xyes; then
  20100. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20101. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20102. have_filesystem=yes
  20103. fi
  20104. # The Haiku platform requires special setup.
  20105. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20106. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  20107. ;;
  20108. arm*-apple-darwin*)
  20109. # iOS - We are not writing anything to confdefs.h because you have to replace
  20110. # SDL_config.h for SDL_config_iphoneos.h anyway
  20111. ARCH=ios
  20112. CheckVisibilityHidden
  20113. CheckDeclarationAfterStatement
  20114. CheckDummyVideo
  20115. CheckDiskAudio
  20116. CheckDummyAudio
  20117. CheckDLOPEN
  20118. CheckCOCOA
  20119. CheckPTHREAD
  20120. # Set up files for the audio library
  20121. if test x$enable_audio = xyes; then
  20122. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20123. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20124. have_audio=yes
  20125. fi
  20126. # Set up files for the joystick library
  20127. if test x$enable_joystick = xyes; then
  20128. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20129. have_joystick=yes
  20130. fi
  20131. # Set up files for the haptic library
  20132. #if test x$enable_haptic = xyes; then
  20133. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20134. # have_haptic=yes
  20135. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20136. #fi
  20137. # Set up files for the power library
  20138. if test x$enable_power = xyes; then
  20139. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20140. have_power=yes
  20141. fi
  20142. # Set up files for the filesystem library
  20143. if test x$enable_filesystem = xyes; then
  20144. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20145. have_filesystem=yes
  20146. fi
  20147. # Set up files for the timer library
  20148. if test x$enable_timers = xyes; then
  20149. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20150. have_timers=yes
  20151. fi
  20152. # Set up additional files for the file library
  20153. if test x$enable_file = xyes; then
  20154. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20155. fi
  20156. # The iOS platform requires special setup.
  20157. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20158. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20159. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20160. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20161. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20162. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20163. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20164. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20165. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20166. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20167. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20168. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20169. ;;
  20170. *-*-darwin* )
  20171. # This could be either full "Mac OS X", or plain "Darwin" which is
  20172. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20173. # Next line is broken, and a few files below require Mac OS X (full)
  20174. ARCH=macosx
  20175. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20176. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20177. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20178. CheckVisibilityHidden
  20179. CheckDeclarationAfterStatement
  20180. CheckDummyVideo
  20181. CheckDiskAudio
  20182. CheckDummyAudio
  20183. CheckDLOPEN
  20184. CheckCOCOA
  20185. CheckX11
  20186. CheckMacGL
  20187. CheckOpenGLX11
  20188. CheckPTHREAD
  20189. # Set up files for the audio library
  20190. if test x$enable_audio = xyes; then
  20191. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20192. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20193. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  20194. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20195. have_audio=yes
  20196. fi
  20197. # Set up files for the joystick library
  20198. if test x$enable_joystick = xyes; then
  20199. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20200. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20201. have_joystick=yes
  20202. fi
  20203. # Set up files for the haptic library
  20204. if test x$enable_haptic = xyes; then
  20205. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20206. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20207. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20208. have_haptic=yes
  20209. fi
  20210. # Set up files for the power library
  20211. if test x$enable_power = xyes; then
  20212. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20213. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20214. have_power=yes
  20215. fi
  20216. # Set up files for the filesystem library
  20217. if test x$enable_filesystem = xyes; then
  20218. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20219. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20220. have_filesystem=yes
  20221. fi
  20222. # Set up files for the timer library
  20223. if test x$enable_timers = xyes; then
  20224. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20225. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20226. have_timers=yes
  20227. fi
  20228. # Set up additional files for the file library
  20229. if test x$enable_file = xyes; then
  20230. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20231. fi
  20232. # The Mac OS X platform requires special setup.
  20233. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20234. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  20235. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  20236. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  20237. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  20238. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  20239. ;;
  20240. *-nacl|*-pnacl)
  20241. ARCH=nacl
  20242. CheckNativeClient
  20243. CheckDummyAudio
  20244. CheckDummyVideo
  20245. CheckInputEvents
  20246. CheckPTHREAD
  20247. # Set up files for the timer library
  20248. if test x$enable_timers = xyes; then
  20249. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20250. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20251. have_timers=yes
  20252. fi
  20253. if test x$enable_filesystem = xyes; then
  20254. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  20255. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  20256. have_filesystem=yes
  20257. fi
  20258. ;;
  20259. *-*-emscripten* )
  20260. if test x$enable_video = xyes; then
  20261. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20262. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  20263. have_video=yes
  20264. SUMMARY_video="${SUMMARY_video} emscripten"
  20265. fi
  20266. if test x$enable_audio = xyes; then
  20267. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20268. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  20269. have_audio=yes
  20270. SUMMARY_audio="${SUMMARY_audio} emscripten"
  20271. fi
  20272. CheckVisibilityHidden
  20273. CheckDeclarationAfterStatement
  20274. CheckDummyVideo
  20275. CheckDiskAudio
  20276. CheckDummyAudio
  20277. CheckDLOPEN
  20278. CheckClockGettime
  20279. CheckEmscriptenGLES
  20280. # Set up files for the power library
  20281. if test x$enable_power = xyes; then
  20282. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  20283. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  20284. have_power=yes
  20285. fi
  20286. # Set up files for the power library
  20287. if test x$enable_joystick = xyes; then
  20288. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  20289. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  20290. have_joystick=yes
  20291. fi
  20292. # Set up files for the filesystem library
  20293. if test x$enable_filesystem = xyes; then
  20294. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  20295. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  20296. have_filesystem=yes
  20297. fi
  20298. # Set up files for the timer library
  20299. if test x$enable_timers = xyes; then
  20300. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20301. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20302. have_timers=yes
  20303. fi
  20304. ;;
  20305. *)
  20306. as_fn_error $? "
  20307. *** Unsupported host: Please add to configure.in
  20308. " "$LINENO" 5
  20309. ;;
  20310. esac
  20311. # Verify that we have all the platform specific files we need
  20312. if test x$have_joystick != xyes; then
  20313. if test x$enable_joystick = xyes; then
  20314. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  20315. fi
  20316. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  20317. fi
  20318. if test x$have_haptic != xyes; then
  20319. if test x$enable_haptic = xyes; then
  20320. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  20321. fi
  20322. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  20323. fi
  20324. if test x$have_threads != xyes; then
  20325. if test x$enable_threads = xyes; then
  20326. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  20327. fi
  20328. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  20329. fi
  20330. if test x$have_timers != xyes; then
  20331. if test x$enable_timers = xyes; then
  20332. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  20333. fi
  20334. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  20335. fi
  20336. if test x$have_filesystem != xyes; then
  20337. if test x$enable_filesystem = xyes; then
  20338. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  20339. fi
  20340. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  20341. fi
  20342. if test x$have_loadso != xyes; then
  20343. if test x$enable_loadso = xyes; then
  20344. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  20345. fi
  20346. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  20347. fi
  20348. if test x$SDLMAIN_SOURCES = x; then
  20349. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  20350. fi
  20351. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  20352. if test x$video_wayland = xyes; then
  20353. WAYLAND_CORE_PROTOCOL_SOURCE='$(gen)/wayland-protocol.c'
  20354. WAYLAND_CORE_PROTOCOL_HEADER='$(gen)/wayland-client-protocol.h'
  20355. WAYLAND_PROTOCOLS_UNSTABLE_SOURCES=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20356. sed 's,[^ ]\+,\\$(gen)/&-protocol.c,g'`
  20357. WAYLAND_PROTOCOLS_UNSTABLE_HEADERS=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20358. sed 's,[^ ]\+,\\$(gen)/&-client-protocol.h,g'`
  20359. GEN_SOURCES="$GEN_SOURCES $WAYLAND_CORE_PROTOCOL_SOURCE $WAYLAND_PROTOCOLS_UNSTABLE_SOURCES"
  20360. GEN_HEADERS="$GEN_HEADERS $WAYLAND_CORE_PROTOCOL_HEADER $WAYLAND_PROTOCOLS_UNSTABLE_HEADERS"
  20361. WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS="
  20362. $WAYLAND_CORE_PROTOCOL_SOURCE: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20363. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20364. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) code \$< \$@"
  20365. WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS="
  20366. $WAYLAND_CORE_PROTOCOL_HEADER: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20367. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20368. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) client-header \$< \$@"
  20369. WAYLAND_CORE_PROTOCOL_OBJECT="
  20370. \$(objects)/`echo $WAYLAND_CORE_PROTOCOL_SOURCE | sed 's/\$(gen)\/\(.*\).c$/\1.lo/'`: $WAYLAND_CORE_PROTOCOL_SOURCE
  20371. \$(RUN_CMD_CC)\$(LIBTOOL) --tag=CC --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \$< -o \$@"
  20372. WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20373. do echo ; echo \$p | sed\
  20374. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-client-protocol.h: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20375. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20376. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@," ; done`
  20377. WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20378. do echo ; echo \$p | sed\
  20379. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-protocol.c: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20380. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20381. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@," ; done`
  20382. WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20383. do echo ; echo \$p | sed\
  20384. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\\$(objects)/&-protocol.lo: \\$(gen)/&-protocol.c \\$(gen)/&-client-protocol.h\\\\
  20385. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@," ; done`
  20386. WAYLAND_PROTOCOLS_DEPENDS="
  20387. $WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS
  20388. $WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS
  20389. $WAYLAND_CORE_PROTOCOL_OBJECT
  20390. $WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS
  20391. $WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS
  20392. $WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE
  20393. "
  20394. fi
  20395. OBJECTS=`echo $SOURCES`
  20396. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  20397. for EXT in asm cc m c S; do
  20398. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  20399. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  20400. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  20401. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20402. done
  20403. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20404. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  20405. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  20406. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  20407. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  20408. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  20409. \\$(WINDRES) \\$< \\$@,g"`
  20410. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  20411. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  20412. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20413. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20414. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20415. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20416. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  20417. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  20418. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20419. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20420. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20421. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20422. # Set runtime shared library paths as needed
  20423. if test "x$enable_rpath" = "xyes"; then
  20424. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  20425. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  20426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  20427. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  20428. have_enable_new_dtags=no
  20429. save_LDFLAGS="$LDFLAGS"
  20430. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  20431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20432. /* end confdefs.h. */
  20433. int
  20434. main ()
  20435. {
  20436. ;
  20437. return 0;
  20438. }
  20439. _ACEOF
  20440. if ac_fn_c_try_link "$LINENO"; then :
  20441. have_enable_new_dtags=yes
  20442. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  20443. fi
  20444. rm -f core conftest.err conftest.$ac_objext \
  20445. conftest$ac_exeext conftest.$ac_ext
  20446. LDFLAGS="$save_LDFLAGS"
  20447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  20448. $as_echo "$have_enable_new_dtags" >&6; }
  20449. fi
  20450. if test $ARCH = solaris; then
  20451. SDL_RLD_FLAGS="-R\${libdir}"
  20452. fi
  20453. else
  20454. SDL_RLD_FLAGS=""
  20455. fi
  20456. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  20457. if test x$enable_shared = xyes; then
  20458. ENABLE_SHARED_TRUE=
  20459. ENABLE_SHARED_FALSE="#"
  20460. else
  20461. ENABLE_SHARED_TRUE="#"
  20462. ENABLE_SHARED_FALSE=
  20463. fi
  20464. if test x$enable_static = xyes; then
  20465. ENABLE_STATIC_TRUE=
  20466. ENABLE_STATIC_FALSE="#"
  20467. else
  20468. ENABLE_STATIC_TRUE="#"
  20469. ENABLE_STATIC_FALSE=
  20470. fi
  20471. cat >Makefile.rules <<__EOF__
  20472. # Build rules for objects
  20473. -include \$(OBJECTS:.lo=.d)
  20474. # Special dependency for SDL.c, since it depends on SDL_revision.h
  20475. $srcdir/src/SDL.c: update-revision
  20476. $DEPENDS
  20477. $VERSION_DEPENDS
  20478. $SDLMAIN_DEPENDS
  20479. $SDLTEST_DEPENDS
  20480. $WAYLAND_PROTOCOLS_DEPENDS
  20481. __EOF__
  20482. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  20483. ac_config_commands="$ac_config_commands sdl2_config"
  20484. SUMMARY="SDL2 Configure Summary:\n"
  20485. if test x$enable_shared = xyes; then
  20486. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  20487. fi
  20488. if test x$enable_static = xyes; then
  20489. SUMMARY="${SUMMARY}Building Static Libraries\n"
  20490. fi
  20491. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  20492. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  20493. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  20494. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  20495. if test x$have_x = xyes; then
  20496. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  20497. fi
  20498. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  20499. if test x$enable_libudev = xyes; then
  20500. SUMMARY="${SUMMARY}Using libudev : YES\n"
  20501. else
  20502. SUMMARY="${SUMMARY}Using libudev : NO\n"
  20503. fi
  20504. if test x$have_dbus_dbus_h_hdr = xyes; then
  20505. SUMMARY="${SUMMARY}Using dbus : YES\n"
  20506. else
  20507. SUMMARY="${SUMMARY}Using dbus : NO\n"
  20508. fi
  20509. if test x$enable_ime = xyes; then
  20510. SUMMARY="${SUMMARY}Using ime : YES\n"
  20511. else
  20512. SUMMARY="${SUMMARY}Using ime : NO\n"
  20513. fi
  20514. if test x$have_ibus_ibus_h_hdr = xyes; then
  20515. SUMMARY="${SUMMARY}Using ibus : YES\n"
  20516. else
  20517. SUMMARY="${SUMMARY}Using ibus : NO\n"
  20518. fi
  20519. if test x$have_fcitx_frontend_h_hdr = xyes; then
  20520. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  20521. else
  20522. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  20523. fi
  20524. ac_config_commands="$ac_config_commands summary"
  20525. cat >confcache <<\_ACEOF
  20526. # This file is a shell script that caches the results of configure
  20527. # tests run on this system so they can be shared between configure
  20528. # scripts and configure runs, see configure's option --config-cache.
  20529. # It is not useful on other systems. If it contains results you don't
  20530. # want to keep, you may remove or edit it.
  20531. #
  20532. # config.status only pays attention to the cache file if you give it
  20533. # the --recheck option to rerun configure.
  20534. #
  20535. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20536. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20537. # following values.
  20538. _ACEOF
  20539. # The following way of writing the cache mishandles newlines in values,
  20540. # but we know of no workaround that is simple, portable, and efficient.
  20541. # So, we kill variables containing newlines.
  20542. # Ultrix sh set writes to stderr and can't be redirected directly,
  20543. # and sets the high bit in the cache file unless we assign to the vars.
  20544. (
  20545. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20546. eval ac_val=\$$ac_var
  20547. case $ac_val in #(
  20548. *${as_nl}*)
  20549. case $ac_var in #(
  20550. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  20551. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20552. esac
  20553. case $ac_var in #(
  20554. _ | IFS | as_nl) ;; #(
  20555. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20556. *) { eval $ac_var=; unset $ac_var;} ;;
  20557. esac ;;
  20558. esac
  20559. done
  20560. (set) 2>&1 |
  20561. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20562. *${as_nl}ac_space=\ *)
  20563. # `set' does not quote correctly, so add quotes: double-quote
  20564. # substitution turns \\\\ into \\, and sed turns \\ into \.
  20565. sed -n \
  20566. "s/'/'\\\\''/g;
  20567. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20568. ;; #(
  20569. *)
  20570. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20571. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20572. ;;
  20573. esac |
  20574. sort
  20575. ) |
  20576. sed '
  20577. /^ac_cv_env_/b end
  20578. t clear
  20579. :clear
  20580. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20581. t end
  20582. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20583. :end' >>confcache
  20584. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20585. if test -w "$cache_file"; then
  20586. if test "x$cache_file" != "x/dev/null"; then
  20587. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  20588. $as_echo "$as_me: updating cache $cache_file" >&6;}
  20589. if test ! -f "$cache_file" || test -h "$cache_file"; then
  20590. cat confcache >"$cache_file"
  20591. else
  20592. case $cache_file in #(
  20593. */* | ?:*)
  20594. mv -f confcache "$cache_file"$$ &&
  20595. mv -f "$cache_file"$$ "$cache_file" ;; #(
  20596. *)
  20597. mv -f confcache "$cache_file" ;;
  20598. esac
  20599. fi
  20600. fi
  20601. else
  20602. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  20603. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20604. fi
  20605. fi
  20606. rm -f confcache
  20607. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20608. # Let make expand exec_prefix.
  20609. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20610. DEFS=-DHAVE_CONFIG_H
  20611. ac_libobjs=
  20612. ac_ltlibobjs=
  20613. U=
  20614. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20615. # 1. Remove the extension, and $U if already installed.
  20616. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20617. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20618. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20619. # will be set to the directory where LIBOBJS objects are built.
  20620. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20621. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  20622. done
  20623. LIBOBJS=$ac_libobjs
  20624. LTLIBOBJS=$ac_ltlibobjs
  20625. : "${CONFIG_STATUS=./config.status}"
  20626. ac_write_fail=0
  20627. ac_clean_files_save=$ac_clean_files
  20628. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20629. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  20630. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20631. as_write_fail=0
  20632. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  20633. #! $SHELL
  20634. # Generated by $as_me.
  20635. # Run this file to recreate the current configuration.
  20636. # Compiler output produced by configure, useful for debugging
  20637. # configure, is in config.log if it exists.
  20638. debug=false
  20639. ac_cs_recheck=false
  20640. ac_cs_silent=false
  20641. SHELL=\${CONFIG_SHELL-$SHELL}
  20642. export SHELL
  20643. _ASEOF
  20644. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  20645. ## -------------------- ##
  20646. ## M4sh Initialization. ##
  20647. ## -------------------- ##
  20648. # Be more Bourne compatible
  20649. DUALCASE=1; export DUALCASE # for MKS sh
  20650. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20651. emulate sh
  20652. NULLCMD=:
  20653. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20654. # is contrary to our usage. Disable this feature.
  20655. alias -g '${1+"$@"}'='"$@"'
  20656. setopt NO_GLOB_SUBST
  20657. else
  20658. case `(set -o) 2>/dev/null` in #(
  20659. *posix*) :
  20660. set -o posix ;; #(
  20661. *) :
  20662. ;;
  20663. esac
  20664. fi
  20665. as_nl='
  20666. '
  20667. export as_nl
  20668. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  20669. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  20670. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  20671. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  20672. # Prefer a ksh shell builtin over an external printf program on Solaris,
  20673. # but without wasting forks for bash or zsh.
  20674. if test -z "$BASH_VERSION$ZSH_VERSION" \
  20675. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  20676. as_echo='print -r --'
  20677. as_echo_n='print -rn --'
  20678. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  20679. as_echo='printf %s\n'
  20680. as_echo_n='printf %s'
  20681. else
  20682. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  20683. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  20684. as_echo_n='/usr/ucb/echo -n'
  20685. else
  20686. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  20687. as_echo_n_body='eval
  20688. arg=$1;
  20689. case $arg in #(
  20690. *"$as_nl"*)
  20691. expr "X$arg" : "X\\(.*\\)$as_nl";
  20692. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  20693. esac;
  20694. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  20695. '
  20696. export as_echo_n_body
  20697. as_echo_n='sh -c $as_echo_n_body as_echo'
  20698. fi
  20699. export as_echo_body
  20700. as_echo='sh -c $as_echo_body as_echo'
  20701. fi
  20702. # The user is always right.
  20703. if test "${PATH_SEPARATOR+set}" != set; then
  20704. PATH_SEPARATOR=:
  20705. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20706. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20707. PATH_SEPARATOR=';'
  20708. }
  20709. fi
  20710. # IFS
  20711. # We need space, tab and new line, in precisely that order. Quoting is
  20712. # there to prevent editors from complaining about space-tab.
  20713. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20714. # splitting by setting IFS to empty value.)
  20715. IFS=" "" $as_nl"
  20716. # Find who we are. Look in the path if we contain no directory separator.
  20717. as_myself=
  20718. case $0 in #((
  20719. *[\\/]* ) as_myself=$0 ;;
  20720. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20721. for as_dir in $PATH
  20722. do
  20723. IFS=$as_save_IFS
  20724. test -z "$as_dir" && as_dir=.
  20725. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20726. done
  20727. IFS=$as_save_IFS
  20728. ;;
  20729. esac
  20730. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20731. # in which case we are not to be found in the path.
  20732. if test "x$as_myself" = x; then
  20733. as_myself=$0
  20734. fi
  20735. if test ! -f "$as_myself"; then
  20736. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20737. exit 1
  20738. fi
  20739. # Unset variables that we do not need and which cause bugs (e.g. in
  20740. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  20741. # suppresses any "Segmentation fault" message there. '((' could
  20742. # trigger a bug in pdksh 5.2.14.
  20743. for as_var in BASH_ENV ENV MAIL MAILPATH
  20744. do eval test x\${$as_var+set} = xset \
  20745. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  20746. done
  20747. PS1='$ '
  20748. PS2='> '
  20749. PS4='+ '
  20750. # NLS nuisances.
  20751. LC_ALL=C
  20752. export LC_ALL
  20753. LANGUAGE=C
  20754. export LANGUAGE
  20755. # CDPATH.
  20756. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20757. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  20758. # ----------------------------------------
  20759. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  20760. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  20761. # script with STATUS, using 1 if that was 0.
  20762. as_fn_error ()
  20763. {
  20764. as_status=$1; test $as_status -eq 0 && as_status=1
  20765. if test "$4"; then
  20766. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  20767. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  20768. fi
  20769. $as_echo "$as_me: error: $2" >&2
  20770. as_fn_exit $as_status
  20771. } # as_fn_error
  20772. # as_fn_set_status STATUS
  20773. # -----------------------
  20774. # Set $? to STATUS, without forking.
  20775. as_fn_set_status ()
  20776. {
  20777. return $1
  20778. } # as_fn_set_status
  20779. # as_fn_exit STATUS
  20780. # -----------------
  20781. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  20782. as_fn_exit ()
  20783. {
  20784. set +e
  20785. as_fn_set_status $1
  20786. exit $1
  20787. } # as_fn_exit
  20788. # as_fn_unset VAR
  20789. # ---------------
  20790. # Portably unset VAR.
  20791. as_fn_unset ()
  20792. {
  20793. { eval $1=; unset $1;}
  20794. }
  20795. as_unset=as_fn_unset
  20796. # as_fn_append VAR VALUE
  20797. # ----------------------
  20798. # Append the text in VALUE to the end of the definition contained in VAR. Take
  20799. # advantage of any shell optimizations that allow amortized linear growth over
  20800. # repeated appends, instead of the typical quadratic growth present in naive
  20801. # implementations.
  20802. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  20803. eval 'as_fn_append ()
  20804. {
  20805. eval $1+=\$2
  20806. }'
  20807. else
  20808. as_fn_append ()
  20809. {
  20810. eval $1=\$$1\$2
  20811. }
  20812. fi # as_fn_append
  20813. # as_fn_arith ARG...
  20814. # ------------------
  20815. # Perform arithmetic evaluation on the ARGs, and store the result in the
  20816. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  20817. # must be portable across $(()) and expr.
  20818. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  20819. eval 'as_fn_arith ()
  20820. {
  20821. as_val=$(( $* ))
  20822. }'
  20823. else
  20824. as_fn_arith ()
  20825. {
  20826. as_val=`expr "$@" || test $? -eq 1`
  20827. }
  20828. fi # as_fn_arith
  20829. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20830. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20831. as_expr=expr
  20832. else
  20833. as_expr=false
  20834. fi
  20835. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20836. as_basename=basename
  20837. else
  20838. as_basename=false
  20839. fi
  20840. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20841. as_dirname=dirname
  20842. else
  20843. as_dirname=false
  20844. fi
  20845. as_me=`$as_basename -- "$0" ||
  20846. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20847. X"$0" : 'X\(//\)$' \| \
  20848. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20849. $as_echo X/"$0" |
  20850. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20851. s//\1/
  20852. q
  20853. }
  20854. /^X\/\(\/\/\)$/{
  20855. s//\1/
  20856. q
  20857. }
  20858. /^X\/\(\/\).*/{
  20859. s//\1/
  20860. q
  20861. }
  20862. s/.*/./; q'`
  20863. # Avoid depending upon Character Ranges.
  20864. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20865. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20866. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20867. as_cr_digits='0123456789'
  20868. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20869. ECHO_C= ECHO_N= ECHO_T=
  20870. case `echo -n x` in #(((((
  20871. -n*)
  20872. case `echo 'xy\c'` in
  20873. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20874. xy) ECHO_C='\c';;
  20875. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  20876. ECHO_T=' ';;
  20877. esac;;
  20878. *)
  20879. ECHO_N='-n';;
  20880. esac
  20881. rm -f conf$$ conf$$.exe conf$$.file
  20882. if test -d conf$$.dir; then
  20883. rm -f conf$$.dir/conf$$.file
  20884. else
  20885. rm -f conf$$.dir
  20886. mkdir conf$$.dir 2>/dev/null
  20887. fi
  20888. if (echo >conf$$.file) 2>/dev/null; then
  20889. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20890. as_ln_s='ln -s'
  20891. # ... but there are two gotchas:
  20892. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20893. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20894. # In both cases, we have to default to `cp -pR'.
  20895. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20896. as_ln_s='cp -pR'
  20897. elif ln conf$$.file conf$$ 2>/dev/null; then
  20898. as_ln_s=ln
  20899. else
  20900. as_ln_s='cp -pR'
  20901. fi
  20902. else
  20903. as_ln_s='cp -pR'
  20904. fi
  20905. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20906. rmdir conf$$.dir 2>/dev/null
  20907. # as_fn_mkdir_p
  20908. # -------------
  20909. # Create "$as_dir" as a directory, including parents if necessary.
  20910. as_fn_mkdir_p ()
  20911. {
  20912. case $as_dir in #(
  20913. -*) as_dir=./$as_dir;;
  20914. esac
  20915. test -d "$as_dir" || eval $as_mkdir_p || {
  20916. as_dirs=
  20917. while :; do
  20918. case $as_dir in #(
  20919. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  20920. *) as_qdir=$as_dir;;
  20921. esac
  20922. as_dirs="'$as_qdir' $as_dirs"
  20923. as_dir=`$as_dirname -- "$as_dir" ||
  20924. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20925. X"$as_dir" : 'X\(//\)[^/]' \| \
  20926. X"$as_dir" : 'X\(//\)$' \| \
  20927. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20928. $as_echo X"$as_dir" |
  20929. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20930. s//\1/
  20931. q
  20932. }
  20933. /^X\(\/\/\)[^/].*/{
  20934. s//\1/
  20935. q
  20936. }
  20937. /^X\(\/\/\)$/{
  20938. s//\1/
  20939. q
  20940. }
  20941. /^X\(\/\).*/{
  20942. s//\1/
  20943. q
  20944. }
  20945. s/.*/./; q'`
  20946. test -d "$as_dir" && break
  20947. done
  20948. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20949. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  20950. } # as_fn_mkdir_p
  20951. if mkdir -p . 2>/dev/null; then
  20952. as_mkdir_p='mkdir -p "$as_dir"'
  20953. else
  20954. test -d ./-p && rmdir ./-p
  20955. as_mkdir_p=false
  20956. fi
  20957. # as_fn_executable_p FILE
  20958. # -----------------------
  20959. # Test if FILE is an executable regular file.
  20960. as_fn_executable_p ()
  20961. {
  20962. test -f "$1" && test -x "$1"
  20963. } # as_fn_executable_p
  20964. as_test_x='test -x'
  20965. as_executable_p=as_fn_executable_p
  20966. # Sed expression to map a string onto a valid CPP name.
  20967. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20968. # Sed expression to map a string onto a valid variable name.
  20969. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20970. exec 6>&1
  20971. ## ----------------------------------- ##
  20972. ## Main body of $CONFIG_STATUS script. ##
  20973. ## ----------------------------------- ##
  20974. _ASEOF
  20975. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  20976. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20977. # Save the log message, to keep $0 and so on meaningful, and to
  20978. # report actual input values of CONFIG_FILES etc. instead of their
  20979. # values after options handling.
  20980. ac_log="
  20981. This file was extended by $as_me, which was
  20982. generated by GNU Autoconf 2.69. Invocation command line was
  20983. CONFIG_FILES = $CONFIG_FILES
  20984. CONFIG_HEADERS = $CONFIG_HEADERS
  20985. CONFIG_LINKS = $CONFIG_LINKS
  20986. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20987. $ $0 $@
  20988. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20989. "
  20990. _ACEOF
  20991. case $ac_config_files in *"
  20992. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  20993. esac
  20994. case $ac_config_headers in *"
  20995. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  20996. esac
  20997. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20998. # Files that config.status was made for.
  20999. config_files="$ac_config_files"
  21000. config_headers="$ac_config_headers"
  21001. config_commands="$ac_config_commands"
  21002. _ACEOF
  21003. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21004. ac_cs_usage="\
  21005. \`$as_me' instantiates files and other configuration actions
  21006. from templates according to the current configuration. Unless the files
  21007. and actions are specified as TAGs, all are instantiated by default.
  21008. Usage: $0 [OPTION]... [TAG]...
  21009. -h, --help print this help, then exit
  21010. -V, --version print version number and configuration settings, then exit
  21011. --config print configuration, then exit
  21012. -q, --quiet, --silent
  21013. do not print progress messages
  21014. -d, --debug don't remove temporary files
  21015. --recheck update $as_me by reconfiguring in the same conditions
  21016. --file=FILE[:TEMPLATE]
  21017. instantiate the configuration file FILE
  21018. --header=FILE[:TEMPLATE]
  21019. instantiate the configuration header FILE
  21020. Configuration files:
  21021. $config_files
  21022. Configuration headers:
  21023. $config_headers
  21024. Configuration commands:
  21025. $config_commands
  21026. Report bugs to the package provider."
  21027. _ACEOF
  21028. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21029. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21030. ac_cs_version="\\
  21031. config.status
  21032. configured by $0, generated by GNU Autoconf 2.69,
  21033. with options \\"\$ac_cs_config\\"
  21034. Copyright (C) 2012 Free Software Foundation, Inc.
  21035. This config.status script is free software; the Free Software Foundation
  21036. gives unlimited permission to copy, distribute and modify it."
  21037. ac_pwd='$ac_pwd'
  21038. srcdir='$srcdir'
  21039. INSTALL='$INSTALL'
  21040. AWK='$AWK'
  21041. test -n "\$AWK" || AWK=awk
  21042. _ACEOF
  21043. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21044. # The default lists apply if the user does not specify any file.
  21045. ac_need_defaults=:
  21046. while test $# != 0
  21047. do
  21048. case $1 in
  21049. --*=?*)
  21050. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21051. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21052. ac_shift=:
  21053. ;;
  21054. --*=)
  21055. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21056. ac_optarg=
  21057. ac_shift=:
  21058. ;;
  21059. *)
  21060. ac_option=$1
  21061. ac_optarg=$2
  21062. ac_shift=shift
  21063. ;;
  21064. esac
  21065. case $ac_option in
  21066. # Handling of the options.
  21067. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21068. ac_cs_recheck=: ;;
  21069. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21070. $as_echo "$ac_cs_version"; exit ;;
  21071. --config | --confi | --conf | --con | --co | --c )
  21072. $as_echo "$ac_cs_config"; exit ;;
  21073. --debug | --debu | --deb | --de | --d | -d )
  21074. debug=: ;;
  21075. --file | --fil | --fi | --f )
  21076. $ac_shift
  21077. case $ac_optarg in
  21078. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21079. '') as_fn_error $? "missing file argument" ;;
  21080. esac
  21081. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21082. ac_need_defaults=false;;
  21083. --header | --heade | --head | --hea )
  21084. $ac_shift
  21085. case $ac_optarg in
  21086. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21087. esac
  21088. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21089. ac_need_defaults=false;;
  21090. --he | --h)
  21091. # Conflict between --help and --header
  21092. as_fn_error $? "ambiguous option: \`$1'
  21093. Try \`$0 --help' for more information.";;
  21094. --help | --hel | -h )
  21095. $as_echo "$ac_cs_usage"; exit ;;
  21096. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21097. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21098. ac_cs_silent=: ;;
  21099. # This is an error.
  21100. -*) as_fn_error $? "unrecognized option: \`$1'
  21101. Try \`$0 --help' for more information." ;;
  21102. *) as_fn_append ac_config_targets " $1"
  21103. ac_need_defaults=false ;;
  21104. esac
  21105. shift
  21106. done
  21107. ac_configure_extra_args=
  21108. if $ac_cs_silent; then
  21109. exec 6>/dev/null
  21110. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21111. fi
  21112. _ACEOF
  21113. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21114. if \$ac_cs_recheck; then
  21115. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21116. shift
  21117. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21118. CONFIG_SHELL='$SHELL'
  21119. export CONFIG_SHELL
  21120. exec "\$@"
  21121. fi
  21122. _ACEOF
  21123. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21124. exec 5>>config.log
  21125. {
  21126. echo
  21127. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21128. ## Running $as_me. ##
  21129. _ASBOX
  21130. $as_echo "$ac_log"
  21131. } >&5
  21132. _ACEOF
  21133. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21134. #
  21135. # INIT-COMMANDS
  21136. #
  21137. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21138. # if CDPATH is set.
  21139. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21140. sed_quote_subst='$sed_quote_subst'
  21141. double_quote_subst='$double_quote_subst'
  21142. delay_variable_subst='$delay_variable_subst'
  21143. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21144. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21145. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21146. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21147. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21148. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21149. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21150. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21151. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21152. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21153. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21154. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21155. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21156. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21157. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21158. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21159. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21160. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21161. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21162. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21163. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21164. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21165. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21166. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21167. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21168. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21169. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21170. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21171. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21172. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21173. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21174. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21175. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21176. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21177. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21178. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21179. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21180. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21181. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21182. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21183. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21184. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21185. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21186. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21187. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21188. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21189. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21190. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21191. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21192. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  21193. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  21194. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  21195. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  21196. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  21197. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21198. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21199. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21200. 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"`'
  21201. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21202. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21203. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21204. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21205. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21206. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21207. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21208. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21209. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21210. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21211. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21212. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21213. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21214. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21215. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21216. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21217. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21218. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21219. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21220. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21221. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21222. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21223. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21224. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21225. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21226. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21227. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21228. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21229. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21230. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21231. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21232. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21233. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21234. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  21235. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  21236. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  21237. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  21238. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  21239. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21240. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  21241. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  21242. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  21243. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  21244. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  21245. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  21246. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  21247. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  21248. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  21249. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  21250. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  21251. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21252. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  21253. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  21254. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  21255. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21256. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  21257. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  21258. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  21259. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  21260. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  21261. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21262. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21263. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  21264. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  21265. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  21266. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  21267. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  21268. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  21269. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  21270. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  21271. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  21272. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  21273. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  21274. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  21275. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  21276. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  21277. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  21278. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  21279. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  21280. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  21281. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21282. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21283. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21284. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  21285. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  21286. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21287. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  21288. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  21289. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  21290. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  21291. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  21292. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  21293. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21294. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21295. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  21296. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21297. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21298. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21299. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21300. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21301. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21302. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  21303. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21304. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21305. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21306. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  21307. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  21308. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  21309. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  21310. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  21311. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  21312. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  21313. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  21314. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  21315. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21316. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21317. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21318. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21319. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21320. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21321. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  21322. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  21323. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21324. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21325. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  21326. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  21327. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  21328. LTCC='$LTCC'
  21329. LTCFLAGS='$LTCFLAGS'
  21330. compiler='$compiler_DEFAULT'
  21331. # A function that is used when there is no print builtin or printf.
  21332. func_fallback_echo ()
  21333. {
  21334. eval 'cat <<_LTECHO_EOF
  21335. \$1
  21336. _LTECHO_EOF'
  21337. }
  21338. # Quote evaled strings.
  21339. for var in AS \
  21340. DLLTOOL \
  21341. OBJDUMP \
  21342. SHELL \
  21343. ECHO \
  21344. PATH_SEPARATOR \
  21345. SED \
  21346. GREP \
  21347. EGREP \
  21348. FGREP \
  21349. LD \
  21350. NM \
  21351. LN_S \
  21352. lt_SP2NL \
  21353. lt_NL2SP \
  21354. reload_flag \
  21355. deplibs_check_method \
  21356. file_magic_cmd \
  21357. file_magic_glob \
  21358. want_nocaseglob \
  21359. sharedlib_from_linklib_cmd \
  21360. AR \
  21361. AR_FLAGS \
  21362. archiver_list_spec \
  21363. STRIP \
  21364. RANLIB \
  21365. CC \
  21366. CFLAGS \
  21367. compiler \
  21368. lt_cv_sys_global_symbol_pipe \
  21369. lt_cv_sys_global_symbol_to_cdecl \
  21370. lt_cv_sys_global_symbol_to_c_name_address \
  21371. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21372. nm_file_list_spec \
  21373. lt_prog_compiler_no_builtin_flag \
  21374. lt_prog_compiler_pic \
  21375. lt_prog_compiler_wl \
  21376. lt_prog_compiler_static \
  21377. lt_cv_prog_compiler_c_o \
  21378. need_locks \
  21379. MANIFEST_TOOL \
  21380. DSYMUTIL \
  21381. NMEDIT \
  21382. LIPO \
  21383. OTOOL \
  21384. OTOOL64 \
  21385. shrext_cmds \
  21386. export_dynamic_flag_spec \
  21387. whole_archive_flag_spec \
  21388. compiler_needs_object \
  21389. with_gnu_ld \
  21390. allow_undefined_flag \
  21391. no_undefined_flag \
  21392. hardcode_libdir_flag_spec \
  21393. hardcode_libdir_separator \
  21394. exclude_expsyms \
  21395. include_expsyms \
  21396. file_list_spec \
  21397. variables_saved_for_relink \
  21398. libname_spec \
  21399. library_names_spec \
  21400. soname_spec \
  21401. install_override_mode \
  21402. finish_eval \
  21403. old_striplib \
  21404. striplib \
  21405. compiler_lib_search_dirs \
  21406. predep_objects \
  21407. postdep_objects \
  21408. predeps \
  21409. postdeps \
  21410. compiler_lib_search_path \
  21411. LD_CXX \
  21412. reload_flag_CXX \
  21413. compiler_CXX \
  21414. lt_prog_compiler_no_builtin_flag_CXX \
  21415. lt_prog_compiler_pic_CXX \
  21416. lt_prog_compiler_wl_CXX \
  21417. lt_prog_compiler_static_CXX \
  21418. lt_cv_prog_compiler_c_o_CXX \
  21419. export_dynamic_flag_spec_CXX \
  21420. whole_archive_flag_spec_CXX \
  21421. compiler_needs_object_CXX \
  21422. with_gnu_ld_CXX \
  21423. allow_undefined_flag_CXX \
  21424. no_undefined_flag_CXX \
  21425. hardcode_libdir_flag_spec_CXX \
  21426. hardcode_libdir_separator_CXX \
  21427. exclude_expsyms_CXX \
  21428. include_expsyms_CXX \
  21429. file_list_spec_CXX \
  21430. compiler_lib_search_dirs_CXX \
  21431. predep_objects_CXX \
  21432. postdep_objects_CXX \
  21433. predeps_CXX \
  21434. postdeps_CXX \
  21435. compiler_lib_search_path_CXX; do
  21436. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21437. *[\\\\\\\`\\"\\\$]*)
  21438. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  21439. ;;
  21440. *)
  21441. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21442. ;;
  21443. esac
  21444. done
  21445. # Double-quote double-evaled strings.
  21446. for var in reload_cmds \
  21447. old_postinstall_cmds \
  21448. old_postuninstall_cmds \
  21449. old_archive_cmds \
  21450. extract_expsyms_cmds \
  21451. old_archive_from_new_cmds \
  21452. old_archive_from_expsyms_cmds \
  21453. archive_cmds \
  21454. archive_expsym_cmds \
  21455. module_cmds \
  21456. module_expsym_cmds \
  21457. export_symbols_cmds \
  21458. prelink_cmds \
  21459. postlink_cmds \
  21460. postinstall_cmds \
  21461. postuninstall_cmds \
  21462. finish_cmds \
  21463. sys_lib_search_path_spec \
  21464. sys_lib_dlsearch_path_spec \
  21465. reload_cmds_CXX \
  21466. old_archive_cmds_CXX \
  21467. old_archive_from_new_cmds_CXX \
  21468. old_archive_from_expsyms_cmds_CXX \
  21469. archive_cmds_CXX \
  21470. archive_expsym_cmds_CXX \
  21471. module_cmds_CXX \
  21472. module_expsym_cmds_CXX \
  21473. export_symbols_cmds_CXX \
  21474. prelink_cmds_CXX \
  21475. postlink_cmds_CXX; do
  21476. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21477. *[\\\\\\\`\\"\\\$]*)
  21478. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  21479. ;;
  21480. *)
  21481. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21482. ;;
  21483. esac
  21484. done
  21485. ac_aux_dir='$ac_aux_dir'
  21486. xsi_shell='$xsi_shell'
  21487. lt_shell_append='$lt_shell_append'
  21488. # See if we are running on zsh, and set the options which allow our
  21489. # commands through without removal of \ escapes INIT.
  21490. if test -n "\${ZSH_VERSION+set}" ; then
  21491. setopt NO_GLOB_SUBST
  21492. fi
  21493. PACKAGE='$PACKAGE'
  21494. VERSION='$VERSION'
  21495. TIMESTAMP='$TIMESTAMP'
  21496. RM='$RM'
  21497. ofile='$ofile'
  21498. SUMMARY="$SUMMARY"
  21499. _ACEOF
  21500. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21501. # Handling of arguments.
  21502. for ac_config_target in $ac_config_targets
  21503. do
  21504. case $ac_config_target in
  21505. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  21506. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  21507. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  21508. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  21509. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  21510. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  21511. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  21512. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  21513. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  21514. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  21515. esac
  21516. done
  21517. # If the user did not use the arguments to specify the items to instantiate,
  21518. # then the envvar interface is used. Set only those that are not.
  21519. # We use the long form for the default assignment because of an extremely
  21520. # bizarre bug on SunOS 4.1.3.
  21521. if $ac_need_defaults; then
  21522. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21523. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21524. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21525. fi
  21526. # Have a temporary directory for convenience. Make it in the build tree
  21527. # simply because there is no reason against having it here, and in addition,
  21528. # creating and moving files from /tmp can sometimes cause problems.
  21529. # Hook for its removal unless debugging.
  21530. # Note that there is a small window in which the directory will not be cleaned:
  21531. # after its creation but before its name has been assigned to `$tmp'.
  21532. $debug ||
  21533. {
  21534. tmp= ac_tmp=
  21535. trap 'exit_status=$?
  21536. : "${ac_tmp:=$tmp}"
  21537. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  21538. ' 0
  21539. trap 'as_fn_exit 1' 1 2 13 15
  21540. }
  21541. # Create a (secure) tmp directory for tmp files.
  21542. {
  21543. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21544. test -d "$tmp"
  21545. } ||
  21546. {
  21547. tmp=./conf$$-$RANDOM
  21548. (umask 077 && mkdir "$tmp")
  21549. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  21550. ac_tmp=$tmp
  21551. # Set up the scripts for CONFIG_FILES section.
  21552. # No need to generate them if there are no CONFIG_FILES.
  21553. # This happens for instance with `./config.status config.h'.
  21554. if test -n "$CONFIG_FILES"; then
  21555. ac_cr=`echo X | tr X '\015'`
  21556. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  21557. # But we know of no other shell where ac_cr would be empty at this
  21558. # point, so we can use a bashism as a fallback.
  21559. if test "x$ac_cr" = x; then
  21560. eval ac_cr=\$\'\\r\'
  21561. fi
  21562. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21563. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21564. ac_cs_awk_cr='\\r'
  21565. else
  21566. ac_cs_awk_cr=$ac_cr
  21567. fi
  21568. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  21569. _ACEOF
  21570. {
  21571. echo "cat >conf$$subs.awk <<_ACEOF" &&
  21572. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21573. echo "_ACEOF"
  21574. } >conf$$subs.sh ||
  21575. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21576. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  21577. ac_delim='%!_!# '
  21578. for ac_last_try in false false false false false :; do
  21579. . ./conf$$subs.sh ||
  21580. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21581. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21582. if test $ac_delim_n = $ac_delim_num; then
  21583. break
  21584. elif $ac_last_try; then
  21585. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21586. else
  21587. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21588. fi
  21589. done
  21590. rm -f conf$$subs.sh
  21591. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21592. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  21593. _ACEOF
  21594. sed -n '
  21595. h
  21596. s/^/S["/; s/!.*/"]=/
  21597. p
  21598. g
  21599. s/^[^!]*!//
  21600. :repl
  21601. t repl
  21602. s/'"$ac_delim"'$//
  21603. t delim
  21604. :nl
  21605. h
  21606. s/\(.\{148\}\)..*/\1/
  21607. t more1
  21608. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21609. p
  21610. n
  21611. b repl
  21612. :more1
  21613. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21614. p
  21615. g
  21616. s/.\{148\}//
  21617. t nl
  21618. :delim
  21619. h
  21620. s/\(.\{148\}\)..*/\1/
  21621. t more2
  21622. s/["\\]/\\&/g; s/^/"/; s/$/"/
  21623. p
  21624. b
  21625. :more2
  21626. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21627. p
  21628. g
  21629. s/.\{148\}//
  21630. t delim
  21631. ' <conf$$subs.awk | sed '
  21632. /^[^""]/{
  21633. N
  21634. s/\n//
  21635. }
  21636. ' >>$CONFIG_STATUS || ac_write_fail=1
  21637. rm -f conf$$subs.awk
  21638. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21639. _ACAWK
  21640. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  21641. for (key in S) S_is_set[key] = 1
  21642. FS = ""
  21643. }
  21644. {
  21645. line = $ 0
  21646. nfields = split(line, field, "@")
  21647. substed = 0
  21648. len = length(field[1])
  21649. for (i = 2; i < nfields; i++) {
  21650. key = field[i]
  21651. keylen = length(key)
  21652. if (S_is_set[key]) {
  21653. value = S[key]
  21654. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21655. len += length(value) + length(field[++i])
  21656. substed = 1
  21657. } else
  21658. len += 1 + keylen
  21659. }
  21660. print line
  21661. }
  21662. _ACAWK
  21663. _ACEOF
  21664. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21665. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21666. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21667. else
  21668. cat
  21669. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  21670. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  21671. _ACEOF
  21672. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  21673. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  21674. # trailing colons and then remove the whole line if VPATH becomes empty
  21675. # (actually we leave an empty line to preserve line numbers).
  21676. if test "x$srcdir" = x.; then
  21677. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  21678. h
  21679. s///
  21680. s/^/:/
  21681. s/[ ]*$/:/
  21682. s/:\$(srcdir):/:/g
  21683. s/:\${srcdir}:/:/g
  21684. s/:@srcdir@:/:/g
  21685. s/^:*//
  21686. s/:*$//
  21687. x
  21688. s/\(=[ ]*\).*/\1/
  21689. G
  21690. s/\n//
  21691. s/^[^=]*=[ ]*$//
  21692. }'
  21693. fi
  21694. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21695. fi # test -n "$CONFIG_FILES"
  21696. # Set up the scripts for CONFIG_HEADERS section.
  21697. # No need to generate them if there are no CONFIG_HEADERS.
  21698. # This happens for instance with `./config.status Makefile'.
  21699. if test -n "$CONFIG_HEADERS"; then
  21700. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  21701. BEGIN {
  21702. _ACEOF
  21703. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21704. # here-document in config.status, that substitutes the proper values into
  21705. # config.h.in to produce config.h.
  21706. # Create a delimiter string that does not exist in confdefs.h, to ease
  21707. # handling of long lines.
  21708. ac_delim='%!_!# '
  21709. for ac_last_try in false false :; do
  21710. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  21711. if test -z "$ac_tt"; then
  21712. break
  21713. elif $ac_last_try; then
  21714. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  21715. else
  21716. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21717. fi
  21718. done
  21719. # For the awk script, D is an array of macro values keyed by name,
  21720. # likewise P contains macro parameters if any. Preserve backslash
  21721. # newline sequences.
  21722. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21723. sed -n '
  21724. s/.\{148\}/&'"$ac_delim"'/g
  21725. t rset
  21726. :rset
  21727. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21728. t def
  21729. d
  21730. :def
  21731. s/\\$//
  21732. t bsnl
  21733. s/["\\]/\\&/g
  21734. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21735. D["\1"]=" \3"/p
  21736. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21737. d
  21738. :bsnl
  21739. s/["\\]/\\&/g
  21740. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21741. D["\1"]=" \3\\\\\\n"\\/p
  21742. t cont
  21743. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21744. t cont
  21745. d
  21746. :cont
  21747. n
  21748. s/.\{148\}/&'"$ac_delim"'/g
  21749. t clear
  21750. :clear
  21751. s/\\$//
  21752. t bsnlc
  21753. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21754. d
  21755. :bsnlc
  21756. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21757. b cont
  21758. ' <confdefs.h | sed '
  21759. s/'"$ac_delim"'/"\\\
  21760. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21761. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21762. for (key in D) D_is_set[key] = 1
  21763. FS = ""
  21764. }
  21765. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21766. line = \$ 0
  21767. split(line, arg, " ")
  21768. if (arg[1] == "#") {
  21769. defundef = arg[2]
  21770. mac1 = arg[3]
  21771. } else {
  21772. defundef = substr(arg[1], 2)
  21773. mac1 = arg[2]
  21774. }
  21775. split(mac1, mac2, "(") #)
  21776. macro = mac2[1]
  21777. prefix = substr(line, 1, index(line, defundef) - 1)
  21778. if (D_is_set[macro]) {
  21779. # Preserve the white space surrounding the "#".
  21780. print prefix "define", macro P[macro] D[macro]
  21781. next
  21782. } else {
  21783. # Replace #undef with comments. This is necessary, for example,
  21784. # in the case of _POSIX_SOURCE, which is predefined and required
  21785. # on some systems where configure will not decide to define it.
  21786. if (defundef == "undef") {
  21787. print "/*", prefix defundef, macro, "*/"
  21788. next
  21789. }
  21790. }
  21791. }
  21792. { print }
  21793. _ACAWK
  21794. _ACEOF
  21795. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21796. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  21797. fi # test -n "$CONFIG_HEADERS"
  21798. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21799. shift
  21800. for ac_tag
  21801. do
  21802. case $ac_tag in
  21803. :[FHLC]) ac_mode=$ac_tag; continue;;
  21804. esac
  21805. case $ac_mode$ac_tag in
  21806. :[FHL]*:*);;
  21807. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  21808. :[FH]-) ac_tag=-:-;;
  21809. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21810. esac
  21811. ac_save_IFS=$IFS
  21812. IFS=:
  21813. set x $ac_tag
  21814. IFS=$ac_save_IFS
  21815. shift
  21816. ac_file=$1
  21817. shift
  21818. case $ac_mode in
  21819. :L) ac_source=$1;;
  21820. :[FH])
  21821. ac_file_inputs=
  21822. for ac_f
  21823. do
  21824. case $ac_f in
  21825. -) ac_f="$ac_tmp/stdin";;
  21826. *) # Look for the file first in the build tree, then in the source tree
  21827. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21828. # because $ac_f cannot contain `:'.
  21829. test -f "$ac_f" ||
  21830. case $ac_f in
  21831. [\\/$]*) false;;
  21832. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21833. esac ||
  21834. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  21835. esac
  21836. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21837. as_fn_append ac_file_inputs " '$ac_f'"
  21838. done
  21839. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21840. # use $as_me), people would be surprised to read:
  21841. # /* config.h. Generated by config.status. */
  21842. configure_input='Generated from '`
  21843. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21844. `' by configure.'
  21845. if test x"$ac_file" != x-; then
  21846. configure_input="$ac_file. $configure_input"
  21847. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  21848. $as_echo "$as_me: creating $ac_file" >&6;}
  21849. fi
  21850. # Neutralize special characters interpreted by sed in replacement strings.
  21851. case $configure_input in #(
  21852. *\&* | *\|* | *\\* )
  21853. ac_sed_conf_input=`$as_echo "$configure_input" |
  21854. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21855. *) ac_sed_conf_input=$configure_input;;
  21856. esac
  21857. case $ac_tag in
  21858. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  21859. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  21860. esac
  21861. ;;
  21862. esac
  21863. ac_dir=`$as_dirname -- "$ac_file" ||
  21864. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21865. X"$ac_file" : 'X\(//\)[^/]' \| \
  21866. X"$ac_file" : 'X\(//\)$' \| \
  21867. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21868. $as_echo X"$ac_file" |
  21869. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21870. s//\1/
  21871. q
  21872. }
  21873. /^X\(\/\/\)[^/].*/{
  21874. s//\1/
  21875. q
  21876. }
  21877. /^X\(\/\/\)$/{
  21878. s//\1/
  21879. q
  21880. }
  21881. /^X\(\/\).*/{
  21882. s//\1/
  21883. q
  21884. }
  21885. s/.*/./; q'`
  21886. as_dir="$ac_dir"; as_fn_mkdir_p
  21887. ac_builddir=.
  21888. case "$ac_dir" in
  21889. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21890. *)
  21891. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21892. # A ".." for each directory in $ac_dir_suffix.
  21893. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21894. case $ac_top_builddir_sub in
  21895. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21896. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21897. esac ;;
  21898. esac
  21899. ac_abs_top_builddir=$ac_pwd
  21900. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21901. # for backward compatibility:
  21902. ac_top_builddir=$ac_top_build_prefix
  21903. case $srcdir in
  21904. .) # We are building in place.
  21905. ac_srcdir=.
  21906. ac_top_srcdir=$ac_top_builddir_sub
  21907. ac_abs_top_srcdir=$ac_pwd ;;
  21908. [\\/]* | ?:[\\/]* ) # Absolute name.
  21909. ac_srcdir=$srcdir$ac_dir_suffix;
  21910. ac_top_srcdir=$srcdir
  21911. ac_abs_top_srcdir=$srcdir ;;
  21912. *) # Relative name.
  21913. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21914. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21915. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21916. esac
  21917. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21918. case $ac_mode in
  21919. :F)
  21920. #
  21921. # CONFIG_FILE
  21922. #
  21923. case $INSTALL in
  21924. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21925. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21926. esac
  21927. _ACEOF
  21928. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21929. # If the template does not know about datarootdir, expand it.
  21930. # FIXME: This hack should be removed a few years after 2.60.
  21931. ac_datarootdir_hack=; ac_datarootdir_seen=
  21932. ac_sed_dataroot='
  21933. /datarootdir/ {
  21934. p
  21935. q
  21936. }
  21937. /@datadir@/p
  21938. /@docdir@/p
  21939. /@infodir@/p
  21940. /@localedir@/p
  21941. /@mandir@/p'
  21942. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21943. *datarootdir*) ac_datarootdir_seen=yes;;
  21944. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21945. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21946. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21947. _ACEOF
  21948. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21949. ac_datarootdir_hack='
  21950. s&@datadir@&$datadir&g
  21951. s&@docdir@&$docdir&g
  21952. s&@infodir@&$infodir&g
  21953. s&@localedir@&$localedir&g
  21954. s&@mandir@&$mandir&g
  21955. s&\\\${datarootdir}&$datarootdir&g' ;;
  21956. esac
  21957. _ACEOF
  21958. # Neutralize VPATH when `$srcdir' = `.'.
  21959. # Shell code in configure.ac might set extrasub.
  21960. # FIXME: do we really want to maintain this feature?
  21961. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21962. ac_sed_extra="$ac_vpsub
  21963. $extrasub
  21964. _ACEOF
  21965. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21966. :t
  21967. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21968. s|@configure_input@|$ac_sed_conf_input|;t t
  21969. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21970. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  21971. s&@srcdir@&$ac_srcdir&;t t
  21972. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21973. s&@top_srcdir@&$ac_top_srcdir&;t t
  21974. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21975. s&@builddir@&$ac_builddir&;t t
  21976. s&@abs_builddir@&$ac_abs_builddir&;t t
  21977. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21978. s&@INSTALL@&$ac_INSTALL&;t t
  21979. $ac_datarootdir_hack
  21980. "
  21981. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  21982. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21983. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21984. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  21985. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  21986. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  21987. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21988. which seems to be undefined. Please make sure it is defined" >&5
  21989. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21990. which seems to be undefined. Please make sure it is defined" >&2;}
  21991. rm -f "$ac_tmp/stdin"
  21992. case $ac_file in
  21993. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  21994. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  21995. esac \
  21996. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21997. ;;
  21998. :H)
  21999. #
  22000. # CONFIG_HEADER
  22001. #
  22002. if test x"$ac_file" != x-; then
  22003. {
  22004. $as_echo "/* $configure_input */" \
  22005. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22006. } >"$ac_tmp/config.h" \
  22007. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22008. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22009. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22010. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22011. else
  22012. rm -f "$ac_file"
  22013. mv "$ac_tmp/config.h" "$ac_file" \
  22014. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22015. fi
  22016. else
  22017. $as_echo "/* $configure_input */" \
  22018. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22019. || as_fn_error $? "could not create -" "$LINENO" 5
  22020. fi
  22021. ;;
  22022. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22023. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22024. ;;
  22025. esac
  22026. case $ac_file$ac_mode in
  22027. "libtool":C)
  22028. # See if we are running on zsh, and set the options which allow our
  22029. # commands through without removal of \ escapes.
  22030. if test -n "${ZSH_VERSION+set}" ; then
  22031. setopt NO_GLOB_SUBST
  22032. fi
  22033. cfgfile="${ofile}T"
  22034. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22035. $RM "$cfgfile"
  22036. cat <<_LT_EOF >> "$cfgfile"
  22037. #! $SHELL
  22038. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22039. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22040. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22041. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22042. #
  22043. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22044. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22045. # Foundation, Inc.
  22046. # Written by Gordon Matzigkeit, 1996
  22047. #
  22048. # This file is part of GNU Libtool.
  22049. #
  22050. # GNU Libtool is free software; you can redistribute it and/or
  22051. # modify it under the terms of the GNU General Public License as
  22052. # published by the Free Software Foundation; either version 2 of
  22053. # the License, or (at your option) any later version.
  22054. #
  22055. # As a special exception to the GNU General Public License,
  22056. # if you distribute this file as part of a program or library that
  22057. # is built using GNU Libtool, you may include this file under the
  22058. # same distribution terms that you use for the rest of that program.
  22059. #
  22060. # GNU Libtool is distributed in the hope that it will be useful,
  22061. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22062. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22063. # GNU General Public License for more details.
  22064. #
  22065. # You should have received a copy of the GNU General Public License
  22066. # along with GNU Libtool; see the file COPYING. If not, a copy
  22067. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22068. # obtained by writing to the Free Software Foundation, Inc.,
  22069. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22070. # The names of the tagged configurations supported by this script.
  22071. available_tags="CXX "
  22072. # ### BEGIN LIBTOOL CONFIG
  22073. # Which release of libtool.m4 was used?
  22074. macro_version=$macro_version
  22075. macro_revision=$macro_revision
  22076. # Assembler program.
  22077. AS=$lt_AS
  22078. # DLL creation program.
  22079. DLLTOOL=$lt_DLLTOOL
  22080. # Object dumper program.
  22081. OBJDUMP=$lt_OBJDUMP
  22082. # Whether or not to build shared libraries.
  22083. build_libtool_libs=$enable_shared
  22084. # Whether or not to build static libraries.
  22085. build_old_libs=$enable_static
  22086. # What type of objects to build.
  22087. pic_mode=$pic_mode
  22088. # Whether or not to optimize for fast installation.
  22089. fast_install=$enable_fast_install
  22090. # Shell to use when invoking shell scripts.
  22091. SHELL=$lt_SHELL
  22092. # An echo program that protects backslashes.
  22093. ECHO=$lt_ECHO
  22094. # The PATH separator for the build system.
  22095. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22096. # The host system.
  22097. host_alias=$host_alias
  22098. host=$host
  22099. host_os=$host_os
  22100. # The build system.
  22101. build_alias=$build_alias
  22102. build=$build
  22103. build_os=$build_os
  22104. # A sed program that does not truncate output.
  22105. SED=$lt_SED
  22106. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22107. Xsed="\$SED -e 1s/^X//"
  22108. # A grep program that handles long lines.
  22109. GREP=$lt_GREP
  22110. # An ERE matcher.
  22111. EGREP=$lt_EGREP
  22112. # A literal string matcher.
  22113. FGREP=$lt_FGREP
  22114. # A BSD- or MS-compatible name lister.
  22115. NM=$lt_NM
  22116. # Whether we need soft or hard links.
  22117. LN_S=$lt_LN_S
  22118. # What is the maximum length of a command?
  22119. max_cmd_len=$max_cmd_len
  22120. # Object file suffix (normally "o").
  22121. objext=$ac_objext
  22122. # Executable file suffix (normally "").
  22123. exeext=$exeext
  22124. # whether the shell understands "unset".
  22125. lt_unset=$lt_unset
  22126. # turn spaces into newlines.
  22127. SP2NL=$lt_lt_SP2NL
  22128. # turn newlines into spaces.
  22129. NL2SP=$lt_lt_NL2SP
  22130. # convert \$build file names to \$host format.
  22131. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22132. # convert \$build files to toolchain format.
  22133. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22134. # Method to check whether dependent libraries are shared objects.
  22135. deplibs_check_method=$lt_deplibs_check_method
  22136. # Command to use when deplibs_check_method = "file_magic".
  22137. file_magic_cmd=$lt_file_magic_cmd
  22138. # How to find potential files when deplibs_check_method = "file_magic".
  22139. file_magic_glob=$lt_file_magic_glob
  22140. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22141. want_nocaseglob=$lt_want_nocaseglob
  22142. # Command to associate shared and link libraries.
  22143. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22144. # The archiver.
  22145. AR=$lt_AR
  22146. # Flags to create an archive.
  22147. AR_FLAGS=$lt_AR_FLAGS
  22148. # How to feed a file listing to the archiver.
  22149. archiver_list_spec=$lt_archiver_list_spec
  22150. # A symbol stripping program.
  22151. STRIP=$lt_STRIP
  22152. # Commands used to install an old-style archive.
  22153. RANLIB=$lt_RANLIB
  22154. old_postinstall_cmds=$lt_old_postinstall_cmds
  22155. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22156. # Whether to use a lock for old archive extraction.
  22157. lock_old_archive_extraction=$lock_old_archive_extraction
  22158. # A C compiler.
  22159. LTCC=$lt_CC
  22160. # LTCC compiler flags.
  22161. LTCFLAGS=$lt_CFLAGS
  22162. # Take the output of nm and produce a listing of raw symbols and C names.
  22163. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22164. # Transform the output of nm in a proper C declaration.
  22165. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22166. # Transform the output of nm in a C name address pair.
  22167. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22168. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22169. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22170. # Specify filename containing input files for \$NM.
  22171. nm_file_list_spec=$lt_nm_file_list_spec
  22172. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22173. lt_sysroot=$lt_sysroot
  22174. # The name of the directory that contains temporary libtool files.
  22175. objdir=$objdir
  22176. # Used to examine libraries when file_magic_cmd begins with "file".
  22177. MAGIC_CMD=$MAGIC_CMD
  22178. # Must we lock files when doing compilation?
  22179. need_locks=$lt_need_locks
  22180. # Manifest tool.
  22181. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22182. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22183. DSYMUTIL=$lt_DSYMUTIL
  22184. # Tool to change global to local symbols on Mac OS X.
  22185. NMEDIT=$lt_NMEDIT
  22186. # Tool to manipulate fat objects and archives on Mac OS X.
  22187. LIPO=$lt_LIPO
  22188. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22189. OTOOL=$lt_OTOOL
  22190. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22191. OTOOL64=$lt_OTOOL64
  22192. # Old archive suffix (normally "a").
  22193. libext=$libext
  22194. # Shared library suffix (normally ".so").
  22195. shrext_cmds=$lt_shrext_cmds
  22196. # The commands to extract the exported symbol list from a shared archive.
  22197. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22198. # Variables whose values should be saved in libtool wrapper scripts and
  22199. # restored at link time.
  22200. variables_saved_for_relink=$lt_variables_saved_for_relink
  22201. # Do we need the "lib" prefix for modules?
  22202. need_lib_prefix=$need_lib_prefix
  22203. # Do we need a version for libraries?
  22204. need_version=$need_version
  22205. # Library versioning type.
  22206. version_type=$version_type
  22207. # Shared library runtime path variable.
  22208. runpath_var=$runpath_var
  22209. # Shared library path variable.
  22210. shlibpath_var=$shlibpath_var
  22211. # Is shlibpath searched before the hard-coded library search path?
  22212. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22213. # Format of library name prefix.
  22214. libname_spec=$lt_libname_spec
  22215. # List of archive names. First name is the real one, the rest are links.
  22216. # The last name is the one that the linker finds with -lNAME
  22217. library_names_spec=$lt_library_names_spec
  22218. # The coded name of the library, if different from the real name.
  22219. soname_spec=$lt_soname_spec
  22220. # Permission mode override for installation of shared libraries.
  22221. install_override_mode=$lt_install_override_mode
  22222. # Command to use after installation of a shared archive.
  22223. postinstall_cmds=$lt_postinstall_cmds
  22224. # Command to use after uninstallation of a shared archive.
  22225. postuninstall_cmds=$lt_postuninstall_cmds
  22226. # Commands used to finish a libtool library installation in a directory.
  22227. finish_cmds=$lt_finish_cmds
  22228. # As "finish_cmds", except a single script fragment to be evaled but
  22229. # not shown.
  22230. finish_eval=$lt_finish_eval
  22231. # Whether we should hardcode library paths into libraries.
  22232. hardcode_into_libs=$hardcode_into_libs
  22233. # Compile-time system search path for libraries.
  22234. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22235. # Run-time system search path for libraries.
  22236. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22237. # Whether dlopen is supported.
  22238. dlopen_support=$enable_dlopen
  22239. # Whether dlopen of programs is supported.
  22240. dlopen_self=$enable_dlopen_self
  22241. # Whether dlopen of statically linked programs is supported.
  22242. dlopen_self_static=$enable_dlopen_self_static
  22243. # Commands to strip libraries.
  22244. old_striplib=$lt_old_striplib
  22245. striplib=$lt_striplib
  22246. # The linker used to build libraries.
  22247. LD=$lt_LD
  22248. # How to create reloadable object files.
  22249. reload_flag=$lt_reload_flag
  22250. reload_cmds=$lt_reload_cmds
  22251. # Commands used to build an old-style archive.
  22252. old_archive_cmds=$lt_old_archive_cmds
  22253. # A language specific compiler.
  22254. CC=$lt_compiler
  22255. # Is the compiler the GNU compiler?
  22256. with_gcc=$GCC
  22257. # Compiler flag to turn off builtin functions.
  22258. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22259. # Additional compiler flags for building library objects.
  22260. pic_flag=$lt_lt_prog_compiler_pic
  22261. # How to pass a linker flag through the compiler.
  22262. wl=$lt_lt_prog_compiler_wl
  22263. # Compiler flag to prevent dynamic linking.
  22264. link_static_flag=$lt_lt_prog_compiler_static
  22265. # Does compiler simultaneously support -c and -o options?
  22266. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22267. # Whether or not to add -lc for building shared libraries.
  22268. build_libtool_need_lc=$archive_cmds_need_lc
  22269. # Whether or not to disallow shared libs when runtime libs are static.
  22270. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22271. # Compiler flag to allow reflexive dlopens.
  22272. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22273. # Compiler flag to generate shared objects directly from archives.
  22274. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22275. # Whether the compiler copes with passing no objects directly.
  22276. compiler_needs_object=$lt_compiler_needs_object
  22277. # Create an old-style archive from a shared archive.
  22278. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22279. # Create a temporary old-style archive to link instead of a shared archive.
  22280. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22281. # Commands used to build a shared archive.
  22282. archive_cmds=$lt_archive_cmds
  22283. archive_expsym_cmds=$lt_archive_expsym_cmds
  22284. # Commands used to build a loadable module if different from building
  22285. # a shared archive.
  22286. module_cmds=$lt_module_cmds
  22287. module_expsym_cmds=$lt_module_expsym_cmds
  22288. # Whether we are building with GNU ld or not.
  22289. with_gnu_ld=$lt_with_gnu_ld
  22290. # Flag that allows shared libraries with undefined symbols to be built.
  22291. allow_undefined_flag=$lt_allow_undefined_flag
  22292. # Flag that enforces no undefined symbols.
  22293. no_undefined_flag=$lt_no_undefined_flag
  22294. # Flag to hardcode \$libdir into a binary during linking.
  22295. # This must work even if \$libdir does not exist
  22296. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22297. # Whether we need a single "-rpath" flag with a separated argument.
  22298. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22299. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22300. # DIR into the resulting binary.
  22301. hardcode_direct=$hardcode_direct
  22302. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22303. # DIR into the resulting binary and the resulting library dependency is
  22304. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22305. # library is relocated.
  22306. hardcode_direct_absolute=$hardcode_direct_absolute
  22307. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22308. # into the resulting binary.
  22309. hardcode_minus_L=$hardcode_minus_L
  22310. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22311. # into the resulting binary.
  22312. hardcode_shlibpath_var=$hardcode_shlibpath_var
  22313. # Set to "yes" if building a shared library automatically hardcodes DIR
  22314. # into the library and all subsequent libraries and executables linked
  22315. # against it.
  22316. hardcode_automatic=$hardcode_automatic
  22317. # Set to yes if linker adds runtime paths of dependent libraries
  22318. # to runtime path list.
  22319. inherit_rpath=$inherit_rpath
  22320. # Whether libtool must link a program against all its dependency libraries.
  22321. link_all_deplibs=$link_all_deplibs
  22322. # Set to "yes" if exported symbols are required.
  22323. always_export_symbols=$always_export_symbols
  22324. # The commands to list exported symbols.
  22325. export_symbols_cmds=$lt_export_symbols_cmds
  22326. # Symbols that should not be listed in the preloaded symbols.
  22327. exclude_expsyms=$lt_exclude_expsyms
  22328. # Symbols that must always be exported.
  22329. include_expsyms=$lt_include_expsyms
  22330. # Commands necessary for linking programs (against libraries) with templates.
  22331. prelink_cmds=$lt_prelink_cmds
  22332. # Commands necessary for finishing linking programs.
  22333. postlink_cmds=$lt_postlink_cmds
  22334. # Specify filename containing input files.
  22335. file_list_spec=$lt_file_list_spec
  22336. # How to hardcode a shared library path into an executable.
  22337. hardcode_action=$hardcode_action
  22338. # The directories searched by this compiler when creating a shared library.
  22339. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22340. # Dependencies to place before and after the objects being linked to
  22341. # create a shared library.
  22342. predep_objects=$lt_predep_objects
  22343. postdep_objects=$lt_postdep_objects
  22344. predeps=$lt_predeps
  22345. postdeps=$lt_postdeps
  22346. # The library search path used internally by the compiler when linking
  22347. # a shared library.
  22348. compiler_lib_search_path=$lt_compiler_lib_search_path
  22349. # ### END LIBTOOL CONFIG
  22350. _LT_EOF
  22351. case $host_os in
  22352. aix3*)
  22353. cat <<\_LT_EOF >> "$cfgfile"
  22354. # AIX sometimes has problems with the GCC collect2 program. For some
  22355. # reason, if we set the COLLECT_NAMES environment variable, the problems
  22356. # vanish in a puff of smoke.
  22357. if test "X${COLLECT_NAMES+set}" != Xset; then
  22358. COLLECT_NAMES=
  22359. export COLLECT_NAMES
  22360. fi
  22361. _LT_EOF
  22362. ;;
  22363. esac
  22364. ltmain="$ac_aux_dir/ltmain.sh"
  22365. # We use sed instead of cat because bash on DJGPP gets confused if
  22366. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  22367. # text mode, it properly converts lines to CR/LF. This bash problem
  22368. # is reportedly fixed, but why not run on old versions too?
  22369. sed '$q' "$ltmain" >> "$cfgfile" \
  22370. || (rm -f "$cfgfile"; exit 1)
  22371. if test x"$xsi_shell" = xyes; then
  22372. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  22373. func_dirname ()\
  22374. {\
  22375. \ case ${1} in\
  22376. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22377. \ * ) func_dirname_result="${3}" ;;\
  22378. \ esac\
  22379. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  22380. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22381. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22382. test 0 -eq $? || _lt_function_replace_fail=:
  22383. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  22384. func_basename ()\
  22385. {\
  22386. \ func_basename_result="${1##*/}"\
  22387. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22388. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22389. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22390. test 0 -eq $? || _lt_function_replace_fail=:
  22391. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  22392. func_dirname_and_basename ()\
  22393. {\
  22394. \ case ${1} in\
  22395. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22396. \ * ) func_dirname_result="${3}" ;;\
  22397. \ esac\
  22398. \ func_basename_result="${1##*/}"\
  22399. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22400. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22401. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22402. test 0 -eq $? || _lt_function_replace_fail=:
  22403. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  22404. func_stripname ()\
  22405. {\
  22406. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  22407. \ # positional parameters, so assign one to ordinary parameter first.\
  22408. \ func_stripname_result=${3}\
  22409. \ func_stripname_result=${func_stripname_result#"${1}"}\
  22410. \ func_stripname_result=${func_stripname_result%"${2}"}\
  22411. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  22412. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22413. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22414. test 0 -eq $? || _lt_function_replace_fail=:
  22415. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  22416. func_split_long_opt ()\
  22417. {\
  22418. \ func_split_long_opt_name=${1%%=*}\
  22419. \ func_split_long_opt_arg=${1#*=}\
  22420. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22421. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22422. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22423. test 0 -eq $? || _lt_function_replace_fail=:
  22424. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  22425. func_split_short_opt ()\
  22426. {\
  22427. \ func_split_short_opt_arg=${1#??}\
  22428. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  22429. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22430. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22431. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22432. test 0 -eq $? || _lt_function_replace_fail=:
  22433. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  22434. func_lo2o ()\
  22435. {\
  22436. \ case ${1} in\
  22437. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  22438. \ *) func_lo2o_result=${1} ;;\
  22439. \ esac\
  22440. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  22441. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22442. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22443. test 0 -eq $? || _lt_function_replace_fail=:
  22444. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  22445. func_xform ()\
  22446. {\
  22447. func_xform_result=${1%.*}.lo\
  22448. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  22449. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22450. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22451. test 0 -eq $? || _lt_function_replace_fail=:
  22452. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  22453. func_arith ()\
  22454. {\
  22455. func_arith_result=$(( $* ))\
  22456. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  22457. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22458. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22459. test 0 -eq $? || _lt_function_replace_fail=:
  22460. sed -e '/^func_len ()$/,/^} # func_len /c\
  22461. func_len ()\
  22462. {\
  22463. func_len_result=${#1}\
  22464. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  22465. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22466. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22467. test 0 -eq $? || _lt_function_replace_fail=:
  22468. fi
  22469. if test x"$lt_shell_append" = xyes; then
  22470. sed -e '/^func_append ()$/,/^} # func_append /c\
  22471. func_append ()\
  22472. {\
  22473. eval "${1}+=\\${2}"\
  22474. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  22475. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22476. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22477. test 0 -eq $? || _lt_function_replace_fail=:
  22478. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  22479. func_append_quoted ()\
  22480. {\
  22481. \ func_quote_for_eval "${2}"\
  22482. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  22483. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  22484. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22485. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22486. test 0 -eq $? || _lt_function_replace_fail=:
  22487. # Save a `func_append' function call where possible by direct use of '+='
  22488. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $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. else
  22493. # Save a `func_append' function call even when '+=' is not available
  22494. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  22495. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22496. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22497. test 0 -eq $? || _lt_function_replace_fail=:
  22498. fi
  22499. if test x"$_lt_function_replace_fail" = x":"; then
  22500. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  22501. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  22502. fi
  22503. mv -f "$cfgfile" "$ofile" ||
  22504. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  22505. chmod +x "$ofile"
  22506. cat <<_LT_EOF >> "$ofile"
  22507. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  22508. # The linker used to build libraries.
  22509. LD=$lt_LD_CXX
  22510. # How to create reloadable object files.
  22511. reload_flag=$lt_reload_flag_CXX
  22512. reload_cmds=$lt_reload_cmds_CXX
  22513. # Commands used to build an old-style archive.
  22514. old_archive_cmds=$lt_old_archive_cmds_CXX
  22515. # A language specific compiler.
  22516. CC=$lt_compiler_CXX
  22517. # Is the compiler the GNU compiler?
  22518. with_gcc=$GCC_CXX
  22519. # Compiler flag to turn off builtin functions.
  22520. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  22521. # Additional compiler flags for building library objects.
  22522. pic_flag=$lt_lt_prog_compiler_pic_CXX
  22523. # How to pass a linker flag through the compiler.
  22524. wl=$lt_lt_prog_compiler_wl_CXX
  22525. # Compiler flag to prevent dynamic linking.
  22526. link_static_flag=$lt_lt_prog_compiler_static_CXX
  22527. # Does compiler simultaneously support -c and -o options?
  22528. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  22529. # Whether or not to add -lc for building shared libraries.
  22530. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  22531. # Whether or not to disallow shared libs when runtime libs are static.
  22532. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  22533. # Compiler flag to allow reflexive dlopens.
  22534. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  22535. # Compiler flag to generate shared objects directly from archives.
  22536. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  22537. # Whether the compiler copes with passing no objects directly.
  22538. compiler_needs_object=$lt_compiler_needs_object_CXX
  22539. # Create an old-style archive from a shared archive.
  22540. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  22541. # Create a temporary old-style archive to link instead of a shared archive.
  22542. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  22543. # Commands used to build a shared archive.
  22544. archive_cmds=$lt_archive_cmds_CXX
  22545. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  22546. # Commands used to build a loadable module if different from building
  22547. # a shared archive.
  22548. module_cmds=$lt_module_cmds_CXX
  22549. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  22550. # Whether we are building with GNU ld or not.
  22551. with_gnu_ld=$lt_with_gnu_ld_CXX
  22552. # Flag that allows shared libraries with undefined symbols to be built.
  22553. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  22554. # Flag that enforces no undefined symbols.
  22555. no_undefined_flag=$lt_no_undefined_flag_CXX
  22556. # Flag to hardcode \$libdir into a binary during linking.
  22557. # This must work even if \$libdir does not exist
  22558. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  22559. # Whether we need a single "-rpath" flag with a separated argument.
  22560. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  22561. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22562. # DIR into the resulting binary.
  22563. hardcode_direct=$hardcode_direct_CXX
  22564. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22565. # DIR into the resulting binary and the resulting library dependency is
  22566. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22567. # library is relocated.
  22568. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  22569. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22570. # into the resulting binary.
  22571. hardcode_minus_L=$hardcode_minus_L_CXX
  22572. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22573. # into the resulting binary.
  22574. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  22575. # Set to "yes" if building a shared library automatically hardcodes DIR
  22576. # into the library and all subsequent libraries and executables linked
  22577. # against it.
  22578. hardcode_automatic=$hardcode_automatic_CXX
  22579. # Set to yes if linker adds runtime paths of dependent libraries
  22580. # to runtime path list.
  22581. inherit_rpath=$inherit_rpath_CXX
  22582. # Whether libtool must link a program against all its dependency libraries.
  22583. link_all_deplibs=$link_all_deplibs_CXX
  22584. # Set to "yes" if exported symbols are required.
  22585. always_export_symbols=$always_export_symbols_CXX
  22586. # The commands to list exported symbols.
  22587. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  22588. # Symbols that should not be listed in the preloaded symbols.
  22589. exclude_expsyms=$lt_exclude_expsyms_CXX
  22590. # Symbols that must always be exported.
  22591. include_expsyms=$lt_include_expsyms_CXX
  22592. # Commands necessary for linking programs (against libraries) with templates.
  22593. prelink_cmds=$lt_prelink_cmds_CXX
  22594. # Commands necessary for finishing linking programs.
  22595. postlink_cmds=$lt_postlink_cmds_CXX
  22596. # Specify filename containing input files.
  22597. file_list_spec=$lt_file_list_spec_CXX
  22598. # How to hardcode a shared library path into an executable.
  22599. hardcode_action=$hardcode_action_CXX
  22600. # The directories searched by this compiler when creating a shared library.
  22601. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  22602. # Dependencies to place before and after the objects being linked to
  22603. # create a shared library.
  22604. predep_objects=$lt_predep_objects_CXX
  22605. postdep_objects=$lt_postdep_objects_CXX
  22606. predeps=$lt_predeps_CXX
  22607. postdeps=$lt_postdeps_CXX
  22608. # The library search path used internally by the compiler when linking
  22609. # a shared library.
  22610. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  22611. # ### END LIBTOOL TAG CONFIG: CXX
  22612. _LT_EOF
  22613. ;;
  22614. "sdl2_config":C) chmod a+x sdl2-config ;;
  22615. "summary":C) echo -en "$SUMMARY" ;;
  22616. esac
  22617. done # for ac_tag
  22618. as_fn_exit 0
  22619. _ACEOF
  22620. ac_clean_files=$ac_clean_files_save
  22621. test $ac_write_fail = 0 ||
  22622. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  22623. # configure is writing to config.log, and then calls config.status.
  22624. # config.status does its own redirection, appending to config.log.
  22625. # Unfortunately, on DOS this fails, as config.log is still kept open
  22626. # by configure, so config.status won't be able to write to it; its
  22627. # output is simply discarded. So we exec the FD to /dev/null,
  22628. # effectively closing config.log, so it can be properly (re)opened and
  22629. # appended to by config.status. When coming back to configure, we
  22630. # need to make the FD available again.
  22631. if test "$no_create" != yes; then
  22632. ac_cs_success=:
  22633. ac_config_status_args=
  22634. test "$silent" = yes &&
  22635. ac_config_status_args="$ac_config_status_args --quiet"
  22636. exec 5>/dev/null
  22637. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22638. exec 5>>config.log
  22639. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22640. # would make configure fail if this is the last instruction.
  22641. $ac_cs_success || as_fn_exit 1
  22642. fi
  22643. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22644. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22645. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22646. fi