configure 769 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="README.txt"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. EXTRA_LDFLAGS
  582. BUILD_LDFLAGS
  583. EXTRA_CFLAGS
  584. BUILD_CFLAGS
  585. SDLTEST_OBJECTS
  586. SDLMAIN_OBJECTS
  587. VERSION_OBJECTS
  588. OBJECTS
  589. INCLUDE
  590. ac_aux_dir
  591. ENABLE_STATIC_FALSE
  592. ENABLE_STATIC_TRUE
  593. ENABLE_SHARED_FALSE
  594. ENABLE_SHARED_TRUE
  595. SDL_RLD_FLAGS
  596. SDL_STATIC_LIBS
  597. SDL_LIBS
  598. SDL_CFLAGS
  599. DIRECTFBCONFIG
  600. X_EXTRA_LIBS
  601. X_LIBS
  602. X_PRE_LIBS
  603. X_CFLAGS
  604. XMKMF
  605. ARTSCONFIG
  606. PKG_CONFIG
  607. ESD_LIBS
  608. ESD_CFLAGS
  609. ESD_CONFIG
  610. ALSA_LIBS
  611. ALSA_CFLAGS
  612. POW_LIB
  613. LIBOBJS
  614. ALLOCA
  615. WINDRES
  616. SET_MAKE
  617. INSTALL_DATA
  618. INSTALL_SCRIPT
  619. INSTALL_PROGRAM
  620. CXXCPP
  621. ac_ct_CXX
  622. CXXFLAGS
  623. CXX
  624. LT_AGE
  625. LT_REVISION
  626. LT_CURRENT
  627. LT_RELEASE
  628. CPP
  629. OTOOL64
  630. OTOOL
  631. LIPO
  632. NMEDIT
  633. DSYMUTIL
  634. MANIFEST_TOOL
  635. AWK
  636. RANLIB
  637. STRIP
  638. ac_ct_AR
  639. AR
  640. LN_S
  641. NM
  642. ac_ct_DUMPBIN
  643. DUMPBIN
  644. LD
  645. FGREP
  646. EGREP
  647. GREP
  648. SED
  649. OBJEXT
  650. EXEEXT
  651. ac_ct_CC
  652. CPPFLAGS
  653. LDFLAGS
  654. CFLAGS
  655. CC
  656. host_os
  657. host_vendor
  658. host_cpu
  659. host
  660. build_os
  661. build_vendor
  662. build_cpu
  663. build
  664. LIBTOOL
  665. OBJDUMP
  666. DLLTOOL
  667. AS
  668. SDL_VERSION
  669. SDL_BINARY_AGE
  670. SDL_INTERFACE_AGE
  671. SDL_MICRO_VERSION
  672. SDL_MINOR_VERSION
  673. SDL_MAJOR_VERSION
  674. target_alias
  675. host_alias
  676. build_alias
  677. LIBS
  678. ECHO_T
  679. ECHO_N
  680. ECHO_C
  681. DEFS
  682. mandir
  683. localedir
  684. libdir
  685. psdir
  686. pdfdir
  687. dvidir
  688. htmldir
  689. infodir
  690. docdir
  691. oldincludedir
  692. includedir
  693. localstatedir
  694. sharedstatedir
  695. sysconfdir
  696. datadir
  697. datarootdir
  698. libexecdir
  699. sbindir
  700. bindir
  701. program_transform_name
  702. prefix
  703. exec_prefix
  704. PACKAGE_URL
  705. PACKAGE_BUGREPORT
  706. PACKAGE_STRING
  707. PACKAGE_VERSION
  708. PACKAGE_TARNAME
  709. PACKAGE_NAME
  710. PATH_SEPARATOR
  711. SHELL'
  712. ac_subst_files=''
  713. ac_user_opts='
  714. enable_option_checking
  715. enable_shared
  716. enable_static
  717. with_pic
  718. enable_fast_install
  719. with_gnu_ld
  720. with_sysroot
  721. enable_libtool_lock
  722. enable_assertions
  723. enable_dependency_tracking
  724. enable_libc
  725. enable_gcc_atomics
  726. enable_atomic
  727. enable_audio
  728. enable_video
  729. enable_render
  730. enable_events
  731. enable_joystick
  732. enable_haptic
  733. enable_power
  734. enable_filesystem
  735. enable_threads
  736. enable_timers
  737. enable_file
  738. enable_loadso
  739. enable_cpuinfo
  740. enable_assembly
  741. enable_ssemath
  742. enable_mmx
  743. enable_3dnow
  744. enable_sse
  745. enable_sse2
  746. enable_altivec
  747. enable_oss
  748. enable_alsa
  749. with_alsa_prefix
  750. with_alsa_inc_prefix
  751. enable_alsatest
  752. enable_alsa_shared
  753. enable_esd
  754. with_esd_prefix
  755. with_esd_exec_prefix
  756. enable_esdtest
  757. enable_esd_shared
  758. enable_pulseaudio
  759. enable_pulseaudio_shared
  760. enable_arts
  761. enable_arts_shared
  762. enable_nas
  763. enable_nas_shared
  764. enable_sndio
  765. enable_sndio_shared
  766. enable_diskaudio
  767. enable_dummyaudio
  768. enable_video_wayland
  769. enable_video_wayland_qt_touch
  770. enable_wayland_shared
  771. enable_video_mir
  772. enable_mir_shared
  773. enable_video_x11
  774. with_x
  775. enable_x11_shared
  776. enable_video_x11_xcursor
  777. enable_video_x11_xinerama
  778. enable_video_x11_xinput
  779. enable_video_x11_xrandr
  780. enable_video_x11_scrnsaver
  781. enable_video_x11_xshape
  782. enable_video_x11_vm
  783. enable_video_vivante
  784. enable_video_cocoa
  785. enable_video_directfb
  786. enable_directfb_shared
  787. enable_fusionsound
  788. enable_fusionsound_shared
  789. enable_video_dummy
  790. enable_video_opengl
  791. enable_video_opengles
  792. enable_video_opengles1
  793. enable_video_opengles2
  794. enable_libudev
  795. enable_dbus
  796. enable_ibus
  797. enable_input_tslib
  798. enable_pthreads
  799. enable_pthread_sem
  800. enable_directx
  801. enable_sdl_dlopen
  802. enable_clock_gettime
  803. enable_rpath
  804. enable_render_d3d
  805. '
  806. ac_precious_vars='build_alias
  807. host_alias
  808. target_alias
  809. CC
  810. CFLAGS
  811. LDFLAGS
  812. LIBS
  813. CPPFLAGS
  814. CPP
  815. CXX
  816. CXXFLAGS
  817. CCC
  818. CXXCPP
  819. XMKMF'
  820. # Initialize some variables set by options.
  821. ac_init_help=
  822. ac_init_version=false
  823. ac_unrecognized_opts=
  824. ac_unrecognized_sep=
  825. # The variables have the same names as the options, with
  826. # dashes changed to underlines.
  827. cache_file=/dev/null
  828. exec_prefix=NONE
  829. no_create=
  830. no_recursion=
  831. prefix=NONE
  832. program_prefix=NONE
  833. program_suffix=NONE
  834. program_transform_name=s,x,x,
  835. silent=
  836. site=
  837. srcdir=
  838. verbose=
  839. x_includes=NONE
  840. x_libraries=NONE
  841. # Installation directory options.
  842. # These are left unexpanded so users can "make install exec_prefix=/foo"
  843. # and all the variables that are supposed to be based on exec_prefix
  844. # by default will actually change.
  845. # Use braces instead of parens because sh, perl, etc. also accept them.
  846. # (The list follows the same order as the GNU Coding Standards.)
  847. bindir='${exec_prefix}/bin'
  848. sbindir='${exec_prefix}/sbin'
  849. libexecdir='${exec_prefix}/libexec'
  850. datarootdir='${prefix}/share'
  851. datadir='${datarootdir}'
  852. sysconfdir='${prefix}/etc'
  853. sharedstatedir='${prefix}/com'
  854. localstatedir='${prefix}/var'
  855. includedir='${prefix}/include'
  856. oldincludedir='/usr/include'
  857. docdir='${datarootdir}/doc/${PACKAGE}'
  858. infodir='${datarootdir}/info'
  859. htmldir='${docdir}'
  860. dvidir='${docdir}'
  861. pdfdir='${docdir}'
  862. psdir='${docdir}'
  863. libdir='${exec_prefix}/lib'
  864. localedir='${datarootdir}/locale'
  865. mandir='${datarootdir}/man'
  866. ac_prev=
  867. ac_dashdash=
  868. for ac_option
  869. do
  870. # If the previous option needs an argument, assign it.
  871. if test -n "$ac_prev"; then
  872. eval $ac_prev=\$ac_option
  873. ac_prev=
  874. continue
  875. fi
  876. case $ac_option in
  877. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  878. *=) ac_optarg= ;;
  879. *) ac_optarg=yes ;;
  880. esac
  881. # Accept the important Cygnus configure options, so we can diagnose typos.
  882. case $ac_dashdash$ac_option in
  883. --)
  884. ac_dashdash=yes ;;
  885. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  886. ac_prev=bindir ;;
  887. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  888. bindir=$ac_optarg ;;
  889. -build | --build | --buil | --bui | --bu)
  890. ac_prev=build_alias ;;
  891. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  892. build_alias=$ac_optarg ;;
  893. -cache-file | --cache-file | --cache-fil | --cache-fi \
  894. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  895. ac_prev=cache_file ;;
  896. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  897. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  898. cache_file=$ac_optarg ;;
  899. --config-cache | -C)
  900. cache_file=config.cache ;;
  901. -datadir | --datadir | --datadi | --datad)
  902. ac_prev=datadir ;;
  903. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  904. datadir=$ac_optarg ;;
  905. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  906. | --dataroo | --dataro | --datar)
  907. ac_prev=datarootdir ;;
  908. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  909. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  910. datarootdir=$ac_optarg ;;
  911. -disable-* | --disable-*)
  912. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  913. # Reject names that are not valid shell variable names.
  914. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  915. as_fn_error $? "invalid feature name: $ac_useropt"
  916. ac_useropt_orig=$ac_useropt
  917. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  918. case $ac_user_opts in
  919. *"
  920. "enable_$ac_useropt"
  921. "*) ;;
  922. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  923. ac_unrecognized_sep=', ';;
  924. esac
  925. eval enable_$ac_useropt=no ;;
  926. -docdir | --docdir | --docdi | --doc | --do)
  927. ac_prev=docdir ;;
  928. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  929. docdir=$ac_optarg ;;
  930. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  931. ac_prev=dvidir ;;
  932. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  933. dvidir=$ac_optarg ;;
  934. -enable-* | --enable-*)
  935. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  936. # Reject names that are not valid shell variable names.
  937. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  938. as_fn_error $? "invalid feature name: $ac_useropt"
  939. ac_useropt_orig=$ac_useropt
  940. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  941. case $ac_user_opts in
  942. *"
  943. "enable_$ac_useropt"
  944. "*) ;;
  945. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  946. ac_unrecognized_sep=', ';;
  947. esac
  948. eval enable_$ac_useropt=\$ac_optarg ;;
  949. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  950. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  951. | --exec | --exe | --ex)
  952. ac_prev=exec_prefix ;;
  953. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  954. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  955. | --exec=* | --exe=* | --ex=*)
  956. exec_prefix=$ac_optarg ;;
  957. -gas | --gas | --ga | --g)
  958. # Obsolete; use --with-gas.
  959. with_gas=yes ;;
  960. -help | --help | --hel | --he | -h)
  961. ac_init_help=long ;;
  962. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  963. ac_init_help=recursive ;;
  964. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  965. ac_init_help=short ;;
  966. -host | --host | --hos | --ho)
  967. ac_prev=host_alias ;;
  968. -host=* | --host=* | --hos=* | --ho=*)
  969. host_alias=$ac_optarg ;;
  970. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  971. ac_prev=htmldir ;;
  972. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  973. | --ht=*)
  974. htmldir=$ac_optarg ;;
  975. -includedir | --includedir | --includedi | --included | --include \
  976. | --includ | --inclu | --incl | --inc)
  977. ac_prev=includedir ;;
  978. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  979. | --includ=* | --inclu=* | --incl=* | --inc=*)
  980. includedir=$ac_optarg ;;
  981. -infodir | --infodir | --infodi | --infod | --info | --inf)
  982. ac_prev=infodir ;;
  983. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  984. infodir=$ac_optarg ;;
  985. -libdir | --libdir | --libdi | --libd)
  986. ac_prev=libdir ;;
  987. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  988. libdir=$ac_optarg ;;
  989. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  990. | --libexe | --libex | --libe)
  991. ac_prev=libexecdir ;;
  992. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  993. | --libexe=* | --libex=* | --libe=*)
  994. libexecdir=$ac_optarg ;;
  995. -localedir | --localedir | --localedi | --localed | --locale)
  996. ac_prev=localedir ;;
  997. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  998. localedir=$ac_optarg ;;
  999. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1000. | --localstate | --localstat | --localsta | --localst | --locals)
  1001. ac_prev=localstatedir ;;
  1002. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1003. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1004. localstatedir=$ac_optarg ;;
  1005. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1006. ac_prev=mandir ;;
  1007. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1008. mandir=$ac_optarg ;;
  1009. -nfp | --nfp | --nf)
  1010. # Obsolete; use --without-fp.
  1011. with_fp=no ;;
  1012. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1013. | --no-cr | --no-c | -n)
  1014. no_create=yes ;;
  1015. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1016. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1017. no_recursion=yes ;;
  1018. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1019. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1020. | --oldin | --oldi | --old | --ol | --o)
  1021. ac_prev=oldincludedir ;;
  1022. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1023. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1024. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1025. oldincludedir=$ac_optarg ;;
  1026. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1027. ac_prev=prefix ;;
  1028. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1029. prefix=$ac_optarg ;;
  1030. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1031. | --program-pre | --program-pr | --program-p)
  1032. ac_prev=program_prefix ;;
  1033. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1034. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1035. program_prefix=$ac_optarg ;;
  1036. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1037. | --program-suf | --program-su | --program-s)
  1038. ac_prev=program_suffix ;;
  1039. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1040. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1041. program_suffix=$ac_optarg ;;
  1042. -program-transform-name | --program-transform-name \
  1043. | --program-transform-nam | --program-transform-na \
  1044. | --program-transform-n | --program-transform- \
  1045. | --program-transform | --program-transfor \
  1046. | --program-transfo | --program-transf \
  1047. | --program-trans | --program-tran \
  1048. | --progr-tra | --program-tr | --program-t)
  1049. ac_prev=program_transform_name ;;
  1050. -program-transform-name=* | --program-transform-name=* \
  1051. | --program-transform-nam=* | --program-transform-na=* \
  1052. | --program-transform-n=* | --program-transform-=* \
  1053. | --program-transform=* | --program-transfor=* \
  1054. | --program-transfo=* | --program-transf=* \
  1055. | --program-trans=* | --program-tran=* \
  1056. | --progr-tra=* | --program-tr=* | --program-t=*)
  1057. program_transform_name=$ac_optarg ;;
  1058. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1059. ac_prev=pdfdir ;;
  1060. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1061. pdfdir=$ac_optarg ;;
  1062. -psdir | --psdir | --psdi | --psd | --ps)
  1063. ac_prev=psdir ;;
  1064. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1065. psdir=$ac_optarg ;;
  1066. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1067. | -silent | --silent | --silen | --sile | --sil)
  1068. silent=yes ;;
  1069. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1070. ac_prev=sbindir ;;
  1071. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1072. | --sbi=* | --sb=*)
  1073. sbindir=$ac_optarg ;;
  1074. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1075. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1076. | --sharedst | --shareds | --shared | --share | --shar \
  1077. | --sha | --sh)
  1078. ac_prev=sharedstatedir ;;
  1079. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1080. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1081. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1082. | --sha=* | --sh=*)
  1083. sharedstatedir=$ac_optarg ;;
  1084. -site | --site | --sit)
  1085. ac_prev=site ;;
  1086. -site=* | --site=* | --sit=*)
  1087. site=$ac_optarg ;;
  1088. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1089. ac_prev=srcdir ;;
  1090. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1091. srcdir=$ac_optarg ;;
  1092. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1093. | --syscon | --sysco | --sysc | --sys | --sy)
  1094. ac_prev=sysconfdir ;;
  1095. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1096. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1097. sysconfdir=$ac_optarg ;;
  1098. -target | --target | --targe | --targ | --tar | --ta | --t)
  1099. ac_prev=target_alias ;;
  1100. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1101. target_alias=$ac_optarg ;;
  1102. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1103. verbose=yes ;;
  1104. -version | --version | --versio | --versi | --vers | -V)
  1105. ac_init_version=: ;;
  1106. -with-* | --with-*)
  1107. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1108. # Reject names that are not valid shell variable names.
  1109. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1110. as_fn_error $? "invalid package name: $ac_useropt"
  1111. ac_useropt_orig=$ac_useropt
  1112. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1113. case $ac_user_opts in
  1114. *"
  1115. "with_$ac_useropt"
  1116. "*) ;;
  1117. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1118. ac_unrecognized_sep=', ';;
  1119. esac
  1120. eval with_$ac_useropt=\$ac_optarg ;;
  1121. -without-* | --without-*)
  1122. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1123. # Reject names that are not valid shell variable names.
  1124. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1125. as_fn_error $? "invalid package name: $ac_useropt"
  1126. ac_useropt_orig=$ac_useropt
  1127. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1128. case $ac_user_opts in
  1129. *"
  1130. "with_$ac_useropt"
  1131. "*) ;;
  1132. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1133. ac_unrecognized_sep=', ';;
  1134. esac
  1135. eval with_$ac_useropt=no ;;
  1136. --x)
  1137. # Obsolete; use --with-x.
  1138. with_x=yes ;;
  1139. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1140. | --x-incl | --x-inc | --x-in | --x-i)
  1141. ac_prev=x_includes ;;
  1142. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1143. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1144. x_includes=$ac_optarg ;;
  1145. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1146. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1147. ac_prev=x_libraries ;;
  1148. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1149. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1150. x_libraries=$ac_optarg ;;
  1151. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1152. Try \`$0 --help' for more information"
  1153. ;;
  1154. *=*)
  1155. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1156. # Reject names that are not valid shell variable names.
  1157. case $ac_envvar in #(
  1158. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1159. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1160. esac
  1161. eval $ac_envvar=\$ac_optarg
  1162. export $ac_envvar ;;
  1163. *)
  1164. # FIXME: should be removed in autoconf 3.0.
  1165. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1166. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1167. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1168. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1169. ;;
  1170. esac
  1171. done
  1172. if test -n "$ac_prev"; then
  1173. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1174. as_fn_error $? "missing argument to $ac_option"
  1175. fi
  1176. if test -n "$ac_unrecognized_opts"; then
  1177. case $enable_option_checking in
  1178. no) ;;
  1179. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1180. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1181. esac
  1182. fi
  1183. # Check all directory arguments for consistency.
  1184. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1185. datadir sysconfdir sharedstatedir localstatedir includedir \
  1186. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1187. libdir localedir mandir
  1188. do
  1189. eval ac_val=\$$ac_var
  1190. # Remove trailing slashes.
  1191. case $ac_val in
  1192. */ )
  1193. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1194. eval $ac_var=\$ac_val;;
  1195. esac
  1196. # Be sure to have absolute directory names.
  1197. case $ac_val in
  1198. [\\/$]* | ?:[\\/]* ) continue;;
  1199. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1200. esac
  1201. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1202. done
  1203. # There might be people who depend on the old broken behavior: `$host'
  1204. # used to hold the argument of --host etc.
  1205. # FIXME: To remove some day.
  1206. build=$build_alias
  1207. host=$host_alias
  1208. target=$target_alias
  1209. # FIXME: To remove some day.
  1210. if test "x$host_alias" != x; then
  1211. if test "x$build_alias" = x; then
  1212. cross_compiling=maybe
  1213. elif test "x$build_alias" != "x$host_alias"; then
  1214. cross_compiling=yes
  1215. fi
  1216. fi
  1217. ac_tool_prefix=
  1218. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1219. test "$silent" = yes && exec 6>/dev/null
  1220. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1221. ac_ls_di=`ls -di .` &&
  1222. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1223. as_fn_error $? "working directory cannot be determined"
  1224. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1225. as_fn_error $? "pwd does not report name of working directory"
  1226. # Find the source files, if location was not specified.
  1227. if test -z "$srcdir"; then
  1228. ac_srcdir_defaulted=yes
  1229. # Try the directory containing this script, then the parent directory.
  1230. ac_confdir=`$as_dirname -- "$as_myself" ||
  1231. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1232. X"$as_myself" : 'X\(//\)[^/]' \| \
  1233. X"$as_myself" : 'X\(//\)$' \| \
  1234. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1235. $as_echo X"$as_myself" |
  1236. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1237. s//\1/
  1238. q
  1239. }
  1240. /^X\(\/\/\)[^/].*/{
  1241. s//\1/
  1242. q
  1243. }
  1244. /^X\(\/\/\)$/{
  1245. s//\1/
  1246. q
  1247. }
  1248. /^X\(\/\).*/{
  1249. s//\1/
  1250. q
  1251. }
  1252. s/.*/./; q'`
  1253. srcdir=$ac_confdir
  1254. if test ! -r "$srcdir/$ac_unique_file"; then
  1255. srcdir=..
  1256. fi
  1257. else
  1258. ac_srcdir_defaulted=no
  1259. fi
  1260. if test ! -r "$srcdir/$ac_unique_file"; then
  1261. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1262. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1263. fi
  1264. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1265. ac_abs_confdir=`(
  1266. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1267. pwd)`
  1268. # When building in place, set srcdir=.
  1269. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1270. srcdir=.
  1271. fi
  1272. # Remove unnecessary trailing slashes from srcdir.
  1273. # Double slashes in file names in object file debugging info
  1274. # mess up M-x gdb in Emacs.
  1275. case $srcdir in
  1276. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1277. esac
  1278. for ac_var in $ac_precious_vars; do
  1279. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1280. eval ac_env_${ac_var}_value=\$${ac_var}
  1281. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1282. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1283. done
  1284. #
  1285. # Report the --help message.
  1286. #
  1287. if test "$ac_init_help" = "long"; then
  1288. # Omit some internal or obsolete options to make the list less imposing.
  1289. # This message is too long to be a string in the A/UX 3.1 sh.
  1290. cat <<_ACEOF
  1291. \`configure' configures this package to adapt to many kinds of systems.
  1292. Usage: $0 [OPTION]... [VAR=VALUE]...
  1293. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1294. VAR=VALUE. See below for descriptions of some of the useful variables.
  1295. Defaults for the options are specified in brackets.
  1296. Configuration:
  1297. -h, --help display this help and exit
  1298. --help=short display options specific to this package
  1299. --help=recursive display the short help of all the included packages
  1300. -V, --version display version information and exit
  1301. -q, --quiet, --silent do not print \`checking ...' messages
  1302. --cache-file=FILE cache test results in FILE [disabled]
  1303. -C, --config-cache alias for \`--cache-file=config.cache'
  1304. -n, --no-create do not create output files
  1305. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1306. Installation directories:
  1307. --prefix=PREFIX install architecture-independent files in PREFIX
  1308. [$ac_default_prefix]
  1309. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1310. [PREFIX]
  1311. By default, \`make install' will install all the files in
  1312. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1313. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1314. for instance \`--prefix=\$HOME'.
  1315. For better control, use the options below.
  1316. Fine tuning of the installation directories:
  1317. --bindir=DIR user executables [EPREFIX/bin]
  1318. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1319. --libexecdir=DIR program executables [EPREFIX/libexec]
  1320. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1321. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1322. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1323. --libdir=DIR object code libraries [EPREFIX/lib]
  1324. --includedir=DIR C header files [PREFIX/include]
  1325. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1326. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1327. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1328. --infodir=DIR info documentation [DATAROOTDIR/info]
  1329. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1330. --mandir=DIR man documentation [DATAROOTDIR/man]
  1331. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1332. --htmldir=DIR html documentation [DOCDIR]
  1333. --dvidir=DIR dvi documentation [DOCDIR]
  1334. --pdfdir=DIR pdf documentation [DOCDIR]
  1335. --psdir=DIR ps documentation [DOCDIR]
  1336. _ACEOF
  1337. cat <<\_ACEOF
  1338. X features:
  1339. --x-includes=DIR X include files are in DIR
  1340. --x-libraries=DIR X library files are in DIR
  1341. System types:
  1342. --build=BUILD configure for building on BUILD [guessed]
  1343. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1344. _ACEOF
  1345. fi
  1346. if test -n "$ac_init_help"; then
  1347. cat <<\_ACEOF
  1348. Optional Features:
  1349. --disable-option-checking ignore unrecognized --enable/--with options
  1350. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1351. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1352. --enable-shared[=PKGS] build shared libraries [default=yes]
  1353. --enable-static[=PKGS] build static libraries [default=yes]
  1354. --enable-fast-install[=PKGS]
  1355. optimize for fast installation [default=yes]
  1356. --disable-libtool-lock avoid locking (might break parallel builds)
  1357. --enable-assertions Enable internal sanity checks
  1358. (auto/disabled/release/enabled/paranoid)
  1359. [[default=auto]]
  1360. --enable-dependency-tracking
  1361. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1362. --enable-libc Use the system C library [[default=yes]]
  1363. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1364. --enable-atomic Enable the atomic operations subsystem
  1365. [[default=yes]]
  1366. --enable-audio Enable the audio subsystem [[default=yes]]
  1367. --enable-video Enable the video subsystem [[default=yes]]
  1368. --enable-render Enable the render subsystem [[default=yes]]
  1369. --enable-events Enable the events subsystem [[default=yes]]
  1370. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1371. --enable-haptic Enable the haptic (force feedback) subsystem
  1372. [[default=yes]]
  1373. --enable-power Enable the power subsystem [[default=yes]]
  1374. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1375. --enable-threads Enable the threading subsystem [[default=yes]]
  1376. --enable-timers Enable the timer subsystem [[default=yes]]
  1377. --enable-file Enable the file subsystem [[default=yes]]
  1378. --enable-loadso Enable the shared object loading subsystem
  1379. [[default=yes]]
  1380. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1381. --enable-assembly Enable assembly routines [[default=yes]]
  1382. --enable-ssemath Allow GCC to use SSE floating point math
  1383. [[default=no]]
  1384. --enable-mmx use MMX assembly routines [[default=yes]]
  1385. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1386. --enable-sse use SSE assembly routines [[default=yes]]
  1387. --enable-sse2 use SSE2 assembly routines [[default=no]]
  1388. --enable-altivec use Altivec assembly routines [[default=yes]]
  1389. --enable-oss support the OSS audio API [[default=maybe]]
  1390. --enable-alsa support the ALSA audio API [[default=yes]]
  1391. --disable-alsatest Do not try to compile and run a test Alsa program
  1392. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1393. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1394. --disable-esdtest Do not try to compile and run a test ESD program
  1395. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1396. --enable-pulseaudio use PulseAudio [[default=yes]]
  1397. --enable-pulseaudio-shared
  1398. dynamically load PulseAudio support [[default=yes]]
  1399. --enable-arts support the Analog Real Time Synthesizer
  1400. [[default=yes]]
  1401. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1402. --enable-nas support the NAS audio API [[default=yes]]
  1403. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1404. --enable-sndio support the sndio audio API [[default=yes]]
  1405. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1406. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1407. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1408. --enable-video-wayland use Wayland video driver [[default=yes]]
  1409. --enable-video-wayland-qt-touch
  1410. QtWayland server support for Wayland video driver
  1411. [[default=yes]]
  1412. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1413. --enable-video-mir use Mir video driver [[default=yes]]
  1414. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1415. --enable-video-x11 use X11 video driver [[default=yes]]
  1416. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1417. --enable-video-x11-xcursor
  1418. enable X11 Xcursor support [[default=yes]]
  1419. --enable-video-x11-xinerama
  1420. enable X11 Xinerama support [[default=yes]]
  1421. --enable-video-x11-xinput
  1422. enable X11 XInput extension for manymouse, tablets,
  1423. etc [[default=yes]]
  1424. --enable-video-x11-xrandr
  1425. enable X11 Xrandr extension for fullscreen
  1426. [[default=yes]]
  1427. --enable-video-x11-scrnsaver
  1428. enable X11 screensaver extension [[default=yes]]
  1429. --enable-video-x11-xshape
  1430. enable X11 XShape support [[default=yes]]
  1431. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1432. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1433. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1434. --enable-video-directfb use DirectFB video driver [[default=no]]
  1435. --enable-directfb-shared
  1436. dynamically load directfb support [[default=yes]]
  1437. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1438. --enable-fusionsound-shared
  1439. dynamically load fusionsound audio support
  1440. [[default=yes]]
  1441. --enable-video-dummy use dummy video driver [[default=yes]]
  1442. --enable-video-opengl include OpenGL support [[default=yes]]
  1443. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1444. --enable-video-opengles1
  1445. include OpenGL ES 1.1 support [[default=yes]]
  1446. --enable-video-opengles2
  1447. include OpenGL ES 2.0 support [[default=yes]]
  1448. --enable-libudev enable libudev support [[default=yes]]
  1449. --enable-dbus enable D-Bus support [[default=yes]]
  1450. --enable-ibus enable IBus support [[default=yes]]
  1451. --enable-input-tslib use the Touchscreen library for input
  1452. [[default=yes]]
  1453. --enable-pthreads use POSIX threads for multi-threading
  1454. [[default=yes]]
  1455. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1456. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1457. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1458. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1459. UNIX [[default=yes]]
  1460. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1461. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1462. Optional Packages:
  1463. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1464. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1465. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1466. both]
  1467. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1468. --with-sysroot=DIR Search for dependent libraries within DIR
  1469. (or the compiler's sysroot if not specified).
  1470. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1471. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1472. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1473. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1474. --with-x use the X Window System
  1475. Some influential environment variables:
  1476. CC C compiler command
  1477. CFLAGS C compiler flags
  1478. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1479. nonstandard directory <lib dir>
  1480. LIBS libraries to pass to the linker, e.g. -l<library>
  1481. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1482. you have headers in a nonstandard directory <include dir>
  1483. CPP C preprocessor
  1484. CXX C++ compiler command
  1485. CXXFLAGS C++ compiler flags
  1486. CXXCPP C++ preprocessor
  1487. XMKMF Path to xmkmf, Makefile generator for X Window System
  1488. Use these variables to override the choices made by `configure' or to help
  1489. it to find libraries and programs with nonstandard names/locations.
  1490. Report bugs to the package provider.
  1491. _ACEOF
  1492. ac_status=$?
  1493. fi
  1494. if test "$ac_init_help" = "recursive"; then
  1495. # If there are subdirs, report their specific --help.
  1496. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1497. test -d "$ac_dir" ||
  1498. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1499. continue
  1500. ac_builddir=.
  1501. case "$ac_dir" in
  1502. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1503. *)
  1504. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1505. # A ".." for each directory in $ac_dir_suffix.
  1506. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1507. case $ac_top_builddir_sub in
  1508. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1509. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1510. esac ;;
  1511. esac
  1512. ac_abs_top_builddir=$ac_pwd
  1513. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1514. # for backward compatibility:
  1515. ac_top_builddir=$ac_top_build_prefix
  1516. case $srcdir in
  1517. .) # We are building in place.
  1518. ac_srcdir=.
  1519. ac_top_srcdir=$ac_top_builddir_sub
  1520. ac_abs_top_srcdir=$ac_pwd ;;
  1521. [\\/]* | ?:[\\/]* ) # Absolute name.
  1522. ac_srcdir=$srcdir$ac_dir_suffix;
  1523. ac_top_srcdir=$srcdir
  1524. ac_abs_top_srcdir=$srcdir ;;
  1525. *) # Relative name.
  1526. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1527. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1528. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1529. esac
  1530. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1531. cd "$ac_dir" || { ac_status=$?; continue; }
  1532. # Check for guested configure.
  1533. if test -f "$ac_srcdir/configure.gnu"; then
  1534. echo &&
  1535. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1536. elif test -f "$ac_srcdir/configure"; then
  1537. echo &&
  1538. $SHELL "$ac_srcdir/configure" --help=recursive
  1539. else
  1540. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1541. fi || ac_status=$?
  1542. cd "$ac_pwd" || { ac_status=$?; break; }
  1543. done
  1544. fi
  1545. test -n "$ac_init_help" && exit $ac_status
  1546. if $ac_init_version; then
  1547. cat <<\_ACEOF
  1548. configure
  1549. generated by GNU Autoconf 2.69
  1550. Copyright (C) 2012 Free Software Foundation, Inc.
  1551. This configure script is free software; the Free Software Foundation
  1552. gives unlimited permission to copy, distribute and modify it.
  1553. _ACEOF
  1554. exit
  1555. fi
  1556. ## ------------------------ ##
  1557. ## Autoconf initialization. ##
  1558. ## ------------------------ ##
  1559. # ac_fn_c_try_compile LINENO
  1560. # --------------------------
  1561. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1562. ac_fn_c_try_compile ()
  1563. {
  1564. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1565. rm -f conftest.$ac_objext
  1566. if { { ac_try="$ac_compile"
  1567. case "(($ac_try" in
  1568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1569. *) ac_try_echo=$ac_try;;
  1570. esac
  1571. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1572. $as_echo "$ac_try_echo"; } >&5
  1573. (eval "$ac_compile") 2>conftest.err
  1574. ac_status=$?
  1575. if test -s conftest.err; then
  1576. grep -v '^ *+' conftest.err >conftest.er1
  1577. cat conftest.er1 >&5
  1578. mv -f conftest.er1 conftest.err
  1579. fi
  1580. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1581. test $ac_status = 0; } && {
  1582. test -z "$ac_c_werror_flag" ||
  1583. test ! -s conftest.err
  1584. } && test -s conftest.$ac_objext; then :
  1585. ac_retval=0
  1586. else
  1587. $as_echo "$as_me: failed program was:" >&5
  1588. sed 's/^/| /' conftest.$ac_ext >&5
  1589. ac_retval=1
  1590. fi
  1591. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1592. as_fn_set_status $ac_retval
  1593. } # ac_fn_c_try_compile
  1594. # ac_fn_c_try_link LINENO
  1595. # -----------------------
  1596. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1597. ac_fn_c_try_link ()
  1598. {
  1599. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1600. rm -f conftest.$ac_objext conftest$ac_exeext
  1601. if { { ac_try="$ac_link"
  1602. case "(($ac_try" in
  1603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1604. *) ac_try_echo=$ac_try;;
  1605. esac
  1606. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1607. $as_echo "$ac_try_echo"; } >&5
  1608. (eval "$ac_link") 2>conftest.err
  1609. ac_status=$?
  1610. if test -s conftest.err; then
  1611. grep -v '^ *+' conftest.err >conftest.er1
  1612. cat conftest.er1 >&5
  1613. mv -f conftest.er1 conftest.err
  1614. fi
  1615. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1616. test $ac_status = 0; } && {
  1617. test -z "$ac_c_werror_flag" ||
  1618. test ! -s conftest.err
  1619. } && test -s conftest$ac_exeext && {
  1620. test "$cross_compiling" = yes ||
  1621. test -x conftest$ac_exeext
  1622. }; then :
  1623. ac_retval=0
  1624. else
  1625. $as_echo "$as_me: failed program was:" >&5
  1626. sed 's/^/| /' conftest.$ac_ext >&5
  1627. ac_retval=1
  1628. fi
  1629. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1630. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1631. # interfere with the next link command; also delete a directory that is
  1632. # left behind by Apple's compiler. We do this before executing the actions.
  1633. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1634. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1635. as_fn_set_status $ac_retval
  1636. } # ac_fn_c_try_link
  1637. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1638. # -------------------------------------------------------
  1639. # Tests whether HEADER exists and can be compiled using the include files in
  1640. # INCLUDES, setting the cache variable VAR accordingly.
  1641. ac_fn_c_check_header_compile ()
  1642. {
  1643. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1645. $as_echo_n "checking for $2... " >&6; }
  1646. if eval \${$3+:} false; then :
  1647. $as_echo_n "(cached) " >&6
  1648. else
  1649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1650. /* end confdefs.h. */
  1651. $4
  1652. #include <$2>
  1653. _ACEOF
  1654. if ac_fn_c_try_compile "$LINENO"; then :
  1655. eval "$3=yes"
  1656. else
  1657. eval "$3=no"
  1658. fi
  1659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1660. fi
  1661. eval ac_res=\$$3
  1662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1663. $as_echo "$ac_res" >&6; }
  1664. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1665. } # ac_fn_c_check_header_compile
  1666. # ac_fn_c_try_cpp LINENO
  1667. # ----------------------
  1668. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1669. ac_fn_c_try_cpp ()
  1670. {
  1671. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1672. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1673. case "(($ac_try" in
  1674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1675. *) ac_try_echo=$ac_try;;
  1676. esac
  1677. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1678. $as_echo "$ac_try_echo"; } >&5
  1679. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1680. ac_status=$?
  1681. if test -s conftest.err; then
  1682. grep -v '^ *+' conftest.err >conftest.er1
  1683. cat conftest.er1 >&5
  1684. mv -f conftest.er1 conftest.err
  1685. fi
  1686. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1687. test $ac_status = 0; } > conftest.i && {
  1688. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1689. test ! -s conftest.err
  1690. }; then :
  1691. ac_retval=0
  1692. else
  1693. $as_echo "$as_me: failed program was:" >&5
  1694. sed 's/^/| /' conftest.$ac_ext >&5
  1695. ac_retval=1
  1696. fi
  1697. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1698. as_fn_set_status $ac_retval
  1699. } # ac_fn_c_try_cpp
  1700. # ac_fn_c_try_run LINENO
  1701. # ----------------------
  1702. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1703. # that executables *can* be run.
  1704. ac_fn_c_try_run ()
  1705. {
  1706. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1707. if { { ac_try="$ac_link"
  1708. case "(($ac_try" in
  1709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1710. *) ac_try_echo=$ac_try;;
  1711. esac
  1712. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1713. $as_echo "$ac_try_echo"; } >&5
  1714. (eval "$ac_link") 2>&5
  1715. ac_status=$?
  1716. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1717. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1718. { { case "(($ac_try" in
  1719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1720. *) ac_try_echo=$ac_try;;
  1721. esac
  1722. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1723. $as_echo "$ac_try_echo"; } >&5
  1724. (eval "$ac_try") 2>&5
  1725. ac_status=$?
  1726. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1727. test $ac_status = 0; }; }; then :
  1728. ac_retval=0
  1729. else
  1730. $as_echo "$as_me: program exited with status $ac_status" >&5
  1731. $as_echo "$as_me: failed program was:" >&5
  1732. sed 's/^/| /' conftest.$ac_ext >&5
  1733. ac_retval=$ac_status
  1734. fi
  1735. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1736. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1737. as_fn_set_status $ac_retval
  1738. } # ac_fn_c_try_run
  1739. # ac_fn_c_check_func LINENO FUNC VAR
  1740. # ----------------------------------
  1741. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1742. ac_fn_c_check_func ()
  1743. {
  1744. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1746. $as_echo_n "checking for $2... " >&6; }
  1747. if eval \${$3+:} false; then :
  1748. $as_echo_n "(cached) " >&6
  1749. else
  1750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1751. /* end confdefs.h. */
  1752. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1753. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1754. #define $2 innocuous_$2
  1755. /* System header to define __stub macros and hopefully few prototypes,
  1756. which can conflict with char $2 (); below.
  1757. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1758. <limits.h> exists even on freestanding compilers. */
  1759. #ifdef __STDC__
  1760. # include <limits.h>
  1761. #else
  1762. # include <assert.h>
  1763. #endif
  1764. #undef $2
  1765. /* Override any GCC internal prototype to avoid an error.
  1766. Use char because int might match the return type of a GCC
  1767. builtin and then its argument prototype would still apply. */
  1768. #ifdef __cplusplus
  1769. extern "C"
  1770. #endif
  1771. char $2 ();
  1772. /* The GNU C library defines this for functions which it implements
  1773. to always fail with ENOSYS. Some functions are actually named
  1774. something starting with __ and the normal name is an alias. */
  1775. #if defined __stub_$2 || defined __stub___$2
  1776. choke me
  1777. #endif
  1778. int
  1779. main ()
  1780. {
  1781. return $2 ();
  1782. ;
  1783. return 0;
  1784. }
  1785. _ACEOF
  1786. if ac_fn_c_try_link "$LINENO"; then :
  1787. eval "$3=yes"
  1788. else
  1789. eval "$3=no"
  1790. fi
  1791. rm -f core conftest.err conftest.$ac_objext \
  1792. conftest$ac_exeext conftest.$ac_ext
  1793. fi
  1794. eval ac_res=\$$3
  1795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1796. $as_echo "$ac_res" >&6; }
  1797. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1798. } # ac_fn_c_check_func
  1799. # ac_fn_cxx_try_compile LINENO
  1800. # ----------------------------
  1801. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1802. ac_fn_cxx_try_compile ()
  1803. {
  1804. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1805. rm -f conftest.$ac_objext
  1806. if { { ac_try="$ac_compile"
  1807. case "(($ac_try" in
  1808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1809. *) ac_try_echo=$ac_try;;
  1810. esac
  1811. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1812. $as_echo "$ac_try_echo"; } >&5
  1813. (eval "$ac_compile") 2>conftest.err
  1814. ac_status=$?
  1815. if test -s conftest.err; then
  1816. grep -v '^ *+' conftest.err >conftest.er1
  1817. cat conftest.er1 >&5
  1818. mv -f conftest.er1 conftest.err
  1819. fi
  1820. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1821. test $ac_status = 0; } && {
  1822. test -z "$ac_cxx_werror_flag" ||
  1823. test ! -s conftest.err
  1824. } && test -s conftest.$ac_objext; then :
  1825. ac_retval=0
  1826. else
  1827. $as_echo "$as_me: failed program was:" >&5
  1828. sed 's/^/| /' conftest.$ac_ext >&5
  1829. ac_retval=1
  1830. fi
  1831. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1832. as_fn_set_status $ac_retval
  1833. } # ac_fn_cxx_try_compile
  1834. # ac_fn_cxx_try_cpp LINENO
  1835. # ------------------------
  1836. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1837. ac_fn_cxx_try_cpp ()
  1838. {
  1839. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1840. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1841. case "(($ac_try" in
  1842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1843. *) ac_try_echo=$ac_try;;
  1844. esac
  1845. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1846. $as_echo "$ac_try_echo"; } >&5
  1847. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1848. ac_status=$?
  1849. if test -s conftest.err; then
  1850. grep -v '^ *+' conftest.err >conftest.er1
  1851. cat conftest.er1 >&5
  1852. mv -f conftest.er1 conftest.err
  1853. fi
  1854. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1855. test $ac_status = 0; } > conftest.i && {
  1856. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1857. test ! -s conftest.err
  1858. }; then :
  1859. ac_retval=0
  1860. else
  1861. $as_echo "$as_me: failed program was:" >&5
  1862. sed 's/^/| /' conftest.$ac_ext >&5
  1863. ac_retval=1
  1864. fi
  1865. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1866. as_fn_set_status $ac_retval
  1867. } # ac_fn_cxx_try_cpp
  1868. # ac_fn_cxx_try_link LINENO
  1869. # -------------------------
  1870. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1871. ac_fn_cxx_try_link ()
  1872. {
  1873. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1874. rm -f conftest.$ac_objext conftest$ac_exeext
  1875. if { { ac_try="$ac_link"
  1876. case "(($ac_try" in
  1877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1878. *) ac_try_echo=$ac_try;;
  1879. esac
  1880. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1881. $as_echo "$ac_try_echo"; } >&5
  1882. (eval "$ac_link") 2>conftest.err
  1883. ac_status=$?
  1884. if test -s conftest.err; then
  1885. grep -v '^ *+' conftest.err >conftest.er1
  1886. cat conftest.er1 >&5
  1887. mv -f conftest.er1 conftest.err
  1888. fi
  1889. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1890. test $ac_status = 0; } && {
  1891. test -z "$ac_cxx_werror_flag" ||
  1892. test ! -s conftest.err
  1893. } && test -s conftest$ac_exeext && {
  1894. test "$cross_compiling" = yes ||
  1895. test -x conftest$ac_exeext
  1896. }; then :
  1897. ac_retval=0
  1898. else
  1899. $as_echo "$as_me: failed program was:" >&5
  1900. sed 's/^/| /' conftest.$ac_ext >&5
  1901. ac_retval=1
  1902. fi
  1903. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1904. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1905. # interfere with the next link command; also delete a directory that is
  1906. # left behind by Apple's compiler. We do this before executing the actions.
  1907. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1908. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1909. as_fn_set_status $ac_retval
  1910. } # ac_fn_cxx_try_link
  1911. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1912. # -------------------------------------------------------
  1913. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1914. # the include files in INCLUDES and setting the cache variable VAR
  1915. # accordingly.
  1916. ac_fn_c_check_header_mongrel ()
  1917. {
  1918. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1919. if eval \${$3+:} false; then :
  1920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1921. $as_echo_n "checking for $2... " >&6; }
  1922. if eval \${$3+:} false; then :
  1923. $as_echo_n "(cached) " >&6
  1924. fi
  1925. eval ac_res=\$$3
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1927. $as_echo "$ac_res" >&6; }
  1928. else
  1929. # Is the header compilable?
  1930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1931. $as_echo_n "checking $2 usability... " >&6; }
  1932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1933. /* end confdefs.h. */
  1934. $4
  1935. #include <$2>
  1936. _ACEOF
  1937. if ac_fn_c_try_compile "$LINENO"; then :
  1938. ac_header_compiler=yes
  1939. else
  1940. ac_header_compiler=no
  1941. fi
  1942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1944. $as_echo "$ac_header_compiler" >&6; }
  1945. # Is the header present?
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1947. $as_echo_n "checking $2 presence... " >&6; }
  1948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1949. /* end confdefs.h. */
  1950. #include <$2>
  1951. _ACEOF
  1952. if ac_fn_c_try_cpp "$LINENO"; then :
  1953. ac_header_preproc=yes
  1954. else
  1955. ac_header_preproc=no
  1956. fi
  1957. rm -f conftest.err conftest.i conftest.$ac_ext
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1959. $as_echo "$ac_header_preproc" >&6; }
  1960. # So? What about this header?
  1961. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1962. yes:no: )
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1964. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1966. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1967. ;;
  1968. no:yes:* )
  1969. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1970. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1972. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1974. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1976. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1978. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1979. ;;
  1980. esac
  1981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1982. $as_echo_n "checking for $2... " >&6; }
  1983. if eval \${$3+:} false; then :
  1984. $as_echo_n "(cached) " >&6
  1985. else
  1986. eval "$3=\$ac_header_compiler"
  1987. fi
  1988. eval ac_res=\$$3
  1989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1990. $as_echo "$ac_res" >&6; }
  1991. fi
  1992. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1993. } # ac_fn_c_check_header_mongrel
  1994. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1995. # -------------------------------------------
  1996. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1997. # variable VAR accordingly.
  1998. ac_fn_c_check_type ()
  1999. {
  2000. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2002. $as_echo_n "checking for $2... " >&6; }
  2003. if eval \${$3+:} false; then :
  2004. $as_echo_n "(cached) " >&6
  2005. else
  2006. eval "$3=no"
  2007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2008. /* end confdefs.h. */
  2009. $4
  2010. int
  2011. main ()
  2012. {
  2013. if (sizeof ($2))
  2014. return 0;
  2015. ;
  2016. return 0;
  2017. }
  2018. _ACEOF
  2019. if ac_fn_c_try_compile "$LINENO"; then :
  2020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2021. /* end confdefs.h. */
  2022. $4
  2023. int
  2024. main ()
  2025. {
  2026. if (sizeof (($2)))
  2027. return 0;
  2028. ;
  2029. return 0;
  2030. }
  2031. _ACEOF
  2032. if ac_fn_c_try_compile "$LINENO"; then :
  2033. else
  2034. eval "$3=yes"
  2035. fi
  2036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2037. fi
  2038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2039. fi
  2040. eval ac_res=\$$3
  2041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2042. $as_echo "$ac_res" >&6; }
  2043. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2044. } # ac_fn_c_check_type
  2045. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2046. # ----------------------------------------------------
  2047. # Tries to find if the field MEMBER exists in type AGGR, after including
  2048. # INCLUDES, setting cache variable VAR accordingly.
  2049. ac_fn_c_check_member ()
  2050. {
  2051. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2053. $as_echo_n "checking for $2.$3... " >&6; }
  2054. if eval \${$4+:} false; then :
  2055. $as_echo_n "(cached) " >&6
  2056. else
  2057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2058. /* end confdefs.h. */
  2059. $5
  2060. int
  2061. main ()
  2062. {
  2063. static $2 ac_aggr;
  2064. if (ac_aggr.$3)
  2065. return 0;
  2066. ;
  2067. return 0;
  2068. }
  2069. _ACEOF
  2070. if ac_fn_c_try_compile "$LINENO"; then :
  2071. eval "$4=yes"
  2072. else
  2073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2074. /* end confdefs.h. */
  2075. $5
  2076. int
  2077. main ()
  2078. {
  2079. static $2 ac_aggr;
  2080. if (sizeof ac_aggr.$3)
  2081. return 0;
  2082. ;
  2083. return 0;
  2084. }
  2085. _ACEOF
  2086. if ac_fn_c_try_compile "$LINENO"; then :
  2087. eval "$4=yes"
  2088. else
  2089. eval "$4=no"
  2090. fi
  2091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2092. fi
  2093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2094. fi
  2095. eval ac_res=\$$4
  2096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2097. $as_echo "$ac_res" >&6; }
  2098. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2099. } # ac_fn_c_check_member
  2100. cat >config.log <<_ACEOF
  2101. This file contains any messages produced by compilers while
  2102. running configure, to aid debugging if configure makes a mistake.
  2103. It was created by $as_me, which was
  2104. generated by GNU Autoconf 2.69. Invocation command line was
  2105. $ $0 $@
  2106. _ACEOF
  2107. exec 5>>config.log
  2108. {
  2109. cat <<_ASUNAME
  2110. ## --------- ##
  2111. ## Platform. ##
  2112. ## --------- ##
  2113. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2114. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2115. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2116. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2117. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2118. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2119. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2120. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2121. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2122. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2123. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2124. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2125. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2126. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2127. _ASUNAME
  2128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2129. for as_dir in $PATH
  2130. do
  2131. IFS=$as_save_IFS
  2132. test -z "$as_dir" && as_dir=.
  2133. $as_echo "PATH: $as_dir"
  2134. done
  2135. IFS=$as_save_IFS
  2136. } >&5
  2137. cat >&5 <<_ACEOF
  2138. ## ----------- ##
  2139. ## Core tests. ##
  2140. ## ----------- ##
  2141. _ACEOF
  2142. # Keep a trace of the command line.
  2143. # Strip out --no-create and --no-recursion so they do not pile up.
  2144. # Strip out --silent because we don't want to record it for future runs.
  2145. # Also quote any args containing shell meta-characters.
  2146. # Make two passes to allow for proper duplicate-argument suppression.
  2147. ac_configure_args=
  2148. ac_configure_args0=
  2149. ac_configure_args1=
  2150. ac_must_keep_next=false
  2151. for ac_pass in 1 2
  2152. do
  2153. for ac_arg
  2154. do
  2155. case $ac_arg in
  2156. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2157. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2158. | -silent | --silent | --silen | --sile | --sil)
  2159. continue ;;
  2160. *\'*)
  2161. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2162. esac
  2163. case $ac_pass in
  2164. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2165. 2)
  2166. as_fn_append ac_configure_args1 " '$ac_arg'"
  2167. if test $ac_must_keep_next = true; then
  2168. ac_must_keep_next=false # Got value, back to normal.
  2169. else
  2170. case $ac_arg in
  2171. *=* | --config-cache | -C | -disable-* | --disable-* \
  2172. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2173. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2174. | -with-* | --with-* | -without-* | --without-* | --x)
  2175. case "$ac_configure_args0 " in
  2176. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2177. esac
  2178. ;;
  2179. -* ) ac_must_keep_next=true ;;
  2180. esac
  2181. fi
  2182. as_fn_append ac_configure_args " '$ac_arg'"
  2183. ;;
  2184. esac
  2185. done
  2186. done
  2187. { ac_configure_args0=; unset ac_configure_args0;}
  2188. { ac_configure_args1=; unset ac_configure_args1;}
  2189. # When interrupted or exit'd, cleanup temporary files, and complete
  2190. # config.log. We remove comments because anyway the quotes in there
  2191. # would cause problems or look ugly.
  2192. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2193. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2194. trap 'exit_status=$?
  2195. # Save into config.log some information that might help in debugging.
  2196. {
  2197. echo
  2198. $as_echo "## ---------------- ##
  2199. ## Cache variables. ##
  2200. ## ---------------- ##"
  2201. echo
  2202. # The following way of writing the cache mishandles newlines in values,
  2203. (
  2204. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2205. eval ac_val=\$$ac_var
  2206. case $ac_val in #(
  2207. *${as_nl}*)
  2208. case $ac_var in #(
  2209. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2210. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2211. esac
  2212. case $ac_var in #(
  2213. _ | IFS | as_nl) ;; #(
  2214. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2215. *) { eval $ac_var=; unset $ac_var;} ;;
  2216. esac ;;
  2217. esac
  2218. done
  2219. (set) 2>&1 |
  2220. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2221. *${as_nl}ac_space=\ *)
  2222. sed -n \
  2223. "s/'\''/'\''\\\\'\'''\''/g;
  2224. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2225. ;; #(
  2226. *)
  2227. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2228. ;;
  2229. esac |
  2230. sort
  2231. )
  2232. echo
  2233. $as_echo "## ----------------- ##
  2234. ## Output variables. ##
  2235. ## ----------------- ##"
  2236. echo
  2237. for ac_var in $ac_subst_vars
  2238. do
  2239. eval ac_val=\$$ac_var
  2240. case $ac_val in
  2241. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2242. esac
  2243. $as_echo "$ac_var='\''$ac_val'\''"
  2244. done | sort
  2245. echo
  2246. if test -n "$ac_subst_files"; then
  2247. $as_echo "## ------------------- ##
  2248. ## File substitutions. ##
  2249. ## ------------------- ##"
  2250. echo
  2251. for ac_var in $ac_subst_files
  2252. do
  2253. eval ac_val=\$$ac_var
  2254. case $ac_val in
  2255. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2256. esac
  2257. $as_echo "$ac_var='\''$ac_val'\''"
  2258. done | sort
  2259. echo
  2260. fi
  2261. if test -s confdefs.h; then
  2262. $as_echo "## ----------- ##
  2263. ## confdefs.h. ##
  2264. ## ----------- ##"
  2265. echo
  2266. cat confdefs.h
  2267. echo
  2268. fi
  2269. test "$ac_signal" != 0 &&
  2270. $as_echo "$as_me: caught signal $ac_signal"
  2271. $as_echo "$as_me: exit $exit_status"
  2272. } >&5
  2273. rm -f core *.core core.conftest.* &&
  2274. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2275. exit $exit_status
  2276. ' 0
  2277. for ac_signal in 1 2 13 15; do
  2278. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2279. done
  2280. ac_signal=0
  2281. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2282. rm -f -r conftest* confdefs.h
  2283. $as_echo "/* confdefs.h */" > confdefs.h
  2284. # Predefined preprocessor variables.
  2285. cat >>confdefs.h <<_ACEOF
  2286. #define PACKAGE_NAME "$PACKAGE_NAME"
  2287. _ACEOF
  2288. cat >>confdefs.h <<_ACEOF
  2289. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2290. _ACEOF
  2291. cat >>confdefs.h <<_ACEOF
  2292. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2293. _ACEOF
  2294. cat >>confdefs.h <<_ACEOF
  2295. #define PACKAGE_STRING "$PACKAGE_STRING"
  2296. _ACEOF
  2297. cat >>confdefs.h <<_ACEOF
  2298. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2299. _ACEOF
  2300. cat >>confdefs.h <<_ACEOF
  2301. #define PACKAGE_URL "$PACKAGE_URL"
  2302. _ACEOF
  2303. # Let the site file select an alternate cache file if it wants to.
  2304. # Prefer an explicitly selected file to automatically selected ones.
  2305. ac_site_file1=NONE
  2306. ac_site_file2=NONE
  2307. if test -n "$CONFIG_SITE"; then
  2308. # We do not want a PATH search for config.site.
  2309. case $CONFIG_SITE in #((
  2310. -*) ac_site_file1=./$CONFIG_SITE;;
  2311. */*) ac_site_file1=$CONFIG_SITE;;
  2312. *) ac_site_file1=./$CONFIG_SITE;;
  2313. esac
  2314. elif test "x$prefix" != xNONE; then
  2315. ac_site_file1=$prefix/share/config.site
  2316. ac_site_file2=$prefix/etc/config.site
  2317. else
  2318. ac_site_file1=$ac_default_prefix/share/config.site
  2319. ac_site_file2=$ac_default_prefix/etc/config.site
  2320. fi
  2321. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2322. do
  2323. test "x$ac_site_file" = xNONE && continue
  2324. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2326. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2327. sed 's/^/| /' "$ac_site_file" >&5
  2328. . "$ac_site_file" \
  2329. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2330. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2331. as_fn_error $? "failed to load site script $ac_site_file
  2332. See \`config.log' for more details" "$LINENO" 5; }
  2333. fi
  2334. done
  2335. if test -r "$cache_file"; then
  2336. # Some versions of bash will fail to source /dev/null (special files
  2337. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2338. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2340. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2341. case $cache_file in
  2342. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2343. *) . "./$cache_file";;
  2344. esac
  2345. fi
  2346. else
  2347. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2348. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2349. >$cache_file
  2350. fi
  2351. # Check that the precious variables saved in the cache have kept the same
  2352. # value.
  2353. ac_cache_corrupted=false
  2354. for ac_var in $ac_precious_vars; do
  2355. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2356. eval ac_new_set=\$ac_env_${ac_var}_set
  2357. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2358. eval ac_new_val=\$ac_env_${ac_var}_value
  2359. case $ac_old_set,$ac_new_set in
  2360. set,)
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2362. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2363. ac_cache_corrupted=: ;;
  2364. ,set)
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2366. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2367. ac_cache_corrupted=: ;;
  2368. ,);;
  2369. *)
  2370. if test "x$ac_old_val" != "x$ac_new_val"; then
  2371. # differences in whitespace do not lead to failure.
  2372. ac_old_val_w=`echo x $ac_old_val`
  2373. ac_new_val_w=`echo x $ac_new_val`
  2374. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2376. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2377. ac_cache_corrupted=:
  2378. else
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2380. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2381. eval $ac_var=\$ac_old_val
  2382. fi
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2384. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2386. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2387. fi;;
  2388. esac
  2389. # Pass precious variables to config.status.
  2390. if test "$ac_new_set" = set; then
  2391. case $ac_new_val in
  2392. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2393. *) ac_arg=$ac_var=$ac_new_val ;;
  2394. esac
  2395. case " $ac_configure_args " in
  2396. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2397. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2398. esac
  2399. fi
  2400. done
  2401. if $ac_cache_corrupted; then
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2403. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2405. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2406. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2407. fi
  2408. ## -------------------- ##
  2409. ## Main body of script. ##
  2410. ## -------------------- ##
  2411. ac_ext=c
  2412. ac_cpp='$CPP $CPPFLAGS'
  2413. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2414. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2415. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2416. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2417. ac_aux_dir=
  2418. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2419. if test -f "$ac_dir/install-sh"; then
  2420. ac_aux_dir=$ac_dir
  2421. ac_install_sh="$ac_aux_dir/install-sh -c"
  2422. break
  2423. elif test -f "$ac_dir/install.sh"; then
  2424. ac_aux_dir=$ac_dir
  2425. ac_install_sh="$ac_aux_dir/install.sh -c"
  2426. break
  2427. elif test -f "$ac_dir/shtool"; then
  2428. ac_aux_dir=$ac_dir
  2429. ac_install_sh="$ac_aux_dir/shtool install -c"
  2430. break
  2431. fi
  2432. done
  2433. if test -z "$ac_aux_dir"; then
  2434. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2435. fi
  2436. # These three variables are undocumented and unsupported,
  2437. # and are intended to be withdrawn in a future Autoconf release.
  2438. # They can cause serious problems if a builder's source tree is in a directory
  2439. # whose full name contains unusual characters.
  2440. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2441. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2442. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2443. orig_CFLAGS="$CFLAGS"
  2444. #
  2445. # Making releases:
  2446. # Edit include/SDL_version.h and change the version, then:
  2447. # SDL_MICRO_VERSION += 1;
  2448. # SDL_INTERFACE_AGE += 1;
  2449. # SDL_BINARY_AGE += 1;
  2450. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2451. # if backwards compatibility has been broken,
  2452. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2453. #
  2454. SDL_MAJOR_VERSION=2
  2455. SDL_MINOR_VERSION=0
  2456. SDL_MICRO_VERSION=4
  2457. SDL_INTERFACE_AGE=0
  2458. SDL_BINARY_AGE=4
  2459. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2460. # libtool versioning
  2461. case `pwd` in
  2462. *\ * | *\ *)
  2463. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2464. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2465. esac
  2466. macro_version='2.4.2'
  2467. macro_revision='1.3337'
  2468. ltmain="$ac_aux_dir/ltmain.sh"
  2469. # Make sure we can run config.sub.
  2470. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2471. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2473. $as_echo_n "checking build system type... " >&6; }
  2474. if ${ac_cv_build+:} false; then :
  2475. $as_echo_n "(cached) " >&6
  2476. else
  2477. ac_build_alias=$build_alias
  2478. test "x$ac_build_alias" = x &&
  2479. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2480. test "x$ac_build_alias" = x &&
  2481. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2482. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2483. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2484. fi
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2486. $as_echo "$ac_cv_build" >&6; }
  2487. case $ac_cv_build in
  2488. *-*-*) ;;
  2489. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2490. esac
  2491. build=$ac_cv_build
  2492. ac_save_IFS=$IFS; IFS='-'
  2493. set x $ac_cv_build
  2494. shift
  2495. build_cpu=$1
  2496. build_vendor=$2
  2497. shift; shift
  2498. # Remember, the first character of IFS is used to create $*,
  2499. # except with old shells:
  2500. build_os=$*
  2501. IFS=$ac_save_IFS
  2502. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2504. $as_echo_n "checking host system type... " >&6; }
  2505. if ${ac_cv_host+:} false; then :
  2506. $as_echo_n "(cached) " >&6
  2507. else
  2508. if test "x$host_alias" = x; then
  2509. ac_cv_host=$ac_cv_build
  2510. else
  2511. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2512. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2513. fi
  2514. fi
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2516. $as_echo "$ac_cv_host" >&6; }
  2517. case $ac_cv_host in
  2518. *-*-*) ;;
  2519. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2520. esac
  2521. host=$ac_cv_host
  2522. ac_save_IFS=$IFS; IFS='-'
  2523. set x $ac_cv_host
  2524. shift
  2525. host_cpu=$1
  2526. host_vendor=$2
  2527. shift; shift
  2528. # Remember, the first character of IFS is used to create $*,
  2529. # except with old shells:
  2530. host_os=$*
  2531. IFS=$ac_save_IFS
  2532. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2533. # Backslashify metacharacters that are still active within
  2534. # double-quoted strings.
  2535. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2536. # Same as above, but do not quote variable references.
  2537. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2538. # Sed substitution to delay expansion of an escaped shell variable in a
  2539. # double_quote_subst'ed string.
  2540. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2541. # Sed substitution to delay expansion of an escaped single quote.
  2542. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2543. # Sed substitution to avoid accidental globbing in evaled expressions
  2544. no_glob_subst='s/\*/\\\*/g'
  2545. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2546. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2547. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2549. $as_echo_n "checking how to print strings... " >&6; }
  2550. # Test print first, because it will be a builtin if present.
  2551. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2552. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2553. ECHO='print -r --'
  2554. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2555. ECHO='printf %s\n'
  2556. else
  2557. # Use this function as a fallback that always works.
  2558. func_fallback_echo ()
  2559. {
  2560. eval 'cat <<_LTECHO_EOF
  2561. $1
  2562. _LTECHO_EOF'
  2563. }
  2564. ECHO='func_fallback_echo'
  2565. fi
  2566. # func_echo_all arg...
  2567. # Invoke $ECHO with all args, space-separated.
  2568. func_echo_all ()
  2569. {
  2570. $ECHO ""
  2571. }
  2572. case "$ECHO" in
  2573. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2574. $as_echo "printf" >&6; } ;;
  2575. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2576. $as_echo "print -r" >&6; } ;;
  2577. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2578. $as_echo "cat" >&6; } ;;
  2579. esac
  2580. ac_ext=c
  2581. ac_cpp='$CPP $CPPFLAGS'
  2582. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2583. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2584. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2585. if test -n "$ac_tool_prefix"; then
  2586. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2587. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2589. $as_echo_n "checking for $ac_word... " >&6; }
  2590. if ${ac_cv_prog_CC+:} false; then :
  2591. $as_echo_n "(cached) " >&6
  2592. else
  2593. if test -n "$CC"; then
  2594. ac_cv_prog_CC="$CC" # Let the user override the test.
  2595. else
  2596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2597. for as_dir in $PATH
  2598. do
  2599. IFS=$as_save_IFS
  2600. test -z "$as_dir" && as_dir=.
  2601. for ac_exec_ext in '' $ac_executable_extensions; do
  2602. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2603. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2605. break 2
  2606. fi
  2607. done
  2608. done
  2609. IFS=$as_save_IFS
  2610. fi
  2611. fi
  2612. CC=$ac_cv_prog_CC
  2613. if test -n "$CC"; then
  2614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2615. $as_echo "$CC" >&6; }
  2616. else
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2618. $as_echo "no" >&6; }
  2619. fi
  2620. fi
  2621. if test -z "$ac_cv_prog_CC"; then
  2622. ac_ct_CC=$CC
  2623. # Extract the first word of "gcc", so it can be a program name with args.
  2624. set dummy gcc; ac_word=$2
  2625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2626. $as_echo_n "checking for $ac_word... " >&6; }
  2627. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2628. $as_echo_n "(cached) " >&6
  2629. else
  2630. if test -n "$ac_ct_CC"; then
  2631. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2632. else
  2633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2634. for as_dir in $PATH
  2635. do
  2636. IFS=$as_save_IFS
  2637. test -z "$as_dir" && as_dir=.
  2638. for ac_exec_ext in '' $ac_executable_extensions; do
  2639. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2640. ac_cv_prog_ac_ct_CC="gcc"
  2641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2642. break 2
  2643. fi
  2644. done
  2645. done
  2646. IFS=$as_save_IFS
  2647. fi
  2648. fi
  2649. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2650. if test -n "$ac_ct_CC"; then
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2652. $as_echo "$ac_ct_CC" >&6; }
  2653. else
  2654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2655. $as_echo "no" >&6; }
  2656. fi
  2657. if test "x$ac_ct_CC" = x; then
  2658. CC=""
  2659. else
  2660. case $cross_compiling:$ac_tool_warned in
  2661. yes:)
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2663. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2664. ac_tool_warned=yes ;;
  2665. esac
  2666. CC=$ac_ct_CC
  2667. fi
  2668. else
  2669. CC="$ac_cv_prog_CC"
  2670. fi
  2671. if test -z "$CC"; then
  2672. if test -n "$ac_tool_prefix"; then
  2673. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2674. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2676. $as_echo_n "checking for $ac_word... " >&6; }
  2677. if ${ac_cv_prog_CC+:} false; then :
  2678. $as_echo_n "(cached) " >&6
  2679. else
  2680. if test -n "$CC"; then
  2681. ac_cv_prog_CC="$CC" # Let the user override the test.
  2682. else
  2683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2684. for as_dir in $PATH
  2685. do
  2686. IFS=$as_save_IFS
  2687. test -z "$as_dir" && as_dir=.
  2688. for ac_exec_ext in '' $ac_executable_extensions; do
  2689. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2690. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2691. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2692. break 2
  2693. fi
  2694. done
  2695. done
  2696. IFS=$as_save_IFS
  2697. fi
  2698. fi
  2699. CC=$ac_cv_prog_CC
  2700. if test -n "$CC"; then
  2701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2702. $as_echo "$CC" >&6; }
  2703. else
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2705. $as_echo "no" >&6; }
  2706. fi
  2707. fi
  2708. fi
  2709. if test -z "$CC"; then
  2710. # Extract the first word of "cc", so it can be a program name with args.
  2711. set dummy cc; ac_word=$2
  2712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2713. $as_echo_n "checking for $ac_word... " >&6; }
  2714. if ${ac_cv_prog_CC+:} false; then :
  2715. $as_echo_n "(cached) " >&6
  2716. else
  2717. if test -n "$CC"; then
  2718. ac_cv_prog_CC="$CC" # Let the user override the test.
  2719. else
  2720. ac_prog_rejected=no
  2721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2722. for as_dir in $PATH
  2723. do
  2724. IFS=$as_save_IFS
  2725. test -z "$as_dir" && as_dir=.
  2726. for ac_exec_ext in '' $ac_executable_extensions; do
  2727. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2728. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2729. ac_prog_rejected=yes
  2730. continue
  2731. fi
  2732. ac_cv_prog_CC="cc"
  2733. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2734. break 2
  2735. fi
  2736. done
  2737. done
  2738. IFS=$as_save_IFS
  2739. if test $ac_prog_rejected = yes; then
  2740. # We found a bogon in the path, so make sure we never use it.
  2741. set dummy $ac_cv_prog_CC
  2742. shift
  2743. if test $# != 0; then
  2744. # We chose a different compiler from the bogus one.
  2745. # However, it has the same basename, so the bogon will be chosen
  2746. # first if we set CC to just the basename; use the full file name.
  2747. shift
  2748. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2749. fi
  2750. fi
  2751. fi
  2752. fi
  2753. CC=$ac_cv_prog_CC
  2754. if test -n "$CC"; then
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2756. $as_echo "$CC" >&6; }
  2757. else
  2758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2759. $as_echo "no" >&6; }
  2760. fi
  2761. fi
  2762. if test -z "$CC"; then
  2763. if test -n "$ac_tool_prefix"; then
  2764. for ac_prog in cl.exe
  2765. do
  2766. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2767. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2769. $as_echo_n "checking for $ac_word... " >&6; }
  2770. if ${ac_cv_prog_CC+:} false; then :
  2771. $as_echo_n "(cached) " >&6
  2772. else
  2773. if test -n "$CC"; then
  2774. ac_cv_prog_CC="$CC" # Let the user override the test.
  2775. else
  2776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2777. for as_dir in $PATH
  2778. do
  2779. IFS=$as_save_IFS
  2780. test -z "$as_dir" && as_dir=.
  2781. for ac_exec_ext in '' $ac_executable_extensions; do
  2782. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2783. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2785. break 2
  2786. fi
  2787. done
  2788. done
  2789. IFS=$as_save_IFS
  2790. fi
  2791. fi
  2792. CC=$ac_cv_prog_CC
  2793. if test -n "$CC"; then
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2795. $as_echo "$CC" >&6; }
  2796. else
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2798. $as_echo "no" >&6; }
  2799. fi
  2800. test -n "$CC" && break
  2801. done
  2802. fi
  2803. if test -z "$CC"; then
  2804. ac_ct_CC=$CC
  2805. for ac_prog in cl.exe
  2806. do
  2807. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2808. set dummy $ac_prog; ac_word=$2
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2810. $as_echo_n "checking for $ac_word... " >&6; }
  2811. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2812. $as_echo_n "(cached) " >&6
  2813. else
  2814. if test -n "$ac_ct_CC"; then
  2815. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2816. else
  2817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2818. for as_dir in $PATH
  2819. do
  2820. IFS=$as_save_IFS
  2821. test -z "$as_dir" && as_dir=.
  2822. for ac_exec_ext in '' $ac_executable_extensions; do
  2823. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2824. ac_cv_prog_ac_ct_CC="$ac_prog"
  2825. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2826. break 2
  2827. fi
  2828. done
  2829. done
  2830. IFS=$as_save_IFS
  2831. fi
  2832. fi
  2833. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2834. if test -n "$ac_ct_CC"; then
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2836. $as_echo "$ac_ct_CC" >&6; }
  2837. else
  2838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2839. $as_echo "no" >&6; }
  2840. fi
  2841. test -n "$ac_ct_CC" && break
  2842. done
  2843. if test "x$ac_ct_CC" = x; then
  2844. CC=""
  2845. else
  2846. case $cross_compiling:$ac_tool_warned in
  2847. yes:)
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2849. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2850. ac_tool_warned=yes ;;
  2851. esac
  2852. CC=$ac_ct_CC
  2853. fi
  2854. fi
  2855. fi
  2856. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2857. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2858. as_fn_error $? "no acceptable C compiler found in \$PATH
  2859. See \`config.log' for more details" "$LINENO" 5; }
  2860. # Provide some information about the compiler.
  2861. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2862. set X $ac_compile
  2863. ac_compiler=$2
  2864. for ac_option in --version -v -V -qversion; do
  2865. { { ac_try="$ac_compiler $ac_option >&5"
  2866. case "(($ac_try" in
  2867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2868. *) ac_try_echo=$ac_try;;
  2869. esac
  2870. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2871. $as_echo "$ac_try_echo"; } >&5
  2872. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2873. ac_status=$?
  2874. if test -s conftest.err; then
  2875. sed '10a\
  2876. ... rest of stderr output deleted ...
  2877. 10q' conftest.err >conftest.er1
  2878. cat conftest.er1 >&5
  2879. fi
  2880. rm -f conftest.er1 conftest.err
  2881. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2882. test $ac_status = 0; }
  2883. done
  2884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2885. /* end confdefs.h. */
  2886. int
  2887. main ()
  2888. {
  2889. ;
  2890. return 0;
  2891. }
  2892. _ACEOF
  2893. ac_clean_files_save=$ac_clean_files
  2894. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2895. # Try to create an executable without -o first, disregard a.out.
  2896. # It will help us diagnose broken compilers, and finding out an intuition
  2897. # of exeext.
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2899. $as_echo_n "checking whether the C compiler works... " >&6; }
  2900. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2901. # The possible output files:
  2902. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2903. ac_rmfiles=
  2904. for ac_file in $ac_files
  2905. do
  2906. case $ac_file in
  2907. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2908. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2909. esac
  2910. done
  2911. rm -f $ac_rmfiles
  2912. if { { ac_try="$ac_link_default"
  2913. case "(($ac_try" in
  2914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2915. *) ac_try_echo=$ac_try;;
  2916. esac
  2917. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2918. $as_echo "$ac_try_echo"; } >&5
  2919. (eval "$ac_link_default") 2>&5
  2920. ac_status=$?
  2921. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2922. test $ac_status = 0; }; then :
  2923. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2924. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2925. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2926. # so that the user can short-circuit this test for compilers unknown to
  2927. # Autoconf.
  2928. for ac_file in $ac_files ''
  2929. do
  2930. test -f "$ac_file" || continue
  2931. case $ac_file in
  2932. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2933. ;;
  2934. [ab].out )
  2935. # We found the default executable, but exeext='' is most
  2936. # certainly right.
  2937. break;;
  2938. *.* )
  2939. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2940. then :; else
  2941. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2942. fi
  2943. # We set ac_cv_exeext here because the later test for it is not
  2944. # safe: cross compilers may not add the suffix if given an `-o'
  2945. # argument, so we may need to know it at that point already.
  2946. # Even if this section looks crufty: it has the advantage of
  2947. # actually working.
  2948. break;;
  2949. * )
  2950. break;;
  2951. esac
  2952. done
  2953. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2954. else
  2955. ac_file=''
  2956. fi
  2957. if test -z "$ac_file"; then :
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2959. $as_echo "no" >&6; }
  2960. $as_echo "$as_me: failed program was:" >&5
  2961. sed 's/^/| /' conftest.$ac_ext >&5
  2962. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2963. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2964. as_fn_error 77 "C compiler cannot create executables
  2965. See \`config.log' for more details" "$LINENO" 5; }
  2966. else
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2968. $as_echo "yes" >&6; }
  2969. fi
  2970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2971. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2973. $as_echo "$ac_file" >&6; }
  2974. ac_exeext=$ac_cv_exeext
  2975. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2976. ac_clean_files=$ac_clean_files_save
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2978. $as_echo_n "checking for suffix of executables... " >&6; }
  2979. if { { ac_try="$ac_link"
  2980. case "(($ac_try" in
  2981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2982. *) ac_try_echo=$ac_try;;
  2983. esac
  2984. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2985. $as_echo "$ac_try_echo"; } >&5
  2986. (eval "$ac_link") 2>&5
  2987. ac_status=$?
  2988. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2989. test $ac_status = 0; }; then :
  2990. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2991. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2992. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2993. # `rm'.
  2994. for ac_file in conftest.exe conftest conftest.*; do
  2995. test -f "$ac_file" || continue
  2996. case $ac_file in
  2997. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2998. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2999. break;;
  3000. * ) break;;
  3001. esac
  3002. done
  3003. else
  3004. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3005. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3006. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3007. See \`config.log' for more details" "$LINENO" 5; }
  3008. fi
  3009. rm -f conftest conftest$ac_cv_exeext
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3011. $as_echo "$ac_cv_exeext" >&6; }
  3012. rm -f conftest.$ac_ext
  3013. EXEEXT=$ac_cv_exeext
  3014. ac_exeext=$EXEEXT
  3015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3016. /* end confdefs.h. */
  3017. #include <stdio.h>
  3018. int
  3019. main ()
  3020. {
  3021. FILE *f = fopen ("conftest.out", "w");
  3022. return ferror (f) || fclose (f) != 0;
  3023. ;
  3024. return 0;
  3025. }
  3026. _ACEOF
  3027. ac_clean_files="$ac_clean_files conftest.out"
  3028. # Check that the compiler produces executables we can run. If not, either
  3029. # the compiler is broken, or we cross compile.
  3030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3031. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3032. if test "$cross_compiling" != yes; then
  3033. { { ac_try="$ac_link"
  3034. case "(($ac_try" in
  3035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3036. *) ac_try_echo=$ac_try;;
  3037. esac
  3038. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3039. $as_echo "$ac_try_echo"; } >&5
  3040. (eval "$ac_link") 2>&5
  3041. ac_status=$?
  3042. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3043. test $ac_status = 0; }
  3044. if { ac_try='./conftest$ac_cv_exeext'
  3045. { { case "(($ac_try" in
  3046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3047. *) ac_try_echo=$ac_try;;
  3048. esac
  3049. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3050. $as_echo "$ac_try_echo"; } >&5
  3051. (eval "$ac_try") 2>&5
  3052. ac_status=$?
  3053. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3054. test $ac_status = 0; }; }; then
  3055. cross_compiling=no
  3056. else
  3057. if test "$cross_compiling" = maybe; then
  3058. cross_compiling=yes
  3059. else
  3060. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3061. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3062. as_fn_error $? "cannot run C compiled programs.
  3063. If you meant to cross compile, use \`--host'.
  3064. See \`config.log' for more details" "$LINENO" 5; }
  3065. fi
  3066. fi
  3067. fi
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3069. $as_echo "$cross_compiling" >&6; }
  3070. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3071. ac_clean_files=$ac_clean_files_save
  3072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3073. $as_echo_n "checking for suffix of object files... " >&6; }
  3074. if ${ac_cv_objext+:} false; then :
  3075. $as_echo_n "(cached) " >&6
  3076. else
  3077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3078. /* end confdefs.h. */
  3079. int
  3080. main ()
  3081. {
  3082. ;
  3083. return 0;
  3084. }
  3085. _ACEOF
  3086. rm -f conftest.o conftest.obj
  3087. if { { ac_try="$ac_compile"
  3088. case "(($ac_try" in
  3089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3090. *) ac_try_echo=$ac_try;;
  3091. esac
  3092. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3093. $as_echo "$ac_try_echo"; } >&5
  3094. (eval "$ac_compile") 2>&5
  3095. ac_status=$?
  3096. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3097. test $ac_status = 0; }; then :
  3098. for ac_file in conftest.o conftest.obj conftest.*; do
  3099. test -f "$ac_file" || continue;
  3100. case $ac_file in
  3101. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3102. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3103. break;;
  3104. esac
  3105. done
  3106. else
  3107. $as_echo "$as_me: failed program was:" >&5
  3108. sed 's/^/| /' conftest.$ac_ext >&5
  3109. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3110. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3111. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3112. See \`config.log' for more details" "$LINENO" 5; }
  3113. fi
  3114. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3115. fi
  3116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3117. $as_echo "$ac_cv_objext" >&6; }
  3118. OBJEXT=$ac_cv_objext
  3119. ac_objext=$OBJEXT
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3121. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3122. if ${ac_cv_c_compiler_gnu+:} false; then :
  3123. $as_echo_n "(cached) " >&6
  3124. else
  3125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3126. /* end confdefs.h. */
  3127. int
  3128. main ()
  3129. {
  3130. #ifndef __GNUC__
  3131. choke me
  3132. #endif
  3133. ;
  3134. return 0;
  3135. }
  3136. _ACEOF
  3137. if ac_fn_c_try_compile "$LINENO"; then :
  3138. ac_compiler_gnu=yes
  3139. else
  3140. ac_compiler_gnu=no
  3141. fi
  3142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3143. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3144. fi
  3145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3146. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3147. if test $ac_compiler_gnu = yes; then
  3148. GCC=yes
  3149. else
  3150. GCC=
  3151. fi
  3152. ac_test_CFLAGS=${CFLAGS+set}
  3153. ac_save_CFLAGS=$CFLAGS
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3155. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3156. if ${ac_cv_prog_cc_g+:} false; then :
  3157. $as_echo_n "(cached) " >&6
  3158. else
  3159. ac_save_c_werror_flag=$ac_c_werror_flag
  3160. ac_c_werror_flag=yes
  3161. ac_cv_prog_cc_g=no
  3162. CFLAGS="-g"
  3163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3164. /* end confdefs.h. */
  3165. int
  3166. main ()
  3167. {
  3168. ;
  3169. return 0;
  3170. }
  3171. _ACEOF
  3172. if ac_fn_c_try_compile "$LINENO"; then :
  3173. ac_cv_prog_cc_g=yes
  3174. else
  3175. CFLAGS=""
  3176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3177. /* end confdefs.h. */
  3178. int
  3179. main ()
  3180. {
  3181. ;
  3182. return 0;
  3183. }
  3184. _ACEOF
  3185. if ac_fn_c_try_compile "$LINENO"; then :
  3186. else
  3187. ac_c_werror_flag=$ac_save_c_werror_flag
  3188. CFLAGS="-g"
  3189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3190. /* end confdefs.h. */
  3191. int
  3192. main ()
  3193. {
  3194. ;
  3195. return 0;
  3196. }
  3197. _ACEOF
  3198. if ac_fn_c_try_compile "$LINENO"; then :
  3199. ac_cv_prog_cc_g=yes
  3200. fi
  3201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3202. fi
  3203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3204. fi
  3205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3206. ac_c_werror_flag=$ac_save_c_werror_flag
  3207. fi
  3208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3209. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3210. if test "$ac_test_CFLAGS" = set; then
  3211. CFLAGS=$ac_save_CFLAGS
  3212. elif test $ac_cv_prog_cc_g = yes; then
  3213. if test "$GCC" = yes; then
  3214. CFLAGS="-g -O2"
  3215. else
  3216. CFLAGS="-g"
  3217. fi
  3218. else
  3219. if test "$GCC" = yes; then
  3220. CFLAGS="-O2"
  3221. else
  3222. CFLAGS=
  3223. fi
  3224. fi
  3225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3226. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3227. if ${ac_cv_prog_cc_c89+:} false; then :
  3228. $as_echo_n "(cached) " >&6
  3229. else
  3230. ac_cv_prog_cc_c89=no
  3231. ac_save_CC=$CC
  3232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3233. /* end confdefs.h. */
  3234. #include <stdarg.h>
  3235. #include <stdio.h>
  3236. struct stat;
  3237. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3238. struct buf { int x; };
  3239. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3240. static char *e (p, i)
  3241. char **p;
  3242. int i;
  3243. {
  3244. return p[i];
  3245. }
  3246. static char *f (char * (*g) (char **, int), char **p, ...)
  3247. {
  3248. char *s;
  3249. va_list v;
  3250. va_start (v,p);
  3251. s = g (p, va_arg (v,int));
  3252. va_end (v);
  3253. return s;
  3254. }
  3255. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3256. function prototypes and stuff, but not '\xHH' hex character constants.
  3257. These don't provoke an error unfortunately, instead are silently treated
  3258. as 'x'. The following induces an error, until -std is added to get
  3259. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3260. array size at least. It's necessary to write '\x00'==0 to get something
  3261. that's true only with -std. */
  3262. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3263. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3264. inside strings and character constants. */
  3265. #define FOO(x) 'x'
  3266. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3267. int test (int i, double x);
  3268. struct s1 {int (*f) (int a);};
  3269. struct s2 {int (*f) (double a);};
  3270. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3271. int argc;
  3272. char **argv;
  3273. int
  3274. main ()
  3275. {
  3276. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3277. ;
  3278. return 0;
  3279. }
  3280. _ACEOF
  3281. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3282. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3283. do
  3284. CC="$ac_save_CC $ac_arg"
  3285. if ac_fn_c_try_compile "$LINENO"; then :
  3286. ac_cv_prog_cc_c89=$ac_arg
  3287. fi
  3288. rm -f core conftest.err conftest.$ac_objext
  3289. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3290. done
  3291. rm -f conftest.$ac_ext
  3292. CC=$ac_save_CC
  3293. fi
  3294. # AC_CACHE_VAL
  3295. case "x$ac_cv_prog_cc_c89" in
  3296. x)
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3298. $as_echo "none needed" >&6; } ;;
  3299. xno)
  3300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3301. $as_echo "unsupported" >&6; } ;;
  3302. *)
  3303. CC="$CC $ac_cv_prog_cc_c89"
  3304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3305. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3306. esac
  3307. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3308. fi
  3309. ac_ext=c
  3310. ac_cpp='$CPP $CPPFLAGS'
  3311. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3312. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3313. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3315. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3316. if ${ac_cv_path_SED+:} false; then :
  3317. $as_echo_n "(cached) " >&6
  3318. else
  3319. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3320. for ac_i in 1 2 3 4 5 6 7; do
  3321. ac_script="$ac_script$as_nl$ac_script"
  3322. done
  3323. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3324. { ac_script=; unset ac_script;}
  3325. if test -z "$SED"; then
  3326. ac_path_SED_found=false
  3327. # Loop through the user's path and test for each of PROGNAME-LIST
  3328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3329. for as_dir in $PATH
  3330. do
  3331. IFS=$as_save_IFS
  3332. test -z "$as_dir" && as_dir=.
  3333. for ac_prog in sed gsed; do
  3334. for ac_exec_ext in '' $ac_executable_extensions; do
  3335. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3336. as_fn_executable_p "$ac_path_SED" || continue
  3337. # Check for GNU ac_path_SED and select it if it is found.
  3338. # Check for GNU $ac_path_SED
  3339. case `"$ac_path_SED" --version 2>&1` in
  3340. *GNU*)
  3341. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3342. *)
  3343. ac_count=0
  3344. $as_echo_n 0123456789 >"conftest.in"
  3345. while :
  3346. do
  3347. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3348. mv "conftest.tmp" "conftest.in"
  3349. cp "conftest.in" "conftest.nl"
  3350. $as_echo '' >> "conftest.nl"
  3351. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3352. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3353. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3354. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3355. # Best one so far, save it but keep looking for a better one
  3356. ac_cv_path_SED="$ac_path_SED"
  3357. ac_path_SED_max=$ac_count
  3358. fi
  3359. # 10*(2^10) chars as input seems more than enough
  3360. test $ac_count -gt 10 && break
  3361. done
  3362. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3363. esac
  3364. $ac_path_SED_found && break 3
  3365. done
  3366. done
  3367. done
  3368. IFS=$as_save_IFS
  3369. if test -z "$ac_cv_path_SED"; then
  3370. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3371. fi
  3372. else
  3373. ac_cv_path_SED=$SED
  3374. fi
  3375. fi
  3376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3377. $as_echo "$ac_cv_path_SED" >&6; }
  3378. SED="$ac_cv_path_SED"
  3379. rm -f conftest.sed
  3380. test -z "$SED" && SED=sed
  3381. Xsed="$SED -e 1s/^X//"
  3382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3383. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3384. if ${ac_cv_path_GREP+:} false; then :
  3385. $as_echo_n "(cached) " >&6
  3386. else
  3387. if test -z "$GREP"; then
  3388. ac_path_GREP_found=false
  3389. # Loop through the user's path and test for each of PROGNAME-LIST
  3390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3391. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3392. do
  3393. IFS=$as_save_IFS
  3394. test -z "$as_dir" && as_dir=.
  3395. for ac_prog in grep ggrep; do
  3396. for ac_exec_ext in '' $ac_executable_extensions; do
  3397. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3398. as_fn_executable_p "$ac_path_GREP" || continue
  3399. # Check for GNU ac_path_GREP and select it if it is found.
  3400. # Check for GNU $ac_path_GREP
  3401. case `"$ac_path_GREP" --version 2>&1` in
  3402. *GNU*)
  3403. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3404. *)
  3405. ac_count=0
  3406. $as_echo_n 0123456789 >"conftest.in"
  3407. while :
  3408. do
  3409. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3410. mv "conftest.tmp" "conftest.in"
  3411. cp "conftest.in" "conftest.nl"
  3412. $as_echo 'GREP' >> "conftest.nl"
  3413. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3414. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3415. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3416. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3417. # Best one so far, save it but keep looking for a better one
  3418. ac_cv_path_GREP="$ac_path_GREP"
  3419. ac_path_GREP_max=$ac_count
  3420. fi
  3421. # 10*(2^10) chars as input seems more than enough
  3422. test $ac_count -gt 10 && break
  3423. done
  3424. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3425. esac
  3426. $ac_path_GREP_found && break 3
  3427. done
  3428. done
  3429. done
  3430. IFS=$as_save_IFS
  3431. if test -z "$ac_cv_path_GREP"; then
  3432. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3433. fi
  3434. else
  3435. ac_cv_path_GREP=$GREP
  3436. fi
  3437. fi
  3438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3439. $as_echo "$ac_cv_path_GREP" >&6; }
  3440. GREP="$ac_cv_path_GREP"
  3441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3442. $as_echo_n "checking for egrep... " >&6; }
  3443. if ${ac_cv_path_EGREP+:} false; then :
  3444. $as_echo_n "(cached) " >&6
  3445. else
  3446. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3447. then ac_cv_path_EGREP="$GREP -E"
  3448. else
  3449. if test -z "$EGREP"; then
  3450. ac_path_EGREP_found=false
  3451. # Loop through the user's path and test for each of PROGNAME-LIST
  3452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3453. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3454. do
  3455. IFS=$as_save_IFS
  3456. test -z "$as_dir" && as_dir=.
  3457. for ac_prog in egrep; do
  3458. for ac_exec_ext in '' $ac_executable_extensions; do
  3459. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3460. as_fn_executable_p "$ac_path_EGREP" || continue
  3461. # Check for GNU ac_path_EGREP and select it if it is found.
  3462. # Check for GNU $ac_path_EGREP
  3463. case `"$ac_path_EGREP" --version 2>&1` in
  3464. *GNU*)
  3465. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3466. *)
  3467. ac_count=0
  3468. $as_echo_n 0123456789 >"conftest.in"
  3469. while :
  3470. do
  3471. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3472. mv "conftest.tmp" "conftest.in"
  3473. cp "conftest.in" "conftest.nl"
  3474. $as_echo 'EGREP' >> "conftest.nl"
  3475. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3476. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3477. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3478. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3479. # Best one so far, save it but keep looking for a better one
  3480. ac_cv_path_EGREP="$ac_path_EGREP"
  3481. ac_path_EGREP_max=$ac_count
  3482. fi
  3483. # 10*(2^10) chars as input seems more than enough
  3484. test $ac_count -gt 10 && break
  3485. done
  3486. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3487. esac
  3488. $ac_path_EGREP_found && break 3
  3489. done
  3490. done
  3491. done
  3492. IFS=$as_save_IFS
  3493. if test -z "$ac_cv_path_EGREP"; then
  3494. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3495. fi
  3496. else
  3497. ac_cv_path_EGREP=$EGREP
  3498. fi
  3499. fi
  3500. fi
  3501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3502. $as_echo "$ac_cv_path_EGREP" >&6; }
  3503. EGREP="$ac_cv_path_EGREP"
  3504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3505. $as_echo_n "checking for fgrep... " >&6; }
  3506. if ${ac_cv_path_FGREP+:} false; then :
  3507. $as_echo_n "(cached) " >&6
  3508. else
  3509. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3510. then ac_cv_path_FGREP="$GREP -F"
  3511. else
  3512. if test -z "$FGREP"; then
  3513. ac_path_FGREP_found=false
  3514. # Loop through the user's path and test for each of PROGNAME-LIST
  3515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3516. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3517. do
  3518. IFS=$as_save_IFS
  3519. test -z "$as_dir" && as_dir=.
  3520. for ac_prog in fgrep; do
  3521. for ac_exec_ext in '' $ac_executable_extensions; do
  3522. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3523. as_fn_executable_p "$ac_path_FGREP" || continue
  3524. # Check for GNU ac_path_FGREP and select it if it is found.
  3525. # Check for GNU $ac_path_FGREP
  3526. case `"$ac_path_FGREP" --version 2>&1` in
  3527. *GNU*)
  3528. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3529. *)
  3530. ac_count=0
  3531. $as_echo_n 0123456789 >"conftest.in"
  3532. while :
  3533. do
  3534. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3535. mv "conftest.tmp" "conftest.in"
  3536. cp "conftest.in" "conftest.nl"
  3537. $as_echo 'FGREP' >> "conftest.nl"
  3538. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3539. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3540. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3541. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3542. # Best one so far, save it but keep looking for a better one
  3543. ac_cv_path_FGREP="$ac_path_FGREP"
  3544. ac_path_FGREP_max=$ac_count
  3545. fi
  3546. # 10*(2^10) chars as input seems more than enough
  3547. test $ac_count -gt 10 && break
  3548. done
  3549. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3550. esac
  3551. $ac_path_FGREP_found && break 3
  3552. done
  3553. done
  3554. done
  3555. IFS=$as_save_IFS
  3556. if test -z "$ac_cv_path_FGREP"; then
  3557. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3558. fi
  3559. else
  3560. ac_cv_path_FGREP=$FGREP
  3561. fi
  3562. fi
  3563. fi
  3564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3565. $as_echo "$ac_cv_path_FGREP" >&6; }
  3566. FGREP="$ac_cv_path_FGREP"
  3567. test -z "$GREP" && GREP=grep
  3568. # Check whether --with-gnu-ld was given.
  3569. if test "${with_gnu_ld+set}" = set; then :
  3570. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3571. else
  3572. with_gnu_ld=no
  3573. fi
  3574. ac_prog=ld
  3575. if test "$GCC" = yes; then
  3576. # Check if gcc -print-prog-name=ld gives a path.
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3578. $as_echo_n "checking for ld used by $CC... " >&6; }
  3579. case $host in
  3580. *-*-mingw*)
  3581. # gcc leaves a trailing carriage return which upsets mingw
  3582. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3583. *)
  3584. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3585. esac
  3586. case $ac_prog in
  3587. # Accept absolute paths.
  3588. [\\/]* | ?:[\\/]*)
  3589. re_direlt='/[^/][^/]*/\.\./'
  3590. # Canonicalize the pathname of ld
  3591. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3592. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3593. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3594. done
  3595. test -z "$LD" && LD="$ac_prog"
  3596. ;;
  3597. "")
  3598. # If it fails, then pretend we aren't using GCC.
  3599. ac_prog=ld
  3600. ;;
  3601. *)
  3602. # If it is relative, then search for the first ld in PATH.
  3603. with_gnu_ld=unknown
  3604. ;;
  3605. esac
  3606. elif test "$with_gnu_ld" = yes; then
  3607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3608. $as_echo_n "checking for GNU ld... " >&6; }
  3609. else
  3610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3611. $as_echo_n "checking for non-GNU ld... " >&6; }
  3612. fi
  3613. if ${lt_cv_path_LD+:} false; then :
  3614. $as_echo_n "(cached) " >&6
  3615. else
  3616. if test -z "$LD"; then
  3617. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3618. for ac_dir in $PATH; do
  3619. IFS="$lt_save_ifs"
  3620. test -z "$ac_dir" && ac_dir=.
  3621. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3622. lt_cv_path_LD="$ac_dir/$ac_prog"
  3623. # Check to see if the program is GNU ld. I'd rather use --version,
  3624. # but apparently some variants of GNU ld only accept -v.
  3625. # Break only if it was the GNU/non-GNU ld that we prefer.
  3626. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3627. *GNU* | *'with BFD'*)
  3628. test "$with_gnu_ld" != no && break
  3629. ;;
  3630. *)
  3631. test "$with_gnu_ld" != yes && break
  3632. ;;
  3633. esac
  3634. fi
  3635. done
  3636. IFS="$lt_save_ifs"
  3637. else
  3638. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3639. fi
  3640. fi
  3641. LD="$lt_cv_path_LD"
  3642. if test -n "$LD"; then
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3644. $as_echo "$LD" >&6; }
  3645. else
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3647. $as_echo "no" >&6; }
  3648. fi
  3649. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3651. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3652. if ${lt_cv_prog_gnu_ld+:} false; then :
  3653. $as_echo_n "(cached) " >&6
  3654. else
  3655. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3656. case `$LD -v 2>&1 </dev/null` in
  3657. *GNU* | *'with BFD'*)
  3658. lt_cv_prog_gnu_ld=yes
  3659. ;;
  3660. *)
  3661. lt_cv_prog_gnu_ld=no
  3662. ;;
  3663. esac
  3664. fi
  3665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3666. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3667. with_gnu_ld=$lt_cv_prog_gnu_ld
  3668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3669. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3670. if ${lt_cv_path_NM+:} false; then :
  3671. $as_echo_n "(cached) " >&6
  3672. else
  3673. if test -n "$NM"; then
  3674. # Let the user override the test.
  3675. lt_cv_path_NM="$NM"
  3676. else
  3677. lt_nm_to_check="${ac_tool_prefix}nm"
  3678. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3679. lt_nm_to_check="$lt_nm_to_check nm"
  3680. fi
  3681. for lt_tmp_nm in $lt_nm_to_check; do
  3682. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3683. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3684. IFS="$lt_save_ifs"
  3685. test -z "$ac_dir" && ac_dir=.
  3686. tmp_nm="$ac_dir/$lt_tmp_nm"
  3687. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3688. # Check to see if the nm accepts a BSD-compat flag.
  3689. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3690. # nm: unknown option "B" ignored
  3691. # Tru64's nm complains that /dev/null is an invalid object file
  3692. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3693. */dev/null* | *'Invalid file or object type'*)
  3694. lt_cv_path_NM="$tmp_nm -B"
  3695. break
  3696. ;;
  3697. *)
  3698. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3699. */dev/null*)
  3700. lt_cv_path_NM="$tmp_nm -p"
  3701. break
  3702. ;;
  3703. *)
  3704. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3705. continue # so that we can try to find one that supports BSD flags
  3706. ;;
  3707. esac
  3708. ;;
  3709. esac
  3710. fi
  3711. done
  3712. IFS="$lt_save_ifs"
  3713. done
  3714. : ${lt_cv_path_NM=no}
  3715. fi
  3716. fi
  3717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3718. $as_echo "$lt_cv_path_NM" >&6; }
  3719. if test "$lt_cv_path_NM" != "no"; then
  3720. NM="$lt_cv_path_NM"
  3721. else
  3722. # Didn't find any BSD compatible name lister, look for dumpbin.
  3723. if test -n "$DUMPBIN"; then :
  3724. # Let the user override the test.
  3725. else
  3726. if test -n "$ac_tool_prefix"; then
  3727. for ac_prog in dumpbin "link -dump"
  3728. do
  3729. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3730. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3732. $as_echo_n "checking for $ac_word... " >&6; }
  3733. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3734. $as_echo_n "(cached) " >&6
  3735. else
  3736. if test -n "$DUMPBIN"; then
  3737. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3738. else
  3739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3740. for as_dir in $PATH
  3741. do
  3742. IFS=$as_save_IFS
  3743. test -z "$as_dir" && as_dir=.
  3744. for ac_exec_ext in '' $ac_executable_extensions; do
  3745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3746. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3748. break 2
  3749. fi
  3750. done
  3751. done
  3752. IFS=$as_save_IFS
  3753. fi
  3754. fi
  3755. DUMPBIN=$ac_cv_prog_DUMPBIN
  3756. if test -n "$DUMPBIN"; then
  3757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3758. $as_echo "$DUMPBIN" >&6; }
  3759. else
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3761. $as_echo "no" >&6; }
  3762. fi
  3763. test -n "$DUMPBIN" && break
  3764. done
  3765. fi
  3766. if test -z "$DUMPBIN"; then
  3767. ac_ct_DUMPBIN=$DUMPBIN
  3768. for ac_prog in dumpbin "link -dump"
  3769. do
  3770. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3771. set dummy $ac_prog; ac_word=$2
  3772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3773. $as_echo_n "checking for $ac_word... " >&6; }
  3774. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3775. $as_echo_n "(cached) " >&6
  3776. else
  3777. if test -n "$ac_ct_DUMPBIN"; then
  3778. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3779. else
  3780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3781. for as_dir in $PATH
  3782. do
  3783. IFS=$as_save_IFS
  3784. test -z "$as_dir" && as_dir=.
  3785. for ac_exec_ext in '' $ac_executable_extensions; do
  3786. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3787. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3788. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3789. break 2
  3790. fi
  3791. done
  3792. done
  3793. IFS=$as_save_IFS
  3794. fi
  3795. fi
  3796. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3797. if test -n "$ac_ct_DUMPBIN"; then
  3798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3799. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3800. else
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3802. $as_echo "no" >&6; }
  3803. fi
  3804. test -n "$ac_ct_DUMPBIN" && break
  3805. done
  3806. if test "x$ac_ct_DUMPBIN" = x; then
  3807. DUMPBIN=":"
  3808. else
  3809. case $cross_compiling:$ac_tool_warned in
  3810. yes:)
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3812. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3813. ac_tool_warned=yes ;;
  3814. esac
  3815. DUMPBIN=$ac_ct_DUMPBIN
  3816. fi
  3817. fi
  3818. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3819. *COFF*)
  3820. DUMPBIN="$DUMPBIN -symbols"
  3821. ;;
  3822. *)
  3823. DUMPBIN=:
  3824. ;;
  3825. esac
  3826. fi
  3827. if test "$DUMPBIN" != ":"; then
  3828. NM="$DUMPBIN"
  3829. fi
  3830. fi
  3831. test -z "$NM" && NM=nm
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3833. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3834. if ${lt_cv_nm_interface+:} false; then :
  3835. $as_echo_n "(cached) " >&6
  3836. else
  3837. lt_cv_nm_interface="BSD nm"
  3838. echo "int some_variable = 0;" > conftest.$ac_ext
  3839. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3840. (eval "$ac_compile" 2>conftest.err)
  3841. cat conftest.err >&5
  3842. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3843. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3844. cat conftest.err >&5
  3845. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3846. cat conftest.out >&5
  3847. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3848. lt_cv_nm_interface="MS dumpbin"
  3849. fi
  3850. rm -f conftest*
  3851. fi
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3853. $as_echo "$lt_cv_nm_interface" >&6; }
  3854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3855. $as_echo_n "checking whether ln -s works... " >&6; }
  3856. LN_S=$as_ln_s
  3857. if test "$LN_S" = "ln -s"; then
  3858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3859. $as_echo "yes" >&6; }
  3860. else
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3862. $as_echo "no, using $LN_S" >&6; }
  3863. fi
  3864. # find the maximum length of command line arguments
  3865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3866. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3867. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3868. $as_echo_n "(cached) " >&6
  3869. else
  3870. i=0
  3871. teststring="ABCD"
  3872. case $build_os in
  3873. msdosdjgpp*)
  3874. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3875. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3876. # during glob expansion). Even if it were fixed, the result of this
  3877. # check would be larger than it should be.
  3878. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3879. ;;
  3880. gnu*)
  3881. # Under GNU Hurd, this test is not required because there is
  3882. # no limit to the length of command line arguments.
  3883. # Libtool will interpret -1 as no limit whatsoever
  3884. lt_cv_sys_max_cmd_len=-1;
  3885. ;;
  3886. cygwin* | mingw* | cegcc*)
  3887. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3888. # about 5 minutes as the teststring grows exponentially.
  3889. # Worse, since 9x/ME are not pre-emptively multitasking,
  3890. # you end up with a "frozen" computer, even though with patience
  3891. # the test eventually succeeds (with a max line length of 256k).
  3892. # Instead, let's just punt: use the minimum linelength reported by
  3893. # all of the supported platforms: 8192 (on NT/2K/XP).
  3894. lt_cv_sys_max_cmd_len=8192;
  3895. ;;
  3896. mint*)
  3897. # On MiNT this can take a long time and run out of memory.
  3898. lt_cv_sys_max_cmd_len=8192;
  3899. ;;
  3900. amigaos*)
  3901. # On AmigaOS with pdksh, this test takes hours, literally.
  3902. # So we just punt and use a minimum line length of 8192.
  3903. lt_cv_sys_max_cmd_len=8192;
  3904. ;;
  3905. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3906. # This has been around since 386BSD, at least. Likely further.
  3907. if test -x /sbin/sysctl; then
  3908. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3909. elif test -x /usr/sbin/sysctl; then
  3910. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3911. else
  3912. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3913. fi
  3914. # And add a safety zone
  3915. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3916. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3917. ;;
  3918. interix*)
  3919. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3920. lt_cv_sys_max_cmd_len=196608
  3921. ;;
  3922. os2*)
  3923. # The test takes a long time on OS/2.
  3924. lt_cv_sys_max_cmd_len=8192
  3925. ;;
  3926. osf*)
  3927. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3928. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3929. # nice to cause kernel panics so lets avoid the loop below.
  3930. # First set a reasonable default.
  3931. lt_cv_sys_max_cmd_len=16384
  3932. #
  3933. if test -x /sbin/sysconfig; then
  3934. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3935. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3936. esac
  3937. fi
  3938. ;;
  3939. sco3.2v5*)
  3940. lt_cv_sys_max_cmd_len=102400
  3941. ;;
  3942. sysv5* | sco5v6* | sysv4.2uw2*)
  3943. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3944. if test -n "$kargmax"; then
  3945. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3946. else
  3947. lt_cv_sys_max_cmd_len=32768
  3948. fi
  3949. ;;
  3950. *)
  3951. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3952. if test -n "$lt_cv_sys_max_cmd_len"; then
  3953. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3954. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3955. else
  3956. # Make teststring a little bigger before we do anything with it.
  3957. # a 1K string should be a reasonable start.
  3958. for i in 1 2 3 4 5 6 7 8 ; do
  3959. teststring=$teststring$teststring
  3960. done
  3961. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3962. # If test is not a shell built-in, we'll probably end up computing a
  3963. # maximum length that is only half of the actual maximum length, but
  3964. # we can't tell.
  3965. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3966. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3967. test $i != 17 # 1/2 MB should be enough
  3968. do
  3969. i=`expr $i + 1`
  3970. teststring=$teststring$teststring
  3971. done
  3972. # Only check the string length outside the loop.
  3973. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3974. teststring=
  3975. # Add a significant safety factor because C++ compilers can tack on
  3976. # massive amounts of additional arguments before passing them to the
  3977. # linker. It appears as though 1/2 is a usable value.
  3978. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3979. fi
  3980. ;;
  3981. esac
  3982. fi
  3983. if test -n $lt_cv_sys_max_cmd_len ; then
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3985. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3986. else
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3988. $as_echo "none" >&6; }
  3989. fi
  3990. max_cmd_len=$lt_cv_sys_max_cmd_len
  3991. : ${CP="cp -f"}
  3992. : ${MV="mv -f"}
  3993. : ${RM="rm -f"}
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  3995. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  3996. # Try some XSI features
  3997. xsi_shell=no
  3998. ( _lt_dummy="a/b/c"
  3999. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4000. = c,a/b,b/c, \
  4001. && eval 'test $(( 1 + 1 )) -eq 2 \
  4002. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4003. && xsi_shell=yes
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4005. $as_echo "$xsi_shell" >&6; }
  4006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4007. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4008. lt_shell_append=no
  4009. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4010. >/dev/null 2>&1 \
  4011. && lt_shell_append=yes
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4013. $as_echo "$lt_shell_append" >&6; }
  4014. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4015. lt_unset=unset
  4016. else
  4017. lt_unset=false
  4018. fi
  4019. # test EBCDIC or ASCII
  4020. case `echo X|tr X '\101'` in
  4021. A) # ASCII based system
  4022. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4023. lt_SP2NL='tr \040 \012'
  4024. lt_NL2SP='tr \015\012 \040\040'
  4025. ;;
  4026. *) # EBCDIC based system
  4027. lt_SP2NL='tr \100 \n'
  4028. lt_NL2SP='tr \r\n \100\100'
  4029. ;;
  4030. esac
  4031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4032. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4033. if ${lt_cv_to_host_file_cmd+:} false; then :
  4034. $as_echo_n "(cached) " >&6
  4035. else
  4036. case $host in
  4037. *-*-mingw* )
  4038. case $build in
  4039. *-*-mingw* ) # actually msys
  4040. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4041. ;;
  4042. *-*-cygwin* )
  4043. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4044. ;;
  4045. * ) # otherwise, assume *nix
  4046. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4047. ;;
  4048. esac
  4049. ;;
  4050. *-*-cygwin* )
  4051. case $build in
  4052. *-*-mingw* ) # actually msys
  4053. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4054. ;;
  4055. *-*-cygwin* )
  4056. lt_cv_to_host_file_cmd=func_convert_file_noop
  4057. ;;
  4058. * ) # otherwise, assume *nix
  4059. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4060. ;;
  4061. esac
  4062. ;;
  4063. * ) # unhandled hosts (and "normal" native builds)
  4064. lt_cv_to_host_file_cmd=func_convert_file_noop
  4065. ;;
  4066. esac
  4067. fi
  4068. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4070. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4072. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4073. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4074. $as_echo_n "(cached) " >&6
  4075. else
  4076. #assume ordinary cross tools, or native build.
  4077. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4078. case $host in
  4079. *-*-mingw* )
  4080. case $build in
  4081. *-*-mingw* ) # actually msys
  4082. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4083. ;;
  4084. esac
  4085. ;;
  4086. esac
  4087. fi
  4088. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4090. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4092. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4093. if ${lt_cv_ld_reload_flag+:} false; then :
  4094. $as_echo_n "(cached) " >&6
  4095. else
  4096. lt_cv_ld_reload_flag='-r'
  4097. fi
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4099. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4100. reload_flag=$lt_cv_ld_reload_flag
  4101. case $reload_flag in
  4102. "" | " "*) ;;
  4103. *) reload_flag=" $reload_flag" ;;
  4104. esac
  4105. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4106. case $host_os in
  4107. cygwin* | mingw* | pw32* | cegcc*)
  4108. if test "$GCC" != yes; then
  4109. reload_cmds=false
  4110. fi
  4111. ;;
  4112. darwin*)
  4113. if test "$GCC" = yes; then
  4114. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4115. else
  4116. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4117. fi
  4118. ;;
  4119. esac
  4120. if test -n "$ac_tool_prefix"; then
  4121. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4122. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4124. $as_echo_n "checking for $ac_word... " >&6; }
  4125. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4126. $as_echo_n "(cached) " >&6
  4127. else
  4128. if test -n "$OBJDUMP"; then
  4129. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4130. else
  4131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4132. for as_dir in $PATH
  4133. do
  4134. IFS=$as_save_IFS
  4135. test -z "$as_dir" && as_dir=.
  4136. for ac_exec_ext in '' $ac_executable_extensions; do
  4137. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4138. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4139. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4140. break 2
  4141. fi
  4142. done
  4143. done
  4144. IFS=$as_save_IFS
  4145. fi
  4146. fi
  4147. OBJDUMP=$ac_cv_prog_OBJDUMP
  4148. if test -n "$OBJDUMP"; then
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4150. $as_echo "$OBJDUMP" >&6; }
  4151. else
  4152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4153. $as_echo "no" >&6; }
  4154. fi
  4155. fi
  4156. if test -z "$ac_cv_prog_OBJDUMP"; then
  4157. ac_ct_OBJDUMP=$OBJDUMP
  4158. # Extract the first word of "objdump", so it can be a program name with args.
  4159. set dummy objdump; ac_word=$2
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4161. $as_echo_n "checking for $ac_word... " >&6; }
  4162. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4163. $as_echo_n "(cached) " >&6
  4164. else
  4165. if test -n "$ac_ct_OBJDUMP"; then
  4166. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4167. else
  4168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4169. for as_dir in $PATH
  4170. do
  4171. IFS=$as_save_IFS
  4172. test -z "$as_dir" && as_dir=.
  4173. for ac_exec_ext in '' $ac_executable_extensions; do
  4174. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4175. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4177. break 2
  4178. fi
  4179. done
  4180. done
  4181. IFS=$as_save_IFS
  4182. fi
  4183. fi
  4184. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4185. if test -n "$ac_ct_OBJDUMP"; then
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4187. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4188. else
  4189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4190. $as_echo "no" >&6; }
  4191. fi
  4192. if test "x$ac_ct_OBJDUMP" = x; then
  4193. OBJDUMP="false"
  4194. else
  4195. case $cross_compiling:$ac_tool_warned in
  4196. yes:)
  4197. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4198. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4199. ac_tool_warned=yes ;;
  4200. esac
  4201. OBJDUMP=$ac_ct_OBJDUMP
  4202. fi
  4203. else
  4204. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4205. fi
  4206. test -z "$OBJDUMP" && OBJDUMP=objdump
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4208. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4209. if ${lt_cv_deplibs_check_method+:} false; then :
  4210. $as_echo_n "(cached) " >&6
  4211. else
  4212. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4213. lt_cv_file_magic_test_file=
  4214. lt_cv_deplibs_check_method='unknown'
  4215. # Need to set the preceding variable on all platforms that support
  4216. # interlibrary dependencies.
  4217. # 'none' -- dependencies not supported.
  4218. # `unknown' -- same as none, but documents that we really don't know.
  4219. # 'pass_all' -- all dependencies passed with no checks.
  4220. # 'test_compile' -- check by making test program.
  4221. # 'file_magic [[regex]]' -- check by looking for files in library path
  4222. # which responds to the $file_magic_cmd with a given extended regex.
  4223. # If you have `file' or equivalent on your system and you're not sure
  4224. # whether `pass_all' will *always* work, you probably want this one.
  4225. case $host_os in
  4226. aix[4-9]*)
  4227. lt_cv_deplibs_check_method=pass_all
  4228. ;;
  4229. beos*)
  4230. lt_cv_deplibs_check_method=pass_all
  4231. ;;
  4232. bsdi[45]*)
  4233. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4234. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4235. lt_cv_file_magic_test_file=/shlib/libc.so
  4236. ;;
  4237. cygwin*)
  4238. # func_win32_libid is a shell function defined in ltmain.sh
  4239. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4240. lt_cv_file_magic_cmd='func_win32_libid'
  4241. lt_cv_deplibs_check_method=pass_all
  4242. ;;
  4243. mingw* | pw32*)
  4244. # Base MSYS/MinGW do not provide the 'file' command needed by
  4245. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4246. # unless we find 'file', for example because we are cross-compiling.
  4247. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4248. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4249. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4250. lt_cv_file_magic_cmd='func_win32_libid'
  4251. else
  4252. # Keep this pattern in sync with the one in func_win32_libid.
  4253. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4254. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4255. fi
  4256. lt_cv_deplibs_check_method=pass_all
  4257. ;;
  4258. cegcc*)
  4259. # use the weaker test based on 'objdump'. See mingw*.
  4260. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4261. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4262. ;;
  4263. darwin* | rhapsody*)
  4264. lt_cv_deplibs_check_method=pass_all
  4265. ;;
  4266. freebsd* | dragonfly*)
  4267. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4268. case $host_cpu in
  4269. i*86 )
  4270. # Not sure whether the presence of OpenBSD here was a mistake.
  4271. # Let's accept both of them until this is cleared up.
  4272. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4273. lt_cv_file_magic_cmd=/usr/bin/file
  4274. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4275. ;;
  4276. esac
  4277. else
  4278. lt_cv_deplibs_check_method=pass_all
  4279. fi
  4280. ;;
  4281. gnu*)
  4282. lt_cv_deplibs_check_method=pass_all
  4283. ;;
  4284. haiku*)
  4285. lt_cv_deplibs_check_method=pass_all
  4286. ;;
  4287. hpux10.20* | hpux11*)
  4288. lt_cv_file_magic_cmd=/usr/bin/file
  4289. case $host_cpu in
  4290. ia64*)
  4291. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4292. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4293. ;;
  4294. hppa*64*)
  4295. 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]'
  4296. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4297. ;;
  4298. *)
  4299. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4300. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4301. ;;
  4302. esac
  4303. ;;
  4304. interix[3-9]*)
  4305. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4306. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4307. ;;
  4308. irix5* | irix6* | nonstopux*)
  4309. case $LD in
  4310. *-32|*"-32 ") libmagic=32-bit;;
  4311. *-n32|*"-n32 ") libmagic=N32;;
  4312. *-64|*"-64 ") libmagic=64-bit;;
  4313. *) libmagic=never-match;;
  4314. esac
  4315. lt_cv_deplibs_check_method=pass_all
  4316. ;;
  4317. # This must be glibc/ELF.
  4318. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4319. lt_cv_deplibs_check_method=pass_all
  4320. ;;
  4321. netbsd*)
  4322. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4323. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4324. else
  4325. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4326. fi
  4327. ;;
  4328. newos6*)
  4329. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4330. lt_cv_file_magic_cmd=/usr/bin/file
  4331. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4332. ;;
  4333. *nto* | *qnx*)
  4334. lt_cv_deplibs_check_method=pass_all
  4335. ;;
  4336. openbsd*)
  4337. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4338. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4339. else
  4340. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4341. fi
  4342. ;;
  4343. osf3* | osf4* | osf5*)
  4344. lt_cv_deplibs_check_method=pass_all
  4345. ;;
  4346. rdos*)
  4347. lt_cv_deplibs_check_method=pass_all
  4348. ;;
  4349. solaris*)
  4350. lt_cv_deplibs_check_method=pass_all
  4351. ;;
  4352. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4353. lt_cv_deplibs_check_method=pass_all
  4354. ;;
  4355. sysv4 | sysv4.3*)
  4356. case $host_vendor in
  4357. motorola)
  4358. 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]'
  4359. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4360. ;;
  4361. ncr)
  4362. lt_cv_deplibs_check_method=pass_all
  4363. ;;
  4364. sequent)
  4365. lt_cv_file_magic_cmd='/bin/file'
  4366. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4367. ;;
  4368. sni)
  4369. lt_cv_file_magic_cmd='/bin/file'
  4370. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4371. lt_cv_file_magic_test_file=/lib/libc.so
  4372. ;;
  4373. siemens)
  4374. lt_cv_deplibs_check_method=pass_all
  4375. ;;
  4376. pc)
  4377. lt_cv_deplibs_check_method=pass_all
  4378. ;;
  4379. esac
  4380. ;;
  4381. tpf*)
  4382. lt_cv_deplibs_check_method=pass_all
  4383. ;;
  4384. esac
  4385. fi
  4386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4387. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4388. file_magic_glob=
  4389. want_nocaseglob=no
  4390. if test "$build" = "$host"; then
  4391. case $host_os in
  4392. mingw* | pw32*)
  4393. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4394. want_nocaseglob=yes
  4395. else
  4396. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4397. fi
  4398. ;;
  4399. esac
  4400. fi
  4401. file_magic_cmd=$lt_cv_file_magic_cmd
  4402. deplibs_check_method=$lt_cv_deplibs_check_method
  4403. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4404. if test -n "$ac_tool_prefix"; then
  4405. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4406. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4408. $as_echo_n "checking for $ac_word... " >&6; }
  4409. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4410. $as_echo_n "(cached) " >&6
  4411. else
  4412. if test -n "$DLLTOOL"; then
  4413. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4414. else
  4415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4416. for as_dir in $PATH
  4417. do
  4418. IFS=$as_save_IFS
  4419. test -z "$as_dir" && as_dir=.
  4420. for ac_exec_ext in '' $ac_executable_extensions; do
  4421. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4422. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4423. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4424. break 2
  4425. fi
  4426. done
  4427. done
  4428. IFS=$as_save_IFS
  4429. fi
  4430. fi
  4431. DLLTOOL=$ac_cv_prog_DLLTOOL
  4432. if test -n "$DLLTOOL"; then
  4433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4434. $as_echo "$DLLTOOL" >&6; }
  4435. else
  4436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4437. $as_echo "no" >&6; }
  4438. fi
  4439. fi
  4440. if test -z "$ac_cv_prog_DLLTOOL"; then
  4441. ac_ct_DLLTOOL=$DLLTOOL
  4442. # Extract the first word of "dlltool", so it can be a program name with args.
  4443. set dummy dlltool; ac_word=$2
  4444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4445. $as_echo_n "checking for $ac_word... " >&6; }
  4446. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4447. $as_echo_n "(cached) " >&6
  4448. else
  4449. if test -n "$ac_ct_DLLTOOL"; then
  4450. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4451. else
  4452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4453. for as_dir in $PATH
  4454. do
  4455. IFS=$as_save_IFS
  4456. test -z "$as_dir" && as_dir=.
  4457. for ac_exec_ext in '' $ac_executable_extensions; do
  4458. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4459. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4461. break 2
  4462. fi
  4463. done
  4464. done
  4465. IFS=$as_save_IFS
  4466. fi
  4467. fi
  4468. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4469. if test -n "$ac_ct_DLLTOOL"; then
  4470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4471. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4472. else
  4473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4474. $as_echo "no" >&6; }
  4475. fi
  4476. if test "x$ac_ct_DLLTOOL" = x; then
  4477. DLLTOOL="false"
  4478. else
  4479. case $cross_compiling:$ac_tool_warned in
  4480. yes:)
  4481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4482. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4483. ac_tool_warned=yes ;;
  4484. esac
  4485. DLLTOOL=$ac_ct_DLLTOOL
  4486. fi
  4487. else
  4488. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4489. fi
  4490. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4492. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4493. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4494. $as_echo_n "(cached) " >&6
  4495. else
  4496. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4497. case $host_os in
  4498. cygwin* | mingw* | pw32* | cegcc*)
  4499. # two different shell functions defined in ltmain.sh
  4500. # decide which to use based on capabilities of $DLLTOOL
  4501. case `$DLLTOOL --help 2>&1` in
  4502. *--identify-strict*)
  4503. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4504. ;;
  4505. *)
  4506. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4507. ;;
  4508. esac
  4509. ;;
  4510. *)
  4511. # fallback: assume linklib IS sharedlib
  4512. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4513. ;;
  4514. esac
  4515. fi
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4517. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4518. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4519. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4520. if test -n "$ac_tool_prefix"; then
  4521. for ac_prog in ar
  4522. do
  4523. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4524. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4526. $as_echo_n "checking for $ac_word... " >&6; }
  4527. if ${ac_cv_prog_AR+:} false; then :
  4528. $as_echo_n "(cached) " >&6
  4529. else
  4530. if test -n "$AR"; then
  4531. ac_cv_prog_AR="$AR" # Let the user override the test.
  4532. else
  4533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4534. for as_dir in $PATH
  4535. do
  4536. IFS=$as_save_IFS
  4537. test -z "$as_dir" && as_dir=.
  4538. for ac_exec_ext in '' $ac_executable_extensions; do
  4539. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4540. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4541. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4542. break 2
  4543. fi
  4544. done
  4545. done
  4546. IFS=$as_save_IFS
  4547. fi
  4548. fi
  4549. AR=$ac_cv_prog_AR
  4550. if test -n "$AR"; then
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4552. $as_echo "$AR" >&6; }
  4553. else
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4555. $as_echo "no" >&6; }
  4556. fi
  4557. test -n "$AR" && break
  4558. done
  4559. fi
  4560. if test -z "$AR"; then
  4561. ac_ct_AR=$AR
  4562. for ac_prog in ar
  4563. do
  4564. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4565. set dummy $ac_prog; ac_word=$2
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4567. $as_echo_n "checking for $ac_word... " >&6; }
  4568. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4569. $as_echo_n "(cached) " >&6
  4570. else
  4571. if test -n "$ac_ct_AR"; then
  4572. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4573. else
  4574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4575. for as_dir in $PATH
  4576. do
  4577. IFS=$as_save_IFS
  4578. test -z "$as_dir" && as_dir=.
  4579. for ac_exec_ext in '' $ac_executable_extensions; do
  4580. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4581. ac_cv_prog_ac_ct_AR="$ac_prog"
  4582. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4583. break 2
  4584. fi
  4585. done
  4586. done
  4587. IFS=$as_save_IFS
  4588. fi
  4589. fi
  4590. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4591. if test -n "$ac_ct_AR"; then
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4593. $as_echo "$ac_ct_AR" >&6; }
  4594. else
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4596. $as_echo "no" >&6; }
  4597. fi
  4598. test -n "$ac_ct_AR" && break
  4599. done
  4600. if test "x$ac_ct_AR" = x; then
  4601. AR="false"
  4602. else
  4603. case $cross_compiling:$ac_tool_warned in
  4604. yes:)
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4606. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4607. ac_tool_warned=yes ;;
  4608. esac
  4609. AR=$ac_ct_AR
  4610. fi
  4611. fi
  4612. : ${AR=ar}
  4613. : ${AR_FLAGS=cru}
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4615. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4616. if ${lt_cv_ar_at_file+:} false; then :
  4617. $as_echo_n "(cached) " >&6
  4618. else
  4619. lt_cv_ar_at_file=no
  4620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4621. /* end confdefs.h. */
  4622. int
  4623. main ()
  4624. {
  4625. ;
  4626. return 0;
  4627. }
  4628. _ACEOF
  4629. if ac_fn_c_try_compile "$LINENO"; then :
  4630. echo conftest.$ac_objext > conftest.lst
  4631. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4632. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4633. (eval $lt_ar_try) 2>&5
  4634. ac_status=$?
  4635. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4636. test $ac_status = 0; }
  4637. if test "$ac_status" -eq 0; then
  4638. # Ensure the archiver fails upon bogus file names.
  4639. rm -f conftest.$ac_objext libconftest.a
  4640. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4641. (eval $lt_ar_try) 2>&5
  4642. ac_status=$?
  4643. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4644. test $ac_status = 0; }
  4645. if test "$ac_status" -ne 0; then
  4646. lt_cv_ar_at_file=@
  4647. fi
  4648. fi
  4649. rm -f conftest.* libconftest.a
  4650. fi
  4651. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4652. fi
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4654. $as_echo "$lt_cv_ar_at_file" >&6; }
  4655. if test "x$lt_cv_ar_at_file" = xno; then
  4656. archiver_list_spec=
  4657. else
  4658. archiver_list_spec=$lt_cv_ar_at_file
  4659. fi
  4660. if test -n "$ac_tool_prefix"; then
  4661. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4662. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4664. $as_echo_n "checking for $ac_word... " >&6; }
  4665. if ${ac_cv_prog_STRIP+:} false; then :
  4666. $as_echo_n "(cached) " >&6
  4667. else
  4668. if test -n "$STRIP"; then
  4669. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4670. else
  4671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4672. for as_dir in $PATH
  4673. do
  4674. IFS=$as_save_IFS
  4675. test -z "$as_dir" && as_dir=.
  4676. for ac_exec_ext in '' $ac_executable_extensions; do
  4677. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4678. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4680. break 2
  4681. fi
  4682. done
  4683. done
  4684. IFS=$as_save_IFS
  4685. fi
  4686. fi
  4687. STRIP=$ac_cv_prog_STRIP
  4688. if test -n "$STRIP"; then
  4689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4690. $as_echo "$STRIP" >&6; }
  4691. else
  4692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4693. $as_echo "no" >&6; }
  4694. fi
  4695. fi
  4696. if test -z "$ac_cv_prog_STRIP"; then
  4697. ac_ct_STRIP=$STRIP
  4698. # Extract the first word of "strip", so it can be a program name with args.
  4699. set dummy strip; ac_word=$2
  4700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4701. $as_echo_n "checking for $ac_word... " >&6; }
  4702. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4703. $as_echo_n "(cached) " >&6
  4704. else
  4705. if test -n "$ac_ct_STRIP"; then
  4706. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4707. else
  4708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4709. for as_dir in $PATH
  4710. do
  4711. IFS=$as_save_IFS
  4712. test -z "$as_dir" && as_dir=.
  4713. for ac_exec_ext in '' $ac_executable_extensions; do
  4714. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4715. ac_cv_prog_ac_ct_STRIP="strip"
  4716. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4717. break 2
  4718. fi
  4719. done
  4720. done
  4721. IFS=$as_save_IFS
  4722. fi
  4723. fi
  4724. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4725. if test -n "$ac_ct_STRIP"; then
  4726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4727. $as_echo "$ac_ct_STRIP" >&6; }
  4728. else
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4730. $as_echo "no" >&6; }
  4731. fi
  4732. if test "x$ac_ct_STRIP" = x; then
  4733. STRIP=":"
  4734. else
  4735. case $cross_compiling:$ac_tool_warned in
  4736. yes:)
  4737. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4738. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4739. ac_tool_warned=yes ;;
  4740. esac
  4741. STRIP=$ac_ct_STRIP
  4742. fi
  4743. else
  4744. STRIP="$ac_cv_prog_STRIP"
  4745. fi
  4746. test -z "$STRIP" && STRIP=:
  4747. if test -n "$ac_tool_prefix"; then
  4748. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4749. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4751. $as_echo_n "checking for $ac_word... " >&6; }
  4752. if ${ac_cv_prog_RANLIB+:} false; then :
  4753. $as_echo_n "(cached) " >&6
  4754. else
  4755. if test -n "$RANLIB"; then
  4756. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4757. else
  4758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4759. for as_dir in $PATH
  4760. do
  4761. IFS=$as_save_IFS
  4762. test -z "$as_dir" && as_dir=.
  4763. for ac_exec_ext in '' $ac_executable_extensions; do
  4764. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4765. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4766. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4767. break 2
  4768. fi
  4769. done
  4770. done
  4771. IFS=$as_save_IFS
  4772. fi
  4773. fi
  4774. RANLIB=$ac_cv_prog_RANLIB
  4775. if test -n "$RANLIB"; then
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4777. $as_echo "$RANLIB" >&6; }
  4778. else
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4780. $as_echo "no" >&6; }
  4781. fi
  4782. fi
  4783. if test -z "$ac_cv_prog_RANLIB"; then
  4784. ac_ct_RANLIB=$RANLIB
  4785. # Extract the first word of "ranlib", so it can be a program name with args.
  4786. set dummy ranlib; ac_word=$2
  4787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4788. $as_echo_n "checking for $ac_word... " >&6; }
  4789. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4790. $as_echo_n "(cached) " >&6
  4791. else
  4792. if test -n "$ac_ct_RANLIB"; then
  4793. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4794. else
  4795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4796. for as_dir in $PATH
  4797. do
  4798. IFS=$as_save_IFS
  4799. test -z "$as_dir" && as_dir=.
  4800. for ac_exec_ext in '' $ac_executable_extensions; do
  4801. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4802. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4804. break 2
  4805. fi
  4806. done
  4807. done
  4808. IFS=$as_save_IFS
  4809. fi
  4810. fi
  4811. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4812. if test -n "$ac_ct_RANLIB"; then
  4813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4814. $as_echo "$ac_ct_RANLIB" >&6; }
  4815. else
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4817. $as_echo "no" >&6; }
  4818. fi
  4819. if test "x$ac_ct_RANLIB" = x; then
  4820. RANLIB=":"
  4821. else
  4822. case $cross_compiling:$ac_tool_warned in
  4823. yes:)
  4824. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4825. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4826. ac_tool_warned=yes ;;
  4827. esac
  4828. RANLIB=$ac_ct_RANLIB
  4829. fi
  4830. else
  4831. RANLIB="$ac_cv_prog_RANLIB"
  4832. fi
  4833. test -z "$RANLIB" && RANLIB=:
  4834. # Determine commands to create old-style static archives.
  4835. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4836. old_postinstall_cmds='chmod 644 $oldlib'
  4837. old_postuninstall_cmds=
  4838. if test -n "$RANLIB"; then
  4839. case $host_os in
  4840. openbsd*)
  4841. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4842. ;;
  4843. *)
  4844. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4845. ;;
  4846. esac
  4847. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4848. fi
  4849. case $host_os in
  4850. darwin*)
  4851. lock_old_archive_extraction=yes ;;
  4852. *)
  4853. lock_old_archive_extraction=no ;;
  4854. esac
  4855. for ac_prog in gawk mawk nawk awk
  4856. do
  4857. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4858. set dummy $ac_prog; ac_word=$2
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4860. $as_echo_n "checking for $ac_word... " >&6; }
  4861. if ${ac_cv_prog_AWK+:} false; then :
  4862. $as_echo_n "(cached) " >&6
  4863. else
  4864. if test -n "$AWK"; then
  4865. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4866. else
  4867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4868. for as_dir in $PATH
  4869. do
  4870. IFS=$as_save_IFS
  4871. test -z "$as_dir" && as_dir=.
  4872. for ac_exec_ext in '' $ac_executable_extensions; do
  4873. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4874. ac_cv_prog_AWK="$ac_prog"
  4875. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4876. break 2
  4877. fi
  4878. done
  4879. done
  4880. IFS=$as_save_IFS
  4881. fi
  4882. fi
  4883. AWK=$ac_cv_prog_AWK
  4884. if test -n "$AWK"; then
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4886. $as_echo "$AWK" >&6; }
  4887. else
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4889. $as_echo "no" >&6; }
  4890. fi
  4891. test -n "$AWK" && break
  4892. done
  4893. # If no C compiler was specified, use CC.
  4894. LTCC=${LTCC-"$CC"}
  4895. # If no C compiler flags were specified, use CFLAGS.
  4896. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4897. # Allow CC to be a program name with arguments.
  4898. compiler=$CC
  4899. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4901. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4902. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4903. $as_echo_n "(cached) " >&6
  4904. else
  4905. # These are sane defaults that work on at least a few old systems.
  4906. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4907. # Character class describing NM global symbol codes.
  4908. symcode='[BCDEGRST]'
  4909. # Regexp to match symbols that can be accessed directly from C.
  4910. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4911. # Define system-specific variables.
  4912. case $host_os in
  4913. aix*)
  4914. symcode='[BCDT]'
  4915. ;;
  4916. cygwin* | mingw* | pw32* | cegcc*)
  4917. symcode='[ABCDGISTW]'
  4918. ;;
  4919. hpux*)
  4920. if test "$host_cpu" = ia64; then
  4921. symcode='[ABCDEGRST]'
  4922. fi
  4923. ;;
  4924. irix* | nonstopux*)
  4925. symcode='[BCDEGRST]'
  4926. ;;
  4927. osf*)
  4928. symcode='[BCDEGQRST]'
  4929. ;;
  4930. solaris*)
  4931. symcode='[BDRT]'
  4932. ;;
  4933. sco3.2v5*)
  4934. symcode='[DT]'
  4935. ;;
  4936. sysv4.2uw2*)
  4937. symcode='[DT]'
  4938. ;;
  4939. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4940. symcode='[ABDT]'
  4941. ;;
  4942. sysv4)
  4943. symcode='[DFNSTU]'
  4944. ;;
  4945. esac
  4946. # If we're using GNU nm, then use its standard symbol codes.
  4947. case `$NM -V 2>&1` in
  4948. *GNU* | *'with BFD'*)
  4949. symcode='[ABCDGIRSTW]' ;;
  4950. esac
  4951. # Transform an extracted symbol line into a proper C declaration.
  4952. # Some systems (esp. on ia64) link data and code symbols differently,
  4953. # so use this general approach.
  4954. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4955. # Transform an extracted symbol line into symbol name and symbol address
  4956. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4957. 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'"
  4958. # Handle CRLF in mingw tool chain
  4959. opt_cr=
  4960. case $build_os in
  4961. mingw*)
  4962. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4963. ;;
  4964. esac
  4965. # Try without a prefix underscore, then with it.
  4966. for ac_symprfx in "" "_"; do
  4967. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4968. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4969. # Write the raw and C identifiers.
  4970. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4971. # Fake it for dumpbin and say T for any non-static function
  4972. # and D for any global variable.
  4973. # Also find C++ and __fastcall symbols from MSVC++,
  4974. # which start with @ or ?.
  4975. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4976. " {last_section=section; section=\$ 3};"\
  4977. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4978. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4979. " \$ 0!~/External *\|/{next};"\
  4980. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4981. " {if(hide[section]) next};"\
  4982. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4983. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4984. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4985. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4986. " ' prfx=^$ac_symprfx"
  4987. else
  4988. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4989. fi
  4990. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4991. # Check to see that the pipe works correctly.
  4992. pipe_works=no
  4993. rm -f conftest*
  4994. cat > conftest.$ac_ext <<_LT_EOF
  4995. #ifdef __cplusplus
  4996. extern "C" {
  4997. #endif
  4998. char nm_test_var;
  4999. void nm_test_func(void);
  5000. void nm_test_func(void){}
  5001. #ifdef __cplusplus
  5002. }
  5003. #endif
  5004. int main(){nm_test_var='a';nm_test_func();return(0);}
  5005. _LT_EOF
  5006. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5007. (eval $ac_compile) 2>&5
  5008. ac_status=$?
  5009. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5010. test $ac_status = 0; }; then
  5011. # Now try to grab the symbols.
  5012. nlist=conftest.nm
  5013. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5014. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5015. ac_status=$?
  5016. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5017. test $ac_status = 0; } && test -s "$nlist"; then
  5018. # Try sorting and uniquifying the output.
  5019. if sort "$nlist" | uniq > "$nlist"T; then
  5020. mv -f "$nlist"T "$nlist"
  5021. else
  5022. rm -f "$nlist"T
  5023. fi
  5024. # Make sure that we snagged all the symbols we need.
  5025. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5026. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5027. cat <<_LT_EOF > conftest.$ac_ext
  5028. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5029. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5030. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5031. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5032. # define LT_DLSYM_CONST
  5033. #elif defined(__osf__)
  5034. /* This system does not cope well with relocations in const data. */
  5035. # define LT_DLSYM_CONST
  5036. #else
  5037. # define LT_DLSYM_CONST const
  5038. #endif
  5039. #ifdef __cplusplus
  5040. extern "C" {
  5041. #endif
  5042. _LT_EOF
  5043. # Now generate the symbol file.
  5044. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5045. cat <<_LT_EOF >> conftest.$ac_ext
  5046. /* The mapping between symbol names and symbols. */
  5047. LT_DLSYM_CONST struct {
  5048. const char *name;
  5049. void *address;
  5050. }
  5051. lt__PROGRAM__LTX_preloaded_symbols[] =
  5052. {
  5053. { "@PROGRAM@", (void *) 0 },
  5054. _LT_EOF
  5055. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5056. cat <<\_LT_EOF >> conftest.$ac_ext
  5057. {0, (void *) 0}
  5058. };
  5059. /* This works around a problem in FreeBSD linker */
  5060. #ifdef FREEBSD_WORKAROUND
  5061. static const void *lt_preloaded_setup() {
  5062. return lt__PROGRAM__LTX_preloaded_symbols;
  5063. }
  5064. #endif
  5065. #ifdef __cplusplus
  5066. }
  5067. #endif
  5068. _LT_EOF
  5069. # Now try linking the two files.
  5070. mv conftest.$ac_objext conftstm.$ac_objext
  5071. lt_globsym_save_LIBS=$LIBS
  5072. lt_globsym_save_CFLAGS=$CFLAGS
  5073. LIBS="conftstm.$ac_objext"
  5074. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5075. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5076. (eval $ac_link) 2>&5
  5077. ac_status=$?
  5078. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5079. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5080. pipe_works=yes
  5081. fi
  5082. LIBS=$lt_globsym_save_LIBS
  5083. CFLAGS=$lt_globsym_save_CFLAGS
  5084. else
  5085. echo "cannot find nm_test_func in $nlist" >&5
  5086. fi
  5087. else
  5088. echo "cannot find nm_test_var in $nlist" >&5
  5089. fi
  5090. else
  5091. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5092. fi
  5093. else
  5094. echo "$progname: failed program was:" >&5
  5095. cat conftest.$ac_ext >&5
  5096. fi
  5097. rm -rf conftest* conftst*
  5098. # Do not use the global_symbol_pipe unless it works.
  5099. if test "$pipe_works" = yes; then
  5100. break
  5101. else
  5102. lt_cv_sys_global_symbol_pipe=
  5103. fi
  5104. done
  5105. fi
  5106. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5107. lt_cv_sys_global_symbol_to_cdecl=
  5108. fi
  5109. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5111. $as_echo "failed" >&6; }
  5112. else
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5114. $as_echo "ok" >&6; }
  5115. fi
  5116. # Response file support.
  5117. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5118. nm_file_list_spec='@'
  5119. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5120. nm_file_list_spec='@'
  5121. fi
  5122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5123. $as_echo_n "checking for sysroot... " >&6; }
  5124. # Check whether --with-sysroot was given.
  5125. if test "${with_sysroot+set}" = set; then :
  5126. withval=$with_sysroot;
  5127. else
  5128. with_sysroot=no
  5129. fi
  5130. lt_sysroot=
  5131. case ${with_sysroot} in #(
  5132. yes)
  5133. if test "$GCC" = yes; then
  5134. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5135. fi
  5136. ;; #(
  5137. /*)
  5138. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5139. ;; #(
  5140. no|'')
  5141. ;; #(
  5142. *)
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5144. $as_echo "${with_sysroot}" >&6; }
  5145. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5146. ;;
  5147. esac
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5149. $as_echo "${lt_sysroot:-no}" >&6; }
  5150. # Check whether --enable-libtool-lock was given.
  5151. if test "${enable_libtool_lock+set}" = set; then :
  5152. enableval=$enable_libtool_lock;
  5153. fi
  5154. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5155. # Some flags need to be propagated to the compiler or linker for good
  5156. # libtool support.
  5157. case $host in
  5158. ia64-*-hpux*)
  5159. # Find out which ABI we are using.
  5160. echo 'int i;' > conftest.$ac_ext
  5161. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5162. (eval $ac_compile) 2>&5
  5163. ac_status=$?
  5164. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5165. test $ac_status = 0; }; then
  5166. case `/usr/bin/file conftest.$ac_objext` in
  5167. *ELF-32*)
  5168. HPUX_IA64_MODE="32"
  5169. ;;
  5170. *ELF-64*)
  5171. HPUX_IA64_MODE="64"
  5172. ;;
  5173. esac
  5174. fi
  5175. rm -rf conftest*
  5176. ;;
  5177. *-*-irix6*)
  5178. # Find out which ABI we are using.
  5179. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5180. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5181. (eval $ac_compile) 2>&5
  5182. ac_status=$?
  5183. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5184. test $ac_status = 0; }; then
  5185. if test "$lt_cv_prog_gnu_ld" = yes; then
  5186. case `/usr/bin/file conftest.$ac_objext` in
  5187. *32-bit*)
  5188. LD="${LD-ld} -melf32bsmip"
  5189. ;;
  5190. *N32*)
  5191. LD="${LD-ld} -melf32bmipn32"
  5192. ;;
  5193. *64-bit*)
  5194. LD="${LD-ld} -melf64bmip"
  5195. ;;
  5196. esac
  5197. else
  5198. case `/usr/bin/file conftest.$ac_objext` in
  5199. *32-bit*)
  5200. LD="${LD-ld} -32"
  5201. ;;
  5202. *N32*)
  5203. LD="${LD-ld} -n32"
  5204. ;;
  5205. *64-bit*)
  5206. LD="${LD-ld} -64"
  5207. ;;
  5208. esac
  5209. fi
  5210. fi
  5211. rm -rf conftest*
  5212. ;;
  5213. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5214. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5215. # Find out which ABI we are using.
  5216. echo 'int i;' > conftest.$ac_ext
  5217. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5218. (eval $ac_compile) 2>&5
  5219. ac_status=$?
  5220. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5221. test $ac_status = 0; }; then
  5222. case `/usr/bin/file conftest.o` in
  5223. *32-bit*)
  5224. case $host in
  5225. x86_64-*kfreebsd*-gnu)
  5226. LD="${LD-ld} -m elf_i386_fbsd"
  5227. ;;
  5228. x86_64-*linux*)
  5229. LD="${LD-ld} -m elf_i386"
  5230. ;;
  5231. ppc64-*linux*|powerpc64-*linux*)
  5232. LD="${LD-ld} -m elf32ppclinux"
  5233. ;;
  5234. s390x-*linux*)
  5235. LD="${LD-ld} -m elf_s390"
  5236. ;;
  5237. sparc64-*linux*)
  5238. LD="${LD-ld} -m elf32_sparc"
  5239. ;;
  5240. esac
  5241. ;;
  5242. *64-bit*)
  5243. case $host in
  5244. x86_64-*kfreebsd*-gnu)
  5245. LD="${LD-ld} -m elf_x86_64_fbsd"
  5246. ;;
  5247. x86_64-*linux*)
  5248. LD="${LD-ld} -m elf_x86_64"
  5249. ;;
  5250. ppc*-*linux*|powerpc*-*linux*)
  5251. LD="${LD-ld} -m elf64ppc"
  5252. ;;
  5253. s390*-*linux*|s390*-*tpf*)
  5254. LD="${LD-ld} -m elf64_s390"
  5255. ;;
  5256. sparc*-*linux*)
  5257. LD="${LD-ld} -m elf64_sparc"
  5258. ;;
  5259. esac
  5260. ;;
  5261. esac
  5262. fi
  5263. rm -rf conftest*
  5264. ;;
  5265. *-*-sco3.2v5*)
  5266. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5267. SAVE_CFLAGS="$CFLAGS"
  5268. CFLAGS="$CFLAGS -belf"
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5270. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5271. if ${lt_cv_cc_needs_belf+:} false; then :
  5272. $as_echo_n "(cached) " >&6
  5273. else
  5274. ac_ext=c
  5275. ac_cpp='$CPP $CPPFLAGS'
  5276. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5277. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5278. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5280. /* end confdefs.h. */
  5281. int
  5282. main ()
  5283. {
  5284. ;
  5285. return 0;
  5286. }
  5287. _ACEOF
  5288. if ac_fn_c_try_link "$LINENO"; then :
  5289. lt_cv_cc_needs_belf=yes
  5290. else
  5291. lt_cv_cc_needs_belf=no
  5292. fi
  5293. rm -f core conftest.err conftest.$ac_objext \
  5294. conftest$ac_exeext conftest.$ac_ext
  5295. ac_ext=c
  5296. ac_cpp='$CPP $CPPFLAGS'
  5297. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5298. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5299. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5300. fi
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5302. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5303. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5304. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5305. CFLAGS="$SAVE_CFLAGS"
  5306. fi
  5307. ;;
  5308. *-*solaris*)
  5309. # Find out which ABI we are using.
  5310. echo 'int i;' > conftest.$ac_ext
  5311. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5312. (eval $ac_compile) 2>&5
  5313. ac_status=$?
  5314. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5315. test $ac_status = 0; }; then
  5316. case `/usr/bin/file conftest.o` in
  5317. *64-bit*)
  5318. case $lt_cv_prog_gnu_ld in
  5319. yes*)
  5320. case $host in
  5321. i?86-*-solaris*)
  5322. LD="${LD-ld} -m elf_x86_64"
  5323. ;;
  5324. sparc*-*-solaris*)
  5325. LD="${LD-ld} -m elf64_sparc"
  5326. ;;
  5327. esac
  5328. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5329. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5330. LD="${LD-ld}_sol2"
  5331. fi
  5332. ;;
  5333. *)
  5334. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5335. LD="${LD-ld} -64"
  5336. fi
  5337. ;;
  5338. esac
  5339. ;;
  5340. esac
  5341. fi
  5342. rm -rf conftest*
  5343. ;;
  5344. esac
  5345. need_locks="$enable_libtool_lock"
  5346. if test -n "$ac_tool_prefix"; then
  5347. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5348. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5350. $as_echo_n "checking for $ac_word... " >&6; }
  5351. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5352. $as_echo_n "(cached) " >&6
  5353. else
  5354. if test -n "$MANIFEST_TOOL"; then
  5355. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5356. else
  5357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5358. for as_dir in $PATH
  5359. do
  5360. IFS=$as_save_IFS
  5361. test -z "$as_dir" && as_dir=.
  5362. for ac_exec_ext in '' $ac_executable_extensions; do
  5363. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5364. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5365. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5366. break 2
  5367. fi
  5368. done
  5369. done
  5370. IFS=$as_save_IFS
  5371. fi
  5372. fi
  5373. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5374. if test -n "$MANIFEST_TOOL"; then
  5375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5376. $as_echo "$MANIFEST_TOOL" >&6; }
  5377. else
  5378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5379. $as_echo "no" >&6; }
  5380. fi
  5381. fi
  5382. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5383. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5384. # Extract the first word of "mt", so it can be a program name with args.
  5385. set dummy mt; ac_word=$2
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5387. $as_echo_n "checking for $ac_word... " >&6; }
  5388. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5389. $as_echo_n "(cached) " >&6
  5390. else
  5391. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5392. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5393. else
  5394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5395. for as_dir in $PATH
  5396. do
  5397. IFS=$as_save_IFS
  5398. test -z "$as_dir" && as_dir=.
  5399. for ac_exec_ext in '' $ac_executable_extensions; do
  5400. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5401. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5402. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5403. break 2
  5404. fi
  5405. done
  5406. done
  5407. IFS=$as_save_IFS
  5408. fi
  5409. fi
  5410. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5411. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5413. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5414. else
  5415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5416. $as_echo "no" >&6; }
  5417. fi
  5418. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5419. MANIFEST_TOOL=":"
  5420. else
  5421. case $cross_compiling:$ac_tool_warned in
  5422. yes:)
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5424. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5425. ac_tool_warned=yes ;;
  5426. esac
  5427. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5428. fi
  5429. else
  5430. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5431. fi
  5432. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5434. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5435. if ${lt_cv_path_mainfest_tool+:} false; then :
  5436. $as_echo_n "(cached) " >&6
  5437. else
  5438. lt_cv_path_mainfest_tool=no
  5439. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5440. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5441. cat conftest.err >&5
  5442. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5443. lt_cv_path_mainfest_tool=yes
  5444. fi
  5445. rm -f conftest*
  5446. fi
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5448. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5449. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5450. MANIFEST_TOOL=:
  5451. fi
  5452. case $host_os in
  5453. rhapsody* | darwin*)
  5454. if test -n "$ac_tool_prefix"; then
  5455. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5456. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5458. $as_echo_n "checking for $ac_word... " >&6; }
  5459. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5460. $as_echo_n "(cached) " >&6
  5461. else
  5462. if test -n "$DSYMUTIL"; then
  5463. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5464. else
  5465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5466. for as_dir in $PATH
  5467. do
  5468. IFS=$as_save_IFS
  5469. test -z "$as_dir" && as_dir=.
  5470. for ac_exec_ext in '' $ac_executable_extensions; do
  5471. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5472. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5473. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5474. break 2
  5475. fi
  5476. done
  5477. done
  5478. IFS=$as_save_IFS
  5479. fi
  5480. fi
  5481. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5482. if test -n "$DSYMUTIL"; then
  5483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5484. $as_echo "$DSYMUTIL" >&6; }
  5485. else
  5486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5487. $as_echo "no" >&6; }
  5488. fi
  5489. fi
  5490. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5491. ac_ct_DSYMUTIL=$DSYMUTIL
  5492. # Extract the first word of "dsymutil", so it can be a program name with args.
  5493. set dummy dsymutil; ac_word=$2
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5495. $as_echo_n "checking for $ac_word... " >&6; }
  5496. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5497. $as_echo_n "(cached) " >&6
  5498. else
  5499. if test -n "$ac_ct_DSYMUTIL"; then
  5500. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5501. else
  5502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5503. for as_dir in $PATH
  5504. do
  5505. IFS=$as_save_IFS
  5506. test -z "$as_dir" && as_dir=.
  5507. for ac_exec_ext in '' $ac_executable_extensions; do
  5508. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5509. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5511. break 2
  5512. fi
  5513. done
  5514. done
  5515. IFS=$as_save_IFS
  5516. fi
  5517. fi
  5518. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5519. if test -n "$ac_ct_DSYMUTIL"; then
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5521. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5522. else
  5523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5524. $as_echo "no" >&6; }
  5525. fi
  5526. if test "x$ac_ct_DSYMUTIL" = x; then
  5527. DSYMUTIL=":"
  5528. else
  5529. case $cross_compiling:$ac_tool_warned in
  5530. yes:)
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5532. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5533. ac_tool_warned=yes ;;
  5534. esac
  5535. DSYMUTIL=$ac_ct_DSYMUTIL
  5536. fi
  5537. else
  5538. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5539. fi
  5540. if test -n "$ac_tool_prefix"; then
  5541. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5542. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5544. $as_echo_n "checking for $ac_word... " >&6; }
  5545. if ${ac_cv_prog_NMEDIT+:} false; then :
  5546. $as_echo_n "(cached) " >&6
  5547. else
  5548. if test -n "$NMEDIT"; then
  5549. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5550. else
  5551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5552. for as_dir in $PATH
  5553. do
  5554. IFS=$as_save_IFS
  5555. test -z "$as_dir" && as_dir=.
  5556. for ac_exec_ext in '' $ac_executable_extensions; do
  5557. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5558. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5560. break 2
  5561. fi
  5562. done
  5563. done
  5564. IFS=$as_save_IFS
  5565. fi
  5566. fi
  5567. NMEDIT=$ac_cv_prog_NMEDIT
  5568. if test -n "$NMEDIT"; then
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5570. $as_echo "$NMEDIT" >&6; }
  5571. else
  5572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5573. $as_echo "no" >&6; }
  5574. fi
  5575. fi
  5576. if test -z "$ac_cv_prog_NMEDIT"; then
  5577. ac_ct_NMEDIT=$NMEDIT
  5578. # Extract the first word of "nmedit", so it can be a program name with args.
  5579. set dummy nmedit; ac_word=$2
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5581. $as_echo_n "checking for $ac_word... " >&6; }
  5582. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5583. $as_echo_n "(cached) " >&6
  5584. else
  5585. if test -n "$ac_ct_NMEDIT"; then
  5586. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5587. else
  5588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5589. for as_dir in $PATH
  5590. do
  5591. IFS=$as_save_IFS
  5592. test -z "$as_dir" && as_dir=.
  5593. for ac_exec_ext in '' $ac_executable_extensions; do
  5594. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5595. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5597. break 2
  5598. fi
  5599. done
  5600. done
  5601. IFS=$as_save_IFS
  5602. fi
  5603. fi
  5604. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5605. if test -n "$ac_ct_NMEDIT"; then
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5607. $as_echo "$ac_ct_NMEDIT" >&6; }
  5608. else
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5610. $as_echo "no" >&6; }
  5611. fi
  5612. if test "x$ac_ct_NMEDIT" = x; then
  5613. NMEDIT=":"
  5614. else
  5615. case $cross_compiling:$ac_tool_warned in
  5616. yes:)
  5617. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5618. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5619. ac_tool_warned=yes ;;
  5620. esac
  5621. NMEDIT=$ac_ct_NMEDIT
  5622. fi
  5623. else
  5624. NMEDIT="$ac_cv_prog_NMEDIT"
  5625. fi
  5626. if test -n "$ac_tool_prefix"; then
  5627. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5628. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5630. $as_echo_n "checking for $ac_word... " >&6; }
  5631. if ${ac_cv_prog_LIPO+:} false; then :
  5632. $as_echo_n "(cached) " >&6
  5633. else
  5634. if test -n "$LIPO"; then
  5635. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5636. else
  5637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5638. for as_dir in $PATH
  5639. do
  5640. IFS=$as_save_IFS
  5641. test -z "$as_dir" && as_dir=.
  5642. for ac_exec_ext in '' $ac_executable_extensions; do
  5643. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5644. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5645. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5646. break 2
  5647. fi
  5648. done
  5649. done
  5650. IFS=$as_save_IFS
  5651. fi
  5652. fi
  5653. LIPO=$ac_cv_prog_LIPO
  5654. if test -n "$LIPO"; then
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5656. $as_echo "$LIPO" >&6; }
  5657. else
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5659. $as_echo "no" >&6; }
  5660. fi
  5661. fi
  5662. if test -z "$ac_cv_prog_LIPO"; then
  5663. ac_ct_LIPO=$LIPO
  5664. # Extract the first word of "lipo", so it can be a program name with args.
  5665. set dummy lipo; ac_word=$2
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5667. $as_echo_n "checking for $ac_word... " >&6; }
  5668. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5669. $as_echo_n "(cached) " >&6
  5670. else
  5671. if test -n "$ac_ct_LIPO"; then
  5672. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5673. else
  5674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5675. for as_dir in $PATH
  5676. do
  5677. IFS=$as_save_IFS
  5678. test -z "$as_dir" && as_dir=.
  5679. for ac_exec_ext in '' $ac_executable_extensions; do
  5680. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5681. ac_cv_prog_ac_ct_LIPO="lipo"
  5682. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5683. break 2
  5684. fi
  5685. done
  5686. done
  5687. IFS=$as_save_IFS
  5688. fi
  5689. fi
  5690. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5691. if test -n "$ac_ct_LIPO"; then
  5692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5693. $as_echo "$ac_ct_LIPO" >&6; }
  5694. else
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5696. $as_echo "no" >&6; }
  5697. fi
  5698. if test "x$ac_ct_LIPO" = x; then
  5699. LIPO=":"
  5700. else
  5701. case $cross_compiling:$ac_tool_warned in
  5702. yes:)
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5704. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5705. ac_tool_warned=yes ;;
  5706. esac
  5707. LIPO=$ac_ct_LIPO
  5708. fi
  5709. else
  5710. LIPO="$ac_cv_prog_LIPO"
  5711. fi
  5712. if test -n "$ac_tool_prefix"; then
  5713. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5714. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5716. $as_echo_n "checking for $ac_word... " >&6; }
  5717. if ${ac_cv_prog_OTOOL+:} false; then :
  5718. $as_echo_n "(cached) " >&6
  5719. else
  5720. if test -n "$OTOOL"; then
  5721. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5722. else
  5723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5724. for as_dir in $PATH
  5725. do
  5726. IFS=$as_save_IFS
  5727. test -z "$as_dir" && as_dir=.
  5728. for ac_exec_ext in '' $ac_executable_extensions; do
  5729. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5730. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5731. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5732. break 2
  5733. fi
  5734. done
  5735. done
  5736. IFS=$as_save_IFS
  5737. fi
  5738. fi
  5739. OTOOL=$ac_cv_prog_OTOOL
  5740. if test -n "$OTOOL"; then
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5742. $as_echo "$OTOOL" >&6; }
  5743. else
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5745. $as_echo "no" >&6; }
  5746. fi
  5747. fi
  5748. if test -z "$ac_cv_prog_OTOOL"; then
  5749. ac_ct_OTOOL=$OTOOL
  5750. # Extract the first word of "otool", so it can be a program name with args.
  5751. set dummy otool; ac_word=$2
  5752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5753. $as_echo_n "checking for $ac_word... " >&6; }
  5754. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5755. $as_echo_n "(cached) " >&6
  5756. else
  5757. if test -n "$ac_ct_OTOOL"; then
  5758. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5759. else
  5760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5761. for as_dir in $PATH
  5762. do
  5763. IFS=$as_save_IFS
  5764. test -z "$as_dir" && as_dir=.
  5765. for ac_exec_ext in '' $ac_executable_extensions; do
  5766. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5767. ac_cv_prog_ac_ct_OTOOL="otool"
  5768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5769. break 2
  5770. fi
  5771. done
  5772. done
  5773. IFS=$as_save_IFS
  5774. fi
  5775. fi
  5776. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5777. if test -n "$ac_ct_OTOOL"; then
  5778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5779. $as_echo "$ac_ct_OTOOL" >&6; }
  5780. else
  5781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5782. $as_echo "no" >&6; }
  5783. fi
  5784. if test "x$ac_ct_OTOOL" = x; then
  5785. OTOOL=":"
  5786. else
  5787. case $cross_compiling:$ac_tool_warned in
  5788. yes:)
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5790. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5791. ac_tool_warned=yes ;;
  5792. esac
  5793. OTOOL=$ac_ct_OTOOL
  5794. fi
  5795. else
  5796. OTOOL="$ac_cv_prog_OTOOL"
  5797. fi
  5798. if test -n "$ac_tool_prefix"; then
  5799. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5800. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5802. $as_echo_n "checking for $ac_word... " >&6; }
  5803. if ${ac_cv_prog_OTOOL64+:} false; then :
  5804. $as_echo_n "(cached) " >&6
  5805. else
  5806. if test -n "$OTOOL64"; then
  5807. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5808. else
  5809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5810. for as_dir in $PATH
  5811. do
  5812. IFS=$as_save_IFS
  5813. test -z "$as_dir" && as_dir=.
  5814. for ac_exec_ext in '' $ac_executable_extensions; do
  5815. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5816. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5817. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5818. break 2
  5819. fi
  5820. done
  5821. done
  5822. IFS=$as_save_IFS
  5823. fi
  5824. fi
  5825. OTOOL64=$ac_cv_prog_OTOOL64
  5826. if test -n "$OTOOL64"; then
  5827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5828. $as_echo "$OTOOL64" >&6; }
  5829. else
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5831. $as_echo "no" >&6; }
  5832. fi
  5833. fi
  5834. if test -z "$ac_cv_prog_OTOOL64"; then
  5835. ac_ct_OTOOL64=$OTOOL64
  5836. # Extract the first word of "otool64", so it can be a program name with args.
  5837. set dummy otool64; ac_word=$2
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5839. $as_echo_n "checking for $ac_word... " >&6; }
  5840. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5841. $as_echo_n "(cached) " >&6
  5842. else
  5843. if test -n "$ac_ct_OTOOL64"; then
  5844. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5845. else
  5846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5847. for as_dir in $PATH
  5848. do
  5849. IFS=$as_save_IFS
  5850. test -z "$as_dir" && as_dir=.
  5851. for ac_exec_ext in '' $ac_executable_extensions; do
  5852. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5853. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5855. break 2
  5856. fi
  5857. done
  5858. done
  5859. IFS=$as_save_IFS
  5860. fi
  5861. fi
  5862. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5863. if test -n "$ac_ct_OTOOL64"; then
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5865. $as_echo "$ac_ct_OTOOL64" >&6; }
  5866. else
  5867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5868. $as_echo "no" >&6; }
  5869. fi
  5870. if test "x$ac_ct_OTOOL64" = x; then
  5871. OTOOL64=":"
  5872. else
  5873. case $cross_compiling:$ac_tool_warned in
  5874. yes:)
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5876. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5877. ac_tool_warned=yes ;;
  5878. esac
  5879. OTOOL64=$ac_ct_OTOOL64
  5880. fi
  5881. else
  5882. OTOOL64="$ac_cv_prog_OTOOL64"
  5883. fi
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5885. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5886. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5887. $as_echo_n "(cached) " >&6
  5888. else
  5889. lt_cv_apple_cc_single_mod=no
  5890. if test -z "${LT_MULTI_MODULE}"; then
  5891. # By default we will add the -single_module flag. You can override
  5892. # by either setting the environment variable LT_MULTI_MODULE
  5893. # non-empty at configure time, or by adding -multi_module to the
  5894. # link flags.
  5895. rm -rf libconftest.dylib*
  5896. echo "int foo(void){return 1;}" > conftest.c
  5897. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5898. -dynamiclib -Wl,-single_module conftest.c" >&5
  5899. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5900. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5901. _lt_result=$?
  5902. # If there is a non-empty error log, and "single_module"
  5903. # appears in it, assume the flag caused a linker warning
  5904. if test -s conftest.err && $GREP single_module conftest.err; then
  5905. cat conftest.err >&5
  5906. # Otherwise, if the output was created with a 0 exit code from
  5907. # the compiler, it worked.
  5908. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5909. lt_cv_apple_cc_single_mod=yes
  5910. else
  5911. cat conftest.err >&5
  5912. fi
  5913. rm -rf libconftest.dylib*
  5914. rm -f conftest.*
  5915. fi
  5916. fi
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5918. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5920. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5921. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5922. $as_echo_n "(cached) " >&6
  5923. else
  5924. lt_cv_ld_exported_symbols_list=no
  5925. save_LDFLAGS=$LDFLAGS
  5926. echo "_main" > conftest.sym
  5927. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5929. /* end confdefs.h. */
  5930. int
  5931. main ()
  5932. {
  5933. ;
  5934. return 0;
  5935. }
  5936. _ACEOF
  5937. if ac_fn_c_try_link "$LINENO"; then :
  5938. lt_cv_ld_exported_symbols_list=yes
  5939. else
  5940. lt_cv_ld_exported_symbols_list=no
  5941. fi
  5942. rm -f core conftest.err conftest.$ac_objext \
  5943. conftest$ac_exeext conftest.$ac_ext
  5944. LDFLAGS="$save_LDFLAGS"
  5945. fi
  5946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5947. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5949. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5950. if ${lt_cv_ld_force_load+:} false; then :
  5951. $as_echo_n "(cached) " >&6
  5952. else
  5953. lt_cv_ld_force_load=no
  5954. cat > conftest.c << _LT_EOF
  5955. int forced_loaded() { return 2;}
  5956. _LT_EOF
  5957. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5958. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5959. echo "$AR cru libconftest.a conftest.o" >&5
  5960. $AR cru libconftest.a conftest.o 2>&5
  5961. echo "$RANLIB libconftest.a" >&5
  5962. $RANLIB libconftest.a 2>&5
  5963. cat > conftest.c << _LT_EOF
  5964. int main() { return 0;}
  5965. _LT_EOF
  5966. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5967. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5968. _lt_result=$?
  5969. if test -s conftest.err && $GREP force_load conftest.err; then
  5970. cat conftest.err >&5
  5971. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  5972. lt_cv_ld_force_load=yes
  5973. else
  5974. cat conftest.err >&5
  5975. fi
  5976. rm -f conftest.err libconftest.a conftest conftest.c
  5977. rm -rf conftest.dSYM
  5978. fi
  5979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5980. $as_echo "$lt_cv_ld_force_load" >&6; }
  5981. case $host_os in
  5982. rhapsody* | darwin1.[012])
  5983. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5984. darwin1.*)
  5985. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5986. darwin*) # darwin 5.x on
  5987. # if running on 10.5 or later, the deployment target defaults
  5988. # to the OS version, if on x86, and 10.4, the deployment
  5989. # target defaults to 10.4. Don't you love it?
  5990. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5991. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5992. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5993. 10.[012]*)
  5994. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5995. 10.*)
  5996. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5997. esac
  5998. ;;
  5999. esac
  6000. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6001. _lt_dar_single_mod='$single_module'
  6002. fi
  6003. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6004. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6005. else
  6006. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6007. fi
  6008. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6009. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6010. else
  6011. _lt_dsymutil=
  6012. fi
  6013. ;;
  6014. esac
  6015. ac_ext=c
  6016. ac_cpp='$CPP $CPPFLAGS'
  6017. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6018. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6019. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6021. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6022. # On Suns, sometimes $CPP names a directory.
  6023. if test -n "$CPP" && test -d "$CPP"; then
  6024. CPP=
  6025. fi
  6026. if test -z "$CPP"; then
  6027. if ${ac_cv_prog_CPP+:} false; then :
  6028. $as_echo_n "(cached) " >&6
  6029. else
  6030. # Double quotes because CPP needs to be expanded
  6031. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6032. do
  6033. ac_preproc_ok=false
  6034. for ac_c_preproc_warn_flag in '' yes
  6035. do
  6036. # Use a header file that comes with gcc, so configuring glibc
  6037. # with a fresh cross-compiler works.
  6038. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6039. # <limits.h> exists even on freestanding compilers.
  6040. # On the NeXT, cc -E runs the code through the compiler's parser,
  6041. # not just through cpp. "Syntax error" is here to catch this case.
  6042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6043. /* end confdefs.h. */
  6044. #ifdef __STDC__
  6045. # include <limits.h>
  6046. #else
  6047. # include <assert.h>
  6048. #endif
  6049. Syntax error
  6050. _ACEOF
  6051. if ac_fn_c_try_cpp "$LINENO"; then :
  6052. else
  6053. # Broken: fails on valid input.
  6054. continue
  6055. fi
  6056. rm -f conftest.err conftest.i conftest.$ac_ext
  6057. # OK, works on sane cases. Now check whether nonexistent headers
  6058. # can be detected and how.
  6059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6060. /* end confdefs.h. */
  6061. #include <ac_nonexistent.h>
  6062. _ACEOF
  6063. if ac_fn_c_try_cpp "$LINENO"; then :
  6064. # Broken: success on invalid input.
  6065. continue
  6066. else
  6067. # Passes both tests.
  6068. ac_preproc_ok=:
  6069. break
  6070. fi
  6071. rm -f conftest.err conftest.i conftest.$ac_ext
  6072. done
  6073. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6074. rm -f conftest.i conftest.err conftest.$ac_ext
  6075. if $ac_preproc_ok; then :
  6076. break
  6077. fi
  6078. done
  6079. ac_cv_prog_CPP=$CPP
  6080. fi
  6081. CPP=$ac_cv_prog_CPP
  6082. else
  6083. ac_cv_prog_CPP=$CPP
  6084. fi
  6085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6086. $as_echo "$CPP" >&6; }
  6087. ac_preproc_ok=false
  6088. for ac_c_preproc_warn_flag in '' yes
  6089. do
  6090. # Use a header file that comes with gcc, so configuring glibc
  6091. # with a fresh cross-compiler works.
  6092. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6093. # <limits.h> exists even on freestanding compilers.
  6094. # On the NeXT, cc -E runs the code through the compiler's parser,
  6095. # not just through cpp. "Syntax error" is here to catch this case.
  6096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6097. /* end confdefs.h. */
  6098. #ifdef __STDC__
  6099. # include <limits.h>
  6100. #else
  6101. # include <assert.h>
  6102. #endif
  6103. Syntax error
  6104. _ACEOF
  6105. if ac_fn_c_try_cpp "$LINENO"; then :
  6106. else
  6107. # Broken: fails on valid input.
  6108. continue
  6109. fi
  6110. rm -f conftest.err conftest.i conftest.$ac_ext
  6111. # OK, works on sane cases. Now check whether nonexistent headers
  6112. # can be detected and how.
  6113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6114. /* end confdefs.h. */
  6115. #include <ac_nonexistent.h>
  6116. _ACEOF
  6117. if ac_fn_c_try_cpp "$LINENO"; then :
  6118. # Broken: success on invalid input.
  6119. continue
  6120. else
  6121. # Passes both tests.
  6122. ac_preproc_ok=:
  6123. break
  6124. fi
  6125. rm -f conftest.err conftest.i conftest.$ac_ext
  6126. done
  6127. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6128. rm -f conftest.i conftest.err conftest.$ac_ext
  6129. if $ac_preproc_ok; then :
  6130. else
  6131. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6132. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6133. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6134. See \`config.log' for more details" "$LINENO" 5; }
  6135. fi
  6136. ac_ext=c
  6137. ac_cpp='$CPP $CPPFLAGS'
  6138. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6139. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6140. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6142. $as_echo_n "checking for ANSI C header files... " >&6; }
  6143. if ${ac_cv_header_stdc+:} false; then :
  6144. $as_echo_n "(cached) " >&6
  6145. else
  6146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6147. /* end confdefs.h. */
  6148. #include <stdlib.h>
  6149. #include <stdarg.h>
  6150. #include <string.h>
  6151. #include <float.h>
  6152. int
  6153. main ()
  6154. {
  6155. ;
  6156. return 0;
  6157. }
  6158. _ACEOF
  6159. if ac_fn_c_try_compile "$LINENO"; then :
  6160. ac_cv_header_stdc=yes
  6161. else
  6162. ac_cv_header_stdc=no
  6163. fi
  6164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6165. if test $ac_cv_header_stdc = yes; then
  6166. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6168. /* end confdefs.h. */
  6169. #include <string.h>
  6170. _ACEOF
  6171. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6172. $EGREP "memchr" >/dev/null 2>&1; then :
  6173. else
  6174. ac_cv_header_stdc=no
  6175. fi
  6176. rm -f conftest*
  6177. fi
  6178. if test $ac_cv_header_stdc = yes; then
  6179. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6181. /* end confdefs.h. */
  6182. #include <stdlib.h>
  6183. _ACEOF
  6184. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6185. $EGREP "free" >/dev/null 2>&1; then :
  6186. else
  6187. ac_cv_header_stdc=no
  6188. fi
  6189. rm -f conftest*
  6190. fi
  6191. if test $ac_cv_header_stdc = yes; then
  6192. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6193. if test "$cross_compiling" = yes; then :
  6194. :
  6195. else
  6196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6197. /* end confdefs.h. */
  6198. #include <ctype.h>
  6199. #include <stdlib.h>
  6200. #if ((' ' & 0x0FF) == 0x020)
  6201. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6202. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6203. #else
  6204. # define ISLOWER(c) \
  6205. (('a' <= (c) && (c) <= 'i') \
  6206. || ('j' <= (c) && (c) <= 'r') \
  6207. || ('s' <= (c) && (c) <= 'z'))
  6208. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6209. #endif
  6210. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6211. int
  6212. main ()
  6213. {
  6214. int i;
  6215. for (i = 0; i < 256; i++)
  6216. if (XOR (islower (i), ISLOWER (i))
  6217. || toupper (i) != TOUPPER (i))
  6218. return 2;
  6219. return 0;
  6220. }
  6221. _ACEOF
  6222. if ac_fn_c_try_run "$LINENO"; then :
  6223. else
  6224. ac_cv_header_stdc=no
  6225. fi
  6226. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6227. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6228. fi
  6229. fi
  6230. fi
  6231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6232. $as_echo "$ac_cv_header_stdc" >&6; }
  6233. if test $ac_cv_header_stdc = yes; then
  6234. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6235. fi
  6236. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6237. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6238. inttypes.h stdint.h unistd.h
  6239. do :
  6240. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6241. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6242. "
  6243. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6244. cat >>confdefs.h <<_ACEOF
  6245. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6246. _ACEOF
  6247. fi
  6248. done
  6249. for ac_header in dlfcn.h
  6250. do :
  6251. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6252. "
  6253. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6254. cat >>confdefs.h <<_ACEOF
  6255. #define HAVE_DLFCN_H 1
  6256. _ACEOF
  6257. fi
  6258. done
  6259. # Set options
  6260. enable_win32_dll=yes
  6261. case $host in
  6262. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6263. if test -n "$ac_tool_prefix"; then
  6264. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6265. set dummy ${ac_tool_prefix}as; ac_word=$2
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6267. $as_echo_n "checking for $ac_word... " >&6; }
  6268. if ${ac_cv_prog_AS+:} false; then :
  6269. $as_echo_n "(cached) " >&6
  6270. else
  6271. if test -n "$AS"; then
  6272. ac_cv_prog_AS="$AS" # Let the user override the test.
  6273. else
  6274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6275. for as_dir in $PATH
  6276. do
  6277. IFS=$as_save_IFS
  6278. test -z "$as_dir" && as_dir=.
  6279. for ac_exec_ext in '' $ac_executable_extensions; do
  6280. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6281. ac_cv_prog_AS="${ac_tool_prefix}as"
  6282. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6283. break 2
  6284. fi
  6285. done
  6286. done
  6287. IFS=$as_save_IFS
  6288. fi
  6289. fi
  6290. AS=$ac_cv_prog_AS
  6291. if test -n "$AS"; then
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6293. $as_echo "$AS" >&6; }
  6294. else
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6296. $as_echo "no" >&6; }
  6297. fi
  6298. fi
  6299. if test -z "$ac_cv_prog_AS"; then
  6300. ac_ct_AS=$AS
  6301. # Extract the first word of "as", so it can be a program name with args.
  6302. set dummy as; ac_word=$2
  6303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6304. $as_echo_n "checking for $ac_word... " >&6; }
  6305. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6306. $as_echo_n "(cached) " >&6
  6307. else
  6308. if test -n "$ac_ct_AS"; then
  6309. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6310. else
  6311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6312. for as_dir in $PATH
  6313. do
  6314. IFS=$as_save_IFS
  6315. test -z "$as_dir" && as_dir=.
  6316. for ac_exec_ext in '' $ac_executable_extensions; do
  6317. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6318. ac_cv_prog_ac_ct_AS="as"
  6319. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6320. break 2
  6321. fi
  6322. done
  6323. done
  6324. IFS=$as_save_IFS
  6325. fi
  6326. fi
  6327. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6328. if test -n "$ac_ct_AS"; then
  6329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6330. $as_echo "$ac_ct_AS" >&6; }
  6331. else
  6332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6333. $as_echo "no" >&6; }
  6334. fi
  6335. if test "x$ac_ct_AS" = x; then
  6336. AS="false"
  6337. else
  6338. case $cross_compiling:$ac_tool_warned in
  6339. yes:)
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6341. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6342. ac_tool_warned=yes ;;
  6343. esac
  6344. AS=$ac_ct_AS
  6345. fi
  6346. else
  6347. AS="$ac_cv_prog_AS"
  6348. fi
  6349. if test -n "$ac_tool_prefix"; then
  6350. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6351. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6353. $as_echo_n "checking for $ac_word... " >&6; }
  6354. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6355. $as_echo_n "(cached) " >&6
  6356. else
  6357. if test -n "$DLLTOOL"; then
  6358. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6359. else
  6360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6361. for as_dir in $PATH
  6362. do
  6363. IFS=$as_save_IFS
  6364. test -z "$as_dir" && as_dir=.
  6365. for ac_exec_ext in '' $ac_executable_extensions; do
  6366. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6367. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6368. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6369. break 2
  6370. fi
  6371. done
  6372. done
  6373. IFS=$as_save_IFS
  6374. fi
  6375. fi
  6376. DLLTOOL=$ac_cv_prog_DLLTOOL
  6377. if test -n "$DLLTOOL"; then
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6379. $as_echo "$DLLTOOL" >&6; }
  6380. else
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6382. $as_echo "no" >&6; }
  6383. fi
  6384. fi
  6385. if test -z "$ac_cv_prog_DLLTOOL"; then
  6386. ac_ct_DLLTOOL=$DLLTOOL
  6387. # Extract the first word of "dlltool", so it can be a program name with args.
  6388. set dummy dlltool; ac_word=$2
  6389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6390. $as_echo_n "checking for $ac_word... " >&6; }
  6391. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6392. $as_echo_n "(cached) " >&6
  6393. else
  6394. if test -n "$ac_ct_DLLTOOL"; then
  6395. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6396. else
  6397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6398. for as_dir in $PATH
  6399. do
  6400. IFS=$as_save_IFS
  6401. test -z "$as_dir" && as_dir=.
  6402. for ac_exec_ext in '' $ac_executable_extensions; do
  6403. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6404. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6405. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6406. break 2
  6407. fi
  6408. done
  6409. done
  6410. IFS=$as_save_IFS
  6411. fi
  6412. fi
  6413. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6414. if test -n "$ac_ct_DLLTOOL"; then
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6416. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6417. else
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6419. $as_echo "no" >&6; }
  6420. fi
  6421. if test "x$ac_ct_DLLTOOL" = x; then
  6422. DLLTOOL="false"
  6423. else
  6424. case $cross_compiling:$ac_tool_warned in
  6425. yes:)
  6426. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6427. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6428. ac_tool_warned=yes ;;
  6429. esac
  6430. DLLTOOL=$ac_ct_DLLTOOL
  6431. fi
  6432. else
  6433. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6434. fi
  6435. if test -n "$ac_tool_prefix"; then
  6436. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6437. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6439. $as_echo_n "checking for $ac_word... " >&6; }
  6440. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6441. $as_echo_n "(cached) " >&6
  6442. else
  6443. if test -n "$OBJDUMP"; then
  6444. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6445. else
  6446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6447. for as_dir in $PATH
  6448. do
  6449. IFS=$as_save_IFS
  6450. test -z "$as_dir" && as_dir=.
  6451. for ac_exec_ext in '' $ac_executable_extensions; do
  6452. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6453. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6455. break 2
  6456. fi
  6457. done
  6458. done
  6459. IFS=$as_save_IFS
  6460. fi
  6461. fi
  6462. OBJDUMP=$ac_cv_prog_OBJDUMP
  6463. if test -n "$OBJDUMP"; then
  6464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6465. $as_echo "$OBJDUMP" >&6; }
  6466. else
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6468. $as_echo "no" >&6; }
  6469. fi
  6470. fi
  6471. if test -z "$ac_cv_prog_OBJDUMP"; then
  6472. ac_ct_OBJDUMP=$OBJDUMP
  6473. # Extract the first word of "objdump", so it can be a program name with args.
  6474. set dummy objdump; ac_word=$2
  6475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6476. $as_echo_n "checking for $ac_word... " >&6; }
  6477. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6478. $as_echo_n "(cached) " >&6
  6479. else
  6480. if test -n "$ac_ct_OBJDUMP"; then
  6481. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6482. else
  6483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6484. for as_dir in $PATH
  6485. do
  6486. IFS=$as_save_IFS
  6487. test -z "$as_dir" && as_dir=.
  6488. for ac_exec_ext in '' $ac_executable_extensions; do
  6489. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6490. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6491. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6492. break 2
  6493. fi
  6494. done
  6495. done
  6496. IFS=$as_save_IFS
  6497. fi
  6498. fi
  6499. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6500. if test -n "$ac_ct_OBJDUMP"; then
  6501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6502. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6503. else
  6504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6505. $as_echo "no" >&6; }
  6506. fi
  6507. if test "x$ac_ct_OBJDUMP" = x; then
  6508. OBJDUMP="false"
  6509. else
  6510. case $cross_compiling:$ac_tool_warned in
  6511. yes:)
  6512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6513. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6514. ac_tool_warned=yes ;;
  6515. esac
  6516. OBJDUMP=$ac_ct_OBJDUMP
  6517. fi
  6518. else
  6519. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6520. fi
  6521. ;;
  6522. esac
  6523. test -z "$AS" && AS=as
  6524. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6525. test -z "$OBJDUMP" && OBJDUMP=objdump
  6526. enable_dlopen=no
  6527. # Check whether --enable-shared was given.
  6528. if test "${enable_shared+set}" = set; then :
  6529. enableval=$enable_shared; p=${PACKAGE-default}
  6530. case $enableval in
  6531. yes) enable_shared=yes ;;
  6532. no) enable_shared=no ;;
  6533. *)
  6534. enable_shared=no
  6535. # Look at the argument we got. We use all the common list separators.
  6536. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6537. for pkg in $enableval; do
  6538. IFS="$lt_save_ifs"
  6539. if test "X$pkg" = "X$p"; then
  6540. enable_shared=yes
  6541. fi
  6542. done
  6543. IFS="$lt_save_ifs"
  6544. ;;
  6545. esac
  6546. else
  6547. enable_shared=yes
  6548. fi
  6549. # Check whether --enable-static was given.
  6550. if test "${enable_static+set}" = set; then :
  6551. enableval=$enable_static; p=${PACKAGE-default}
  6552. case $enableval in
  6553. yes) enable_static=yes ;;
  6554. no) enable_static=no ;;
  6555. *)
  6556. enable_static=no
  6557. # Look at the argument we got. We use all the common list separators.
  6558. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6559. for pkg in $enableval; do
  6560. IFS="$lt_save_ifs"
  6561. if test "X$pkg" = "X$p"; then
  6562. enable_static=yes
  6563. fi
  6564. done
  6565. IFS="$lt_save_ifs"
  6566. ;;
  6567. esac
  6568. else
  6569. enable_static=yes
  6570. fi
  6571. # Check whether --with-pic was given.
  6572. if test "${with_pic+set}" = set; then :
  6573. withval=$with_pic; lt_p=${PACKAGE-default}
  6574. case $withval in
  6575. yes|no) pic_mode=$withval ;;
  6576. *)
  6577. pic_mode=default
  6578. # Look at the argument we got. We use all the common list separators.
  6579. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6580. for lt_pkg in $withval; do
  6581. IFS="$lt_save_ifs"
  6582. if test "X$lt_pkg" = "X$lt_p"; then
  6583. pic_mode=yes
  6584. fi
  6585. done
  6586. IFS="$lt_save_ifs"
  6587. ;;
  6588. esac
  6589. else
  6590. pic_mode=default
  6591. fi
  6592. test -z "$pic_mode" && pic_mode=default
  6593. # Check whether --enable-fast-install was given.
  6594. if test "${enable_fast_install+set}" = set; then :
  6595. enableval=$enable_fast_install; p=${PACKAGE-default}
  6596. case $enableval in
  6597. yes) enable_fast_install=yes ;;
  6598. no) enable_fast_install=no ;;
  6599. *)
  6600. enable_fast_install=no
  6601. # Look at the argument we got. We use all the common list separators.
  6602. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6603. for pkg in $enableval; do
  6604. IFS="$lt_save_ifs"
  6605. if test "X$pkg" = "X$p"; then
  6606. enable_fast_install=yes
  6607. fi
  6608. done
  6609. IFS="$lt_save_ifs"
  6610. ;;
  6611. esac
  6612. else
  6613. enable_fast_install=yes
  6614. fi
  6615. # This can be used to rebuild libtool when needed
  6616. LIBTOOL_DEPS="$ltmain"
  6617. # Always use our own libtool.
  6618. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6619. test -z "$LN_S" && LN_S="ln -s"
  6620. if test -n "${ZSH_VERSION+set}" ; then
  6621. setopt NO_GLOB_SUBST
  6622. fi
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6624. $as_echo_n "checking for objdir... " >&6; }
  6625. if ${lt_cv_objdir+:} false; then :
  6626. $as_echo_n "(cached) " >&6
  6627. else
  6628. rm -f .libs 2>/dev/null
  6629. mkdir .libs 2>/dev/null
  6630. if test -d .libs; then
  6631. lt_cv_objdir=.libs
  6632. else
  6633. # MS-DOS does not allow filenames that begin with a dot.
  6634. lt_cv_objdir=_libs
  6635. fi
  6636. rmdir .libs 2>/dev/null
  6637. fi
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6639. $as_echo "$lt_cv_objdir" >&6; }
  6640. objdir=$lt_cv_objdir
  6641. cat >>confdefs.h <<_ACEOF
  6642. #define LT_OBJDIR "$lt_cv_objdir/"
  6643. _ACEOF
  6644. case $host_os in
  6645. aix3*)
  6646. # AIX sometimes has problems with the GCC collect2 program. For some
  6647. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6648. # vanish in a puff of smoke.
  6649. if test "X${COLLECT_NAMES+set}" != Xset; then
  6650. COLLECT_NAMES=
  6651. export COLLECT_NAMES
  6652. fi
  6653. ;;
  6654. esac
  6655. # Global variables:
  6656. ofile=libtool
  6657. can_build_shared=yes
  6658. # All known linkers require a `.a' archive for static linking (except MSVC,
  6659. # which needs '.lib').
  6660. libext=a
  6661. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6662. old_CC="$CC"
  6663. old_CFLAGS="$CFLAGS"
  6664. # Set sane defaults for various variables
  6665. test -z "$CC" && CC=cc
  6666. test -z "$LTCC" && LTCC=$CC
  6667. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6668. test -z "$LD" && LD=ld
  6669. test -z "$ac_objext" && ac_objext=o
  6670. for cc_temp in $compiler""; do
  6671. case $cc_temp in
  6672. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6673. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6674. \-*) ;;
  6675. *) break;;
  6676. esac
  6677. done
  6678. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6679. # Only perform the check for file, if the check method requires it
  6680. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6681. case $deplibs_check_method in
  6682. file_magic*)
  6683. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6685. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6686. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6687. $as_echo_n "(cached) " >&6
  6688. else
  6689. case $MAGIC_CMD in
  6690. [\\/*] | ?:[\\/]*)
  6691. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6692. ;;
  6693. *)
  6694. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6695. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6696. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6697. for ac_dir in $ac_dummy; do
  6698. IFS="$lt_save_ifs"
  6699. test -z "$ac_dir" && ac_dir=.
  6700. if test -f $ac_dir/${ac_tool_prefix}file; then
  6701. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6702. if test -n "$file_magic_test_file"; then
  6703. case $deplibs_check_method in
  6704. "file_magic "*)
  6705. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6706. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6707. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6708. $EGREP "$file_magic_regex" > /dev/null; then
  6709. :
  6710. else
  6711. cat <<_LT_EOF 1>&2
  6712. *** Warning: the command libtool uses to detect shared libraries,
  6713. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6714. *** The result is that libtool may fail to recognize shared libraries
  6715. *** as such. This will affect the creation of libtool libraries that
  6716. *** depend on shared libraries, but programs linked with such libtool
  6717. *** libraries will work regardless of this problem. Nevertheless, you
  6718. *** may want to report the problem to your system manager and/or to
  6719. *** bug-libtool@gnu.org
  6720. _LT_EOF
  6721. fi ;;
  6722. esac
  6723. fi
  6724. break
  6725. fi
  6726. done
  6727. IFS="$lt_save_ifs"
  6728. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6729. ;;
  6730. esac
  6731. fi
  6732. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6733. if test -n "$MAGIC_CMD"; then
  6734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6735. $as_echo "$MAGIC_CMD" >&6; }
  6736. else
  6737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6738. $as_echo "no" >&6; }
  6739. fi
  6740. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6741. if test -n "$ac_tool_prefix"; then
  6742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6743. $as_echo_n "checking for file... " >&6; }
  6744. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6745. $as_echo_n "(cached) " >&6
  6746. else
  6747. case $MAGIC_CMD in
  6748. [\\/*] | ?:[\\/]*)
  6749. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6750. ;;
  6751. *)
  6752. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6753. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6754. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6755. for ac_dir in $ac_dummy; do
  6756. IFS="$lt_save_ifs"
  6757. test -z "$ac_dir" && ac_dir=.
  6758. if test -f $ac_dir/file; then
  6759. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6760. if test -n "$file_magic_test_file"; then
  6761. case $deplibs_check_method in
  6762. "file_magic "*)
  6763. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6764. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6765. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6766. $EGREP "$file_magic_regex" > /dev/null; then
  6767. :
  6768. else
  6769. cat <<_LT_EOF 1>&2
  6770. *** Warning: the command libtool uses to detect shared libraries,
  6771. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6772. *** The result is that libtool may fail to recognize shared libraries
  6773. *** as such. This will affect the creation of libtool libraries that
  6774. *** depend on shared libraries, but programs linked with such libtool
  6775. *** libraries will work regardless of this problem. Nevertheless, you
  6776. *** may want to report the problem to your system manager and/or to
  6777. *** bug-libtool@gnu.org
  6778. _LT_EOF
  6779. fi ;;
  6780. esac
  6781. fi
  6782. break
  6783. fi
  6784. done
  6785. IFS="$lt_save_ifs"
  6786. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6787. ;;
  6788. esac
  6789. fi
  6790. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6791. if test -n "$MAGIC_CMD"; then
  6792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6793. $as_echo "$MAGIC_CMD" >&6; }
  6794. else
  6795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6796. $as_echo "no" >&6; }
  6797. fi
  6798. else
  6799. MAGIC_CMD=:
  6800. fi
  6801. fi
  6802. fi
  6803. ;;
  6804. esac
  6805. # Use C for the default configuration in the libtool script
  6806. lt_save_CC="$CC"
  6807. ac_ext=c
  6808. ac_cpp='$CPP $CPPFLAGS'
  6809. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6810. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6811. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6812. # Source file extension for C test sources.
  6813. ac_ext=c
  6814. # Object file extension for compiled C test sources.
  6815. objext=o
  6816. objext=$objext
  6817. # Code to be used in simple compile tests
  6818. lt_simple_compile_test_code="int some_variable = 0;"
  6819. # Code to be used in simple link tests
  6820. lt_simple_link_test_code='int main(){return(0);}'
  6821. # If no C compiler was specified, use CC.
  6822. LTCC=${LTCC-"$CC"}
  6823. # If no C compiler flags were specified, use CFLAGS.
  6824. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6825. # Allow CC to be a program name with arguments.
  6826. compiler=$CC
  6827. # Save the default compiler, since it gets overwritten when the other
  6828. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6829. compiler_DEFAULT=$CC
  6830. # save warnings/boilerplate of simple test code
  6831. ac_outfile=conftest.$ac_objext
  6832. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6833. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6834. _lt_compiler_boilerplate=`cat conftest.err`
  6835. $RM conftest*
  6836. ac_outfile=conftest.$ac_objext
  6837. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6838. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6839. _lt_linker_boilerplate=`cat conftest.err`
  6840. $RM -r conftest*
  6841. ## CAVEAT EMPTOR:
  6842. ## There is no encapsulation within the following macros, do not change
  6843. ## the running order or otherwise move them around unless you know exactly
  6844. ## what you are doing...
  6845. if test -n "$compiler"; then
  6846. lt_prog_compiler_no_builtin_flag=
  6847. if test "$GCC" = yes; then
  6848. case $cc_basename in
  6849. nvcc*)
  6850. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6851. *)
  6852. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6853. esac
  6854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6855. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6856. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6857. $as_echo_n "(cached) " >&6
  6858. else
  6859. lt_cv_prog_compiler_rtti_exceptions=no
  6860. ac_outfile=conftest.$ac_objext
  6861. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6862. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6863. # Insert the option either (1) after the last *FLAGS variable, or
  6864. # (2) before a word containing "conftest.", or (3) at the end.
  6865. # Note that $ac_compile itself does not contain backslashes and begins
  6866. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6867. # The option is referenced via a variable to avoid confusing sed.
  6868. lt_compile=`echo "$ac_compile" | $SED \
  6869. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6870. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6871. -e 's:$: $lt_compiler_flag:'`
  6872. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6873. (eval "$lt_compile" 2>conftest.err)
  6874. ac_status=$?
  6875. cat conftest.err >&5
  6876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6877. if (exit $ac_status) && test -s "$ac_outfile"; then
  6878. # The compiler can only warn and ignore the option if not recognized
  6879. # So say no if there are warnings other than the usual output.
  6880. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6881. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6882. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6883. lt_cv_prog_compiler_rtti_exceptions=yes
  6884. fi
  6885. fi
  6886. $RM conftest*
  6887. fi
  6888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6889. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6890. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6891. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6892. else
  6893. :
  6894. fi
  6895. fi
  6896. lt_prog_compiler_wl=
  6897. lt_prog_compiler_pic=
  6898. lt_prog_compiler_static=
  6899. if test "$GCC" = yes; then
  6900. lt_prog_compiler_wl='-Wl,'
  6901. lt_prog_compiler_static='-static'
  6902. case $host_os in
  6903. aix*)
  6904. # All AIX code is PIC.
  6905. if test "$host_cpu" = ia64; then
  6906. # AIX 5 now supports IA64 processor
  6907. lt_prog_compiler_static='-Bstatic'
  6908. fi
  6909. ;;
  6910. amigaos*)
  6911. case $host_cpu in
  6912. powerpc)
  6913. # see comment about AmigaOS4 .so support
  6914. lt_prog_compiler_pic='-fPIC'
  6915. ;;
  6916. m68k)
  6917. # FIXME: we need at least 68020 code to build shared libraries, but
  6918. # adding the `-m68020' flag to GCC prevents building anything better,
  6919. # like `-m68040'.
  6920. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6921. ;;
  6922. esac
  6923. ;;
  6924. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6925. # PIC is the default for these OSes.
  6926. ;;
  6927. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6928. # This hack is so that the source file can tell whether it is being
  6929. # built for inclusion in a dll (and should export symbols for example).
  6930. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6931. # (--disable-auto-import) libraries
  6932. lt_prog_compiler_pic='-DDLL_EXPORT'
  6933. ;;
  6934. darwin* | rhapsody*)
  6935. # PIC is the default on this platform
  6936. # Common symbols not allowed in MH_DYLIB files
  6937. lt_prog_compiler_pic='-fno-common'
  6938. ;;
  6939. haiku*)
  6940. # PIC is the default for Haiku.
  6941. # The "-static" flag exists, but is broken.
  6942. lt_prog_compiler_static=
  6943. ;;
  6944. hpux*)
  6945. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6946. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6947. # sets the default TLS model and affects inlining.
  6948. case $host_cpu in
  6949. hppa*64*)
  6950. # +Z the default
  6951. ;;
  6952. *)
  6953. lt_prog_compiler_pic='-fPIC'
  6954. ;;
  6955. esac
  6956. ;;
  6957. interix[3-9]*)
  6958. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6959. # Instead, we relocate shared libraries at runtime.
  6960. ;;
  6961. msdosdjgpp*)
  6962. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6963. # on systems that don't support them.
  6964. lt_prog_compiler_can_build_shared=no
  6965. enable_shared=no
  6966. ;;
  6967. *nto* | *qnx*)
  6968. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6969. # it will coredump.
  6970. lt_prog_compiler_pic='-fPIC -shared'
  6971. ;;
  6972. sysv4*MP*)
  6973. if test -d /usr/nec; then
  6974. lt_prog_compiler_pic=-Kconform_pic
  6975. fi
  6976. ;;
  6977. *)
  6978. lt_prog_compiler_pic='-fPIC'
  6979. ;;
  6980. esac
  6981. case $cc_basename in
  6982. nvcc*) # Cuda Compiler Driver 2.2
  6983. lt_prog_compiler_wl='-Xlinker '
  6984. if test -n "$lt_prog_compiler_pic"; then
  6985. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6986. fi
  6987. ;;
  6988. esac
  6989. else
  6990. # PORTME Check for flag to pass linker flags through the system compiler.
  6991. case $host_os in
  6992. aix*)
  6993. lt_prog_compiler_wl='-Wl,'
  6994. if test "$host_cpu" = ia64; then
  6995. # AIX 5 now supports IA64 processor
  6996. lt_prog_compiler_static='-Bstatic'
  6997. else
  6998. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6999. fi
  7000. ;;
  7001. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7002. # This hack is so that the source file can tell whether it is being
  7003. # built for inclusion in a dll (and should export symbols for example).
  7004. lt_prog_compiler_pic='-DDLL_EXPORT'
  7005. ;;
  7006. hpux9* | hpux10* | hpux11*)
  7007. lt_prog_compiler_wl='-Wl,'
  7008. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7009. # not for PA HP-UX.
  7010. case $host_cpu in
  7011. hppa*64*|ia64*)
  7012. # +Z the default
  7013. ;;
  7014. *)
  7015. lt_prog_compiler_pic='+Z'
  7016. ;;
  7017. esac
  7018. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7019. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7020. ;;
  7021. irix5* | irix6* | nonstopux*)
  7022. lt_prog_compiler_wl='-Wl,'
  7023. # PIC (with -KPIC) is the default.
  7024. lt_prog_compiler_static='-non_shared'
  7025. ;;
  7026. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7027. case $cc_basename in
  7028. # old Intel for x86_64 which still supported -KPIC.
  7029. ecc*)
  7030. lt_prog_compiler_wl='-Wl,'
  7031. lt_prog_compiler_pic='-KPIC'
  7032. lt_prog_compiler_static='-static'
  7033. ;;
  7034. # icc used to be incompatible with GCC.
  7035. # ICC 10 doesn't accept -KPIC any more.
  7036. icc* | ifort*)
  7037. lt_prog_compiler_wl='-Wl,'
  7038. lt_prog_compiler_pic='-fPIC'
  7039. lt_prog_compiler_static='-static'
  7040. ;;
  7041. # Lahey Fortran 8.1.
  7042. lf95*)
  7043. lt_prog_compiler_wl='-Wl,'
  7044. lt_prog_compiler_pic='--shared'
  7045. lt_prog_compiler_static='--static'
  7046. ;;
  7047. nagfor*)
  7048. # NAG Fortran compiler
  7049. lt_prog_compiler_wl='-Wl,-Wl,,'
  7050. lt_prog_compiler_pic='-PIC'
  7051. lt_prog_compiler_static='-Bstatic'
  7052. ;;
  7053. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7054. # Portland Group compilers (*not* the Pentium gcc compiler,
  7055. # which looks to be a dead project)
  7056. lt_prog_compiler_wl='-Wl,'
  7057. lt_prog_compiler_pic='-fpic'
  7058. lt_prog_compiler_static='-Bstatic'
  7059. ;;
  7060. ccc*)
  7061. lt_prog_compiler_wl='-Wl,'
  7062. # All Alpha code is PIC.
  7063. lt_prog_compiler_static='-non_shared'
  7064. ;;
  7065. xl* | bgxl* | bgf* | mpixl*)
  7066. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7067. lt_prog_compiler_wl='-Wl,'
  7068. lt_prog_compiler_pic='-qpic'
  7069. lt_prog_compiler_static='-qstaticlink'
  7070. ;;
  7071. *)
  7072. case `$CC -V 2>&1 | sed 5q` in
  7073. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7074. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7075. lt_prog_compiler_pic='-KPIC'
  7076. lt_prog_compiler_static='-Bstatic'
  7077. lt_prog_compiler_wl=''
  7078. ;;
  7079. *Sun\ F* | *Sun*Fortran*)
  7080. lt_prog_compiler_pic='-KPIC'
  7081. lt_prog_compiler_static='-Bstatic'
  7082. lt_prog_compiler_wl='-Qoption ld '
  7083. ;;
  7084. *Sun\ C*)
  7085. # Sun C 5.9
  7086. lt_prog_compiler_pic='-KPIC'
  7087. lt_prog_compiler_static='-Bstatic'
  7088. lt_prog_compiler_wl='-Wl,'
  7089. ;;
  7090. *Intel*\ [CF]*Compiler*)
  7091. lt_prog_compiler_wl='-Wl,'
  7092. lt_prog_compiler_pic='-fPIC'
  7093. lt_prog_compiler_static='-static'
  7094. ;;
  7095. *Portland\ Group*)
  7096. lt_prog_compiler_wl='-Wl,'
  7097. lt_prog_compiler_pic='-fpic'
  7098. lt_prog_compiler_static='-Bstatic'
  7099. ;;
  7100. esac
  7101. ;;
  7102. esac
  7103. ;;
  7104. newsos6)
  7105. lt_prog_compiler_pic='-KPIC'
  7106. lt_prog_compiler_static='-Bstatic'
  7107. ;;
  7108. *nto* | *qnx*)
  7109. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7110. # it will coredump.
  7111. lt_prog_compiler_pic='-fPIC -shared'
  7112. ;;
  7113. osf3* | osf4* | osf5*)
  7114. lt_prog_compiler_wl='-Wl,'
  7115. # All OSF/1 code is PIC.
  7116. lt_prog_compiler_static='-non_shared'
  7117. ;;
  7118. rdos*)
  7119. lt_prog_compiler_static='-non_shared'
  7120. ;;
  7121. solaris*)
  7122. lt_prog_compiler_pic='-KPIC'
  7123. lt_prog_compiler_static='-Bstatic'
  7124. case $cc_basename in
  7125. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7126. lt_prog_compiler_wl='-Qoption ld ';;
  7127. *)
  7128. lt_prog_compiler_wl='-Wl,';;
  7129. esac
  7130. ;;
  7131. sunos4*)
  7132. lt_prog_compiler_wl='-Qoption ld '
  7133. lt_prog_compiler_pic='-PIC'
  7134. lt_prog_compiler_static='-Bstatic'
  7135. ;;
  7136. sysv4 | sysv4.2uw2* | sysv4.3*)
  7137. lt_prog_compiler_wl='-Wl,'
  7138. lt_prog_compiler_pic='-KPIC'
  7139. lt_prog_compiler_static='-Bstatic'
  7140. ;;
  7141. sysv4*MP*)
  7142. if test -d /usr/nec ;then
  7143. lt_prog_compiler_pic='-Kconform_pic'
  7144. lt_prog_compiler_static='-Bstatic'
  7145. fi
  7146. ;;
  7147. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7148. lt_prog_compiler_wl='-Wl,'
  7149. lt_prog_compiler_pic='-KPIC'
  7150. lt_prog_compiler_static='-Bstatic'
  7151. ;;
  7152. unicos*)
  7153. lt_prog_compiler_wl='-Wl,'
  7154. lt_prog_compiler_can_build_shared=no
  7155. ;;
  7156. uts4*)
  7157. lt_prog_compiler_pic='-pic'
  7158. lt_prog_compiler_static='-Bstatic'
  7159. ;;
  7160. *)
  7161. lt_prog_compiler_can_build_shared=no
  7162. ;;
  7163. esac
  7164. fi
  7165. case $host_os in
  7166. # For platforms which do not support PIC, -DPIC is meaningless:
  7167. *djgpp*)
  7168. lt_prog_compiler_pic=
  7169. ;;
  7170. *)
  7171. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7172. ;;
  7173. esac
  7174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7175. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7176. if ${lt_cv_prog_compiler_pic+:} false; then :
  7177. $as_echo_n "(cached) " >&6
  7178. else
  7179. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7180. fi
  7181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7182. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7183. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7184. #
  7185. # Check to make sure the PIC flag actually works.
  7186. #
  7187. if test -n "$lt_prog_compiler_pic"; then
  7188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7189. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7190. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7191. $as_echo_n "(cached) " >&6
  7192. else
  7193. lt_cv_prog_compiler_pic_works=no
  7194. ac_outfile=conftest.$ac_objext
  7195. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7196. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7197. # Insert the option either (1) after the last *FLAGS variable, or
  7198. # (2) before a word containing "conftest.", or (3) at the end.
  7199. # Note that $ac_compile itself does not contain backslashes and begins
  7200. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7201. # The option is referenced via a variable to avoid confusing sed.
  7202. lt_compile=`echo "$ac_compile" | $SED \
  7203. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7204. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7205. -e 's:$: $lt_compiler_flag:'`
  7206. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7207. (eval "$lt_compile" 2>conftest.err)
  7208. ac_status=$?
  7209. cat conftest.err >&5
  7210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7211. if (exit $ac_status) && test -s "$ac_outfile"; then
  7212. # The compiler can only warn and ignore the option if not recognized
  7213. # So say no if there are warnings other than the usual output.
  7214. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7215. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7216. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7217. lt_cv_prog_compiler_pic_works=yes
  7218. fi
  7219. fi
  7220. $RM conftest*
  7221. fi
  7222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7223. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7224. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7225. case $lt_prog_compiler_pic in
  7226. "" | " "*) ;;
  7227. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7228. esac
  7229. else
  7230. lt_prog_compiler_pic=
  7231. lt_prog_compiler_can_build_shared=no
  7232. fi
  7233. fi
  7234. #
  7235. # Check to make sure the static flag actually works.
  7236. #
  7237. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7239. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7240. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7241. $as_echo_n "(cached) " >&6
  7242. else
  7243. lt_cv_prog_compiler_static_works=no
  7244. save_LDFLAGS="$LDFLAGS"
  7245. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7246. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7247. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7248. # The linker can only warn and ignore the option if not recognized
  7249. # So say no if there are warnings
  7250. if test -s conftest.err; then
  7251. # Append any errors to the config.log.
  7252. cat conftest.err 1>&5
  7253. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7254. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7255. if diff conftest.exp conftest.er2 >/dev/null; then
  7256. lt_cv_prog_compiler_static_works=yes
  7257. fi
  7258. else
  7259. lt_cv_prog_compiler_static_works=yes
  7260. fi
  7261. fi
  7262. $RM -r conftest*
  7263. LDFLAGS="$save_LDFLAGS"
  7264. fi
  7265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7266. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7267. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7268. :
  7269. else
  7270. lt_prog_compiler_static=
  7271. fi
  7272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7273. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7274. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7275. $as_echo_n "(cached) " >&6
  7276. else
  7277. lt_cv_prog_compiler_c_o=no
  7278. $RM -r conftest 2>/dev/null
  7279. mkdir conftest
  7280. cd conftest
  7281. mkdir out
  7282. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7283. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7284. # Insert the option either (1) after the last *FLAGS variable, or
  7285. # (2) before a word containing "conftest.", or (3) at the end.
  7286. # Note that $ac_compile itself does not contain backslashes and begins
  7287. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7288. lt_compile=`echo "$ac_compile" | $SED \
  7289. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7290. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7291. -e 's:$: $lt_compiler_flag:'`
  7292. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7293. (eval "$lt_compile" 2>out/conftest.err)
  7294. ac_status=$?
  7295. cat out/conftest.err >&5
  7296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7297. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7298. then
  7299. # The compiler can only warn and ignore the option if not recognized
  7300. # So say no if there are warnings
  7301. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7302. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7303. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7304. lt_cv_prog_compiler_c_o=yes
  7305. fi
  7306. fi
  7307. chmod u+w . 2>&5
  7308. $RM conftest*
  7309. # SGI C++ compiler will create directory out/ii_files/ for
  7310. # template instantiation
  7311. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7312. $RM out/* && rmdir out
  7313. cd ..
  7314. $RM -r conftest
  7315. $RM conftest*
  7316. fi
  7317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7318. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7320. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7321. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7322. $as_echo_n "(cached) " >&6
  7323. else
  7324. lt_cv_prog_compiler_c_o=no
  7325. $RM -r conftest 2>/dev/null
  7326. mkdir conftest
  7327. cd conftest
  7328. mkdir out
  7329. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7330. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7331. # Insert the option either (1) after the last *FLAGS variable, or
  7332. # (2) before a word containing "conftest.", or (3) at the end.
  7333. # Note that $ac_compile itself does not contain backslashes and begins
  7334. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7335. lt_compile=`echo "$ac_compile" | $SED \
  7336. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7337. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7338. -e 's:$: $lt_compiler_flag:'`
  7339. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7340. (eval "$lt_compile" 2>out/conftest.err)
  7341. ac_status=$?
  7342. cat out/conftest.err >&5
  7343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7344. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7345. then
  7346. # The compiler can only warn and ignore the option if not recognized
  7347. # So say no if there are warnings
  7348. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7349. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7350. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7351. lt_cv_prog_compiler_c_o=yes
  7352. fi
  7353. fi
  7354. chmod u+w . 2>&5
  7355. $RM conftest*
  7356. # SGI C++ compiler will create directory out/ii_files/ for
  7357. # template instantiation
  7358. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7359. $RM out/* && rmdir out
  7360. cd ..
  7361. $RM -r conftest
  7362. $RM conftest*
  7363. fi
  7364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7365. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7366. hard_links="nottested"
  7367. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7368. # do not overwrite the value of need_locks provided by the user
  7369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7370. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7371. hard_links=yes
  7372. $RM conftest*
  7373. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7374. touch conftest.a
  7375. ln conftest.a conftest.b 2>&5 || hard_links=no
  7376. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7378. $as_echo "$hard_links" >&6; }
  7379. if test "$hard_links" = no; then
  7380. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7381. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7382. need_locks=warn
  7383. fi
  7384. else
  7385. need_locks=no
  7386. fi
  7387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7388. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7389. runpath_var=
  7390. allow_undefined_flag=
  7391. always_export_symbols=no
  7392. archive_cmds=
  7393. archive_expsym_cmds=
  7394. compiler_needs_object=no
  7395. enable_shared_with_static_runtimes=no
  7396. export_dynamic_flag_spec=
  7397. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7398. hardcode_automatic=no
  7399. hardcode_direct=no
  7400. hardcode_direct_absolute=no
  7401. hardcode_libdir_flag_spec=
  7402. hardcode_libdir_separator=
  7403. hardcode_minus_L=no
  7404. hardcode_shlibpath_var=unsupported
  7405. inherit_rpath=no
  7406. link_all_deplibs=unknown
  7407. module_cmds=
  7408. module_expsym_cmds=
  7409. old_archive_from_new_cmds=
  7410. old_archive_from_expsyms_cmds=
  7411. thread_safe_flag_spec=
  7412. whole_archive_flag_spec=
  7413. # include_expsyms should be a list of space-separated symbols to be *always*
  7414. # included in the symbol list
  7415. include_expsyms=
  7416. # exclude_expsyms can be an extended regexp of symbols to exclude
  7417. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7418. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7419. # as well as any symbol that contains `d'.
  7420. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7421. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7422. # platforms (ab)use it in PIC code, but their linkers get confused if
  7423. # the symbol is explicitly referenced. Since portable code cannot
  7424. # rely on this symbol name, it's probably fine to never include it in
  7425. # preloaded symbol tables.
  7426. # Exclude shared library initialization/finalization symbols.
  7427. extract_expsyms_cmds=
  7428. case $host_os in
  7429. cygwin* | mingw* | pw32* | cegcc*)
  7430. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7431. # When not using gcc, we currently assume that we are using
  7432. # Microsoft Visual C++.
  7433. if test "$GCC" != yes; then
  7434. with_gnu_ld=no
  7435. fi
  7436. ;;
  7437. interix*)
  7438. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7439. with_gnu_ld=yes
  7440. ;;
  7441. openbsd*)
  7442. with_gnu_ld=no
  7443. ;;
  7444. esac
  7445. ld_shlibs=yes
  7446. # On some targets, GNU ld is compatible enough with the native linker
  7447. # that we're better off using the native interface for both.
  7448. lt_use_gnu_ld_interface=no
  7449. if test "$with_gnu_ld" = yes; then
  7450. case $host_os in
  7451. aix*)
  7452. # The AIX port of GNU ld has always aspired to compatibility
  7453. # with the native linker. However, as the warning in the GNU ld
  7454. # block says, versions before 2.19.5* couldn't really create working
  7455. # shared libraries, regardless of the interface used.
  7456. case `$LD -v 2>&1` in
  7457. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7458. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7459. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7460. *)
  7461. lt_use_gnu_ld_interface=yes
  7462. ;;
  7463. esac
  7464. ;;
  7465. *)
  7466. lt_use_gnu_ld_interface=yes
  7467. ;;
  7468. esac
  7469. fi
  7470. if test "$lt_use_gnu_ld_interface" = yes; then
  7471. # If archive_cmds runs LD, not CC, wlarc should be empty
  7472. wlarc='${wl}'
  7473. # Set some defaults for GNU ld with shared library support. These
  7474. # are reset later if shared libraries are not supported. Putting them
  7475. # here allows them to be overridden if necessary.
  7476. runpath_var=LD_RUN_PATH
  7477. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7478. export_dynamic_flag_spec='${wl}--export-dynamic'
  7479. # ancient GNU ld didn't support --whole-archive et. al.
  7480. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7481. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7482. else
  7483. whole_archive_flag_spec=
  7484. fi
  7485. supports_anon_versioning=no
  7486. case `$LD -v 2>&1` in
  7487. *GNU\ gold*) supports_anon_versioning=yes ;;
  7488. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7489. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7490. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7491. *\ 2.11.*) ;; # other 2.11 versions
  7492. *) supports_anon_versioning=yes ;;
  7493. esac
  7494. # See if GNU ld supports shared libraries.
  7495. case $host_os in
  7496. aix[3-9]*)
  7497. # On AIX/PPC, the GNU linker is very broken
  7498. if test "$host_cpu" != ia64; then
  7499. ld_shlibs=no
  7500. cat <<_LT_EOF 1>&2
  7501. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7502. *** to be unable to reliably create shared libraries on AIX.
  7503. *** Therefore, libtool is disabling shared libraries support. If you
  7504. *** really care for shared libraries, you may want to install binutils
  7505. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7506. *** You will then need to restart the configuration process.
  7507. _LT_EOF
  7508. fi
  7509. ;;
  7510. amigaos*)
  7511. case $host_cpu in
  7512. powerpc)
  7513. # see comment about AmigaOS4 .so support
  7514. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7515. archive_expsym_cmds=''
  7516. ;;
  7517. m68k)
  7518. 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)'
  7519. hardcode_libdir_flag_spec='-L$libdir'
  7520. hardcode_minus_L=yes
  7521. ;;
  7522. esac
  7523. ;;
  7524. beos*)
  7525. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7526. allow_undefined_flag=unsupported
  7527. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7528. # support --undefined. This deserves some investigation. FIXME
  7529. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7530. else
  7531. ld_shlibs=no
  7532. fi
  7533. ;;
  7534. cygwin* | mingw* | pw32* | cegcc*)
  7535. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7536. # as there is no search path for DLLs.
  7537. hardcode_libdir_flag_spec='-L$libdir'
  7538. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7539. allow_undefined_flag=unsupported
  7540. always_export_symbols=no
  7541. enable_shared_with_static_runtimes=yes
  7542. 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'
  7543. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7544. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7545. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7546. # If the export-symbols file already is a .def file (1st line
  7547. # is EXPORTS), use it as is; otherwise, prepend...
  7548. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7549. cp $export_symbols $output_objdir/$soname.def;
  7550. else
  7551. echo EXPORTS > $output_objdir/$soname.def;
  7552. cat $export_symbols >> $output_objdir/$soname.def;
  7553. fi~
  7554. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7555. else
  7556. ld_shlibs=no
  7557. fi
  7558. ;;
  7559. haiku*)
  7560. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7561. link_all_deplibs=yes
  7562. ;;
  7563. interix[3-9]*)
  7564. hardcode_direct=no
  7565. hardcode_shlibpath_var=no
  7566. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7567. export_dynamic_flag_spec='${wl}-E'
  7568. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7569. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7570. # default) and relocated if they conflict, which is a slow very memory
  7571. # consuming and fragmenting process. To avoid this, we pick a random,
  7572. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7573. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7574. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7575. 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'
  7576. ;;
  7577. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7578. tmp_diet=no
  7579. if test "$host_os" = linux-dietlibc; then
  7580. case $cc_basename in
  7581. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7582. esac
  7583. fi
  7584. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7585. && test "$tmp_diet" = no
  7586. then
  7587. tmp_addflag=' $pic_flag'
  7588. tmp_sharedflag='-shared'
  7589. case $cc_basename,$host_cpu in
  7590. pgcc*) # Portland Group C compiler
  7591. 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'
  7592. tmp_addflag=' $pic_flag'
  7593. ;;
  7594. pgf77* | pgf90* | pgf95* | pgfortran*)
  7595. # Portland Group f77 and f90 compilers
  7596. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7597. tmp_addflag=' $pic_flag -Mnomain' ;;
  7598. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7599. tmp_addflag=' -i_dynamic' ;;
  7600. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7601. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7602. ifc* | ifort*) # Intel Fortran compiler
  7603. tmp_addflag=' -nofor_main' ;;
  7604. lf95*) # Lahey Fortran 8.1
  7605. whole_archive_flag_spec=
  7606. tmp_sharedflag='--shared' ;;
  7607. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7608. tmp_sharedflag='-qmkshrobj'
  7609. tmp_addflag= ;;
  7610. nvcc*) # Cuda Compiler Driver 2.2
  7611. 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'
  7612. compiler_needs_object=yes
  7613. ;;
  7614. esac
  7615. case `$CC -V 2>&1 | sed 5q` in
  7616. *Sun\ C*) # Sun C 5.9
  7617. 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'
  7618. compiler_needs_object=yes
  7619. tmp_sharedflag='-G' ;;
  7620. *Sun\ F*) # Sun Fortran 8.3
  7621. tmp_sharedflag='-G' ;;
  7622. esac
  7623. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7624. if test "x$supports_anon_versioning" = xyes; then
  7625. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7626. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7627. echo "local: *; };" >> $output_objdir/$libname.ver~
  7628. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7629. fi
  7630. case $cc_basename in
  7631. xlf* | bgf* | bgxlf* | mpixlf*)
  7632. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7633. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7634. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7635. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7636. if test "x$supports_anon_versioning" = xyes; then
  7637. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7638. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7639. echo "local: *; };" >> $output_objdir/$libname.ver~
  7640. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7641. fi
  7642. ;;
  7643. esac
  7644. else
  7645. ld_shlibs=no
  7646. fi
  7647. ;;
  7648. netbsd*)
  7649. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7650. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7651. wlarc=
  7652. else
  7653. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7654. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7655. fi
  7656. ;;
  7657. solaris*)
  7658. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7659. ld_shlibs=no
  7660. cat <<_LT_EOF 1>&2
  7661. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7662. *** create shared libraries on Solaris systems. Therefore, libtool
  7663. *** is disabling shared libraries support. We urge you to upgrade GNU
  7664. *** binutils to release 2.9.1 or newer. Another option is to modify
  7665. *** your PATH or compiler configuration so that the native linker is
  7666. *** used, and then restart.
  7667. _LT_EOF
  7668. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7669. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7670. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7671. else
  7672. ld_shlibs=no
  7673. fi
  7674. ;;
  7675. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7676. case `$LD -v 2>&1` in
  7677. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7678. ld_shlibs=no
  7679. cat <<_LT_EOF 1>&2
  7680. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7681. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7682. *** is disabling shared libraries support. We urge you to upgrade GNU
  7683. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7684. *** your PATH or compiler configuration so that the native linker is
  7685. *** used, and then restart.
  7686. _LT_EOF
  7687. ;;
  7688. *)
  7689. # For security reasons, it is highly recommended that you always
  7690. # use absolute paths for naming shared libraries, and exclude the
  7691. # DT_RUNPATH tag from executables and libraries. But doing so
  7692. # requires that you compile everything twice, which is a pain.
  7693. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7694. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7695. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7696. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7697. else
  7698. ld_shlibs=no
  7699. fi
  7700. ;;
  7701. esac
  7702. ;;
  7703. sunos4*)
  7704. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7705. wlarc=
  7706. hardcode_direct=yes
  7707. hardcode_shlibpath_var=no
  7708. ;;
  7709. *)
  7710. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7711. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7712. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7713. else
  7714. ld_shlibs=no
  7715. fi
  7716. ;;
  7717. esac
  7718. if test "$ld_shlibs" = no; then
  7719. runpath_var=
  7720. hardcode_libdir_flag_spec=
  7721. export_dynamic_flag_spec=
  7722. whole_archive_flag_spec=
  7723. fi
  7724. else
  7725. # PORTME fill in a description of your system's linker (not GNU ld)
  7726. case $host_os in
  7727. aix3*)
  7728. allow_undefined_flag=unsupported
  7729. always_export_symbols=yes
  7730. 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'
  7731. # Note: this linker hardcodes the directories in LIBPATH if there
  7732. # are no directories specified by -L.
  7733. hardcode_minus_L=yes
  7734. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7735. # Neither direct hardcoding nor static linking is supported with a
  7736. # broken collect2.
  7737. hardcode_direct=unsupported
  7738. fi
  7739. ;;
  7740. aix[4-9]*)
  7741. if test "$host_cpu" = ia64; then
  7742. # On IA64, the linker does run time linking by default, so we don't
  7743. # have to do anything special.
  7744. aix_use_runtimelinking=no
  7745. exp_sym_flag='-Bexport'
  7746. no_entry_flag=""
  7747. else
  7748. # If we're using GNU nm, then we don't want the "-C" option.
  7749. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7750. # Also, AIX nm treats weak defined symbols like other global
  7751. # defined symbols, whereas GNU nm marks them as "W".
  7752. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7753. 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'
  7754. else
  7755. 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'
  7756. fi
  7757. aix_use_runtimelinking=no
  7758. # Test if we are trying to use run time linking or normal
  7759. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7760. # need to do runtime linking.
  7761. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7762. for ld_flag in $LDFLAGS; do
  7763. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7764. aix_use_runtimelinking=yes
  7765. break
  7766. fi
  7767. done
  7768. ;;
  7769. esac
  7770. exp_sym_flag='-bexport'
  7771. no_entry_flag='-bnoentry'
  7772. fi
  7773. # When large executables or shared objects are built, AIX ld can
  7774. # have problems creating the table of contents. If linking a library
  7775. # or program results in "error TOC overflow" add -mminimal-toc to
  7776. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7777. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7778. archive_cmds=''
  7779. hardcode_direct=yes
  7780. hardcode_direct_absolute=yes
  7781. hardcode_libdir_separator=':'
  7782. link_all_deplibs=yes
  7783. file_list_spec='${wl}-f,'
  7784. if test "$GCC" = yes; then
  7785. case $host_os in aix4.[012]|aix4.[012].*)
  7786. # We only want to do this on AIX 4.2 and lower, the check
  7787. # below for broken collect2 doesn't work under 4.3+
  7788. collect2name=`${CC} -print-prog-name=collect2`
  7789. if test -f "$collect2name" &&
  7790. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7791. then
  7792. # We have reworked collect2
  7793. :
  7794. else
  7795. # We have old collect2
  7796. hardcode_direct=unsupported
  7797. # It fails to find uninstalled libraries when the uninstalled
  7798. # path is not listed in the libpath. Setting hardcode_minus_L
  7799. # to unsupported forces relinking
  7800. hardcode_minus_L=yes
  7801. hardcode_libdir_flag_spec='-L$libdir'
  7802. hardcode_libdir_separator=
  7803. fi
  7804. ;;
  7805. esac
  7806. shared_flag='-shared'
  7807. if test "$aix_use_runtimelinking" = yes; then
  7808. shared_flag="$shared_flag "'${wl}-G'
  7809. fi
  7810. else
  7811. # not using gcc
  7812. if test "$host_cpu" = ia64; then
  7813. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7814. # chokes on -Wl,-G. The following line is correct:
  7815. shared_flag='-G'
  7816. else
  7817. if test "$aix_use_runtimelinking" = yes; then
  7818. shared_flag='${wl}-G'
  7819. else
  7820. shared_flag='${wl}-bM:SRE'
  7821. fi
  7822. fi
  7823. fi
  7824. export_dynamic_flag_spec='${wl}-bexpall'
  7825. # It seems that -bexpall does not export symbols beginning with
  7826. # underscore (_), so it is better to generate a list of symbols to export.
  7827. always_export_symbols=yes
  7828. if test "$aix_use_runtimelinking" = yes; then
  7829. # Warning - without using the other runtime loading flags (-brtl),
  7830. # -berok will link without error, but may produce a broken library.
  7831. allow_undefined_flag='-berok'
  7832. # Determine the default libpath from the value encoded in an
  7833. # empty executable.
  7834. if test "${lt_cv_aix_libpath+set}" = set; then
  7835. aix_libpath=$lt_cv_aix_libpath
  7836. else
  7837. if ${lt_cv_aix_libpath_+:} false; then :
  7838. $as_echo_n "(cached) " >&6
  7839. else
  7840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7841. /* end confdefs.h. */
  7842. int
  7843. main ()
  7844. {
  7845. ;
  7846. return 0;
  7847. }
  7848. _ACEOF
  7849. if ac_fn_c_try_link "$LINENO"; then :
  7850. lt_aix_libpath_sed='
  7851. /Import File Strings/,/^$/ {
  7852. /^0/ {
  7853. s/^0 *\([^ ]*\) *$/\1/
  7854. p
  7855. }
  7856. }'
  7857. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7858. # Check for a 64-bit object if we didn't find anything.
  7859. if test -z "$lt_cv_aix_libpath_"; then
  7860. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7861. fi
  7862. fi
  7863. rm -f core conftest.err conftest.$ac_objext \
  7864. conftest$ac_exeext conftest.$ac_ext
  7865. if test -z "$lt_cv_aix_libpath_"; then
  7866. lt_cv_aix_libpath_="/usr/lib:/lib"
  7867. fi
  7868. fi
  7869. aix_libpath=$lt_cv_aix_libpath_
  7870. fi
  7871. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7872. 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"
  7873. else
  7874. if test "$host_cpu" = ia64; then
  7875. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7876. allow_undefined_flag="-z nodefs"
  7877. 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"
  7878. else
  7879. # Determine the default libpath from the value encoded in an
  7880. # empty executable.
  7881. if test "${lt_cv_aix_libpath+set}" = set; then
  7882. aix_libpath=$lt_cv_aix_libpath
  7883. else
  7884. if ${lt_cv_aix_libpath_+:} false; then :
  7885. $as_echo_n "(cached) " >&6
  7886. else
  7887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7888. /* end confdefs.h. */
  7889. int
  7890. main ()
  7891. {
  7892. ;
  7893. return 0;
  7894. }
  7895. _ACEOF
  7896. if ac_fn_c_try_link "$LINENO"; then :
  7897. lt_aix_libpath_sed='
  7898. /Import File Strings/,/^$/ {
  7899. /^0/ {
  7900. s/^0 *\([^ ]*\) *$/\1/
  7901. p
  7902. }
  7903. }'
  7904. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7905. # Check for a 64-bit object if we didn't find anything.
  7906. if test -z "$lt_cv_aix_libpath_"; then
  7907. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7908. fi
  7909. fi
  7910. rm -f core conftest.err conftest.$ac_objext \
  7911. conftest$ac_exeext conftest.$ac_ext
  7912. if test -z "$lt_cv_aix_libpath_"; then
  7913. lt_cv_aix_libpath_="/usr/lib:/lib"
  7914. fi
  7915. fi
  7916. aix_libpath=$lt_cv_aix_libpath_
  7917. fi
  7918. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7919. # Warning - without using the other run time loading flags,
  7920. # -berok will link without error, but may produce a broken library.
  7921. no_undefined_flag=' ${wl}-bernotok'
  7922. allow_undefined_flag=' ${wl}-berok'
  7923. if test "$with_gnu_ld" = yes; then
  7924. # We only use this code for GNU lds that support --whole-archive.
  7925. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7926. else
  7927. # Exported symbols can be pulled into shared objects from archives
  7928. whole_archive_flag_spec='$convenience'
  7929. fi
  7930. archive_cmds_need_lc=yes
  7931. # This is similar to how AIX traditionally builds its shared libraries.
  7932. 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'
  7933. fi
  7934. fi
  7935. ;;
  7936. amigaos*)
  7937. case $host_cpu in
  7938. powerpc)
  7939. # see comment about AmigaOS4 .so support
  7940. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7941. archive_expsym_cmds=''
  7942. ;;
  7943. m68k)
  7944. 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)'
  7945. hardcode_libdir_flag_spec='-L$libdir'
  7946. hardcode_minus_L=yes
  7947. ;;
  7948. esac
  7949. ;;
  7950. bsdi[45]*)
  7951. export_dynamic_flag_spec=-rdynamic
  7952. ;;
  7953. cygwin* | mingw* | pw32* | cegcc*)
  7954. # When not using gcc, we currently assume that we are using
  7955. # Microsoft Visual C++.
  7956. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7957. # no search path for DLLs.
  7958. case $cc_basename in
  7959. cl*)
  7960. # Native MSVC
  7961. hardcode_libdir_flag_spec=' '
  7962. allow_undefined_flag=unsupported
  7963. always_export_symbols=yes
  7964. file_list_spec='@'
  7965. # Tell ltmain to make .lib files, not .a files.
  7966. libext=lib
  7967. # Tell ltmain to make .dll files, not .so files.
  7968. shrext_cmds=".dll"
  7969. # FIXME: Setting linknames here is a bad hack.
  7970. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7971. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7972. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7973. else
  7974. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7975. fi~
  7976. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7977. linknames='
  7978. # The linker will not automatically build a static lib if we build a DLL.
  7979. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7980. enable_shared_with_static_runtimes=yes
  7981. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7982. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7983. # Don't use ranlib
  7984. old_postinstall_cmds='chmod 644 $oldlib'
  7985. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7986. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7987. case $lt_outputfile in
  7988. *.exe|*.EXE) ;;
  7989. *)
  7990. lt_outputfile="$lt_outputfile.exe"
  7991. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7992. ;;
  7993. esac~
  7994. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  7995. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7996. $RM "$lt_outputfile.manifest";
  7997. fi'
  7998. ;;
  7999. *)
  8000. # Assume MSVC wrapper
  8001. hardcode_libdir_flag_spec=' '
  8002. allow_undefined_flag=unsupported
  8003. # Tell ltmain to make .lib files, not .a files.
  8004. libext=lib
  8005. # Tell ltmain to make .dll files, not .so files.
  8006. shrext_cmds=".dll"
  8007. # FIXME: Setting linknames here is a bad hack.
  8008. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8009. # The linker will automatically build a .lib file if we build a DLL.
  8010. old_archive_from_new_cmds='true'
  8011. # FIXME: Should let the user specify the lib program.
  8012. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8013. enable_shared_with_static_runtimes=yes
  8014. ;;
  8015. esac
  8016. ;;
  8017. darwin* | rhapsody*)
  8018. archive_cmds_need_lc=no
  8019. hardcode_direct=no
  8020. hardcode_automatic=yes
  8021. hardcode_shlibpath_var=unsupported
  8022. if test "$lt_cv_ld_force_load" = "yes"; then
  8023. 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\"`'
  8024. else
  8025. whole_archive_flag_spec=''
  8026. fi
  8027. link_all_deplibs=yes
  8028. allow_undefined_flag="$_lt_dar_allow_undefined"
  8029. case $cc_basename in
  8030. ifort*) _lt_dar_can_shared=yes ;;
  8031. *) _lt_dar_can_shared=$GCC ;;
  8032. esac
  8033. if test "$_lt_dar_can_shared" = "yes"; then
  8034. output_verbose_link_cmd=func_echo_all
  8035. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8036. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8037. 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}"
  8038. 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}"
  8039. else
  8040. ld_shlibs=no
  8041. fi
  8042. ;;
  8043. dgux*)
  8044. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8045. hardcode_libdir_flag_spec='-L$libdir'
  8046. hardcode_shlibpath_var=no
  8047. ;;
  8048. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8049. # support. Future versions do this automatically, but an explicit c++rt0.o
  8050. # does not break anything, and helps significantly (at the cost of a little
  8051. # extra space).
  8052. freebsd2.2*)
  8053. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8054. hardcode_libdir_flag_spec='-R$libdir'
  8055. hardcode_direct=yes
  8056. hardcode_shlibpath_var=no
  8057. ;;
  8058. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8059. freebsd2.*)
  8060. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8061. hardcode_direct=yes
  8062. hardcode_minus_L=yes
  8063. hardcode_shlibpath_var=no
  8064. ;;
  8065. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8066. freebsd* | dragonfly*)
  8067. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8068. hardcode_libdir_flag_spec='-R$libdir'
  8069. hardcode_direct=yes
  8070. hardcode_shlibpath_var=no
  8071. ;;
  8072. hpux9*)
  8073. if test "$GCC" = yes; then
  8074. 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'
  8075. else
  8076. 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'
  8077. fi
  8078. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8079. hardcode_libdir_separator=:
  8080. hardcode_direct=yes
  8081. # hardcode_minus_L: Not really in the search PATH,
  8082. # but as the default location of the library.
  8083. hardcode_minus_L=yes
  8084. export_dynamic_flag_spec='${wl}-E'
  8085. ;;
  8086. hpux10*)
  8087. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8088. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8089. else
  8090. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8091. fi
  8092. if test "$with_gnu_ld" = no; then
  8093. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8094. hardcode_libdir_separator=:
  8095. hardcode_direct=yes
  8096. hardcode_direct_absolute=yes
  8097. export_dynamic_flag_spec='${wl}-E'
  8098. # hardcode_minus_L: Not really in the search PATH,
  8099. # but as the default location of the library.
  8100. hardcode_minus_L=yes
  8101. fi
  8102. ;;
  8103. hpux11*)
  8104. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8105. case $host_cpu in
  8106. hppa*64*)
  8107. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8108. ;;
  8109. ia64*)
  8110. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8111. ;;
  8112. *)
  8113. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8114. ;;
  8115. esac
  8116. else
  8117. case $host_cpu in
  8118. hppa*64*)
  8119. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8120. ;;
  8121. ia64*)
  8122. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8123. ;;
  8124. *)
  8125. # Older versions of the 11.00 compiler do not understand -b yet
  8126. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8128. $as_echo_n "checking if $CC understands -b... " >&6; }
  8129. if ${lt_cv_prog_compiler__b+:} false; then :
  8130. $as_echo_n "(cached) " >&6
  8131. else
  8132. lt_cv_prog_compiler__b=no
  8133. save_LDFLAGS="$LDFLAGS"
  8134. LDFLAGS="$LDFLAGS -b"
  8135. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8136. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8137. # The linker can only warn and ignore the option if not recognized
  8138. # So say no if there are warnings
  8139. if test -s conftest.err; then
  8140. # Append any errors to the config.log.
  8141. cat conftest.err 1>&5
  8142. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8143. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8144. if diff conftest.exp conftest.er2 >/dev/null; then
  8145. lt_cv_prog_compiler__b=yes
  8146. fi
  8147. else
  8148. lt_cv_prog_compiler__b=yes
  8149. fi
  8150. fi
  8151. $RM -r conftest*
  8152. LDFLAGS="$save_LDFLAGS"
  8153. fi
  8154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8155. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8156. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8157. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8158. else
  8159. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8160. fi
  8161. ;;
  8162. esac
  8163. fi
  8164. if test "$with_gnu_ld" = no; then
  8165. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8166. hardcode_libdir_separator=:
  8167. case $host_cpu in
  8168. hppa*64*|ia64*)
  8169. hardcode_direct=no
  8170. hardcode_shlibpath_var=no
  8171. ;;
  8172. *)
  8173. hardcode_direct=yes
  8174. hardcode_direct_absolute=yes
  8175. export_dynamic_flag_spec='${wl}-E'
  8176. # hardcode_minus_L: Not really in the search PATH,
  8177. # but as the default location of the library.
  8178. hardcode_minus_L=yes
  8179. ;;
  8180. esac
  8181. fi
  8182. ;;
  8183. irix5* | irix6* | nonstopux*)
  8184. if test "$GCC" = yes; then
  8185. 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'
  8186. # Try to use the -exported_symbol ld option, if it does not
  8187. # work, assume that -exports_file does not work either and
  8188. # implicitly export all symbols.
  8189. # This should be the same for all languages, so no per-tag cache variable.
  8190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8191. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8192. if ${lt_cv_irix_exported_symbol+:} false; then :
  8193. $as_echo_n "(cached) " >&6
  8194. else
  8195. save_LDFLAGS="$LDFLAGS"
  8196. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8198. /* end confdefs.h. */
  8199. int foo (void) { return 0; }
  8200. _ACEOF
  8201. if ac_fn_c_try_link "$LINENO"; then :
  8202. lt_cv_irix_exported_symbol=yes
  8203. else
  8204. lt_cv_irix_exported_symbol=no
  8205. fi
  8206. rm -f core conftest.err conftest.$ac_objext \
  8207. conftest$ac_exeext conftest.$ac_ext
  8208. LDFLAGS="$save_LDFLAGS"
  8209. fi
  8210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8211. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8212. if test "$lt_cv_irix_exported_symbol" = yes; then
  8213. 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'
  8214. fi
  8215. else
  8216. 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'
  8217. 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'
  8218. fi
  8219. archive_cmds_need_lc='no'
  8220. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8221. hardcode_libdir_separator=:
  8222. inherit_rpath=yes
  8223. link_all_deplibs=yes
  8224. ;;
  8225. netbsd*)
  8226. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8227. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8228. else
  8229. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8230. fi
  8231. hardcode_libdir_flag_spec='-R$libdir'
  8232. hardcode_direct=yes
  8233. hardcode_shlibpath_var=no
  8234. ;;
  8235. newsos6)
  8236. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8237. hardcode_direct=yes
  8238. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8239. hardcode_libdir_separator=:
  8240. hardcode_shlibpath_var=no
  8241. ;;
  8242. *nto* | *qnx*)
  8243. ;;
  8244. openbsd*)
  8245. if test -f /usr/libexec/ld.so; then
  8246. hardcode_direct=yes
  8247. hardcode_shlibpath_var=no
  8248. hardcode_direct_absolute=yes
  8249. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8250. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8251. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8252. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8253. export_dynamic_flag_spec='${wl}-E'
  8254. else
  8255. case $host_os in
  8256. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8257. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8258. hardcode_libdir_flag_spec='-R$libdir'
  8259. ;;
  8260. *)
  8261. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8262. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8263. ;;
  8264. esac
  8265. fi
  8266. else
  8267. ld_shlibs=no
  8268. fi
  8269. ;;
  8270. os2*)
  8271. hardcode_libdir_flag_spec='-L$libdir'
  8272. hardcode_minus_L=yes
  8273. allow_undefined_flag=unsupported
  8274. 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'
  8275. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8276. ;;
  8277. osf3*)
  8278. if test "$GCC" = yes; then
  8279. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8280. 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'
  8281. else
  8282. allow_undefined_flag=' -expect_unresolved \*'
  8283. 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'
  8284. fi
  8285. archive_cmds_need_lc='no'
  8286. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8287. hardcode_libdir_separator=:
  8288. ;;
  8289. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8290. if test "$GCC" = yes; then
  8291. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8292. 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'
  8293. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8294. else
  8295. allow_undefined_flag=' -expect_unresolved \*'
  8296. 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'
  8297. 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~
  8298. $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'
  8299. # Both c and cxx compiler support -rpath directly
  8300. hardcode_libdir_flag_spec='-rpath $libdir'
  8301. fi
  8302. archive_cmds_need_lc='no'
  8303. hardcode_libdir_separator=:
  8304. ;;
  8305. solaris*)
  8306. no_undefined_flag=' -z defs'
  8307. if test "$GCC" = yes; then
  8308. wlarc='${wl}'
  8309. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8310. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8311. $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'
  8312. else
  8313. case `$CC -V 2>&1` in
  8314. *"Compilers 5.0"*)
  8315. wlarc=''
  8316. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8317. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8318. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8319. ;;
  8320. *)
  8321. wlarc='${wl}'
  8322. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8323. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8324. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8325. ;;
  8326. esac
  8327. fi
  8328. hardcode_libdir_flag_spec='-R$libdir'
  8329. hardcode_shlibpath_var=no
  8330. case $host_os in
  8331. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8332. *)
  8333. # The compiler driver will combine and reorder linker options,
  8334. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8335. # but is careful enough not to reorder.
  8336. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8337. if test "$GCC" = yes; then
  8338. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8339. else
  8340. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8341. fi
  8342. ;;
  8343. esac
  8344. link_all_deplibs=yes
  8345. ;;
  8346. sunos4*)
  8347. if test "x$host_vendor" = xsequent; then
  8348. # Use $CC to link under sequent, because it throws in some extra .o
  8349. # files that make .init and .fini sections work.
  8350. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8351. else
  8352. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8353. fi
  8354. hardcode_libdir_flag_spec='-L$libdir'
  8355. hardcode_direct=yes
  8356. hardcode_minus_L=yes
  8357. hardcode_shlibpath_var=no
  8358. ;;
  8359. sysv4)
  8360. case $host_vendor in
  8361. sni)
  8362. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8363. hardcode_direct=yes # is this really true???
  8364. ;;
  8365. siemens)
  8366. ## LD is ld it makes a PLAMLIB
  8367. ## CC just makes a GrossModule.
  8368. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8369. reload_cmds='$CC -r -o $output$reload_objs'
  8370. hardcode_direct=no
  8371. ;;
  8372. motorola)
  8373. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8374. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8375. ;;
  8376. esac
  8377. runpath_var='LD_RUN_PATH'
  8378. hardcode_shlibpath_var=no
  8379. ;;
  8380. sysv4.3*)
  8381. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8382. hardcode_shlibpath_var=no
  8383. export_dynamic_flag_spec='-Bexport'
  8384. ;;
  8385. sysv4*MP*)
  8386. if test -d /usr/nec; then
  8387. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8388. hardcode_shlibpath_var=no
  8389. runpath_var=LD_RUN_PATH
  8390. hardcode_runpath_var=yes
  8391. ld_shlibs=yes
  8392. fi
  8393. ;;
  8394. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8395. no_undefined_flag='${wl}-z,text'
  8396. archive_cmds_need_lc=no
  8397. hardcode_shlibpath_var=no
  8398. runpath_var='LD_RUN_PATH'
  8399. if test "$GCC" = yes; then
  8400. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8401. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8402. else
  8403. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8404. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8405. fi
  8406. ;;
  8407. sysv5* | sco3.2v5* | sco5v6*)
  8408. # Note: We can NOT use -z defs as we might desire, because we do not
  8409. # link with -lc, and that would cause any symbols used from libc to
  8410. # always be unresolved, which means just about no library would
  8411. # ever link correctly. If we're not using GNU ld we use -z text
  8412. # though, which does catch some bad symbols but isn't as heavy-handed
  8413. # as -z defs.
  8414. no_undefined_flag='${wl}-z,text'
  8415. allow_undefined_flag='${wl}-z,nodefs'
  8416. archive_cmds_need_lc=no
  8417. hardcode_shlibpath_var=no
  8418. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8419. hardcode_libdir_separator=':'
  8420. link_all_deplibs=yes
  8421. export_dynamic_flag_spec='${wl}-Bexport'
  8422. runpath_var='LD_RUN_PATH'
  8423. if test "$GCC" = yes; then
  8424. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8425. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8426. else
  8427. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8428. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8429. fi
  8430. ;;
  8431. uts4*)
  8432. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8433. hardcode_libdir_flag_spec='-L$libdir'
  8434. hardcode_shlibpath_var=no
  8435. ;;
  8436. *)
  8437. ld_shlibs=no
  8438. ;;
  8439. esac
  8440. if test x$host_vendor = xsni; then
  8441. case $host in
  8442. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8443. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8444. ;;
  8445. esac
  8446. fi
  8447. fi
  8448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8449. $as_echo "$ld_shlibs" >&6; }
  8450. test "$ld_shlibs" = no && can_build_shared=no
  8451. with_gnu_ld=$with_gnu_ld
  8452. #
  8453. # Do we need to explicitly link libc?
  8454. #
  8455. case "x$archive_cmds_need_lc" in
  8456. x|xyes)
  8457. # Assume -lc should be added
  8458. archive_cmds_need_lc=yes
  8459. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8460. case $archive_cmds in
  8461. *'~'*)
  8462. # FIXME: we may have to deal with multi-command sequences.
  8463. ;;
  8464. '$CC '*)
  8465. # Test whether the compiler implicitly links with -lc since on some
  8466. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8467. # to ld, don't add -lc before -lgcc.
  8468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8469. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8470. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8471. $as_echo_n "(cached) " >&6
  8472. else
  8473. $RM conftest*
  8474. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8475. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8476. (eval $ac_compile) 2>&5
  8477. ac_status=$?
  8478. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8479. test $ac_status = 0; } 2>conftest.err; then
  8480. soname=conftest
  8481. lib=conftest
  8482. libobjs=conftest.$ac_objext
  8483. deplibs=
  8484. wl=$lt_prog_compiler_wl
  8485. pic_flag=$lt_prog_compiler_pic
  8486. compiler_flags=-v
  8487. linker_flags=-v
  8488. verstring=
  8489. output_objdir=.
  8490. libname=conftest
  8491. lt_save_allow_undefined_flag=$allow_undefined_flag
  8492. allow_undefined_flag=
  8493. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8494. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8495. ac_status=$?
  8496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8497. test $ac_status = 0; }
  8498. then
  8499. lt_cv_archive_cmds_need_lc=no
  8500. else
  8501. lt_cv_archive_cmds_need_lc=yes
  8502. fi
  8503. allow_undefined_flag=$lt_save_allow_undefined_flag
  8504. else
  8505. cat conftest.err 1>&5
  8506. fi
  8507. $RM conftest*
  8508. fi
  8509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8510. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8511. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8512. ;;
  8513. esac
  8514. fi
  8515. ;;
  8516. esac
  8517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8518. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8519. if test "$GCC" = yes; then
  8520. case $host_os in
  8521. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8522. *) lt_awk_arg="/^libraries:/" ;;
  8523. esac
  8524. case $host_os in
  8525. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8526. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8527. esac
  8528. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8529. case $lt_search_path_spec in
  8530. *\;*)
  8531. # if the path contains ";" then we assume it to be the separator
  8532. # otherwise default to the standard path separator (i.e. ":") - it is
  8533. # assumed that no part of a normal pathname contains ";" but that should
  8534. # okay in the real world where ";" in dirpaths is itself problematic.
  8535. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8536. ;;
  8537. *)
  8538. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8539. ;;
  8540. esac
  8541. # Ok, now we have the path, separated by spaces, we can step through it
  8542. # and add multilib dir if necessary...
  8543. lt_tmp_lt_search_path_spec=
  8544. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8545. # ...but if some path already ends with the multilib dir we assume
  8546. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8547. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8548. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8549. lt_multi_os_dir=
  8550. ;;
  8551. esac
  8552. for lt_sys_path in $lt_search_path_spec; do
  8553. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8554. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8555. elif test -n "$lt_multi_os_dir"; then
  8556. test -d "$lt_sys_path" && \
  8557. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8558. fi
  8559. done
  8560. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8561. BEGIN {RS=" "; FS="/|\n";} {
  8562. lt_foo="";
  8563. lt_count=0;
  8564. for (lt_i = NF; lt_i > 0; lt_i--) {
  8565. if ($lt_i != "" && $lt_i != ".") {
  8566. if ($lt_i == "..") {
  8567. lt_count++;
  8568. } else {
  8569. if (lt_count == 0) {
  8570. lt_foo="/" $lt_i lt_foo;
  8571. } else {
  8572. lt_count--;
  8573. }
  8574. }
  8575. }
  8576. }
  8577. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8578. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8579. }'`
  8580. # AWK program above erroneously prepends '/' to C:/dos/paths
  8581. # for these hosts.
  8582. case $host_os in
  8583. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8584. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8585. esac
  8586. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8587. else
  8588. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8589. fi
  8590. library_names_spec=
  8591. libname_spec='lib$name'
  8592. soname_spec=
  8593. shrext_cmds=".so"
  8594. postinstall_cmds=
  8595. postuninstall_cmds=
  8596. finish_cmds=
  8597. finish_eval=
  8598. shlibpath_var=
  8599. shlibpath_overrides_runpath=unknown
  8600. version_type=none
  8601. dynamic_linker="$host_os ld.so"
  8602. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8603. need_lib_prefix=unknown
  8604. hardcode_into_libs=no
  8605. # when you set need_version to no, make sure it does not cause -set_version
  8606. # flags to be left without arguments
  8607. need_version=unknown
  8608. case $host_os in
  8609. aix3*)
  8610. version_type=linux # correct to gnu/linux during the next big refactor
  8611. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8612. shlibpath_var=LIBPATH
  8613. # AIX 3 has no versioning support, so we append a major version to the name.
  8614. soname_spec='${libname}${release}${shared_ext}$major'
  8615. ;;
  8616. aix[4-9]*)
  8617. version_type=linux # correct to gnu/linux during the next big refactor
  8618. need_lib_prefix=no
  8619. need_version=no
  8620. hardcode_into_libs=yes
  8621. if test "$host_cpu" = ia64; then
  8622. # AIX 5 supports IA64
  8623. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8624. shlibpath_var=LD_LIBRARY_PATH
  8625. else
  8626. # With GCC up to 2.95.x, collect2 would create an import file
  8627. # for dependence libraries. The import file would start with
  8628. # the line `#! .'. This would cause the generated library to
  8629. # depend on `.', always an invalid library. This was fixed in
  8630. # development snapshots of GCC prior to 3.0.
  8631. case $host_os in
  8632. aix4 | aix4.[01] | aix4.[01].*)
  8633. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8634. echo ' yes '
  8635. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8636. :
  8637. else
  8638. can_build_shared=no
  8639. fi
  8640. ;;
  8641. esac
  8642. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8643. # soname into executable. Probably we can add versioning support to
  8644. # collect2, so additional links can be useful in future.
  8645. if test "$aix_use_runtimelinking" = yes; then
  8646. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8647. # instead of lib<name>.a to let people know that these are not
  8648. # typical AIX shared libraries.
  8649. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8650. else
  8651. # We preserve .a as extension for shared libraries through AIX4.2
  8652. # and later when we are not doing run time linking.
  8653. library_names_spec='${libname}${release}.a $libname.a'
  8654. soname_spec='${libname}${release}${shared_ext}$major'
  8655. fi
  8656. shlibpath_var=LIBPATH
  8657. fi
  8658. ;;
  8659. amigaos*)
  8660. case $host_cpu in
  8661. powerpc)
  8662. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8663. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8664. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8665. ;;
  8666. m68k)
  8667. library_names_spec='$libname.ixlibrary $libname.a'
  8668. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8669. 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'
  8670. ;;
  8671. esac
  8672. ;;
  8673. beos*)
  8674. library_names_spec='${libname}${shared_ext}'
  8675. dynamic_linker="$host_os ld.so"
  8676. shlibpath_var=LIBRARY_PATH
  8677. ;;
  8678. bsdi[45]*)
  8679. version_type=linux # correct to gnu/linux during the next big refactor
  8680. need_version=no
  8681. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8682. soname_spec='${libname}${release}${shared_ext}$major'
  8683. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8684. shlibpath_var=LD_LIBRARY_PATH
  8685. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8686. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8687. # the default ld.so.conf also contains /usr/contrib/lib and
  8688. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8689. # libtool to hard-code these into programs
  8690. ;;
  8691. cygwin* | mingw* | pw32* | cegcc*)
  8692. version_type=windows
  8693. shrext_cmds=".dll"
  8694. need_version=no
  8695. need_lib_prefix=no
  8696. case $GCC,$cc_basename in
  8697. yes,*)
  8698. # gcc
  8699. library_names_spec='$libname.dll.a'
  8700. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8701. postinstall_cmds='base_file=`basename \${file}`~
  8702. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8703. dldir=$destdir/`dirname \$dlpath`~
  8704. test -d \$dldir || mkdir -p \$dldir~
  8705. $install_prog $dir/$dlname \$dldir/$dlname~
  8706. chmod a+x \$dldir/$dlname~
  8707. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8708. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8709. fi'
  8710. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8711. dlpath=$dir/\$dldll~
  8712. $RM \$dlpath'
  8713. shlibpath_overrides_runpath=yes
  8714. case $host_os in
  8715. cygwin*)
  8716. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8717. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8718. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8719. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8720. ;;
  8721. mingw* | cegcc*)
  8722. # MinGW DLLs use traditional 'lib' prefix
  8723. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8724. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8725. ;;
  8726. pw32*)
  8727. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8728. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8729. ;;
  8730. esac
  8731. dynamic_linker='Win32 ld.exe'
  8732. ;;
  8733. *,cl*)
  8734. # Native MSVC
  8735. libname_spec='$name'
  8736. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8737. library_names_spec='${libname}.dll.lib'
  8738. case $build_os in
  8739. mingw*)
  8740. sys_lib_search_path_spec=
  8741. lt_save_ifs=$IFS
  8742. IFS=';'
  8743. for lt_path in $LIB
  8744. do
  8745. IFS=$lt_save_ifs
  8746. # Let DOS variable expansion print the short 8.3 style file name.
  8747. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8748. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8749. done
  8750. IFS=$lt_save_ifs
  8751. # Convert to MSYS style.
  8752. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8753. ;;
  8754. cygwin*)
  8755. # Convert to unix form, then to dos form, then back to unix form
  8756. # but this time dos style (no spaces!) so that the unix form looks
  8757. # like /cygdrive/c/PROGRA~1:/cygdr...
  8758. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8759. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8760. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8761. ;;
  8762. *)
  8763. sys_lib_search_path_spec="$LIB"
  8764. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8765. # It is most probably a Windows format PATH.
  8766. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8767. else
  8768. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8769. fi
  8770. # FIXME: find the short name or the path components, as spaces are
  8771. # common. (e.g. "Program Files" -> "PROGRA~1")
  8772. ;;
  8773. esac
  8774. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8775. postinstall_cmds='base_file=`basename \${file}`~
  8776. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8777. dldir=$destdir/`dirname \$dlpath`~
  8778. test -d \$dldir || mkdir -p \$dldir~
  8779. $install_prog $dir/$dlname \$dldir/$dlname'
  8780. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8781. dlpath=$dir/\$dldll~
  8782. $RM \$dlpath'
  8783. shlibpath_overrides_runpath=yes
  8784. dynamic_linker='Win32 link.exe'
  8785. ;;
  8786. *)
  8787. # Assume MSVC wrapper
  8788. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8789. dynamic_linker='Win32 ld.exe'
  8790. ;;
  8791. esac
  8792. # FIXME: first we should search . and the directory the executable is in
  8793. shlibpath_var=PATH
  8794. ;;
  8795. darwin* | rhapsody*)
  8796. dynamic_linker="$host_os dyld"
  8797. version_type=darwin
  8798. need_lib_prefix=no
  8799. need_version=no
  8800. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8801. soname_spec='${libname}${release}${major}$shared_ext'
  8802. shlibpath_overrides_runpath=yes
  8803. shlibpath_var=DYLD_LIBRARY_PATH
  8804. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8805. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8806. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8807. ;;
  8808. dgux*)
  8809. version_type=linux # correct to gnu/linux during the next big refactor
  8810. need_lib_prefix=no
  8811. need_version=no
  8812. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8813. soname_spec='${libname}${release}${shared_ext}$major'
  8814. shlibpath_var=LD_LIBRARY_PATH
  8815. ;;
  8816. freebsd* | dragonfly*)
  8817. # DragonFly does not have aout. When/if they implement a new
  8818. # versioning mechanism, adjust this.
  8819. if test -x /usr/bin/objformat; then
  8820. objformat=`/usr/bin/objformat`
  8821. else
  8822. case $host_os in
  8823. freebsd[23].*) objformat=aout ;;
  8824. *) objformat=elf ;;
  8825. esac
  8826. fi
  8827. version_type=freebsd-$objformat
  8828. case $version_type in
  8829. freebsd-elf*)
  8830. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8831. need_version=no
  8832. need_lib_prefix=no
  8833. ;;
  8834. freebsd-*)
  8835. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8836. need_version=yes
  8837. ;;
  8838. esac
  8839. shlibpath_var=LD_LIBRARY_PATH
  8840. case $host_os in
  8841. freebsd2.*)
  8842. shlibpath_overrides_runpath=yes
  8843. ;;
  8844. freebsd3.[01]* | freebsdelf3.[01]*)
  8845. shlibpath_overrides_runpath=yes
  8846. hardcode_into_libs=yes
  8847. ;;
  8848. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8849. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8850. shlibpath_overrides_runpath=no
  8851. hardcode_into_libs=yes
  8852. ;;
  8853. *) # from 4.6 on, and DragonFly
  8854. shlibpath_overrides_runpath=yes
  8855. hardcode_into_libs=yes
  8856. ;;
  8857. esac
  8858. ;;
  8859. gnu*)
  8860. version_type=linux # correct to gnu/linux during the next big refactor
  8861. need_lib_prefix=no
  8862. need_version=no
  8863. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8864. soname_spec='${libname}${release}${shared_ext}$major'
  8865. shlibpath_var=LD_LIBRARY_PATH
  8866. shlibpath_overrides_runpath=no
  8867. hardcode_into_libs=yes
  8868. ;;
  8869. haiku*)
  8870. version_type=linux # correct to gnu/linux during the next big refactor
  8871. need_lib_prefix=no
  8872. need_version=no
  8873. dynamic_linker="$host_os runtime_loader"
  8874. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8875. soname_spec='${libname}${release}${shared_ext}$major'
  8876. shlibpath_var=LIBRARY_PATH
  8877. shlibpath_overrides_runpath=yes
  8878. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8879. hardcode_into_libs=yes
  8880. ;;
  8881. hpux9* | hpux10* | hpux11*)
  8882. # Give a soname corresponding to the major version so that dld.sl refuses to
  8883. # link against other versions.
  8884. version_type=sunos
  8885. need_lib_prefix=no
  8886. need_version=no
  8887. case $host_cpu in
  8888. ia64*)
  8889. shrext_cmds='.so'
  8890. hardcode_into_libs=yes
  8891. dynamic_linker="$host_os dld.so"
  8892. shlibpath_var=LD_LIBRARY_PATH
  8893. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8894. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8895. soname_spec='${libname}${release}${shared_ext}$major'
  8896. if test "X$HPUX_IA64_MODE" = X32; then
  8897. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8898. else
  8899. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8900. fi
  8901. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8902. ;;
  8903. hppa*64*)
  8904. shrext_cmds='.sl'
  8905. hardcode_into_libs=yes
  8906. dynamic_linker="$host_os dld.sl"
  8907. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8908. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8909. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8910. soname_spec='${libname}${release}${shared_ext}$major'
  8911. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8912. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8913. ;;
  8914. *)
  8915. shrext_cmds='.sl'
  8916. dynamic_linker="$host_os dld.sl"
  8917. shlibpath_var=SHLIB_PATH
  8918. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8919. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8920. soname_spec='${libname}${release}${shared_ext}$major'
  8921. ;;
  8922. esac
  8923. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8924. postinstall_cmds='chmod 555 $lib'
  8925. # or fails outright, so override atomically:
  8926. install_override_mode=555
  8927. ;;
  8928. interix[3-9]*)
  8929. version_type=linux # correct to gnu/linux during the next big refactor
  8930. need_lib_prefix=no
  8931. need_version=no
  8932. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8933. soname_spec='${libname}${release}${shared_ext}$major'
  8934. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8935. shlibpath_var=LD_LIBRARY_PATH
  8936. shlibpath_overrides_runpath=no
  8937. hardcode_into_libs=yes
  8938. ;;
  8939. irix5* | irix6* | nonstopux*)
  8940. case $host_os in
  8941. nonstopux*) version_type=nonstopux ;;
  8942. *)
  8943. if test "$lt_cv_prog_gnu_ld" = yes; then
  8944. version_type=linux # correct to gnu/linux during the next big refactor
  8945. else
  8946. version_type=irix
  8947. fi ;;
  8948. esac
  8949. need_lib_prefix=no
  8950. need_version=no
  8951. soname_spec='${libname}${release}${shared_ext}$major'
  8952. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8953. case $host_os in
  8954. irix5* | nonstopux*)
  8955. libsuff= shlibsuff=
  8956. ;;
  8957. *)
  8958. case $LD in # libtool.m4 will add one of these switches to LD
  8959. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8960. libsuff= shlibsuff= libmagic=32-bit;;
  8961. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8962. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8963. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8964. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8965. *) libsuff= shlibsuff= libmagic=never-match;;
  8966. esac
  8967. ;;
  8968. esac
  8969. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8970. shlibpath_overrides_runpath=no
  8971. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8972. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8973. hardcode_into_libs=yes
  8974. ;;
  8975. # No shared lib support for Linux oldld, aout, or coff.
  8976. linux*oldld* | linux*aout* | linux*coff*)
  8977. dynamic_linker=no
  8978. ;;
  8979. # This must be glibc/ELF.
  8980. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8981. version_type=linux # correct to gnu/linux during the next big refactor
  8982. need_lib_prefix=no
  8983. need_version=no
  8984. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8985. soname_spec='${libname}${release}${shared_ext}$major'
  8986. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8987. shlibpath_var=LD_LIBRARY_PATH
  8988. shlibpath_overrides_runpath=no
  8989. # Some binutils ld are patched to set DT_RUNPATH
  8990. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8991. $as_echo_n "(cached) " >&6
  8992. else
  8993. lt_cv_shlibpath_overrides_runpath=no
  8994. save_LDFLAGS=$LDFLAGS
  8995. save_libdir=$libdir
  8996. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8997. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8999. /* end confdefs.h. */
  9000. int
  9001. main ()
  9002. {
  9003. ;
  9004. return 0;
  9005. }
  9006. _ACEOF
  9007. if ac_fn_c_try_link "$LINENO"; then :
  9008. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9009. lt_cv_shlibpath_overrides_runpath=yes
  9010. fi
  9011. fi
  9012. rm -f core conftest.err conftest.$ac_objext \
  9013. conftest$ac_exeext conftest.$ac_ext
  9014. LDFLAGS=$save_LDFLAGS
  9015. libdir=$save_libdir
  9016. fi
  9017. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9018. # This implies no fast_install, which is unacceptable.
  9019. # Some rework will be needed to allow for fast_install
  9020. # before this can be enabled.
  9021. hardcode_into_libs=yes
  9022. # Append ld.so.conf contents to the search path
  9023. if test -f /etc/ld.so.conf; then
  9024. 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' ' '`
  9025. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9026. fi
  9027. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9028. # powerpc, because MkLinux only supported shared libraries with the
  9029. # GNU dynamic linker. Since this was broken with cross compilers,
  9030. # most powerpc-linux boxes support dynamic linking these days and
  9031. # people can always --disable-shared, the test was removed, and we
  9032. # assume the GNU/Linux dynamic linker is in use.
  9033. dynamic_linker='GNU/Linux ld.so'
  9034. ;;
  9035. netbsd*)
  9036. version_type=sunos
  9037. need_lib_prefix=no
  9038. need_version=no
  9039. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9040. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9041. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9042. dynamic_linker='NetBSD (a.out) ld.so'
  9043. else
  9044. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9045. soname_spec='${libname}${release}${shared_ext}$major'
  9046. dynamic_linker='NetBSD ld.elf_so'
  9047. fi
  9048. shlibpath_var=LD_LIBRARY_PATH
  9049. shlibpath_overrides_runpath=yes
  9050. hardcode_into_libs=yes
  9051. ;;
  9052. newsos6)
  9053. version_type=linux # correct to gnu/linux during the next big refactor
  9054. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9055. shlibpath_var=LD_LIBRARY_PATH
  9056. shlibpath_overrides_runpath=yes
  9057. ;;
  9058. *nto* | *qnx*)
  9059. version_type=qnx
  9060. need_lib_prefix=no
  9061. need_version=no
  9062. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9063. soname_spec='${libname}${release}${shared_ext}$major'
  9064. shlibpath_var=LD_LIBRARY_PATH
  9065. shlibpath_overrides_runpath=no
  9066. hardcode_into_libs=yes
  9067. dynamic_linker='ldqnx.so'
  9068. ;;
  9069. openbsd*)
  9070. version_type=sunos
  9071. sys_lib_dlsearch_path_spec="/usr/lib"
  9072. need_lib_prefix=no
  9073. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9074. case $host_os in
  9075. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9076. *) need_version=no ;;
  9077. esac
  9078. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9079. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9080. shlibpath_var=LD_LIBRARY_PATH
  9081. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9082. case $host_os in
  9083. openbsd2.[89] | openbsd2.[89].*)
  9084. shlibpath_overrides_runpath=no
  9085. ;;
  9086. *)
  9087. shlibpath_overrides_runpath=yes
  9088. ;;
  9089. esac
  9090. else
  9091. shlibpath_overrides_runpath=yes
  9092. fi
  9093. ;;
  9094. os2*)
  9095. libname_spec='$name'
  9096. shrext_cmds=".dll"
  9097. need_lib_prefix=no
  9098. library_names_spec='$libname${shared_ext} $libname.a'
  9099. dynamic_linker='OS/2 ld.exe'
  9100. shlibpath_var=LIBPATH
  9101. ;;
  9102. osf3* | osf4* | osf5*)
  9103. version_type=osf
  9104. need_lib_prefix=no
  9105. need_version=no
  9106. soname_spec='${libname}${release}${shared_ext}$major'
  9107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9108. shlibpath_var=LD_LIBRARY_PATH
  9109. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9110. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9111. ;;
  9112. rdos*)
  9113. dynamic_linker=no
  9114. ;;
  9115. solaris*)
  9116. version_type=linux # correct to gnu/linux during the next big refactor
  9117. need_lib_prefix=no
  9118. need_version=no
  9119. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9120. soname_spec='${libname}${release}${shared_ext}$major'
  9121. shlibpath_var=LD_LIBRARY_PATH
  9122. shlibpath_overrides_runpath=yes
  9123. hardcode_into_libs=yes
  9124. # ldd complains unless libraries are executable
  9125. postinstall_cmds='chmod +x $lib'
  9126. ;;
  9127. sunos4*)
  9128. version_type=sunos
  9129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9130. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9131. shlibpath_var=LD_LIBRARY_PATH
  9132. shlibpath_overrides_runpath=yes
  9133. if test "$with_gnu_ld" = yes; then
  9134. need_lib_prefix=no
  9135. fi
  9136. need_version=yes
  9137. ;;
  9138. sysv4 | sysv4.3*)
  9139. version_type=linux # correct to gnu/linux during the next big refactor
  9140. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9141. soname_spec='${libname}${release}${shared_ext}$major'
  9142. shlibpath_var=LD_LIBRARY_PATH
  9143. case $host_vendor in
  9144. sni)
  9145. shlibpath_overrides_runpath=no
  9146. need_lib_prefix=no
  9147. runpath_var=LD_RUN_PATH
  9148. ;;
  9149. siemens)
  9150. need_lib_prefix=no
  9151. ;;
  9152. motorola)
  9153. need_lib_prefix=no
  9154. need_version=no
  9155. shlibpath_overrides_runpath=no
  9156. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9157. ;;
  9158. esac
  9159. ;;
  9160. sysv4*MP*)
  9161. if test -d /usr/nec ;then
  9162. version_type=linux # correct to gnu/linux during the next big refactor
  9163. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9164. soname_spec='$libname${shared_ext}.$major'
  9165. shlibpath_var=LD_LIBRARY_PATH
  9166. fi
  9167. ;;
  9168. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9169. version_type=freebsd-elf
  9170. need_lib_prefix=no
  9171. need_version=no
  9172. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9173. soname_spec='${libname}${release}${shared_ext}$major'
  9174. shlibpath_var=LD_LIBRARY_PATH
  9175. shlibpath_overrides_runpath=yes
  9176. hardcode_into_libs=yes
  9177. if test "$with_gnu_ld" = yes; then
  9178. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9179. else
  9180. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9181. case $host_os in
  9182. sco3.2v5*)
  9183. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9184. ;;
  9185. esac
  9186. fi
  9187. sys_lib_dlsearch_path_spec='/usr/lib'
  9188. ;;
  9189. tpf*)
  9190. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9191. version_type=linux # correct to gnu/linux during the next big refactor
  9192. need_lib_prefix=no
  9193. need_version=no
  9194. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9195. shlibpath_var=LD_LIBRARY_PATH
  9196. shlibpath_overrides_runpath=no
  9197. hardcode_into_libs=yes
  9198. ;;
  9199. uts4*)
  9200. version_type=linux # correct to gnu/linux during the next big refactor
  9201. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9202. soname_spec='${libname}${release}${shared_ext}$major'
  9203. shlibpath_var=LD_LIBRARY_PATH
  9204. ;;
  9205. *)
  9206. dynamic_linker=no
  9207. ;;
  9208. esac
  9209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9210. $as_echo "$dynamic_linker" >&6; }
  9211. test "$dynamic_linker" = no && can_build_shared=no
  9212. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9213. if test "$GCC" = yes; then
  9214. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9215. fi
  9216. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9217. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9218. fi
  9219. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9220. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9221. fi
  9222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9223. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9224. hardcode_action=
  9225. if test -n "$hardcode_libdir_flag_spec" ||
  9226. test -n "$runpath_var" ||
  9227. test "X$hardcode_automatic" = "Xyes" ; then
  9228. # We can hardcode non-existent directories.
  9229. if test "$hardcode_direct" != no &&
  9230. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9231. # have to relink, otherwise we might link with an installed library
  9232. # when we should be linking with a yet-to-be-installed one
  9233. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9234. test "$hardcode_minus_L" != no; then
  9235. # Linking always hardcodes the temporary library directory.
  9236. hardcode_action=relink
  9237. else
  9238. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9239. hardcode_action=immediate
  9240. fi
  9241. else
  9242. # We cannot hardcode anything, or else we can only hardcode existing
  9243. # directories.
  9244. hardcode_action=unsupported
  9245. fi
  9246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9247. $as_echo "$hardcode_action" >&6; }
  9248. if test "$hardcode_action" = relink ||
  9249. test "$inherit_rpath" = yes; then
  9250. # Fast installation is not supported
  9251. enable_fast_install=no
  9252. elif test "$shlibpath_overrides_runpath" = yes ||
  9253. test "$enable_shared" = no; then
  9254. # Fast installation is not necessary
  9255. enable_fast_install=needless
  9256. fi
  9257. if test "x$enable_dlopen" != xyes; then
  9258. enable_dlopen=unknown
  9259. enable_dlopen_self=unknown
  9260. enable_dlopen_self_static=unknown
  9261. else
  9262. lt_cv_dlopen=no
  9263. lt_cv_dlopen_libs=
  9264. case $host_os in
  9265. beos*)
  9266. lt_cv_dlopen="load_add_on"
  9267. lt_cv_dlopen_libs=
  9268. lt_cv_dlopen_self=yes
  9269. ;;
  9270. mingw* | pw32* | cegcc*)
  9271. lt_cv_dlopen="LoadLibrary"
  9272. lt_cv_dlopen_libs=
  9273. ;;
  9274. cygwin*)
  9275. lt_cv_dlopen="dlopen"
  9276. lt_cv_dlopen_libs=
  9277. ;;
  9278. darwin*)
  9279. # if libdl is installed we need to link against it
  9280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9281. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9282. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9283. $as_echo_n "(cached) " >&6
  9284. else
  9285. ac_check_lib_save_LIBS=$LIBS
  9286. LIBS="-ldl $LIBS"
  9287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9288. /* end confdefs.h. */
  9289. /* Override any GCC internal prototype to avoid an error.
  9290. Use char because int might match the return type of a GCC
  9291. builtin and then its argument prototype would still apply. */
  9292. #ifdef __cplusplus
  9293. extern "C"
  9294. #endif
  9295. char dlopen ();
  9296. int
  9297. main ()
  9298. {
  9299. return dlopen ();
  9300. ;
  9301. return 0;
  9302. }
  9303. _ACEOF
  9304. if ac_fn_c_try_link "$LINENO"; then :
  9305. ac_cv_lib_dl_dlopen=yes
  9306. else
  9307. ac_cv_lib_dl_dlopen=no
  9308. fi
  9309. rm -f core conftest.err conftest.$ac_objext \
  9310. conftest$ac_exeext conftest.$ac_ext
  9311. LIBS=$ac_check_lib_save_LIBS
  9312. fi
  9313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9314. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9315. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9316. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9317. else
  9318. lt_cv_dlopen="dyld"
  9319. lt_cv_dlopen_libs=
  9320. lt_cv_dlopen_self=yes
  9321. fi
  9322. ;;
  9323. *)
  9324. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9325. if test "x$ac_cv_func_shl_load" = xyes; then :
  9326. lt_cv_dlopen="shl_load"
  9327. else
  9328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9329. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9330. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9331. $as_echo_n "(cached) " >&6
  9332. else
  9333. ac_check_lib_save_LIBS=$LIBS
  9334. LIBS="-ldld $LIBS"
  9335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9336. /* end confdefs.h. */
  9337. /* Override any GCC internal prototype to avoid an error.
  9338. Use char because int might match the return type of a GCC
  9339. builtin and then its argument prototype would still apply. */
  9340. #ifdef __cplusplus
  9341. extern "C"
  9342. #endif
  9343. char shl_load ();
  9344. int
  9345. main ()
  9346. {
  9347. return shl_load ();
  9348. ;
  9349. return 0;
  9350. }
  9351. _ACEOF
  9352. if ac_fn_c_try_link "$LINENO"; then :
  9353. ac_cv_lib_dld_shl_load=yes
  9354. else
  9355. ac_cv_lib_dld_shl_load=no
  9356. fi
  9357. rm -f core conftest.err conftest.$ac_objext \
  9358. conftest$ac_exeext conftest.$ac_ext
  9359. LIBS=$ac_check_lib_save_LIBS
  9360. fi
  9361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9362. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9363. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9364. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9365. else
  9366. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9367. if test "x$ac_cv_func_dlopen" = xyes; then :
  9368. lt_cv_dlopen="dlopen"
  9369. else
  9370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9371. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9372. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9373. $as_echo_n "(cached) " >&6
  9374. else
  9375. ac_check_lib_save_LIBS=$LIBS
  9376. LIBS="-ldl $LIBS"
  9377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9378. /* end confdefs.h. */
  9379. /* Override any GCC internal prototype to avoid an error.
  9380. Use char because int might match the return type of a GCC
  9381. builtin and then its argument prototype would still apply. */
  9382. #ifdef __cplusplus
  9383. extern "C"
  9384. #endif
  9385. char dlopen ();
  9386. int
  9387. main ()
  9388. {
  9389. return dlopen ();
  9390. ;
  9391. return 0;
  9392. }
  9393. _ACEOF
  9394. if ac_fn_c_try_link "$LINENO"; then :
  9395. ac_cv_lib_dl_dlopen=yes
  9396. else
  9397. ac_cv_lib_dl_dlopen=no
  9398. fi
  9399. rm -f core conftest.err conftest.$ac_objext \
  9400. conftest$ac_exeext conftest.$ac_ext
  9401. LIBS=$ac_check_lib_save_LIBS
  9402. fi
  9403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9404. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9405. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9406. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9407. else
  9408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9409. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9410. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9411. $as_echo_n "(cached) " >&6
  9412. else
  9413. ac_check_lib_save_LIBS=$LIBS
  9414. LIBS="-lsvld $LIBS"
  9415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9416. /* end confdefs.h. */
  9417. /* Override any GCC internal prototype to avoid an error.
  9418. Use char because int might match the return type of a GCC
  9419. builtin and then its argument prototype would still apply. */
  9420. #ifdef __cplusplus
  9421. extern "C"
  9422. #endif
  9423. char dlopen ();
  9424. int
  9425. main ()
  9426. {
  9427. return dlopen ();
  9428. ;
  9429. return 0;
  9430. }
  9431. _ACEOF
  9432. if ac_fn_c_try_link "$LINENO"; then :
  9433. ac_cv_lib_svld_dlopen=yes
  9434. else
  9435. ac_cv_lib_svld_dlopen=no
  9436. fi
  9437. rm -f core conftest.err conftest.$ac_objext \
  9438. conftest$ac_exeext conftest.$ac_ext
  9439. LIBS=$ac_check_lib_save_LIBS
  9440. fi
  9441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9442. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9443. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9444. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9445. else
  9446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9447. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9448. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9449. $as_echo_n "(cached) " >&6
  9450. else
  9451. ac_check_lib_save_LIBS=$LIBS
  9452. LIBS="-ldld $LIBS"
  9453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9454. /* end confdefs.h. */
  9455. /* Override any GCC internal prototype to avoid an error.
  9456. Use char because int might match the return type of a GCC
  9457. builtin and then its argument prototype would still apply. */
  9458. #ifdef __cplusplus
  9459. extern "C"
  9460. #endif
  9461. char dld_link ();
  9462. int
  9463. main ()
  9464. {
  9465. return dld_link ();
  9466. ;
  9467. return 0;
  9468. }
  9469. _ACEOF
  9470. if ac_fn_c_try_link "$LINENO"; then :
  9471. ac_cv_lib_dld_dld_link=yes
  9472. else
  9473. ac_cv_lib_dld_dld_link=no
  9474. fi
  9475. rm -f core conftest.err conftest.$ac_objext \
  9476. conftest$ac_exeext conftest.$ac_ext
  9477. LIBS=$ac_check_lib_save_LIBS
  9478. fi
  9479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9480. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9481. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9482. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9483. fi
  9484. fi
  9485. fi
  9486. fi
  9487. fi
  9488. fi
  9489. ;;
  9490. esac
  9491. if test "x$lt_cv_dlopen" != xno; then
  9492. enable_dlopen=yes
  9493. else
  9494. enable_dlopen=no
  9495. fi
  9496. case $lt_cv_dlopen in
  9497. dlopen)
  9498. save_CPPFLAGS="$CPPFLAGS"
  9499. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9500. save_LDFLAGS="$LDFLAGS"
  9501. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9502. save_LIBS="$LIBS"
  9503. LIBS="$lt_cv_dlopen_libs $LIBS"
  9504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9505. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9506. if ${lt_cv_dlopen_self+:} false; then :
  9507. $as_echo_n "(cached) " >&6
  9508. else
  9509. if test "$cross_compiling" = yes; then :
  9510. lt_cv_dlopen_self=cross
  9511. else
  9512. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9513. lt_status=$lt_dlunknown
  9514. cat > conftest.$ac_ext <<_LT_EOF
  9515. #line $LINENO "configure"
  9516. #include "confdefs.h"
  9517. #if HAVE_DLFCN_H
  9518. #include <dlfcn.h>
  9519. #endif
  9520. #include <stdio.h>
  9521. #ifdef RTLD_GLOBAL
  9522. # define LT_DLGLOBAL RTLD_GLOBAL
  9523. #else
  9524. # ifdef DL_GLOBAL
  9525. # define LT_DLGLOBAL DL_GLOBAL
  9526. # else
  9527. # define LT_DLGLOBAL 0
  9528. # endif
  9529. #endif
  9530. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9531. find out it does not work in some platform. */
  9532. #ifndef LT_DLLAZY_OR_NOW
  9533. # ifdef RTLD_LAZY
  9534. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9535. # else
  9536. # ifdef DL_LAZY
  9537. # define LT_DLLAZY_OR_NOW DL_LAZY
  9538. # else
  9539. # ifdef RTLD_NOW
  9540. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9541. # else
  9542. # ifdef DL_NOW
  9543. # define LT_DLLAZY_OR_NOW DL_NOW
  9544. # else
  9545. # define LT_DLLAZY_OR_NOW 0
  9546. # endif
  9547. # endif
  9548. # endif
  9549. # endif
  9550. #endif
  9551. /* When -fvisbility=hidden is used, assume the code has been annotated
  9552. correspondingly for the symbols needed. */
  9553. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9554. int fnord () __attribute__((visibility("default")));
  9555. #endif
  9556. int fnord () { return 42; }
  9557. int main ()
  9558. {
  9559. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9560. int status = $lt_dlunknown;
  9561. if (self)
  9562. {
  9563. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9564. else
  9565. {
  9566. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9567. else puts (dlerror ());
  9568. }
  9569. /* dlclose (self); */
  9570. }
  9571. else
  9572. puts (dlerror ());
  9573. return status;
  9574. }
  9575. _LT_EOF
  9576. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9577. (eval $ac_link) 2>&5
  9578. ac_status=$?
  9579. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9580. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9581. (./conftest; exit; ) >&5 2>/dev/null
  9582. lt_status=$?
  9583. case x$lt_status in
  9584. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9585. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9586. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9587. esac
  9588. else :
  9589. # compilation failed
  9590. lt_cv_dlopen_self=no
  9591. fi
  9592. fi
  9593. rm -fr conftest*
  9594. fi
  9595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9596. $as_echo "$lt_cv_dlopen_self" >&6; }
  9597. if test "x$lt_cv_dlopen_self" = xyes; then
  9598. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9600. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9601. if ${lt_cv_dlopen_self_static+:} false; then :
  9602. $as_echo_n "(cached) " >&6
  9603. else
  9604. if test "$cross_compiling" = yes; then :
  9605. lt_cv_dlopen_self_static=cross
  9606. else
  9607. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9608. lt_status=$lt_dlunknown
  9609. cat > conftest.$ac_ext <<_LT_EOF
  9610. #line $LINENO "configure"
  9611. #include "confdefs.h"
  9612. #if HAVE_DLFCN_H
  9613. #include <dlfcn.h>
  9614. #endif
  9615. #include <stdio.h>
  9616. #ifdef RTLD_GLOBAL
  9617. # define LT_DLGLOBAL RTLD_GLOBAL
  9618. #else
  9619. # ifdef DL_GLOBAL
  9620. # define LT_DLGLOBAL DL_GLOBAL
  9621. # else
  9622. # define LT_DLGLOBAL 0
  9623. # endif
  9624. #endif
  9625. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9626. find out it does not work in some platform. */
  9627. #ifndef LT_DLLAZY_OR_NOW
  9628. # ifdef RTLD_LAZY
  9629. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9630. # else
  9631. # ifdef DL_LAZY
  9632. # define LT_DLLAZY_OR_NOW DL_LAZY
  9633. # else
  9634. # ifdef RTLD_NOW
  9635. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9636. # else
  9637. # ifdef DL_NOW
  9638. # define LT_DLLAZY_OR_NOW DL_NOW
  9639. # else
  9640. # define LT_DLLAZY_OR_NOW 0
  9641. # endif
  9642. # endif
  9643. # endif
  9644. # endif
  9645. #endif
  9646. /* When -fvisbility=hidden is used, assume the code has been annotated
  9647. correspondingly for the symbols needed. */
  9648. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9649. int fnord () __attribute__((visibility("default")));
  9650. #endif
  9651. int fnord () { return 42; }
  9652. int main ()
  9653. {
  9654. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9655. int status = $lt_dlunknown;
  9656. if (self)
  9657. {
  9658. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9659. else
  9660. {
  9661. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9662. else puts (dlerror ());
  9663. }
  9664. /* dlclose (self); */
  9665. }
  9666. else
  9667. puts (dlerror ());
  9668. return status;
  9669. }
  9670. _LT_EOF
  9671. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9672. (eval $ac_link) 2>&5
  9673. ac_status=$?
  9674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9675. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9676. (./conftest; exit; ) >&5 2>/dev/null
  9677. lt_status=$?
  9678. case x$lt_status in
  9679. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9680. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9681. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9682. esac
  9683. else :
  9684. # compilation failed
  9685. lt_cv_dlopen_self_static=no
  9686. fi
  9687. fi
  9688. rm -fr conftest*
  9689. fi
  9690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9691. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9692. fi
  9693. CPPFLAGS="$save_CPPFLAGS"
  9694. LDFLAGS="$save_LDFLAGS"
  9695. LIBS="$save_LIBS"
  9696. ;;
  9697. esac
  9698. case $lt_cv_dlopen_self in
  9699. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9700. *) enable_dlopen_self=unknown ;;
  9701. esac
  9702. case $lt_cv_dlopen_self_static in
  9703. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9704. *) enable_dlopen_self_static=unknown ;;
  9705. esac
  9706. fi
  9707. striplib=
  9708. old_striplib=
  9709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9710. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9711. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9712. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9713. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9715. $as_echo "yes" >&6; }
  9716. else
  9717. # FIXME - insert some real tests, host_os isn't really good enough
  9718. case $host_os in
  9719. darwin*)
  9720. if test -n "$STRIP" ; then
  9721. striplib="$STRIP -x"
  9722. old_striplib="$STRIP -S"
  9723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9724. $as_echo "yes" >&6; }
  9725. else
  9726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9727. $as_echo "no" >&6; }
  9728. fi
  9729. ;;
  9730. *)
  9731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9732. $as_echo "no" >&6; }
  9733. ;;
  9734. esac
  9735. fi
  9736. # Report which library types will actually be built
  9737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9738. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9740. $as_echo "$can_build_shared" >&6; }
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9742. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9743. test "$can_build_shared" = "no" && enable_shared=no
  9744. # On AIX, shared libraries and static libraries use the same namespace, and
  9745. # are all built from PIC.
  9746. case $host_os in
  9747. aix3*)
  9748. test "$enable_shared" = yes && enable_static=no
  9749. if test -n "$RANLIB"; then
  9750. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9751. postinstall_cmds='$RANLIB $lib'
  9752. fi
  9753. ;;
  9754. aix[4-9]*)
  9755. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9756. test "$enable_shared" = yes && enable_static=no
  9757. fi
  9758. ;;
  9759. esac
  9760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9761. $as_echo "$enable_shared" >&6; }
  9762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9763. $as_echo_n "checking whether to build static libraries... " >&6; }
  9764. # Make sure either enable_shared or enable_static is yes.
  9765. test "$enable_shared" = yes || enable_static=yes
  9766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9767. $as_echo "$enable_static" >&6; }
  9768. fi
  9769. ac_ext=c
  9770. ac_cpp='$CPP $CPPFLAGS'
  9771. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9772. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9773. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9774. CC="$lt_save_CC"
  9775. ac_config_commands="$ac_config_commands libtool"
  9776. # Only expand once:
  9777. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9778. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9779. LT_REVISION=$SDL_INTERFACE_AGE
  9780. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9781. ac_ext=c
  9782. ac_cpp='$CPP $CPPFLAGS'
  9783. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9784. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9785. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9786. if test -n "$ac_tool_prefix"; then
  9787. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9788. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9790. $as_echo_n "checking for $ac_word... " >&6; }
  9791. if ${ac_cv_prog_CC+:} false; then :
  9792. $as_echo_n "(cached) " >&6
  9793. else
  9794. if test -n "$CC"; then
  9795. ac_cv_prog_CC="$CC" # Let the user override the test.
  9796. else
  9797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9798. for as_dir in $PATH
  9799. do
  9800. IFS=$as_save_IFS
  9801. test -z "$as_dir" && as_dir=.
  9802. for ac_exec_ext in '' $ac_executable_extensions; do
  9803. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9804. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9806. break 2
  9807. fi
  9808. done
  9809. done
  9810. IFS=$as_save_IFS
  9811. fi
  9812. fi
  9813. CC=$ac_cv_prog_CC
  9814. if test -n "$CC"; then
  9815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9816. $as_echo "$CC" >&6; }
  9817. else
  9818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9819. $as_echo "no" >&6; }
  9820. fi
  9821. fi
  9822. if test -z "$ac_cv_prog_CC"; then
  9823. ac_ct_CC=$CC
  9824. # Extract the first word of "gcc", so it can be a program name with args.
  9825. set dummy gcc; ac_word=$2
  9826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9827. $as_echo_n "checking for $ac_word... " >&6; }
  9828. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9829. $as_echo_n "(cached) " >&6
  9830. else
  9831. if test -n "$ac_ct_CC"; then
  9832. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9833. else
  9834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9835. for as_dir in $PATH
  9836. do
  9837. IFS=$as_save_IFS
  9838. test -z "$as_dir" && as_dir=.
  9839. for ac_exec_ext in '' $ac_executable_extensions; do
  9840. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9841. ac_cv_prog_ac_ct_CC="gcc"
  9842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9843. break 2
  9844. fi
  9845. done
  9846. done
  9847. IFS=$as_save_IFS
  9848. fi
  9849. fi
  9850. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9851. if test -n "$ac_ct_CC"; then
  9852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9853. $as_echo "$ac_ct_CC" >&6; }
  9854. else
  9855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9856. $as_echo "no" >&6; }
  9857. fi
  9858. if test "x$ac_ct_CC" = x; then
  9859. CC=""
  9860. else
  9861. case $cross_compiling:$ac_tool_warned in
  9862. yes:)
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9864. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9865. ac_tool_warned=yes ;;
  9866. esac
  9867. CC=$ac_ct_CC
  9868. fi
  9869. else
  9870. CC="$ac_cv_prog_CC"
  9871. fi
  9872. if test -z "$CC"; then
  9873. if test -n "$ac_tool_prefix"; then
  9874. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9875. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9877. $as_echo_n "checking for $ac_word... " >&6; }
  9878. if ${ac_cv_prog_CC+:} false; then :
  9879. $as_echo_n "(cached) " >&6
  9880. else
  9881. if test -n "$CC"; then
  9882. ac_cv_prog_CC="$CC" # Let the user override the test.
  9883. else
  9884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9885. for as_dir in $PATH
  9886. do
  9887. IFS=$as_save_IFS
  9888. test -z "$as_dir" && as_dir=.
  9889. for ac_exec_ext in '' $ac_executable_extensions; do
  9890. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9891. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9892. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9893. break 2
  9894. fi
  9895. done
  9896. done
  9897. IFS=$as_save_IFS
  9898. fi
  9899. fi
  9900. CC=$ac_cv_prog_CC
  9901. if test -n "$CC"; then
  9902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9903. $as_echo "$CC" >&6; }
  9904. else
  9905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9906. $as_echo "no" >&6; }
  9907. fi
  9908. fi
  9909. fi
  9910. if test -z "$CC"; then
  9911. # Extract the first word of "cc", so it can be a program name with args.
  9912. set dummy cc; ac_word=$2
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9914. $as_echo_n "checking for $ac_word... " >&6; }
  9915. if ${ac_cv_prog_CC+:} false; then :
  9916. $as_echo_n "(cached) " >&6
  9917. else
  9918. if test -n "$CC"; then
  9919. ac_cv_prog_CC="$CC" # Let the user override the test.
  9920. else
  9921. ac_prog_rejected=no
  9922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9923. for as_dir in $PATH
  9924. do
  9925. IFS=$as_save_IFS
  9926. test -z "$as_dir" && as_dir=.
  9927. for ac_exec_ext in '' $ac_executable_extensions; do
  9928. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9929. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9930. ac_prog_rejected=yes
  9931. continue
  9932. fi
  9933. ac_cv_prog_CC="cc"
  9934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9935. break 2
  9936. fi
  9937. done
  9938. done
  9939. IFS=$as_save_IFS
  9940. if test $ac_prog_rejected = yes; then
  9941. # We found a bogon in the path, so make sure we never use it.
  9942. set dummy $ac_cv_prog_CC
  9943. shift
  9944. if test $# != 0; then
  9945. # We chose a different compiler from the bogus one.
  9946. # However, it has the same basename, so the bogon will be chosen
  9947. # first if we set CC to just the basename; use the full file name.
  9948. shift
  9949. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9950. fi
  9951. fi
  9952. fi
  9953. fi
  9954. CC=$ac_cv_prog_CC
  9955. if test -n "$CC"; then
  9956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9957. $as_echo "$CC" >&6; }
  9958. else
  9959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9960. $as_echo "no" >&6; }
  9961. fi
  9962. fi
  9963. if test -z "$CC"; then
  9964. if test -n "$ac_tool_prefix"; then
  9965. for ac_prog in cl.exe
  9966. do
  9967. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9968. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9970. $as_echo_n "checking for $ac_word... " >&6; }
  9971. if ${ac_cv_prog_CC+:} false; then :
  9972. $as_echo_n "(cached) " >&6
  9973. else
  9974. if test -n "$CC"; then
  9975. ac_cv_prog_CC="$CC" # Let the user override the test.
  9976. else
  9977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9978. for as_dir in $PATH
  9979. do
  9980. IFS=$as_save_IFS
  9981. test -z "$as_dir" && as_dir=.
  9982. for ac_exec_ext in '' $ac_executable_extensions; do
  9983. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9984. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9985. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9986. break 2
  9987. fi
  9988. done
  9989. done
  9990. IFS=$as_save_IFS
  9991. fi
  9992. fi
  9993. CC=$ac_cv_prog_CC
  9994. if test -n "$CC"; then
  9995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9996. $as_echo "$CC" >&6; }
  9997. else
  9998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9999. $as_echo "no" >&6; }
  10000. fi
  10001. test -n "$CC" && break
  10002. done
  10003. fi
  10004. if test -z "$CC"; then
  10005. ac_ct_CC=$CC
  10006. for ac_prog in cl.exe
  10007. do
  10008. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10009. set dummy $ac_prog; ac_word=$2
  10010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10011. $as_echo_n "checking for $ac_word... " >&6; }
  10012. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10013. $as_echo_n "(cached) " >&6
  10014. else
  10015. if test -n "$ac_ct_CC"; then
  10016. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10017. else
  10018. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10019. for as_dir in $PATH
  10020. do
  10021. IFS=$as_save_IFS
  10022. test -z "$as_dir" && as_dir=.
  10023. for ac_exec_ext in '' $ac_executable_extensions; do
  10024. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10025. ac_cv_prog_ac_ct_CC="$ac_prog"
  10026. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10027. break 2
  10028. fi
  10029. done
  10030. done
  10031. IFS=$as_save_IFS
  10032. fi
  10033. fi
  10034. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10035. if test -n "$ac_ct_CC"; then
  10036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10037. $as_echo "$ac_ct_CC" >&6; }
  10038. else
  10039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10040. $as_echo "no" >&6; }
  10041. fi
  10042. test -n "$ac_ct_CC" && break
  10043. done
  10044. if test "x$ac_ct_CC" = x; then
  10045. CC=""
  10046. else
  10047. case $cross_compiling:$ac_tool_warned in
  10048. yes:)
  10049. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10050. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10051. ac_tool_warned=yes ;;
  10052. esac
  10053. CC=$ac_ct_CC
  10054. fi
  10055. fi
  10056. fi
  10057. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10058. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10059. as_fn_error $? "no acceptable C compiler found in \$PATH
  10060. See \`config.log' for more details" "$LINENO" 5; }
  10061. # Provide some information about the compiler.
  10062. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10063. set X $ac_compile
  10064. ac_compiler=$2
  10065. for ac_option in --version -v -V -qversion; do
  10066. { { ac_try="$ac_compiler $ac_option >&5"
  10067. case "(($ac_try" in
  10068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10069. *) ac_try_echo=$ac_try;;
  10070. esac
  10071. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10072. $as_echo "$ac_try_echo"; } >&5
  10073. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10074. ac_status=$?
  10075. if test -s conftest.err; then
  10076. sed '10a\
  10077. ... rest of stderr output deleted ...
  10078. 10q' conftest.err >conftest.er1
  10079. cat conftest.er1 >&5
  10080. fi
  10081. rm -f conftest.er1 conftest.err
  10082. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10083. test $ac_status = 0; }
  10084. done
  10085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10086. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10087. if ${ac_cv_c_compiler_gnu+:} false; then :
  10088. $as_echo_n "(cached) " >&6
  10089. else
  10090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10091. /* end confdefs.h. */
  10092. int
  10093. main ()
  10094. {
  10095. #ifndef __GNUC__
  10096. choke me
  10097. #endif
  10098. ;
  10099. return 0;
  10100. }
  10101. _ACEOF
  10102. if ac_fn_c_try_compile "$LINENO"; then :
  10103. ac_compiler_gnu=yes
  10104. else
  10105. ac_compiler_gnu=no
  10106. fi
  10107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10108. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10109. fi
  10110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10111. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10112. if test $ac_compiler_gnu = yes; then
  10113. GCC=yes
  10114. else
  10115. GCC=
  10116. fi
  10117. ac_test_CFLAGS=${CFLAGS+set}
  10118. ac_save_CFLAGS=$CFLAGS
  10119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10120. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10121. if ${ac_cv_prog_cc_g+:} false; then :
  10122. $as_echo_n "(cached) " >&6
  10123. else
  10124. ac_save_c_werror_flag=$ac_c_werror_flag
  10125. ac_c_werror_flag=yes
  10126. ac_cv_prog_cc_g=no
  10127. CFLAGS="-g"
  10128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10129. /* end confdefs.h. */
  10130. int
  10131. main ()
  10132. {
  10133. ;
  10134. return 0;
  10135. }
  10136. _ACEOF
  10137. if ac_fn_c_try_compile "$LINENO"; then :
  10138. ac_cv_prog_cc_g=yes
  10139. else
  10140. CFLAGS=""
  10141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10142. /* end confdefs.h. */
  10143. int
  10144. main ()
  10145. {
  10146. ;
  10147. return 0;
  10148. }
  10149. _ACEOF
  10150. if ac_fn_c_try_compile "$LINENO"; then :
  10151. else
  10152. ac_c_werror_flag=$ac_save_c_werror_flag
  10153. CFLAGS="-g"
  10154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10155. /* end confdefs.h. */
  10156. int
  10157. main ()
  10158. {
  10159. ;
  10160. return 0;
  10161. }
  10162. _ACEOF
  10163. if ac_fn_c_try_compile "$LINENO"; then :
  10164. ac_cv_prog_cc_g=yes
  10165. fi
  10166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10167. fi
  10168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10169. fi
  10170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10171. ac_c_werror_flag=$ac_save_c_werror_flag
  10172. fi
  10173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10174. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10175. if test "$ac_test_CFLAGS" = set; then
  10176. CFLAGS=$ac_save_CFLAGS
  10177. elif test $ac_cv_prog_cc_g = yes; then
  10178. if test "$GCC" = yes; then
  10179. CFLAGS="-g -O2"
  10180. else
  10181. CFLAGS="-g"
  10182. fi
  10183. else
  10184. if test "$GCC" = yes; then
  10185. CFLAGS="-O2"
  10186. else
  10187. CFLAGS=
  10188. fi
  10189. fi
  10190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10191. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10192. if ${ac_cv_prog_cc_c89+:} false; then :
  10193. $as_echo_n "(cached) " >&6
  10194. else
  10195. ac_cv_prog_cc_c89=no
  10196. ac_save_CC=$CC
  10197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10198. /* end confdefs.h. */
  10199. #include <stdarg.h>
  10200. #include <stdio.h>
  10201. struct stat;
  10202. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10203. struct buf { int x; };
  10204. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10205. static char *e (p, i)
  10206. char **p;
  10207. int i;
  10208. {
  10209. return p[i];
  10210. }
  10211. static char *f (char * (*g) (char **, int), char **p, ...)
  10212. {
  10213. char *s;
  10214. va_list v;
  10215. va_start (v,p);
  10216. s = g (p, va_arg (v,int));
  10217. va_end (v);
  10218. return s;
  10219. }
  10220. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10221. function prototypes and stuff, but not '\xHH' hex character constants.
  10222. These don't provoke an error unfortunately, instead are silently treated
  10223. as 'x'. The following induces an error, until -std is added to get
  10224. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10225. array size at least. It's necessary to write '\x00'==0 to get something
  10226. that's true only with -std. */
  10227. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10228. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10229. inside strings and character constants. */
  10230. #define FOO(x) 'x'
  10231. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10232. int test (int i, double x);
  10233. struct s1 {int (*f) (int a);};
  10234. struct s2 {int (*f) (double a);};
  10235. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10236. int argc;
  10237. char **argv;
  10238. int
  10239. main ()
  10240. {
  10241. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10242. ;
  10243. return 0;
  10244. }
  10245. _ACEOF
  10246. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10247. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10248. do
  10249. CC="$ac_save_CC $ac_arg"
  10250. if ac_fn_c_try_compile "$LINENO"; then :
  10251. ac_cv_prog_cc_c89=$ac_arg
  10252. fi
  10253. rm -f core conftest.err conftest.$ac_objext
  10254. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10255. done
  10256. rm -f conftest.$ac_ext
  10257. CC=$ac_save_CC
  10258. fi
  10259. # AC_CACHE_VAL
  10260. case "x$ac_cv_prog_cc_c89" in
  10261. x)
  10262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10263. $as_echo "none needed" >&6; } ;;
  10264. xno)
  10265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10266. $as_echo "unsupported" >&6; } ;;
  10267. *)
  10268. CC="$CC $ac_cv_prog_cc_c89"
  10269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10270. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10271. esac
  10272. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10273. fi
  10274. ac_ext=c
  10275. ac_cpp='$CPP $CPPFLAGS'
  10276. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10277. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10278. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10279. ac_ext=cpp
  10280. ac_cpp='$CXXCPP $CPPFLAGS'
  10281. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10282. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10283. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10284. if test -z "$CXX"; then
  10285. if test -n "$CCC"; then
  10286. CXX=$CCC
  10287. else
  10288. if test -n "$ac_tool_prefix"; then
  10289. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10290. do
  10291. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10292. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10294. $as_echo_n "checking for $ac_word... " >&6; }
  10295. if ${ac_cv_prog_CXX+:} false; then :
  10296. $as_echo_n "(cached) " >&6
  10297. else
  10298. if test -n "$CXX"; then
  10299. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10300. else
  10301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10302. for as_dir in $PATH
  10303. do
  10304. IFS=$as_save_IFS
  10305. test -z "$as_dir" && as_dir=.
  10306. for ac_exec_ext in '' $ac_executable_extensions; do
  10307. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10308. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10309. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10310. break 2
  10311. fi
  10312. done
  10313. done
  10314. IFS=$as_save_IFS
  10315. fi
  10316. fi
  10317. CXX=$ac_cv_prog_CXX
  10318. if test -n "$CXX"; then
  10319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10320. $as_echo "$CXX" >&6; }
  10321. else
  10322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10323. $as_echo "no" >&6; }
  10324. fi
  10325. test -n "$CXX" && break
  10326. done
  10327. fi
  10328. if test -z "$CXX"; then
  10329. ac_ct_CXX=$CXX
  10330. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10331. do
  10332. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10333. set dummy $ac_prog; ac_word=$2
  10334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10335. $as_echo_n "checking for $ac_word... " >&6; }
  10336. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10337. $as_echo_n "(cached) " >&6
  10338. else
  10339. if test -n "$ac_ct_CXX"; then
  10340. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10341. else
  10342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10343. for as_dir in $PATH
  10344. do
  10345. IFS=$as_save_IFS
  10346. test -z "$as_dir" && as_dir=.
  10347. for ac_exec_ext in '' $ac_executable_extensions; do
  10348. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10349. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10351. break 2
  10352. fi
  10353. done
  10354. done
  10355. IFS=$as_save_IFS
  10356. fi
  10357. fi
  10358. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10359. if test -n "$ac_ct_CXX"; then
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10361. $as_echo "$ac_ct_CXX" >&6; }
  10362. else
  10363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10364. $as_echo "no" >&6; }
  10365. fi
  10366. test -n "$ac_ct_CXX" && break
  10367. done
  10368. if test "x$ac_ct_CXX" = x; then
  10369. CXX="g++"
  10370. else
  10371. case $cross_compiling:$ac_tool_warned in
  10372. yes:)
  10373. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10374. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10375. ac_tool_warned=yes ;;
  10376. esac
  10377. CXX=$ac_ct_CXX
  10378. fi
  10379. fi
  10380. fi
  10381. fi
  10382. # Provide some information about the compiler.
  10383. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10384. set X $ac_compile
  10385. ac_compiler=$2
  10386. for ac_option in --version -v -V -qversion; do
  10387. { { ac_try="$ac_compiler $ac_option >&5"
  10388. case "(($ac_try" in
  10389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10390. *) ac_try_echo=$ac_try;;
  10391. esac
  10392. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10393. $as_echo "$ac_try_echo"; } >&5
  10394. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10395. ac_status=$?
  10396. if test -s conftest.err; then
  10397. sed '10a\
  10398. ... rest of stderr output deleted ...
  10399. 10q' conftest.err >conftest.er1
  10400. cat conftest.er1 >&5
  10401. fi
  10402. rm -f conftest.er1 conftest.err
  10403. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10404. test $ac_status = 0; }
  10405. done
  10406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10407. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10408. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10409. $as_echo_n "(cached) " >&6
  10410. else
  10411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10412. /* end confdefs.h. */
  10413. int
  10414. main ()
  10415. {
  10416. #ifndef __GNUC__
  10417. choke me
  10418. #endif
  10419. ;
  10420. return 0;
  10421. }
  10422. _ACEOF
  10423. if ac_fn_cxx_try_compile "$LINENO"; then :
  10424. ac_compiler_gnu=yes
  10425. else
  10426. ac_compiler_gnu=no
  10427. fi
  10428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10429. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10430. fi
  10431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10432. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10433. if test $ac_compiler_gnu = yes; then
  10434. GXX=yes
  10435. else
  10436. GXX=
  10437. fi
  10438. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10439. ac_save_CXXFLAGS=$CXXFLAGS
  10440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10441. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10442. if ${ac_cv_prog_cxx_g+:} false; then :
  10443. $as_echo_n "(cached) " >&6
  10444. else
  10445. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10446. ac_cxx_werror_flag=yes
  10447. ac_cv_prog_cxx_g=no
  10448. CXXFLAGS="-g"
  10449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10450. /* end confdefs.h. */
  10451. int
  10452. main ()
  10453. {
  10454. ;
  10455. return 0;
  10456. }
  10457. _ACEOF
  10458. if ac_fn_cxx_try_compile "$LINENO"; then :
  10459. ac_cv_prog_cxx_g=yes
  10460. else
  10461. CXXFLAGS=""
  10462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10463. /* end confdefs.h. */
  10464. int
  10465. main ()
  10466. {
  10467. ;
  10468. return 0;
  10469. }
  10470. _ACEOF
  10471. if ac_fn_cxx_try_compile "$LINENO"; then :
  10472. else
  10473. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10474. CXXFLAGS="-g"
  10475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10476. /* end confdefs.h. */
  10477. int
  10478. main ()
  10479. {
  10480. ;
  10481. return 0;
  10482. }
  10483. _ACEOF
  10484. if ac_fn_cxx_try_compile "$LINENO"; then :
  10485. ac_cv_prog_cxx_g=yes
  10486. fi
  10487. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10488. fi
  10489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10490. fi
  10491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10492. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10493. fi
  10494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10495. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10496. if test "$ac_test_CXXFLAGS" = set; then
  10497. CXXFLAGS=$ac_save_CXXFLAGS
  10498. elif test $ac_cv_prog_cxx_g = yes; then
  10499. if test "$GXX" = yes; then
  10500. CXXFLAGS="-g -O2"
  10501. else
  10502. CXXFLAGS="-g"
  10503. fi
  10504. else
  10505. if test "$GXX" = yes; then
  10506. CXXFLAGS="-O2"
  10507. else
  10508. CXXFLAGS=
  10509. fi
  10510. fi
  10511. ac_ext=c
  10512. ac_cpp='$CPP $CPPFLAGS'
  10513. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10514. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10515. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10516. func_stripname_cnf ()
  10517. {
  10518. case ${2} in
  10519. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10520. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10521. esac
  10522. } # func_stripname_cnf
  10523. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10524. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10525. (test "X$CXX" != "Xg++"))) ; then
  10526. ac_ext=cpp
  10527. ac_cpp='$CXXCPP $CPPFLAGS'
  10528. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10529. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10530. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10532. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10533. if test -z "$CXXCPP"; then
  10534. if ${ac_cv_prog_CXXCPP+:} false; then :
  10535. $as_echo_n "(cached) " >&6
  10536. else
  10537. # Double quotes because CXXCPP needs to be expanded
  10538. for CXXCPP in "$CXX -E" "/lib/cpp"
  10539. do
  10540. ac_preproc_ok=false
  10541. for ac_cxx_preproc_warn_flag in '' yes
  10542. do
  10543. # Use a header file that comes with gcc, so configuring glibc
  10544. # with a fresh cross-compiler works.
  10545. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10546. # <limits.h> exists even on freestanding compilers.
  10547. # On the NeXT, cc -E runs the code through the compiler's parser,
  10548. # not just through cpp. "Syntax error" is here to catch this case.
  10549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10550. /* end confdefs.h. */
  10551. #ifdef __STDC__
  10552. # include <limits.h>
  10553. #else
  10554. # include <assert.h>
  10555. #endif
  10556. Syntax error
  10557. _ACEOF
  10558. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10559. else
  10560. # Broken: fails on valid input.
  10561. continue
  10562. fi
  10563. rm -f conftest.err conftest.i conftest.$ac_ext
  10564. # OK, works on sane cases. Now check whether nonexistent headers
  10565. # can be detected and how.
  10566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10567. /* end confdefs.h. */
  10568. #include <ac_nonexistent.h>
  10569. _ACEOF
  10570. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10571. # Broken: success on invalid input.
  10572. continue
  10573. else
  10574. # Passes both tests.
  10575. ac_preproc_ok=:
  10576. break
  10577. fi
  10578. rm -f conftest.err conftest.i conftest.$ac_ext
  10579. done
  10580. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10581. rm -f conftest.i conftest.err conftest.$ac_ext
  10582. if $ac_preproc_ok; then :
  10583. break
  10584. fi
  10585. done
  10586. ac_cv_prog_CXXCPP=$CXXCPP
  10587. fi
  10588. CXXCPP=$ac_cv_prog_CXXCPP
  10589. else
  10590. ac_cv_prog_CXXCPP=$CXXCPP
  10591. fi
  10592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10593. $as_echo "$CXXCPP" >&6; }
  10594. ac_preproc_ok=false
  10595. for ac_cxx_preproc_warn_flag in '' yes
  10596. do
  10597. # Use a header file that comes with gcc, so configuring glibc
  10598. # with a fresh cross-compiler works.
  10599. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10600. # <limits.h> exists even on freestanding compilers.
  10601. # On the NeXT, cc -E runs the code through the compiler's parser,
  10602. # not just through cpp. "Syntax error" is here to catch this case.
  10603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10604. /* end confdefs.h. */
  10605. #ifdef __STDC__
  10606. # include <limits.h>
  10607. #else
  10608. # include <assert.h>
  10609. #endif
  10610. Syntax error
  10611. _ACEOF
  10612. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10613. else
  10614. # Broken: fails on valid input.
  10615. continue
  10616. fi
  10617. rm -f conftest.err conftest.i conftest.$ac_ext
  10618. # OK, works on sane cases. Now check whether nonexistent headers
  10619. # can be detected and how.
  10620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10621. /* end confdefs.h. */
  10622. #include <ac_nonexistent.h>
  10623. _ACEOF
  10624. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10625. # Broken: success on invalid input.
  10626. continue
  10627. else
  10628. # Passes both tests.
  10629. ac_preproc_ok=:
  10630. break
  10631. fi
  10632. rm -f conftest.err conftest.i conftest.$ac_ext
  10633. done
  10634. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10635. rm -f conftest.i conftest.err conftest.$ac_ext
  10636. if $ac_preproc_ok; then :
  10637. else
  10638. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10639. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10640. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10641. See \`config.log' for more details" "$LINENO" 5; }
  10642. fi
  10643. ac_ext=c
  10644. ac_cpp='$CPP $CPPFLAGS'
  10645. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10646. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10647. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10648. else
  10649. _lt_caught_CXX_error=yes
  10650. fi
  10651. ac_ext=cpp
  10652. ac_cpp='$CXXCPP $CPPFLAGS'
  10653. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10654. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10655. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10656. archive_cmds_need_lc_CXX=no
  10657. allow_undefined_flag_CXX=
  10658. always_export_symbols_CXX=no
  10659. archive_expsym_cmds_CXX=
  10660. compiler_needs_object_CXX=no
  10661. export_dynamic_flag_spec_CXX=
  10662. hardcode_direct_CXX=no
  10663. hardcode_direct_absolute_CXX=no
  10664. hardcode_libdir_flag_spec_CXX=
  10665. hardcode_libdir_separator_CXX=
  10666. hardcode_minus_L_CXX=no
  10667. hardcode_shlibpath_var_CXX=unsupported
  10668. hardcode_automatic_CXX=no
  10669. inherit_rpath_CXX=no
  10670. module_cmds_CXX=
  10671. module_expsym_cmds_CXX=
  10672. link_all_deplibs_CXX=unknown
  10673. old_archive_cmds_CXX=$old_archive_cmds
  10674. reload_flag_CXX=$reload_flag
  10675. reload_cmds_CXX=$reload_cmds
  10676. no_undefined_flag_CXX=
  10677. whole_archive_flag_spec_CXX=
  10678. enable_shared_with_static_runtimes_CXX=no
  10679. # Source file extension for C++ test sources.
  10680. ac_ext=cpp
  10681. # Object file extension for compiled C++ test sources.
  10682. objext=o
  10683. objext_CXX=$objext
  10684. # No sense in running all these tests if we already determined that
  10685. # the CXX compiler isn't working. Some variables (like enable_shared)
  10686. # are currently assumed to apply to all compilers on this platform,
  10687. # and will be corrupted by setting them based on a non-working compiler.
  10688. if test "$_lt_caught_CXX_error" != yes; then
  10689. # Code to be used in simple compile tests
  10690. lt_simple_compile_test_code="int some_variable = 0;"
  10691. # Code to be used in simple link tests
  10692. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10693. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10694. # If no C compiler was specified, use CC.
  10695. LTCC=${LTCC-"$CC"}
  10696. # If no C compiler flags were specified, use CFLAGS.
  10697. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10698. # Allow CC to be a program name with arguments.
  10699. compiler=$CC
  10700. # save warnings/boilerplate of simple test code
  10701. ac_outfile=conftest.$ac_objext
  10702. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10703. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10704. _lt_compiler_boilerplate=`cat conftest.err`
  10705. $RM conftest*
  10706. ac_outfile=conftest.$ac_objext
  10707. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10708. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10709. _lt_linker_boilerplate=`cat conftest.err`
  10710. $RM -r conftest*
  10711. # Allow CC to be a program name with arguments.
  10712. lt_save_CC=$CC
  10713. lt_save_CFLAGS=$CFLAGS
  10714. lt_save_LD=$LD
  10715. lt_save_GCC=$GCC
  10716. GCC=$GXX
  10717. lt_save_with_gnu_ld=$with_gnu_ld
  10718. lt_save_path_LD=$lt_cv_path_LD
  10719. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10720. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10721. else
  10722. $as_unset lt_cv_prog_gnu_ld
  10723. fi
  10724. if test -n "${lt_cv_path_LDCXX+set}"; then
  10725. lt_cv_path_LD=$lt_cv_path_LDCXX
  10726. else
  10727. $as_unset lt_cv_path_LD
  10728. fi
  10729. test -z "${LDCXX+set}" || LD=$LDCXX
  10730. CC=${CXX-"c++"}
  10731. CFLAGS=$CXXFLAGS
  10732. compiler=$CC
  10733. compiler_CXX=$CC
  10734. for cc_temp in $compiler""; do
  10735. case $cc_temp in
  10736. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10737. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10738. \-*) ;;
  10739. *) break;;
  10740. esac
  10741. done
  10742. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10743. if test -n "$compiler"; then
  10744. # We don't want -fno-exception when compiling C++ code, so set the
  10745. # no_builtin_flag separately
  10746. if test "$GXX" = yes; then
  10747. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10748. else
  10749. lt_prog_compiler_no_builtin_flag_CXX=
  10750. fi
  10751. if test "$GXX" = yes; then
  10752. # Set up default GNU C++ configuration
  10753. # Check whether --with-gnu-ld was given.
  10754. if test "${with_gnu_ld+set}" = set; then :
  10755. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10756. else
  10757. with_gnu_ld=no
  10758. fi
  10759. ac_prog=ld
  10760. if test "$GCC" = yes; then
  10761. # Check if gcc -print-prog-name=ld gives a path.
  10762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10763. $as_echo_n "checking for ld used by $CC... " >&6; }
  10764. case $host in
  10765. *-*-mingw*)
  10766. # gcc leaves a trailing carriage return which upsets mingw
  10767. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10768. *)
  10769. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10770. esac
  10771. case $ac_prog in
  10772. # Accept absolute paths.
  10773. [\\/]* | ?:[\\/]*)
  10774. re_direlt='/[^/][^/]*/\.\./'
  10775. # Canonicalize the pathname of ld
  10776. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10777. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10778. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10779. done
  10780. test -z "$LD" && LD="$ac_prog"
  10781. ;;
  10782. "")
  10783. # If it fails, then pretend we aren't using GCC.
  10784. ac_prog=ld
  10785. ;;
  10786. *)
  10787. # If it is relative, then search for the first ld in PATH.
  10788. with_gnu_ld=unknown
  10789. ;;
  10790. esac
  10791. elif test "$with_gnu_ld" = yes; then
  10792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10793. $as_echo_n "checking for GNU ld... " >&6; }
  10794. else
  10795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10796. $as_echo_n "checking for non-GNU ld... " >&6; }
  10797. fi
  10798. if ${lt_cv_path_LD+:} false; then :
  10799. $as_echo_n "(cached) " >&6
  10800. else
  10801. if test -z "$LD"; then
  10802. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10803. for ac_dir in $PATH; do
  10804. IFS="$lt_save_ifs"
  10805. test -z "$ac_dir" && ac_dir=.
  10806. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10807. lt_cv_path_LD="$ac_dir/$ac_prog"
  10808. # Check to see if the program is GNU ld. I'd rather use --version,
  10809. # but apparently some variants of GNU ld only accept -v.
  10810. # Break only if it was the GNU/non-GNU ld that we prefer.
  10811. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10812. *GNU* | *'with BFD'*)
  10813. test "$with_gnu_ld" != no && break
  10814. ;;
  10815. *)
  10816. test "$with_gnu_ld" != yes && break
  10817. ;;
  10818. esac
  10819. fi
  10820. done
  10821. IFS="$lt_save_ifs"
  10822. else
  10823. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10824. fi
  10825. fi
  10826. LD="$lt_cv_path_LD"
  10827. if test -n "$LD"; then
  10828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10829. $as_echo "$LD" >&6; }
  10830. else
  10831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10832. $as_echo "no" >&6; }
  10833. fi
  10834. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10836. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10837. if ${lt_cv_prog_gnu_ld+:} false; then :
  10838. $as_echo_n "(cached) " >&6
  10839. else
  10840. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10841. case `$LD -v 2>&1 </dev/null` in
  10842. *GNU* | *'with BFD'*)
  10843. lt_cv_prog_gnu_ld=yes
  10844. ;;
  10845. *)
  10846. lt_cv_prog_gnu_ld=no
  10847. ;;
  10848. esac
  10849. fi
  10850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10851. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10852. with_gnu_ld=$lt_cv_prog_gnu_ld
  10853. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10854. # archiving commands below assume that GNU ld is being used.
  10855. if test "$with_gnu_ld" = yes; then
  10856. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10857. 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'
  10858. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10859. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10860. # If archive_cmds runs LD, not CC, wlarc should be empty
  10861. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10862. # investigate it a little bit more. (MM)
  10863. wlarc='${wl}'
  10864. # ancient GNU ld didn't support --whole-archive et. al.
  10865. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10866. $GREP 'no-whole-archive' > /dev/null; then
  10867. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10868. else
  10869. whole_archive_flag_spec_CXX=
  10870. fi
  10871. else
  10872. with_gnu_ld=no
  10873. wlarc=
  10874. # A generic and very simple default shared library creation
  10875. # command for GNU C++ for the case where it uses the native
  10876. # linker, instead of GNU ld. If possible, this setting should
  10877. # overridden to take advantage of the native linker features on
  10878. # the platform it is being used on.
  10879. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10880. fi
  10881. # Commands to make compiler produce verbose output that lists
  10882. # what "hidden" libraries, object files and flags are used when
  10883. # linking a shared library.
  10884. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10885. else
  10886. GXX=no
  10887. with_gnu_ld=no
  10888. wlarc=
  10889. fi
  10890. # PORTME: fill in a description of your system's C++ link characteristics
  10891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10892. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10893. ld_shlibs_CXX=yes
  10894. case $host_os in
  10895. aix3*)
  10896. # FIXME: insert proper C++ library support
  10897. ld_shlibs_CXX=no
  10898. ;;
  10899. aix[4-9]*)
  10900. if test "$host_cpu" = ia64; then
  10901. # On IA64, the linker does run time linking by default, so we don't
  10902. # have to do anything special.
  10903. aix_use_runtimelinking=no
  10904. exp_sym_flag='-Bexport'
  10905. no_entry_flag=""
  10906. else
  10907. aix_use_runtimelinking=no
  10908. # Test if we are trying to use run time linking or normal
  10909. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10910. # need to do runtime linking.
  10911. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10912. for ld_flag in $LDFLAGS; do
  10913. case $ld_flag in
  10914. *-brtl*)
  10915. aix_use_runtimelinking=yes
  10916. break
  10917. ;;
  10918. esac
  10919. done
  10920. ;;
  10921. esac
  10922. exp_sym_flag='-bexport'
  10923. no_entry_flag='-bnoentry'
  10924. fi
  10925. # When large executables or shared objects are built, AIX ld can
  10926. # have problems creating the table of contents. If linking a library
  10927. # or program results in "error TOC overflow" add -mminimal-toc to
  10928. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10929. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10930. archive_cmds_CXX=''
  10931. hardcode_direct_CXX=yes
  10932. hardcode_direct_absolute_CXX=yes
  10933. hardcode_libdir_separator_CXX=':'
  10934. link_all_deplibs_CXX=yes
  10935. file_list_spec_CXX='${wl}-f,'
  10936. if test "$GXX" = yes; then
  10937. case $host_os in aix4.[012]|aix4.[012].*)
  10938. # We only want to do this on AIX 4.2 and lower, the check
  10939. # below for broken collect2 doesn't work under 4.3+
  10940. collect2name=`${CC} -print-prog-name=collect2`
  10941. if test -f "$collect2name" &&
  10942. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10943. then
  10944. # We have reworked collect2
  10945. :
  10946. else
  10947. # We have old collect2
  10948. hardcode_direct_CXX=unsupported
  10949. # It fails to find uninstalled libraries when the uninstalled
  10950. # path is not listed in the libpath. Setting hardcode_minus_L
  10951. # to unsupported forces relinking
  10952. hardcode_minus_L_CXX=yes
  10953. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10954. hardcode_libdir_separator_CXX=
  10955. fi
  10956. esac
  10957. shared_flag='-shared'
  10958. if test "$aix_use_runtimelinking" = yes; then
  10959. shared_flag="$shared_flag "'${wl}-G'
  10960. fi
  10961. else
  10962. # not using gcc
  10963. if test "$host_cpu" = ia64; then
  10964. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10965. # chokes on -Wl,-G. The following line is correct:
  10966. shared_flag='-G'
  10967. else
  10968. if test "$aix_use_runtimelinking" = yes; then
  10969. shared_flag='${wl}-G'
  10970. else
  10971. shared_flag='${wl}-bM:SRE'
  10972. fi
  10973. fi
  10974. fi
  10975. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10976. # It seems that -bexpall does not export symbols beginning with
  10977. # underscore (_), so it is better to generate a list of symbols to
  10978. # export.
  10979. always_export_symbols_CXX=yes
  10980. if test "$aix_use_runtimelinking" = yes; then
  10981. # Warning - without using the other runtime loading flags (-brtl),
  10982. # -berok will link without error, but may produce a broken library.
  10983. allow_undefined_flag_CXX='-berok'
  10984. # Determine the default libpath from the value encoded in an empty
  10985. # executable.
  10986. if test "${lt_cv_aix_libpath+set}" = set; then
  10987. aix_libpath=$lt_cv_aix_libpath
  10988. else
  10989. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10990. $as_echo_n "(cached) " >&6
  10991. else
  10992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10993. /* end confdefs.h. */
  10994. int
  10995. main ()
  10996. {
  10997. ;
  10998. return 0;
  10999. }
  11000. _ACEOF
  11001. if ac_fn_cxx_try_link "$LINENO"; then :
  11002. lt_aix_libpath_sed='
  11003. /Import File Strings/,/^$/ {
  11004. /^0/ {
  11005. s/^0 *\([^ ]*\) *$/\1/
  11006. p
  11007. }
  11008. }'
  11009. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11010. # Check for a 64-bit object if we didn't find anything.
  11011. if test -z "$lt_cv_aix_libpath__CXX"; then
  11012. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11013. fi
  11014. fi
  11015. rm -f core conftest.err conftest.$ac_objext \
  11016. conftest$ac_exeext conftest.$ac_ext
  11017. if test -z "$lt_cv_aix_libpath__CXX"; then
  11018. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11019. fi
  11020. fi
  11021. aix_libpath=$lt_cv_aix_libpath__CXX
  11022. fi
  11023. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11024. 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"
  11025. else
  11026. if test "$host_cpu" = ia64; then
  11027. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11028. allow_undefined_flag_CXX="-z nodefs"
  11029. 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"
  11030. else
  11031. # Determine the default libpath from the value encoded in an
  11032. # empty executable.
  11033. if test "${lt_cv_aix_libpath+set}" = set; then
  11034. aix_libpath=$lt_cv_aix_libpath
  11035. else
  11036. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11037. $as_echo_n "(cached) " >&6
  11038. else
  11039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11040. /* end confdefs.h. */
  11041. int
  11042. main ()
  11043. {
  11044. ;
  11045. return 0;
  11046. }
  11047. _ACEOF
  11048. if ac_fn_cxx_try_link "$LINENO"; then :
  11049. lt_aix_libpath_sed='
  11050. /Import File Strings/,/^$/ {
  11051. /^0/ {
  11052. s/^0 *\([^ ]*\) *$/\1/
  11053. p
  11054. }
  11055. }'
  11056. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11057. # Check for a 64-bit object if we didn't find anything.
  11058. if test -z "$lt_cv_aix_libpath__CXX"; then
  11059. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11060. fi
  11061. fi
  11062. rm -f core conftest.err conftest.$ac_objext \
  11063. conftest$ac_exeext conftest.$ac_ext
  11064. if test -z "$lt_cv_aix_libpath__CXX"; then
  11065. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11066. fi
  11067. fi
  11068. aix_libpath=$lt_cv_aix_libpath__CXX
  11069. fi
  11070. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11071. # Warning - without using the other run time loading flags,
  11072. # -berok will link without error, but may produce a broken library.
  11073. no_undefined_flag_CXX=' ${wl}-bernotok'
  11074. allow_undefined_flag_CXX=' ${wl}-berok'
  11075. if test "$with_gnu_ld" = yes; then
  11076. # We only use this code for GNU lds that support --whole-archive.
  11077. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11078. else
  11079. # Exported symbols can be pulled into shared objects from archives
  11080. whole_archive_flag_spec_CXX='$convenience'
  11081. fi
  11082. archive_cmds_need_lc_CXX=yes
  11083. # This is similar to how AIX traditionally builds its shared
  11084. # libraries.
  11085. 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'
  11086. fi
  11087. fi
  11088. ;;
  11089. beos*)
  11090. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11091. allow_undefined_flag_CXX=unsupported
  11092. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11093. # support --undefined. This deserves some investigation. FIXME
  11094. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11095. else
  11096. ld_shlibs_CXX=no
  11097. fi
  11098. ;;
  11099. chorus*)
  11100. case $cc_basename in
  11101. *)
  11102. # FIXME: insert proper C++ library support
  11103. ld_shlibs_CXX=no
  11104. ;;
  11105. esac
  11106. ;;
  11107. cygwin* | mingw* | pw32* | cegcc*)
  11108. case $GXX,$cc_basename in
  11109. ,cl* | no,cl*)
  11110. # Native MSVC
  11111. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11112. # no search path for DLLs.
  11113. hardcode_libdir_flag_spec_CXX=' '
  11114. allow_undefined_flag_CXX=unsupported
  11115. always_export_symbols_CXX=yes
  11116. file_list_spec_CXX='@'
  11117. # Tell ltmain to make .lib files, not .a files.
  11118. libext=lib
  11119. # Tell ltmain to make .dll files, not .so files.
  11120. shrext_cmds=".dll"
  11121. # FIXME: Setting linknames here is a bad hack.
  11122. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11123. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11124. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11125. else
  11126. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11127. fi~
  11128. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11129. linknames='
  11130. # The linker will not automatically build a static lib if we build a DLL.
  11131. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11132. enable_shared_with_static_runtimes_CXX=yes
  11133. # Don't use ranlib
  11134. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11135. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11136. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11137. case $lt_outputfile in
  11138. *.exe|*.EXE) ;;
  11139. *)
  11140. lt_outputfile="$lt_outputfile.exe"
  11141. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11142. ;;
  11143. esac~
  11144. func_to_tool_file "$lt_outputfile"~
  11145. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11146. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11147. $RM "$lt_outputfile.manifest";
  11148. fi'
  11149. ;;
  11150. *)
  11151. # g++
  11152. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11153. # as there is no search path for DLLs.
  11154. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11155. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11156. allow_undefined_flag_CXX=unsupported
  11157. always_export_symbols_CXX=no
  11158. enable_shared_with_static_runtimes_CXX=yes
  11159. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11160. 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'
  11161. # If the export-symbols file already is a .def file (1st line
  11162. # is EXPORTS), use it as is; otherwise, prepend...
  11163. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11164. cp $export_symbols $output_objdir/$soname.def;
  11165. else
  11166. echo EXPORTS > $output_objdir/$soname.def;
  11167. cat $export_symbols >> $output_objdir/$soname.def;
  11168. fi~
  11169. $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'
  11170. else
  11171. ld_shlibs_CXX=no
  11172. fi
  11173. ;;
  11174. esac
  11175. ;;
  11176. darwin* | rhapsody*)
  11177. archive_cmds_need_lc_CXX=no
  11178. hardcode_direct_CXX=no
  11179. hardcode_automatic_CXX=yes
  11180. hardcode_shlibpath_var_CXX=unsupported
  11181. if test "$lt_cv_ld_force_load" = "yes"; then
  11182. 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\"`'
  11183. else
  11184. whole_archive_flag_spec_CXX=''
  11185. fi
  11186. link_all_deplibs_CXX=yes
  11187. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11188. case $cc_basename in
  11189. ifort*) _lt_dar_can_shared=yes ;;
  11190. *) _lt_dar_can_shared=$GCC ;;
  11191. esac
  11192. if test "$_lt_dar_can_shared" = "yes"; then
  11193. output_verbose_link_cmd=func_echo_all
  11194. 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}"
  11195. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11196. 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}"
  11197. 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}"
  11198. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11199. 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}"
  11200. 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}"
  11201. fi
  11202. else
  11203. ld_shlibs_CXX=no
  11204. fi
  11205. ;;
  11206. dgux*)
  11207. case $cc_basename in
  11208. ec++*)
  11209. # FIXME: insert proper C++ library support
  11210. ld_shlibs_CXX=no
  11211. ;;
  11212. ghcx*)
  11213. # Green Hills C++ Compiler
  11214. # FIXME: insert proper C++ library support
  11215. ld_shlibs_CXX=no
  11216. ;;
  11217. *)
  11218. # FIXME: insert proper C++ library support
  11219. ld_shlibs_CXX=no
  11220. ;;
  11221. esac
  11222. ;;
  11223. freebsd2.*)
  11224. # C++ shared libraries reported to be fairly broken before
  11225. # switch to ELF
  11226. ld_shlibs_CXX=no
  11227. ;;
  11228. freebsd-elf*)
  11229. archive_cmds_need_lc_CXX=no
  11230. ;;
  11231. freebsd* | dragonfly*)
  11232. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11233. # conventions
  11234. ld_shlibs_CXX=yes
  11235. ;;
  11236. gnu*)
  11237. ;;
  11238. haiku*)
  11239. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11240. link_all_deplibs_CXX=yes
  11241. ;;
  11242. hpux9*)
  11243. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11244. hardcode_libdir_separator_CXX=:
  11245. export_dynamic_flag_spec_CXX='${wl}-E'
  11246. hardcode_direct_CXX=yes
  11247. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11248. # but as the default
  11249. # location of the library.
  11250. case $cc_basename in
  11251. CC*)
  11252. # FIXME: insert proper C++ library support
  11253. ld_shlibs_CXX=no
  11254. ;;
  11255. aCC*)
  11256. 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'
  11257. # Commands to make compiler produce verbose output that lists
  11258. # what "hidden" libraries, object files and flags are used when
  11259. # linking a shared library.
  11260. #
  11261. # There doesn't appear to be a way to prevent this compiler from
  11262. # explicitly linking system object files so we need to strip them
  11263. # from the output so that they don't get included in the library
  11264. # dependencies.
  11265. 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"'
  11266. ;;
  11267. *)
  11268. if test "$GXX" = yes; then
  11269. 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'
  11270. else
  11271. # FIXME: insert proper C++ library support
  11272. ld_shlibs_CXX=no
  11273. fi
  11274. ;;
  11275. esac
  11276. ;;
  11277. hpux10*|hpux11*)
  11278. if test $with_gnu_ld = no; then
  11279. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11280. hardcode_libdir_separator_CXX=:
  11281. case $host_cpu in
  11282. hppa*64*|ia64*)
  11283. ;;
  11284. *)
  11285. export_dynamic_flag_spec_CXX='${wl}-E'
  11286. ;;
  11287. esac
  11288. fi
  11289. case $host_cpu in
  11290. hppa*64*|ia64*)
  11291. hardcode_direct_CXX=no
  11292. hardcode_shlibpath_var_CXX=no
  11293. ;;
  11294. *)
  11295. hardcode_direct_CXX=yes
  11296. hardcode_direct_absolute_CXX=yes
  11297. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11298. # but as the default
  11299. # location of the library.
  11300. ;;
  11301. esac
  11302. case $cc_basename in
  11303. CC*)
  11304. # FIXME: insert proper C++ library support
  11305. ld_shlibs_CXX=no
  11306. ;;
  11307. aCC*)
  11308. case $host_cpu in
  11309. hppa*64*)
  11310. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11311. ;;
  11312. ia64*)
  11313. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11314. ;;
  11315. *)
  11316. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11317. ;;
  11318. esac
  11319. # Commands to make compiler produce verbose output that lists
  11320. # what "hidden" libraries, object files and flags are used when
  11321. # linking a shared library.
  11322. #
  11323. # There doesn't appear to be a way to prevent this compiler from
  11324. # explicitly linking system object files so we need to strip them
  11325. # from the output so that they don't get included in the library
  11326. # dependencies.
  11327. 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"'
  11328. ;;
  11329. *)
  11330. if test "$GXX" = yes; then
  11331. if test $with_gnu_ld = no; then
  11332. case $host_cpu in
  11333. hppa*64*)
  11334. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11335. ;;
  11336. ia64*)
  11337. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11338. ;;
  11339. *)
  11340. 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'
  11341. ;;
  11342. esac
  11343. fi
  11344. else
  11345. # FIXME: insert proper C++ library support
  11346. ld_shlibs_CXX=no
  11347. fi
  11348. ;;
  11349. esac
  11350. ;;
  11351. interix[3-9]*)
  11352. hardcode_direct_CXX=no
  11353. hardcode_shlibpath_var_CXX=no
  11354. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11355. export_dynamic_flag_spec_CXX='${wl}-E'
  11356. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11357. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11358. # default) and relocated if they conflict, which is a slow very memory
  11359. # consuming and fragmenting process. To avoid this, we pick a random,
  11360. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11361. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11362. 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'
  11363. 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'
  11364. ;;
  11365. irix5* | irix6*)
  11366. case $cc_basename in
  11367. CC*)
  11368. # SGI C++
  11369. 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'
  11370. # Archives containing C++ object files must be created using
  11371. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11372. # necessary to make sure instantiated templates are included
  11373. # in the archive.
  11374. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11375. ;;
  11376. *)
  11377. if test "$GXX" = yes; then
  11378. if test "$with_gnu_ld" = no; then
  11379. 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'
  11380. else
  11381. 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'
  11382. fi
  11383. fi
  11384. link_all_deplibs_CXX=yes
  11385. ;;
  11386. esac
  11387. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11388. hardcode_libdir_separator_CXX=:
  11389. inherit_rpath_CXX=yes
  11390. ;;
  11391. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11392. case $cc_basename in
  11393. KCC*)
  11394. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11395. # KCC will only create a shared library if the output file
  11396. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11397. # to its proper name (with version) after linking.
  11398. 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'
  11399. 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'
  11400. # Commands to make compiler produce verbose output that lists
  11401. # what "hidden" libraries, object files and flags are used when
  11402. # linking a shared library.
  11403. #
  11404. # There doesn't appear to be a way to prevent this compiler from
  11405. # explicitly linking system object files so we need to strip them
  11406. # from the output so that they don't get included in the library
  11407. # dependencies.
  11408. 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"'
  11409. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11410. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11411. # Archives containing C++ object files must be created using
  11412. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11413. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11414. ;;
  11415. icpc* | ecpc* )
  11416. # Intel C++
  11417. with_gnu_ld=yes
  11418. # version 8.0 and above of icpc choke on multiply defined symbols
  11419. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11420. # earlier do not add the objects themselves.
  11421. case `$CC -V 2>&1` in
  11422. *"Version 7."*)
  11423. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11424. 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'
  11425. ;;
  11426. *) # Version 8.0 or newer
  11427. tmp_idyn=
  11428. case $host_cpu in
  11429. ia64*) tmp_idyn=' -i_dynamic';;
  11430. esac
  11431. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11432. 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'
  11433. ;;
  11434. esac
  11435. archive_cmds_need_lc_CXX=no
  11436. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11437. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11438. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11439. ;;
  11440. pgCC* | pgcpp*)
  11441. # Portland Group C++ compiler
  11442. case `$CC -V` in
  11443. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11444. prelink_cmds_CXX='tpldir=Template.dir~
  11445. rm -rf $tpldir~
  11446. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11447. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11448. old_archive_cmds_CXX='tpldir=Template.dir~
  11449. rm -rf $tpldir~
  11450. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11451. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11452. $RANLIB $oldlib'
  11453. archive_cmds_CXX='tpldir=Template.dir~
  11454. rm -rf $tpldir~
  11455. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11456. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11457. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11458. rm -rf $tpldir~
  11459. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11460. $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'
  11461. ;;
  11462. *) # Version 6 and above use weak symbols
  11463. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11464. 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'
  11465. ;;
  11466. esac
  11467. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11468. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11469. 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'
  11470. ;;
  11471. cxx*)
  11472. # Compaq C++
  11473. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11474. 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'
  11475. runpath_var=LD_RUN_PATH
  11476. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11477. hardcode_libdir_separator_CXX=:
  11478. # Commands to make compiler produce verbose output that lists
  11479. # what "hidden" libraries, object files and flags are used when
  11480. # linking a shared library.
  11481. #
  11482. # There doesn't appear to be a way to prevent this compiler from
  11483. # explicitly linking system object files so we need to strip them
  11484. # from the output so that they don't get included in the library
  11485. # dependencies.
  11486. 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'
  11487. ;;
  11488. xl* | mpixl* | bgxl*)
  11489. # IBM XL 8.0 on PPC, with GNU ld
  11490. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11491. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11492. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11493. if test "x$supports_anon_versioning" = xyes; then
  11494. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11495. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11496. echo "local: *; };" >> $output_objdir/$libname.ver~
  11497. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11498. fi
  11499. ;;
  11500. *)
  11501. case `$CC -V 2>&1 | sed 5q` in
  11502. *Sun\ C*)
  11503. # Sun C++ 5.9
  11504. no_undefined_flag_CXX=' -zdefs'
  11505. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11506. 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'
  11507. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11508. 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'
  11509. compiler_needs_object_CXX=yes
  11510. # Not sure whether something based on
  11511. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11512. # would be better.
  11513. output_verbose_link_cmd='func_echo_all'
  11514. # Archives containing C++ object files must be created using
  11515. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11516. # necessary to make sure instantiated templates are included
  11517. # in the archive.
  11518. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11519. ;;
  11520. esac
  11521. ;;
  11522. esac
  11523. ;;
  11524. lynxos*)
  11525. # FIXME: insert proper C++ library support
  11526. ld_shlibs_CXX=no
  11527. ;;
  11528. m88k*)
  11529. # FIXME: insert proper C++ library support
  11530. ld_shlibs_CXX=no
  11531. ;;
  11532. mvs*)
  11533. case $cc_basename in
  11534. cxx*)
  11535. # FIXME: insert proper C++ library support
  11536. ld_shlibs_CXX=no
  11537. ;;
  11538. *)
  11539. # FIXME: insert proper C++ library support
  11540. ld_shlibs_CXX=no
  11541. ;;
  11542. esac
  11543. ;;
  11544. netbsd*)
  11545. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11546. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11547. wlarc=
  11548. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11549. hardcode_direct_CXX=yes
  11550. hardcode_shlibpath_var_CXX=no
  11551. fi
  11552. # Workaround some broken pre-1.5 toolchains
  11553. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11554. ;;
  11555. *nto* | *qnx*)
  11556. ld_shlibs_CXX=yes
  11557. ;;
  11558. openbsd2*)
  11559. # C++ shared libraries are fairly broken
  11560. ld_shlibs_CXX=no
  11561. ;;
  11562. openbsd*)
  11563. if test -f /usr/libexec/ld.so; then
  11564. hardcode_direct_CXX=yes
  11565. hardcode_shlibpath_var_CXX=no
  11566. hardcode_direct_absolute_CXX=yes
  11567. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11568. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11569. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11570. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11571. export_dynamic_flag_spec_CXX='${wl}-E'
  11572. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11573. fi
  11574. output_verbose_link_cmd=func_echo_all
  11575. else
  11576. ld_shlibs_CXX=no
  11577. fi
  11578. ;;
  11579. osf3* | osf4* | osf5*)
  11580. case $cc_basename in
  11581. KCC*)
  11582. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11583. # KCC will only create a shared library if the output file
  11584. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11585. # to its proper name (with version) after linking.
  11586. 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'
  11587. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11588. hardcode_libdir_separator_CXX=:
  11589. # Archives containing C++ object files must be created using
  11590. # the KAI C++ compiler.
  11591. case $host in
  11592. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11593. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11594. esac
  11595. ;;
  11596. RCC*)
  11597. # Rational C++ 2.4.1
  11598. # FIXME: insert proper C++ library support
  11599. ld_shlibs_CXX=no
  11600. ;;
  11601. cxx*)
  11602. case $host in
  11603. osf3*)
  11604. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11605. 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'
  11606. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11607. ;;
  11608. *)
  11609. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11610. 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'
  11611. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11612. echo "-hidden">> $lib.exp~
  11613. $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~
  11614. $RM $lib.exp'
  11615. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11616. ;;
  11617. esac
  11618. hardcode_libdir_separator_CXX=:
  11619. # Commands to make compiler produce verbose output that lists
  11620. # what "hidden" libraries, object files and flags are used when
  11621. # linking a shared library.
  11622. #
  11623. # There doesn't appear to be a way to prevent this compiler from
  11624. # explicitly linking system object files so we need to strip them
  11625. # from the output so that they don't get included in the library
  11626. # dependencies.
  11627. 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"'
  11628. ;;
  11629. *)
  11630. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11631. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11632. case $host in
  11633. osf3*)
  11634. 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'
  11635. ;;
  11636. *)
  11637. 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'
  11638. ;;
  11639. esac
  11640. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11641. hardcode_libdir_separator_CXX=:
  11642. # Commands to make compiler produce verbose output that lists
  11643. # what "hidden" libraries, object files and flags are used when
  11644. # linking a shared library.
  11645. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11646. else
  11647. # FIXME: insert proper C++ library support
  11648. ld_shlibs_CXX=no
  11649. fi
  11650. ;;
  11651. esac
  11652. ;;
  11653. psos*)
  11654. # FIXME: insert proper C++ library support
  11655. ld_shlibs_CXX=no
  11656. ;;
  11657. sunos4*)
  11658. case $cc_basename in
  11659. CC*)
  11660. # Sun C++ 4.x
  11661. # FIXME: insert proper C++ library support
  11662. ld_shlibs_CXX=no
  11663. ;;
  11664. lcc*)
  11665. # Lucid
  11666. # FIXME: insert proper C++ library support
  11667. ld_shlibs_CXX=no
  11668. ;;
  11669. *)
  11670. # FIXME: insert proper C++ library support
  11671. ld_shlibs_CXX=no
  11672. ;;
  11673. esac
  11674. ;;
  11675. solaris*)
  11676. case $cc_basename in
  11677. CC* | sunCC*)
  11678. # Sun C++ 4.2, 5.x and Centerline C++
  11679. archive_cmds_need_lc_CXX=yes
  11680. no_undefined_flag_CXX=' -zdefs'
  11681. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11682. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11683. $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'
  11684. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11685. hardcode_shlibpath_var_CXX=no
  11686. case $host_os in
  11687. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11688. *)
  11689. # The compiler driver will combine and reorder linker options,
  11690. # but understands `-z linker_flag'.
  11691. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11692. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11693. ;;
  11694. esac
  11695. link_all_deplibs_CXX=yes
  11696. output_verbose_link_cmd='func_echo_all'
  11697. # Archives containing C++ object files must be created using
  11698. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11699. # necessary to make sure instantiated templates are included
  11700. # in the archive.
  11701. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11702. ;;
  11703. gcx*)
  11704. # Green Hills C++ Compiler
  11705. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11706. # The C++ compiler must be used to create the archive.
  11707. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11708. ;;
  11709. *)
  11710. # GNU C++ compiler with Solaris linker
  11711. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11712. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11713. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11714. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11715. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11716. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11717. # Commands to make compiler produce verbose output that lists
  11718. # what "hidden" libraries, object files and flags are used when
  11719. # linking a shared library.
  11720. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11721. else
  11722. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11723. # platform.
  11724. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11725. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11726. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11727. # Commands to make compiler produce verbose output that lists
  11728. # what "hidden" libraries, object files and flags are used when
  11729. # linking a shared library.
  11730. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11731. fi
  11732. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11733. case $host_os in
  11734. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11735. *)
  11736. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11737. ;;
  11738. esac
  11739. fi
  11740. ;;
  11741. esac
  11742. ;;
  11743. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11744. no_undefined_flag_CXX='${wl}-z,text'
  11745. archive_cmds_need_lc_CXX=no
  11746. hardcode_shlibpath_var_CXX=no
  11747. runpath_var='LD_RUN_PATH'
  11748. case $cc_basename in
  11749. CC*)
  11750. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11751. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11752. ;;
  11753. *)
  11754. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11755. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11756. ;;
  11757. esac
  11758. ;;
  11759. sysv5* | sco3.2v5* | sco5v6*)
  11760. # Note: We can NOT use -z defs as we might desire, because we do not
  11761. # link with -lc, and that would cause any symbols used from libc to
  11762. # always be unresolved, which means just about no library would
  11763. # ever link correctly. If we're not using GNU ld we use -z text
  11764. # though, which does catch some bad symbols but isn't as heavy-handed
  11765. # as -z defs.
  11766. no_undefined_flag_CXX='${wl}-z,text'
  11767. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11768. archive_cmds_need_lc_CXX=no
  11769. hardcode_shlibpath_var_CXX=no
  11770. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11771. hardcode_libdir_separator_CXX=':'
  11772. link_all_deplibs_CXX=yes
  11773. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11774. runpath_var='LD_RUN_PATH'
  11775. case $cc_basename in
  11776. CC*)
  11777. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11778. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11779. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11780. '"$old_archive_cmds_CXX"
  11781. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11782. '"$reload_cmds_CXX"
  11783. ;;
  11784. *)
  11785. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11786. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11787. ;;
  11788. esac
  11789. ;;
  11790. tandem*)
  11791. case $cc_basename in
  11792. NCC*)
  11793. # NonStop-UX NCC 3.20
  11794. # FIXME: insert proper C++ library support
  11795. ld_shlibs_CXX=no
  11796. ;;
  11797. *)
  11798. # FIXME: insert proper C++ library support
  11799. ld_shlibs_CXX=no
  11800. ;;
  11801. esac
  11802. ;;
  11803. vxworks*)
  11804. # FIXME: insert proper C++ library support
  11805. ld_shlibs_CXX=no
  11806. ;;
  11807. *)
  11808. # FIXME: insert proper C++ library support
  11809. ld_shlibs_CXX=no
  11810. ;;
  11811. esac
  11812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11813. $as_echo "$ld_shlibs_CXX" >&6; }
  11814. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11815. GCC_CXX="$GXX"
  11816. LD_CXX="$LD"
  11817. ## CAVEAT EMPTOR:
  11818. ## There is no encapsulation within the following macros, do not change
  11819. ## the running order or otherwise move them around unless you know exactly
  11820. ## what you are doing...
  11821. # Dependencies to place before and after the object being linked:
  11822. predep_objects_CXX=
  11823. postdep_objects_CXX=
  11824. predeps_CXX=
  11825. postdeps_CXX=
  11826. compiler_lib_search_path_CXX=
  11827. cat > conftest.$ac_ext <<_LT_EOF
  11828. class Foo
  11829. {
  11830. public:
  11831. Foo (void) { a = 0; }
  11832. private:
  11833. int a;
  11834. };
  11835. _LT_EOF
  11836. _lt_libdeps_save_CFLAGS=$CFLAGS
  11837. case "$CC $CFLAGS " in #(
  11838. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11839. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11840. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11841. esac
  11842. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11843. (eval $ac_compile) 2>&5
  11844. ac_status=$?
  11845. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11846. test $ac_status = 0; }; then
  11847. # Parse the compiler output and extract the necessary
  11848. # objects, libraries and library flags.
  11849. # Sentinel used to keep track of whether or not we are before
  11850. # the conftest object file.
  11851. pre_test_object_deps_done=no
  11852. for p in `eval "$output_verbose_link_cmd"`; do
  11853. case ${prev}${p} in
  11854. -L* | -R* | -l*)
  11855. # Some compilers place space between "-{L,R}" and the path.
  11856. # Remove the space.
  11857. if test $p = "-L" ||
  11858. test $p = "-R"; then
  11859. prev=$p
  11860. continue
  11861. fi
  11862. # Expand the sysroot to ease extracting the directories later.
  11863. if test -z "$prev"; then
  11864. case $p in
  11865. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11866. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11867. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11868. esac
  11869. fi
  11870. case $p in
  11871. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11872. esac
  11873. if test "$pre_test_object_deps_done" = no; then
  11874. case ${prev} in
  11875. -L | -R)
  11876. # Internal compiler library paths should come after those
  11877. # provided the user. The postdeps already come after the
  11878. # user supplied libs so there is no need to process them.
  11879. if test -z "$compiler_lib_search_path_CXX"; then
  11880. compiler_lib_search_path_CXX="${prev}${p}"
  11881. else
  11882. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11883. fi
  11884. ;;
  11885. # The "-l" case would never come before the object being
  11886. # linked, so don't bother handling this case.
  11887. esac
  11888. else
  11889. if test -z "$postdeps_CXX"; then
  11890. postdeps_CXX="${prev}${p}"
  11891. else
  11892. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11893. fi
  11894. fi
  11895. prev=
  11896. ;;
  11897. *.lto.$objext) ;; # Ignore GCC LTO objects
  11898. *.$objext)
  11899. # This assumes that the test object file only shows up
  11900. # once in the compiler output.
  11901. if test "$p" = "conftest.$objext"; then
  11902. pre_test_object_deps_done=yes
  11903. continue
  11904. fi
  11905. if test "$pre_test_object_deps_done" = no; then
  11906. if test -z "$predep_objects_CXX"; then
  11907. predep_objects_CXX="$p"
  11908. else
  11909. predep_objects_CXX="$predep_objects_CXX $p"
  11910. fi
  11911. else
  11912. if test -z "$postdep_objects_CXX"; then
  11913. postdep_objects_CXX="$p"
  11914. else
  11915. postdep_objects_CXX="$postdep_objects_CXX $p"
  11916. fi
  11917. fi
  11918. ;;
  11919. *) ;; # Ignore the rest.
  11920. esac
  11921. done
  11922. # Clean up.
  11923. rm -f a.out a.exe
  11924. else
  11925. echo "libtool.m4: error: problem compiling CXX test program"
  11926. fi
  11927. $RM -f confest.$objext
  11928. CFLAGS=$_lt_libdeps_save_CFLAGS
  11929. # PORTME: override above test on systems where it is broken
  11930. case $host_os in
  11931. interix[3-9]*)
  11932. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11933. # hack all around it, let's just trust "g++" to DTRT.
  11934. predep_objects_CXX=
  11935. postdep_objects_CXX=
  11936. postdeps_CXX=
  11937. ;;
  11938. linux*)
  11939. case `$CC -V 2>&1 | sed 5q` in
  11940. *Sun\ C*)
  11941. # Sun C++ 5.9
  11942. # The more standards-conforming stlport4 library is
  11943. # incompatible with the Cstd library. Avoid specifying
  11944. # it if it's in CXXFLAGS. Ignore libCrun as
  11945. # -library=stlport4 depends on it.
  11946. case " $CXX $CXXFLAGS " in
  11947. *" -library=stlport4 "*)
  11948. solaris_use_stlport4=yes
  11949. ;;
  11950. esac
  11951. if test "$solaris_use_stlport4" != yes; then
  11952. postdeps_CXX='-library=Cstd -library=Crun'
  11953. fi
  11954. ;;
  11955. esac
  11956. ;;
  11957. solaris*)
  11958. case $cc_basename in
  11959. CC* | sunCC*)
  11960. # The more standards-conforming stlport4 library is
  11961. # incompatible with the Cstd library. Avoid specifying
  11962. # it if it's in CXXFLAGS. Ignore libCrun as
  11963. # -library=stlport4 depends on it.
  11964. case " $CXX $CXXFLAGS " in
  11965. *" -library=stlport4 "*)
  11966. solaris_use_stlport4=yes
  11967. ;;
  11968. esac
  11969. # Adding this requires a known-good setup of shared libraries for
  11970. # Sun compiler versions before 5.6, else PIC objects from an old
  11971. # archive will be linked into the output, leading to subtle bugs.
  11972. if test "$solaris_use_stlport4" != yes; then
  11973. postdeps_CXX='-library=Cstd -library=Crun'
  11974. fi
  11975. ;;
  11976. esac
  11977. ;;
  11978. esac
  11979. case " $postdeps_CXX " in
  11980. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11981. esac
  11982. compiler_lib_search_dirs_CXX=
  11983. if test -n "${compiler_lib_search_path_CXX}"; then
  11984. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11985. fi
  11986. lt_prog_compiler_wl_CXX=
  11987. lt_prog_compiler_pic_CXX=
  11988. lt_prog_compiler_static_CXX=
  11989. # C++ specific cases for pic, static, wl, etc.
  11990. if test "$GXX" = yes; then
  11991. lt_prog_compiler_wl_CXX='-Wl,'
  11992. lt_prog_compiler_static_CXX='-static'
  11993. case $host_os in
  11994. aix*)
  11995. # All AIX code is PIC.
  11996. if test "$host_cpu" = ia64; then
  11997. # AIX 5 now supports IA64 processor
  11998. lt_prog_compiler_static_CXX='-Bstatic'
  11999. fi
  12000. ;;
  12001. amigaos*)
  12002. case $host_cpu in
  12003. powerpc)
  12004. # see comment about AmigaOS4 .so support
  12005. lt_prog_compiler_pic_CXX='-fPIC'
  12006. ;;
  12007. m68k)
  12008. # FIXME: we need at least 68020 code to build shared libraries, but
  12009. # adding the `-m68020' flag to GCC prevents building anything better,
  12010. # like `-m68040'.
  12011. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12012. ;;
  12013. esac
  12014. ;;
  12015. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12016. # PIC is the default for these OSes.
  12017. ;;
  12018. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12019. # This hack is so that the source file can tell whether it is being
  12020. # built for inclusion in a dll (and should export symbols for example).
  12021. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12022. # (--disable-auto-import) libraries
  12023. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12024. ;;
  12025. darwin* | rhapsody*)
  12026. # PIC is the default on this platform
  12027. # Common symbols not allowed in MH_DYLIB files
  12028. lt_prog_compiler_pic_CXX='-fno-common'
  12029. ;;
  12030. *djgpp*)
  12031. # DJGPP does not support shared libraries at all
  12032. lt_prog_compiler_pic_CXX=
  12033. ;;
  12034. haiku*)
  12035. # PIC is the default for Haiku.
  12036. # The "-static" flag exists, but is broken.
  12037. lt_prog_compiler_static_CXX=
  12038. ;;
  12039. interix[3-9]*)
  12040. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12041. # Instead, we relocate shared libraries at runtime.
  12042. ;;
  12043. sysv4*MP*)
  12044. if test -d /usr/nec; then
  12045. lt_prog_compiler_pic_CXX=-Kconform_pic
  12046. fi
  12047. ;;
  12048. hpux*)
  12049. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12050. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12051. # sets the default TLS model and affects inlining.
  12052. case $host_cpu in
  12053. hppa*64*)
  12054. ;;
  12055. *)
  12056. lt_prog_compiler_pic_CXX='-fPIC'
  12057. ;;
  12058. esac
  12059. ;;
  12060. *qnx* | *nto*)
  12061. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12062. # it will coredump.
  12063. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12064. ;;
  12065. *)
  12066. lt_prog_compiler_pic_CXX='-fPIC'
  12067. ;;
  12068. esac
  12069. else
  12070. case $host_os in
  12071. aix[4-9]*)
  12072. # All AIX code is PIC.
  12073. if test "$host_cpu" = ia64; then
  12074. # AIX 5 now supports IA64 processor
  12075. lt_prog_compiler_static_CXX='-Bstatic'
  12076. else
  12077. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12078. fi
  12079. ;;
  12080. chorus*)
  12081. case $cc_basename in
  12082. cxch68*)
  12083. # Green Hills C++ Compiler
  12084. # _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"
  12085. ;;
  12086. esac
  12087. ;;
  12088. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12089. # This hack is so that the source file can tell whether it is being
  12090. # built for inclusion in a dll (and should export symbols for example).
  12091. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12092. ;;
  12093. dgux*)
  12094. case $cc_basename in
  12095. ec++*)
  12096. lt_prog_compiler_pic_CXX='-KPIC'
  12097. ;;
  12098. ghcx*)
  12099. # Green Hills C++ Compiler
  12100. lt_prog_compiler_pic_CXX='-pic'
  12101. ;;
  12102. *)
  12103. ;;
  12104. esac
  12105. ;;
  12106. freebsd* | dragonfly*)
  12107. # FreeBSD uses GNU C++
  12108. ;;
  12109. hpux9* | hpux10* | hpux11*)
  12110. case $cc_basename in
  12111. CC*)
  12112. lt_prog_compiler_wl_CXX='-Wl,'
  12113. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12114. if test "$host_cpu" != ia64; then
  12115. lt_prog_compiler_pic_CXX='+Z'
  12116. fi
  12117. ;;
  12118. aCC*)
  12119. lt_prog_compiler_wl_CXX='-Wl,'
  12120. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12121. case $host_cpu in
  12122. hppa*64*|ia64*)
  12123. # +Z the default
  12124. ;;
  12125. *)
  12126. lt_prog_compiler_pic_CXX='+Z'
  12127. ;;
  12128. esac
  12129. ;;
  12130. *)
  12131. ;;
  12132. esac
  12133. ;;
  12134. interix*)
  12135. # This is c89, which is MS Visual C++ (no shared libs)
  12136. # Anyone wants to do a port?
  12137. ;;
  12138. irix5* | irix6* | nonstopux*)
  12139. case $cc_basename in
  12140. CC*)
  12141. lt_prog_compiler_wl_CXX='-Wl,'
  12142. lt_prog_compiler_static_CXX='-non_shared'
  12143. # CC pic flag -KPIC is the default.
  12144. ;;
  12145. *)
  12146. ;;
  12147. esac
  12148. ;;
  12149. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12150. case $cc_basename in
  12151. KCC*)
  12152. # KAI C++ Compiler
  12153. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12154. lt_prog_compiler_pic_CXX='-fPIC'
  12155. ;;
  12156. ecpc* )
  12157. # old Intel C++ for x86_64 which still supported -KPIC.
  12158. lt_prog_compiler_wl_CXX='-Wl,'
  12159. lt_prog_compiler_pic_CXX='-KPIC'
  12160. lt_prog_compiler_static_CXX='-static'
  12161. ;;
  12162. icpc* )
  12163. # Intel C++, used to be incompatible with GCC.
  12164. # ICC 10 doesn't accept -KPIC any more.
  12165. lt_prog_compiler_wl_CXX='-Wl,'
  12166. lt_prog_compiler_pic_CXX='-fPIC'
  12167. lt_prog_compiler_static_CXX='-static'
  12168. ;;
  12169. pgCC* | pgcpp*)
  12170. # Portland Group C++ compiler
  12171. lt_prog_compiler_wl_CXX='-Wl,'
  12172. lt_prog_compiler_pic_CXX='-fpic'
  12173. lt_prog_compiler_static_CXX='-Bstatic'
  12174. ;;
  12175. cxx*)
  12176. # Compaq C++
  12177. # Make sure the PIC flag is empty. It appears that all Alpha
  12178. # Linux and Compaq Tru64 Unix objects are PIC.
  12179. lt_prog_compiler_pic_CXX=
  12180. lt_prog_compiler_static_CXX='-non_shared'
  12181. ;;
  12182. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12183. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12184. lt_prog_compiler_wl_CXX='-Wl,'
  12185. lt_prog_compiler_pic_CXX='-qpic'
  12186. lt_prog_compiler_static_CXX='-qstaticlink'
  12187. ;;
  12188. *)
  12189. case `$CC -V 2>&1 | sed 5q` in
  12190. *Sun\ C*)
  12191. # Sun C++ 5.9
  12192. lt_prog_compiler_pic_CXX='-KPIC'
  12193. lt_prog_compiler_static_CXX='-Bstatic'
  12194. lt_prog_compiler_wl_CXX='-Qoption ld '
  12195. ;;
  12196. esac
  12197. ;;
  12198. esac
  12199. ;;
  12200. lynxos*)
  12201. ;;
  12202. m88k*)
  12203. ;;
  12204. mvs*)
  12205. case $cc_basename in
  12206. cxx*)
  12207. lt_prog_compiler_pic_CXX='-W c,exportall'
  12208. ;;
  12209. *)
  12210. ;;
  12211. esac
  12212. ;;
  12213. netbsd*)
  12214. ;;
  12215. *qnx* | *nto*)
  12216. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12217. # it will coredump.
  12218. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12219. ;;
  12220. osf3* | osf4* | osf5*)
  12221. case $cc_basename in
  12222. KCC*)
  12223. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12224. ;;
  12225. RCC*)
  12226. # Rational C++ 2.4.1
  12227. lt_prog_compiler_pic_CXX='-pic'
  12228. ;;
  12229. cxx*)
  12230. # Digital/Compaq C++
  12231. lt_prog_compiler_wl_CXX='-Wl,'
  12232. # Make sure the PIC flag is empty. It appears that all Alpha
  12233. # Linux and Compaq Tru64 Unix objects are PIC.
  12234. lt_prog_compiler_pic_CXX=
  12235. lt_prog_compiler_static_CXX='-non_shared'
  12236. ;;
  12237. *)
  12238. ;;
  12239. esac
  12240. ;;
  12241. psos*)
  12242. ;;
  12243. solaris*)
  12244. case $cc_basename in
  12245. CC* | sunCC*)
  12246. # Sun C++ 4.2, 5.x and Centerline C++
  12247. lt_prog_compiler_pic_CXX='-KPIC'
  12248. lt_prog_compiler_static_CXX='-Bstatic'
  12249. lt_prog_compiler_wl_CXX='-Qoption ld '
  12250. ;;
  12251. gcx*)
  12252. # Green Hills C++ Compiler
  12253. lt_prog_compiler_pic_CXX='-PIC'
  12254. ;;
  12255. *)
  12256. ;;
  12257. esac
  12258. ;;
  12259. sunos4*)
  12260. case $cc_basename in
  12261. CC*)
  12262. # Sun C++ 4.x
  12263. lt_prog_compiler_pic_CXX='-pic'
  12264. lt_prog_compiler_static_CXX='-Bstatic'
  12265. ;;
  12266. lcc*)
  12267. # Lucid
  12268. lt_prog_compiler_pic_CXX='-pic'
  12269. ;;
  12270. *)
  12271. ;;
  12272. esac
  12273. ;;
  12274. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12275. case $cc_basename in
  12276. CC*)
  12277. lt_prog_compiler_wl_CXX='-Wl,'
  12278. lt_prog_compiler_pic_CXX='-KPIC'
  12279. lt_prog_compiler_static_CXX='-Bstatic'
  12280. ;;
  12281. esac
  12282. ;;
  12283. tandem*)
  12284. case $cc_basename in
  12285. NCC*)
  12286. # NonStop-UX NCC 3.20
  12287. lt_prog_compiler_pic_CXX='-KPIC'
  12288. ;;
  12289. *)
  12290. ;;
  12291. esac
  12292. ;;
  12293. vxworks*)
  12294. ;;
  12295. *)
  12296. lt_prog_compiler_can_build_shared_CXX=no
  12297. ;;
  12298. esac
  12299. fi
  12300. case $host_os in
  12301. # For platforms which do not support PIC, -DPIC is meaningless:
  12302. *djgpp*)
  12303. lt_prog_compiler_pic_CXX=
  12304. ;;
  12305. *)
  12306. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12307. ;;
  12308. esac
  12309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12310. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12311. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12312. $as_echo_n "(cached) " >&6
  12313. else
  12314. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12315. fi
  12316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12317. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12318. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12319. #
  12320. # Check to make sure the PIC flag actually works.
  12321. #
  12322. if test -n "$lt_prog_compiler_pic_CXX"; then
  12323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12324. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12325. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12326. $as_echo_n "(cached) " >&6
  12327. else
  12328. lt_cv_prog_compiler_pic_works_CXX=no
  12329. ac_outfile=conftest.$ac_objext
  12330. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12331. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12332. # Insert the option either (1) after the last *FLAGS variable, or
  12333. # (2) before a word containing "conftest.", or (3) at the end.
  12334. # Note that $ac_compile itself does not contain backslashes and begins
  12335. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12336. # The option is referenced via a variable to avoid confusing sed.
  12337. lt_compile=`echo "$ac_compile" | $SED \
  12338. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12339. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12340. -e 's:$: $lt_compiler_flag:'`
  12341. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12342. (eval "$lt_compile" 2>conftest.err)
  12343. ac_status=$?
  12344. cat conftest.err >&5
  12345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12346. if (exit $ac_status) && test -s "$ac_outfile"; then
  12347. # The compiler can only warn and ignore the option if not recognized
  12348. # So say no if there are warnings other than the usual output.
  12349. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12350. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12351. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12352. lt_cv_prog_compiler_pic_works_CXX=yes
  12353. fi
  12354. fi
  12355. $RM conftest*
  12356. fi
  12357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12358. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12359. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12360. case $lt_prog_compiler_pic_CXX in
  12361. "" | " "*) ;;
  12362. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12363. esac
  12364. else
  12365. lt_prog_compiler_pic_CXX=
  12366. lt_prog_compiler_can_build_shared_CXX=no
  12367. fi
  12368. fi
  12369. #
  12370. # Check to make sure the static flag actually works.
  12371. #
  12372. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12374. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12375. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12376. $as_echo_n "(cached) " >&6
  12377. else
  12378. lt_cv_prog_compiler_static_works_CXX=no
  12379. save_LDFLAGS="$LDFLAGS"
  12380. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12381. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12382. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12383. # The linker can only warn and ignore the option if not recognized
  12384. # So say no if there are warnings
  12385. if test -s conftest.err; then
  12386. # Append any errors to the config.log.
  12387. cat conftest.err 1>&5
  12388. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12389. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12390. if diff conftest.exp conftest.er2 >/dev/null; then
  12391. lt_cv_prog_compiler_static_works_CXX=yes
  12392. fi
  12393. else
  12394. lt_cv_prog_compiler_static_works_CXX=yes
  12395. fi
  12396. fi
  12397. $RM -r conftest*
  12398. LDFLAGS="$save_LDFLAGS"
  12399. fi
  12400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12401. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12402. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12403. :
  12404. else
  12405. lt_prog_compiler_static_CXX=
  12406. fi
  12407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12408. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12409. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12410. $as_echo_n "(cached) " >&6
  12411. else
  12412. lt_cv_prog_compiler_c_o_CXX=no
  12413. $RM -r conftest 2>/dev/null
  12414. mkdir conftest
  12415. cd conftest
  12416. mkdir out
  12417. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12418. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12419. # Insert the option either (1) after the last *FLAGS variable, or
  12420. # (2) before a word containing "conftest.", or (3) at the end.
  12421. # Note that $ac_compile itself does not contain backslashes and begins
  12422. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12423. lt_compile=`echo "$ac_compile" | $SED \
  12424. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12425. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12426. -e 's:$: $lt_compiler_flag:'`
  12427. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12428. (eval "$lt_compile" 2>out/conftest.err)
  12429. ac_status=$?
  12430. cat out/conftest.err >&5
  12431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12432. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12433. then
  12434. # The compiler can only warn and ignore the option if not recognized
  12435. # So say no if there are warnings
  12436. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12437. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12438. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12439. lt_cv_prog_compiler_c_o_CXX=yes
  12440. fi
  12441. fi
  12442. chmod u+w . 2>&5
  12443. $RM conftest*
  12444. # SGI C++ compiler will create directory out/ii_files/ for
  12445. # template instantiation
  12446. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12447. $RM out/* && rmdir out
  12448. cd ..
  12449. $RM -r conftest
  12450. $RM conftest*
  12451. fi
  12452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12453. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12455. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12456. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12457. $as_echo_n "(cached) " >&6
  12458. else
  12459. lt_cv_prog_compiler_c_o_CXX=no
  12460. $RM -r conftest 2>/dev/null
  12461. mkdir conftest
  12462. cd conftest
  12463. mkdir out
  12464. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12465. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12466. # Insert the option either (1) after the last *FLAGS variable, or
  12467. # (2) before a word containing "conftest.", or (3) at the end.
  12468. # Note that $ac_compile itself does not contain backslashes and begins
  12469. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12470. lt_compile=`echo "$ac_compile" | $SED \
  12471. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12472. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12473. -e 's:$: $lt_compiler_flag:'`
  12474. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12475. (eval "$lt_compile" 2>out/conftest.err)
  12476. ac_status=$?
  12477. cat out/conftest.err >&5
  12478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12479. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12480. then
  12481. # The compiler can only warn and ignore the option if not recognized
  12482. # So say no if there are warnings
  12483. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12484. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12485. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12486. lt_cv_prog_compiler_c_o_CXX=yes
  12487. fi
  12488. fi
  12489. chmod u+w . 2>&5
  12490. $RM conftest*
  12491. # SGI C++ compiler will create directory out/ii_files/ for
  12492. # template instantiation
  12493. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12494. $RM out/* && rmdir out
  12495. cd ..
  12496. $RM -r conftest
  12497. $RM conftest*
  12498. fi
  12499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12500. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12501. hard_links="nottested"
  12502. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12503. # do not overwrite the value of need_locks provided by the user
  12504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12505. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12506. hard_links=yes
  12507. $RM conftest*
  12508. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12509. touch conftest.a
  12510. ln conftest.a conftest.b 2>&5 || hard_links=no
  12511. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12513. $as_echo "$hard_links" >&6; }
  12514. if test "$hard_links" = no; then
  12515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12516. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12517. need_locks=warn
  12518. fi
  12519. else
  12520. need_locks=no
  12521. fi
  12522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12523. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12524. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12525. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12526. case $host_os in
  12527. aix[4-9]*)
  12528. # If we're using GNU nm, then we don't want the "-C" option.
  12529. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12530. # Also, AIX nm treats weak defined symbols like other global defined
  12531. # symbols, whereas GNU nm marks them as "W".
  12532. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12533. 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'
  12534. else
  12535. 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'
  12536. fi
  12537. ;;
  12538. pw32*)
  12539. export_symbols_cmds_CXX="$ltdll_cmds"
  12540. ;;
  12541. cygwin* | mingw* | cegcc*)
  12542. case $cc_basename in
  12543. cl*)
  12544. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12545. ;;
  12546. *)
  12547. 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'
  12548. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12549. ;;
  12550. esac
  12551. ;;
  12552. *)
  12553. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12554. ;;
  12555. esac
  12556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12557. $as_echo "$ld_shlibs_CXX" >&6; }
  12558. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12559. with_gnu_ld_CXX=$with_gnu_ld
  12560. #
  12561. # Do we need to explicitly link libc?
  12562. #
  12563. case "x$archive_cmds_need_lc_CXX" in
  12564. x|xyes)
  12565. # Assume -lc should be added
  12566. archive_cmds_need_lc_CXX=yes
  12567. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12568. case $archive_cmds_CXX in
  12569. *'~'*)
  12570. # FIXME: we may have to deal with multi-command sequences.
  12571. ;;
  12572. '$CC '*)
  12573. # Test whether the compiler implicitly links with -lc since on some
  12574. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12575. # to ld, don't add -lc before -lgcc.
  12576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12577. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12578. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12579. $as_echo_n "(cached) " >&6
  12580. else
  12581. $RM conftest*
  12582. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12583. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12584. (eval $ac_compile) 2>&5
  12585. ac_status=$?
  12586. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12587. test $ac_status = 0; } 2>conftest.err; then
  12588. soname=conftest
  12589. lib=conftest
  12590. libobjs=conftest.$ac_objext
  12591. deplibs=
  12592. wl=$lt_prog_compiler_wl_CXX
  12593. pic_flag=$lt_prog_compiler_pic_CXX
  12594. compiler_flags=-v
  12595. linker_flags=-v
  12596. verstring=
  12597. output_objdir=.
  12598. libname=conftest
  12599. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12600. allow_undefined_flag_CXX=
  12601. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12602. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12603. ac_status=$?
  12604. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12605. test $ac_status = 0; }
  12606. then
  12607. lt_cv_archive_cmds_need_lc_CXX=no
  12608. else
  12609. lt_cv_archive_cmds_need_lc_CXX=yes
  12610. fi
  12611. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12612. else
  12613. cat conftest.err 1>&5
  12614. fi
  12615. $RM conftest*
  12616. fi
  12617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12618. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12619. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12620. ;;
  12621. esac
  12622. fi
  12623. ;;
  12624. esac
  12625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12626. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12627. library_names_spec=
  12628. libname_spec='lib$name'
  12629. soname_spec=
  12630. shrext_cmds=".so"
  12631. postinstall_cmds=
  12632. postuninstall_cmds=
  12633. finish_cmds=
  12634. finish_eval=
  12635. shlibpath_var=
  12636. shlibpath_overrides_runpath=unknown
  12637. version_type=none
  12638. dynamic_linker="$host_os ld.so"
  12639. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12640. need_lib_prefix=unknown
  12641. hardcode_into_libs=no
  12642. # when you set need_version to no, make sure it does not cause -set_version
  12643. # flags to be left without arguments
  12644. need_version=unknown
  12645. case $host_os in
  12646. aix3*)
  12647. version_type=linux # correct to gnu/linux during the next big refactor
  12648. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12649. shlibpath_var=LIBPATH
  12650. # AIX 3 has no versioning support, so we append a major version to the name.
  12651. soname_spec='${libname}${release}${shared_ext}$major'
  12652. ;;
  12653. aix[4-9]*)
  12654. version_type=linux # correct to gnu/linux during the next big refactor
  12655. need_lib_prefix=no
  12656. need_version=no
  12657. hardcode_into_libs=yes
  12658. if test "$host_cpu" = ia64; then
  12659. # AIX 5 supports IA64
  12660. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12661. shlibpath_var=LD_LIBRARY_PATH
  12662. else
  12663. # With GCC up to 2.95.x, collect2 would create an import file
  12664. # for dependence libraries. The import file would start with
  12665. # the line `#! .'. This would cause the generated library to
  12666. # depend on `.', always an invalid library. This was fixed in
  12667. # development snapshots of GCC prior to 3.0.
  12668. case $host_os in
  12669. aix4 | aix4.[01] | aix4.[01].*)
  12670. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12671. echo ' yes '
  12672. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12673. :
  12674. else
  12675. can_build_shared=no
  12676. fi
  12677. ;;
  12678. esac
  12679. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12680. # soname into executable. Probably we can add versioning support to
  12681. # collect2, so additional links can be useful in future.
  12682. if test "$aix_use_runtimelinking" = yes; then
  12683. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12684. # instead of lib<name>.a to let people know that these are not
  12685. # typical AIX shared libraries.
  12686. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12687. else
  12688. # We preserve .a as extension for shared libraries through AIX4.2
  12689. # and later when we are not doing run time linking.
  12690. library_names_spec='${libname}${release}.a $libname.a'
  12691. soname_spec='${libname}${release}${shared_ext}$major'
  12692. fi
  12693. shlibpath_var=LIBPATH
  12694. fi
  12695. ;;
  12696. amigaos*)
  12697. case $host_cpu in
  12698. powerpc)
  12699. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12700. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12701. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12702. ;;
  12703. m68k)
  12704. library_names_spec='$libname.ixlibrary $libname.a'
  12705. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12706. 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'
  12707. ;;
  12708. esac
  12709. ;;
  12710. beos*)
  12711. library_names_spec='${libname}${shared_ext}'
  12712. dynamic_linker="$host_os ld.so"
  12713. shlibpath_var=LIBRARY_PATH
  12714. ;;
  12715. bsdi[45]*)
  12716. version_type=linux # correct to gnu/linux during the next big refactor
  12717. need_version=no
  12718. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12719. soname_spec='${libname}${release}${shared_ext}$major'
  12720. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12721. shlibpath_var=LD_LIBRARY_PATH
  12722. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12723. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12724. # the default ld.so.conf also contains /usr/contrib/lib and
  12725. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12726. # libtool to hard-code these into programs
  12727. ;;
  12728. cygwin* | mingw* | pw32* | cegcc*)
  12729. version_type=windows
  12730. shrext_cmds=".dll"
  12731. need_version=no
  12732. need_lib_prefix=no
  12733. case $GCC,$cc_basename in
  12734. yes,*)
  12735. # gcc
  12736. library_names_spec='$libname.dll.a'
  12737. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12738. postinstall_cmds='base_file=`basename \${file}`~
  12739. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12740. dldir=$destdir/`dirname \$dlpath`~
  12741. test -d \$dldir || mkdir -p \$dldir~
  12742. $install_prog $dir/$dlname \$dldir/$dlname~
  12743. chmod a+x \$dldir/$dlname~
  12744. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12745. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12746. fi'
  12747. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12748. dlpath=$dir/\$dldll~
  12749. $RM \$dlpath'
  12750. shlibpath_overrides_runpath=yes
  12751. case $host_os in
  12752. cygwin*)
  12753. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12754. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12755. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12756. ;;
  12757. mingw* | cegcc*)
  12758. # MinGW DLLs use traditional 'lib' prefix
  12759. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12760. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12761. ;;
  12762. pw32*)
  12763. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12764. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12765. ;;
  12766. esac
  12767. dynamic_linker='Win32 ld.exe'
  12768. ;;
  12769. *,cl*)
  12770. # Native MSVC
  12771. libname_spec='$name'
  12772. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12773. library_names_spec='${libname}.dll.lib'
  12774. case $build_os in
  12775. mingw*)
  12776. sys_lib_search_path_spec=
  12777. lt_save_ifs=$IFS
  12778. IFS=';'
  12779. for lt_path in $LIB
  12780. do
  12781. IFS=$lt_save_ifs
  12782. # Let DOS variable expansion print the short 8.3 style file name.
  12783. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12784. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12785. done
  12786. IFS=$lt_save_ifs
  12787. # Convert to MSYS style.
  12788. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12789. ;;
  12790. cygwin*)
  12791. # Convert to unix form, then to dos form, then back to unix form
  12792. # but this time dos style (no spaces!) so that the unix form looks
  12793. # like /cygdrive/c/PROGRA~1:/cygdr...
  12794. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12795. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12796. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12797. ;;
  12798. *)
  12799. sys_lib_search_path_spec="$LIB"
  12800. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12801. # It is most probably a Windows format PATH.
  12802. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12803. else
  12804. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12805. fi
  12806. # FIXME: find the short name or the path components, as spaces are
  12807. # common. (e.g. "Program Files" -> "PROGRA~1")
  12808. ;;
  12809. esac
  12810. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12811. postinstall_cmds='base_file=`basename \${file}`~
  12812. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12813. dldir=$destdir/`dirname \$dlpath`~
  12814. test -d \$dldir || mkdir -p \$dldir~
  12815. $install_prog $dir/$dlname \$dldir/$dlname'
  12816. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12817. dlpath=$dir/\$dldll~
  12818. $RM \$dlpath'
  12819. shlibpath_overrides_runpath=yes
  12820. dynamic_linker='Win32 link.exe'
  12821. ;;
  12822. *)
  12823. # Assume MSVC wrapper
  12824. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12825. dynamic_linker='Win32 ld.exe'
  12826. ;;
  12827. esac
  12828. # FIXME: first we should search . and the directory the executable is in
  12829. shlibpath_var=PATH
  12830. ;;
  12831. darwin* | rhapsody*)
  12832. dynamic_linker="$host_os dyld"
  12833. version_type=darwin
  12834. need_lib_prefix=no
  12835. need_version=no
  12836. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12837. soname_spec='${libname}${release}${major}$shared_ext'
  12838. shlibpath_overrides_runpath=yes
  12839. shlibpath_var=DYLD_LIBRARY_PATH
  12840. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12841. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12842. ;;
  12843. dgux*)
  12844. version_type=linux # correct to gnu/linux during the next big refactor
  12845. need_lib_prefix=no
  12846. need_version=no
  12847. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12848. soname_spec='${libname}${release}${shared_ext}$major'
  12849. shlibpath_var=LD_LIBRARY_PATH
  12850. ;;
  12851. freebsd* | dragonfly*)
  12852. # DragonFly does not have aout. When/if they implement a new
  12853. # versioning mechanism, adjust this.
  12854. if test -x /usr/bin/objformat; then
  12855. objformat=`/usr/bin/objformat`
  12856. else
  12857. case $host_os in
  12858. freebsd[23].*) objformat=aout ;;
  12859. *) objformat=elf ;;
  12860. esac
  12861. fi
  12862. version_type=freebsd-$objformat
  12863. case $version_type in
  12864. freebsd-elf*)
  12865. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12866. need_version=no
  12867. need_lib_prefix=no
  12868. ;;
  12869. freebsd-*)
  12870. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12871. need_version=yes
  12872. ;;
  12873. esac
  12874. shlibpath_var=LD_LIBRARY_PATH
  12875. case $host_os in
  12876. freebsd2.*)
  12877. shlibpath_overrides_runpath=yes
  12878. ;;
  12879. freebsd3.[01]* | freebsdelf3.[01]*)
  12880. shlibpath_overrides_runpath=yes
  12881. hardcode_into_libs=yes
  12882. ;;
  12883. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12884. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12885. shlibpath_overrides_runpath=no
  12886. hardcode_into_libs=yes
  12887. ;;
  12888. *) # from 4.6 on, and DragonFly
  12889. shlibpath_overrides_runpath=yes
  12890. hardcode_into_libs=yes
  12891. ;;
  12892. esac
  12893. ;;
  12894. gnu*)
  12895. version_type=linux # correct to gnu/linux during the next big refactor
  12896. need_lib_prefix=no
  12897. need_version=no
  12898. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12899. soname_spec='${libname}${release}${shared_ext}$major'
  12900. shlibpath_var=LD_LIBRARY_PATH
  12901. shlibpath_overrides_runpath=no
  12902. hardcode_into_libs=yes
  12903. ;;
  12904. haiku*)
  12905. version_type=linux # correct to gnu/linux during the next big refactor
  12906. need_lib_prefix=no
  12907. need_version=no
  12908. dynamic_linker="$host_os runtime_loader"
  12909. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12910. soname_spec='${libname}${release}${shared_ext}$major'
  12911. shlibpath_var=LIBRARY_PATH
  12912. shlibpath_overrides_runpath=yes
  12913. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12914. hardcode_into_libs=yes
  12915. ;;
  12916. hpux9* | hpux10* | hpux11*)
  12917. # Give a soname corresponding to the major version so that dld.sl refuses to
  12918. # link against other versions.
  12919. version_type=sunos
  12920. need_lib_prefix=no
  12921. need_version=no
  12922. case $host_cpu in
  12923. ia64*)
  12924. shrext_cmds='.so'
  12925. hardcode_into_libs=yes
  12926. dynamic_linker="$host_os dld.so"
  12927. shlibpath_var=LD_LIBRARY_PATH
  12928. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12929. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12930. soname_spec='${libname}${release}${shared_ext}$major'
  12931. if test "X$HPUX_IA64_MODE" = X32; then
  12932. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12933. else
  12934. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12935. fi
  12936. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12937. ;;
  12938. hppa*64*)
  12939. shrext_cmds='.sl'
  12940. hardcode_into_libs=yes
  12941. dynamic_linker="$host_os dld.sl"
  12942. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12943. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12944. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12945. soname_spec='${libname}${release}${shared_ext}$major'
  12946. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12947. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12948. ;;
  12949. *)
  12950. shrext_cmds='.sl'
  12951. dynamic_linker="$host_os dld.sl"
  12952. shlibpath_var=SHLIB_PATH
  12953. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12954. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12955. soname_spec='${libname}${release}${shared_ext}$major'
  12956. ;;
  12957. esac
  12958. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12959. postinstall_cmds='chmod 555 $lib'
  12960. # or fails outright, so override atomically:
  12961. install_override_mode=555
  12962. ;;
  12963. interix[3-9]*)
  12964. version_type=linux # correct to gnu/linux during the next big refactor
  12965. need_lib_prefix=no
  12966. need_version=no
  12967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12968. soname_spec='${libname}${release}${shared_ext}$major'
  12969. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12970. shlibpath_var=LD_LIBRARY_PATH
  12971. shlibpath_overrides_runpath=no
  12972. hardcode_into_libs=yes
  12973. ;;
  12974. irix5* | irix6* | nonstopux*)
  12975. case $host_os in
  12976. nonstopux*) version_type=nonstopux ;;
  12977. *)
  12978. if test "$lt_cv_prog_gnu_ld" = yes; then
  12979. version_type=linux # correct to gnu/linux during the next big refactor
  12980. else
  12981. version_type=irix
  12982. fi ;;
  12983. esac
  12984. need_lib_prefix=no
  12985. need_version=no
  12986. soname_spec='${libname}${release}${shared_ext}$major'
  12987. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12988. case $host_os in
  12989. irix5* | nonstopux*)
  12990. libsuff= shlibsuff=
  12991. ;;
  12992. *)
  12993. case $LD in # libtool.m4 will add one of these switches to LD
  12994. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12995. libsuff= shlibsuff= libmagic=32-bit;;
  12996. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12997. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12998. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12999. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13000. *) libsuff= shlibsuff= libmagic=never-match;;
  13001. esac
  13002. ;;
  13003. esac
  13004. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13005. shlibpath_overrides_runpath=no
  13006. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13007. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13008. hardcode_into_libs=yes
  13009. ;;
  13010. # No shared lib support for Linux oldld, aout, or coff.
  13011. linux*oldld* | linux*aout* | linux*coff*)
  13012. dynamic_linker=no
  13013. ;;
  13014. # This must be glibc/ELF.
  13015. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13016. version_type=linux # correct to gnu/linux during the next big refactor
  13017. need_lib_prefix=no
  13018. need_version=no
  13019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13020. soname_spec='${libname}${release}${shared_ext}$major'
  13021. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13022. shlibpath_var=LD_LIBRARY_PATH
  13023. shlibpath_overrides_runpath=no
  13024. # Some binutils ld are patched to set DT_RUNPATH
  13025. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13026. $as_echo_n "(cached) " >&6
  13027. else
  13028. lt_cv_shlibpath_overrides_runpath=no
  13029. save_LDFLAGS=$LDFLAGS
  13030. save_libdir=$libdir
  13031. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13032. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13034. /* end confdefs.h. */
  13035. int
  13036. main ()
  13037. {
  13038. ;
  13039. return 0;
  13040. }
  13041. _ACEOF
  13042. if ac_fn_cxx_try_link "$LINENO"; then :
  13043. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13044. lt_cv_shlibpath_overrides_runpath=yes
  13045. fi
  13046. fi
  13047. rm -f core conftest.err conftest.$ac_objext \
  13048. conftest$ac_exeext conftest.$ac_ext
  13049. LDFLAGS=$save_LDFLAGS
  13050. libdir=$save_libdir
  13051. fi
  13052. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13053. # This implies no fast_install, which is unacceptable.
  13054. # Some rework will be needed to allow for fast_install
  13055. # before this can be enabled.
  13056. hardcode_into_libs=yes
  13057. # Append ld.so.conf contents to the search path
  13058. if test -f /etc/ld.so.conf; then
  13059. 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' ' '`
  13060. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13061. fi
  13062. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13063. # powerpc, because MkLinux only supported shared libraries with the
  13064. # GNU dynamic linker. Since this was broken with cross compilers,
  13065. # most powerpc-linux boxes support dynamic linking these days and
  13066. # people can always --disable-shared, the test was removed, and we
  13067. # assume the GNU/Linux dynamic linker is in use.
  13068. dynamic_linker='GNU/Linux ld.so'
  13069. ;;
  13070. netbsd*)
  13071. version_type=sunos
  13072. need_lib_prefix=no
  13073. need_version=no
  13074. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13075. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13076. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13077. dynamic_linker='NetBSD (a.out) ld.so'
  13078. else
  13079. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13080. soname_spec='${libname}${release}${shared_ext}$major'
  13081. dynamic_linker='NetBSD ld.elf_so'
  13082. fi
  13083. shlibpath_var=LD_LIBRARY_PATH
  13084. shlibpath_overrides_runpath=yes
  13085. hardcode_into_libs=yes
  13086. ;;
  13087. newsos6)
  13088. version_type=linux # correct to gnu/linux during the next big refactor
  13089. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13090. shlibpath_var=LD_LIBRARY_PATH
  13091. shlibpath_overrides_runpath=yes
  13092. ;;
  13093. *nto* | *qnx*)
  13094. version_type=qnx
  13095. need_lib_prefix=no
  13096. need_version=no
  13097. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13098. soname_spec='${libname}${release}${shared_ext}$major'
  13099. shlibpath_var=LD_LIBRARY_PATH
  13100. shlibpath_overrides_runpath=no
  13101. hardcode_into_libs=yes
  13102. dynamic_linker='ldqnx.so'
  13103. ;;
  13104. openbsd*)
  13105. version_type=sunos
  13106. sys_lib_dlsearch_path_spec="/usr/lib"
  13107. need_lib_prefix=no
  13108. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13109. case $host_os in
  13110. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13111. *) need_version=no ;;
  13112. esac
  13113. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13114. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13115. shlibpath_var=LD_LIBRARY_PATH
  13116. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13117. case $host_os in
  13118. openbsd2.[89] | openbsd2.[89].*)
  13119. shlibpath_overrides_runpath=no
  13120. ;;
  13121. *)
  13122. shlibpath_overrides_runpath=yes
  13123. ;;
  13124. esac
  13125. else
  13126. shlibpath_overrides_runpath=yes
  13127. fi
  13128. ;;
  13129. os2*)
  13130. libname_spec='$name'
  13131. shrext_cmds=".dll"
  13132. need_lib_prefix=no
  13133. library_names_spec='$libname${shared_ext} $libname.a'
  13134. dynamic_linker='OS/2 ld.exe'
  13135. shlibpath_var=LIBPATH
  13136. ;;
  13137. osf3* | osf4* | osf5*)
  13138. version_type=osf
  13139. need_lib_prefix=no
  13140. need_version=no
  13141. soname_spec='${libname}${release}${shared_ext}$major'
  13142. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13143. shlibpath_var=LD_LIBRARY_PATH
  13144. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13145. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13146. ;;
  13147. rdos*)
  13148. dynamic_linker=no
  13149. ;;
  13150. solaris*)
  13151. version_type=linux # correct to gnu/linux during the next big refactor
  13152. need_lib_prefix=no
  13153. need_version=no
  13154. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13155. soname_spec='${libname}${release}${shared_ext}$major'
  13156. shlibpath_var=LD_LIBRARY_PATH
  13157. shlibpath_overrides_runpath=yes
  13158. hardcode_into_libs=yes
  13159. # ldd complains unless libraries are executable
  13160. postinstall_cmds='chmod +x $lib'
  13161. ;;
  13162. sunos4*)
  13163. version_type=sunos
  13164. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13165. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13166. shlibpath_var=LD_LIBRARY_PATH
  13167. shlibpath_overrides_runpath=yes
  13168. if test "$with_gnu_ld" = yes; then
  13169. need_lib_prefix=no
  13170. fi
  13171. need_version=yes
  13172. ;;
  13173. sysv4 | sysv4.3*)
  13174. version_type=linux # correct to gnu/linux during the next big refactor
  13175. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13176. soname_spec='${libname}${release}${shared_ext}$major'
  13177. shlibpath_var=LD_LIBRARY_PATH
  13178. case $host_vendor in
  13179. sni)
  13180. shlibpath_overrides_runpath=no
  13181. need_lib_prefix=no
  13182. runpath_var=LD_RUN_PATH
  13183. ;;
  13184. siemens)
  13185. need_lib_prefix=no
  13186. ;;
  13187. motorola)
  13188. need_lib_prefix=no
  13189. need_version=no
  13190. shlibpath_overrides_runpath=no
  13191. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13192. ;;
  13193. esac
  13194. ;;
  13195. sysv4*MP*)
  13196. if test -d /usr/nec ;then
  13197. version_type=linux # correct to gnu/linux during the next big refactor
  13198. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13199. soname_spec='$libname${shared_ext}.$major'
  13200. shlibpath_var=LD_LIBRARY_PATH
  13201. fi
  13202. ;;
  13203. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13204. version_type=freebsd-elf
  13205. need_lib_prefix=no
  13206. need_version=no
  13207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13208. soname_spec='${libname}${release}${shared_ext}$major'
  13209. shlibpath_var=LD_LIBRARY_PATH
  13210. shlibpath_overrides_runpath=yes
  13211. hardcode_into_libs=yes
  13212. if test "$with_gnu_ld" = yes; then
  13213. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13214. else
  13215. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13216. case $host_os in
  13217. sco3.2v5*)
  13218. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13219. ;;
  13220. esac
  13221. fi
  13222. sys_lib_dlsearch_path_spec='/usr/lib'
  13223. ;;
  13224. tpf*)
  13225. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13226. version_type=linux # correct to gnu/linux during the next big refactor
  13227. need_lib_prefix=no
  13228. need_version=no
  13229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13230. shlibpath_var=LD_LIBRARY_PATH
  13231. shlibpath_overrides_runpath=no
  13232. hardcode_into_libs=yes
  13233. ;;
  13234. uts4*)
  13235. version_type=linux # correct to gnu/linux during the next big refactor
  13236. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13237. soname_spec='${libname}${release}${shared_ext}$major'
  13238. shlibpath_var=LD_LIBRARY_PATH
  13239. ;;
  13240. *)
  13241. dynamic_linker=no
  13242. ;;
  13243. esac
  13244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13245. $as_echo "$dynamic_linker" >&6; }
  13246. test "$dynamic_linker" = no && can_build_shared=no
  13247. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13248. if test "$GCC" = yes; then
  13249. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13250. fi
  13251. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13252. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13253. fi
  13254. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13255. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13256. fi
  13257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13258. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13259. hardcode_action_CXX=
  13260. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13261. test -n "$runpath_var_CXX" ||
  13262. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13263. # We can hardcode non-existent directories.
  13264. if test "$hardcode_direct_CXX" != no &&
  13265. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13266. # have to relink, otherwise we might link with an installed library
  13267. # when we should be linking with a yet-to-be-installed one
  13268. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13269. test "$hardcode_minus_L_CXX" != no; then
  13270. # Linking always hardcodes the temporary library directory.
  13271. hardcode_action_CXX=relink
  13272. else
  13273. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13274. hardcode_action_CXX=immediate
  13275. fi
  13276. else
  13277. # We cannot hardcode anything, or else we can only hardcode existing
  13278. # directories.
  13279. hardcode_action_CXX=unsupported
  13280. fi
  13281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13282. $as_echo "$hardcode_action_CXX" >&6; }
  13283. if test "$hardcode_action_CXX" = relink ||
  13284. test "$inherit_rpath_CXX" = yes; then
  13285. # Fast installation is not supported
  13286. enable_fast_install=no
  13287. elif test "$shlibpath_overrides_runpath" = yes ||
  13288. test "$enable_shared" = no; then
  13289. # Fast installation is not necessary
  13290. enable_fast_install=needless
  13291. fi
  13292. fi # test -n "$compiler"
  13293. CC=$lt_save_CC
  13294. CFLAGS=$lt_save_CFLAGS
  13295. LDCXX=$LD
  13296. LD=$lt_save_LD
  13297. GCC=$lt_save_GCC
  13298. with_gnu_ld=$lt_save_with_gnu_ld
  13299. lt_cv_path_LDCXX=$lt_cv_path_LD
  13300. lt_cv_path_LD=$lt_save_path_LD
  13301. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13302. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13303. fi # test "$_lt_caught_CXX_error" != yes
  13304. ac_ext=c
  13305. ac_cpp='$CPP $CPPFLAGS'
  13306. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13307. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13308. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13309. # Find a good install program. We prefer a C program (faster),
  13310. # so one script is as good as another. But avoid the broken or
  13311. # incompatible versions:
  13312. # SysV /etc/install, /usr/sbin/install
  13313. # SunOS /usr/etc/install
  13314. # IRIX /sbin/install
  13315. # AIX /bin/install
  13316. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13317. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13318. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13319. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13320. # OS/2's system install, which has a completely different semantic
  13321. # ./install, which can be erroneously created by make from ./install.sh.
  13322. # Reject install programs that cannot install multiple files.
  13323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13324. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13325. if test -z "$INSTALL"; then
  13326. if ${ac_cv_path_install+:} false; then :
  13327. $as_echo_n "(cached) " >&6
  13328. else
  13329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13330. for as_dir in $PATH
  13331. do
  13332. IFS=$as_save_IFS
  13333. test -z "$as_dir" && as_dir=.
  13334. # Account for people who put trailing slashes in PATH elements.
  13335. case $as_dir/ in #((
  13336. ./ | .// | /[cC]/* | \
  13337. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13338. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13339. /usr/ucb/* ) ;;
  13340. *)
  13341. # OSF1 and SCO ODT 3.0 have their own names for install.
  13342. # Don't use installbsd from OSF since it installs stuff as root
  13343. # by default.
  13344. for ac_prog in ginstall scoinst install; do
  13345. for ac_exec_ext in '' $ac_executable_extensions; do
  13346. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13347. if test $ac_prog = install &&
  13348. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13349. # AIX install. It has an incompatible calling convention.
  13350. :
  13351. elif test $ac_prog = install &&
  13352. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13353. # program-specific install script used by HP pwplus--don't use.
  13354. :
  13355. else
  13356. rm -rf conftest.one conftest.two conftest.dir
  13357. echo one > conftest.one
  13358. echo two > conftest.two
  13359. mkdir conftest.dir
  13360. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13361. test -s conftest.one && test -s conftest.two &&
  13362. test -s conftest.dir/conftest.one &&
  13363. test -s conftest.dir/conftest.two
  13364. then
  13365. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13366. break 3
  13367. fi
  13368. fi
  13369. fi
  13370. done
  13371. done
  13372. ;;
  13373. esac
  13374. done
  13375. IFS=$as_save_IFS
  13376. rm -rf conftest.one conftest.two conftest.dir
  13377. fi
  13378. if test "${ac_cv_path_install+set}" = set; then
  13379. INSTALL=$ac_cv_path_install
  13380. else
  13381. # As a last resort, use the slow shell script. Don't cache a
  13382. # value for INSTALL within a source directory, because that will
  13383. # break other packages using the cache if that directory is
  13384. # removed, or if the value is a relative name.
  13385. INSTALL=$ac_install_sh
  13386. fi
  13387. fi
  13388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13389. $as_echo "$INSTALL" >&6; }
  13390. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13391. # It thinks the first close brace ends the variable substitution.
  13392. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13393. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13394. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13396. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13397. set x ${MAKE-make}
  13398. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13399. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13400. $as_echo_n "(cached) " >&6
  13401. else
  13402. cat >conftest.make <<\_ACEOF
  13403. SHELL = /bin/sh
  13404. all:
  13405. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13406. _ACEOF
  13407. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13408. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13409. *@@@%%%=?*=@@@%%%*)
  13410. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13411. *)
  13412. eval ac_cv_prog_make_${ac_make}_set=no;;
  13413. esac
  13414. rm -f conftest.make
  13415. fi
  13416. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13418. $as_echo "yes" >&6; }
  13419. SET_MAKE=
  13420. else
  13421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13422. $as_echo "no" >&6; }
  13423. SET_MAKE="MAKE=${MAKE-make}"
  13424. fi
  13425. if test -n "$ac_tool_prefix"; then
  13426. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13427. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13429. $as_echo_n "checking for $ac_word... " >&6; }
  13430. if ${ac_cv_prog_WINDRES+:} false; then :
  13431. $as_echo_n "(cached) " >&6
  13432. else
  13433. if test -n "$WINDRES"; then
  13434. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13435. else
  13436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13437. for as_dir in $PATH
  13438. do
  13439. IFS=$as_save_IFS
  13440. test -z "$as_dir" && as_dir=.
  13441. for ac_exec_ext in '' $ac_executable_extensions; do
  13442. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13443. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13444. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13445. break 2
  13446. fi
  13447. done
  13448. done
  13449. IFS=$as_save_IFS
  13450. fi
  13451. fi
  13452. WINDRES=$ac_cv_prog_WINDRES
  13453. if test -n "$WINDRES"; then
  13454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13455. $as_echo "$WINDRES" >&6; }
  13456. else
  13457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13458. $as_echo "no" >&6; }
  13459. fi
  13460. fi
  13461. if test -z "$ac_cv_prog_WINDRES"; then
  13462. ac_ct_WINDRES=$WINDRES
  13463. # Extract the first word of "windres", so it can be a program name with args.
  13464. set dummy windres; ac_word=$2
  13465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13466. $as_echo_n "checking for $ac_word... " >&6; }
  13467. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13468. $as_echo_n "(cached) " >&6
  13469. else
  13470. if test -n "$ac_ct_WINDRES"; then
  13471. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13472. else
  13473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13474. for as_dir in $PATH
  13475. do
  13476. IFS=$as_save_IFS
  13477. test -z "$as_dir" && as_dir=.
  13478. for ac_exec_ext in '' $ac_executable_extensions; do
  13479. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13480. ac_cv_prog_ac_ct_WINDRES="windres"
  13481. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13482. break 2
  13483. fi
  13484. done
  13485. done
  13486. IFS=$as_save_IFS
  13487. fi
  13488. fi
  13489. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13490. if test -n "$ac_ct_WINDRES"; then
  13491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13492. $as_echo "$ac_ct_WINDRES" >&6; }
  13493. else
  13494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13495. $as_echo "no" >&6; }
  13496. fi
  13497. if test "x$ac_ct_WINDRES" = x; then
  13498. WINDRES=":"
  13499. else
  13500. case $cross_compiling:$ac_tool_warned in
  13501. yes:)
  13502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13503. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13504. ac_tool_warned=yes ;;
  13505. esac
  13506. WINDRES=$ac_ct_WINDRES
  13507. fi
  13508. else
  13509. WINDRES="$ac_cv_prog_WINDRES"
  13510. fi
  13511. case "$host" in
  13512. *-*-mingw32*)
  13513. # Except on msys, where make can't handle full pathnames (bug 1972)
  13514. ;;
  13515. *)
  13516. srcdir=`cd $srcdir && pwd`
  13517. ;;
  13518. esac
  13519. INCLUDE="-I$srcdir/include"
  13520. if test x$srcdir != x.; then
  13521. INCLUDE="-Iinclude $INCLUDE"
  13522. elif test -d .hg; then
  13523. as_fn_error $? "
  13524. *** When building from Mercurial you should configure and build in a
  13525. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13526. " "$LINENO" 5
  13527. fi
  13528. BASE_CFLAGS=""
  13529. BASE_LDFLAGS=""
  13530. case "$host" in
  13531. *-*-cygwin*)
  13532. # We build SDL on cygwin without the UNIX emulation layer
  13533. save_CFLAGS="$CFLAGS"
  13534. have_no_cygwin=no
  13535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13536. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13537. CFLAGS="$save_CFLAGS -mno-cygwin"
  13538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13539. /* end confdefs.h. */
  13540. int
  13541. main ()
  13542. {
  13543. ;
  13544. return 0;
  13545. }
  13546. _ACEOF
  13547. if ac_fn_c_try_compile "$LINENO"; then :
  13548. have_no_cygwin=yes
  13549. fi
  13550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13552. $as_echo "$have_no_cygwin" >&6; }
  13553. CFLAGS="$save_CFLAGS"
  13554. if test x$have_no_cygwin = xyes; then
  13555. BASE_CFLAGS="-mno-cygwin"
  13556. BASE_LDFLAGS="-mno-cygwin"
  13557. fi
  13558. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13559. ;;
  13560. esac
  13561. # Uncomment the following line if you want to force SDL and applications
  13562. # built with it to be compiled for a particular architecture.
  13563. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13564. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13565. # The default optimization for SDL is -O3 (Bug #31)
  13566. if test "x$orig_CFLAGS" = x; then
  13567. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13568. fi
  13569. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13570. BUILD_LDFLAGS="$LDFLAGS"
  13571. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13572. ## These are common directories to find software packages
  13573. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13574. # if test -d $path/include; then
  13575. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13576. # fi
  13577. # if test -d $path/lib; then
  13578. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13579. # fi
  13580. #done
  13581. SDL_CFLAGS="$BASE_CFLAGS"
  13582. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13583. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13584. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13585. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13586. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13587. find_lib()
  13588. {
  13589. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13590. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13591. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13592. if test "$cross_compiling" = yes; then
  13593. host_lib_path=""
  13594. else
  13595. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13596. fi
  13597. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13598. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13599. if test x$lib != x; then
  13600. echo $lib
  13601. return
  13602. fi
  13603. done
  13604. }
  13605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13606. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13607. if ${ac_cv_c_const+:} false; then :
  13608. $as_echo_n "(cached) " >&6
  13609. else
  13610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13611. /* end confdefs.h. */
  13612. int
  13613. main ()
  13614. {
  13615. #ifndef __cplusplus
  13616. /* Ultrix mips cc rejects this sort of thing. */
  13617. typedef int charset[2];
  13618. const charset cs = { 0, 0 };
  13619. /* SunOS 4.1.1 cc rejects this. */
  13620. char const *const *pcpcc;
  13621. char **ppc;
  13622. /* NEC SVR4.0.2 mips cc rejects this. */
  13623. struct point {int x, y;};
  13624. static struct point const zero = {0,0};
  13625. /* AIX XL C 1.02.0.0 rejects this.
  13626. It does not let you subtract one const X* pointer from another in
  13627. an arm of an if-expression whose if-part is not a constant
  13628. expression */
  13629. const char *g = "string";
  13630. pcpcc = &g + (g ? g-g : 0);
  13631. /* HPUX 7.0 cc rejects these. */
  13632. ++pcpcc;
  13633. ppc = (char**) pcpcc;
  13634. pcpcc = (char const *const *) ppc;
  13635. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13636. char tx;
  13637. char *t = &tx;
  13638. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13639. *t++ = 0;
  13640. if (s) return 0;
  13641. }
  13642. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13643. int x[] = {25, 17};
  13644. const int *foo = &x[0];
  13645. ++foo;
  13646. }
  13647. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13648. typedef const int *iptr;
  13649. iptr p = 0;
  13650. ++p;
  13651. }
  13652. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13653. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13654. struct s { int j; const int *ap[3]; } bx;
  13655. struct s *b = &bx; b->j = 5;
  13656. }
  13657. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13658. const int foo = 10;
  13659. if (!foo) return 0;
  13660. }
  13661. return !cs[0] && !zero.x;
  13662. #endif
  13663. ;
  13664. return 0;
  13665. }
  13666. _ACEOF
  13667. if ac_fn_c_try_compile "$LINENO"; then :
  13668. ac_cv_c_const=yes
  13669. else
  13670. ac_cv_c_const=no
  13671. fi
  13672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13673. fi
  13674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13675. $as_echo "$ac_cv_c_const" >&6; }
  13676. if test $ac_cv_c_const = no; then
  13677. $as_echo "#define const /**/" >>confdefs.h
  13678. fi
  13679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13680. $as_echo_n "checking for inline... " >&6; }
  13681. if ${ac_cv_c_inline+:} false; then :
  13682. $as_echo_n "(cached) " >&6
  13683. else
  13684. ac_cv_c_inline=no
  13685. for ac_kw in inline __inline__ __inline; do
  13686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13687. /* end confdefs.h. */
  13688. #ifndef __cplusplus
  13689. typedef int foo_t;
  13690. static $ac_kw foo_t static_foo () {return 0; }
  13691. $ac_kw foo_t foo () {return 0; }
  13692. #endif
  13693. _ACEOF
  13694. if ac_fn_c_try_compile "$LINENO"; then :
  13695. ac_cv_c_inline=$ac_kw
  13696. fi
  13697. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13698. test "$ac_cv_c_inline" != no && break
  13699. done
  13700. fi
  13701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13702. $as_echo "$ac_cv_c_inline" >&6; }
  13703. case $ac_cv_c_inline in
  13704. inline | yes) ;;
  13705. *)
  13706. case $ac_cv_c_inline in
  13707. no) ac_val=;;
  13708. *) ac_val=$ac_cv_c_inline;;
  13709. esac
  13710. cat >>confdefs.h <<_ACEOF
  13711. #ifndef __cplusplus
  13712. #define inline $ac_val
  13713. #endif
  13714. _ACEOF
  13715. ;;
  13716. esac
  13717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13718. $as_echo_n "checking for working volatile... " >&6; }
  13719. if ${ac_cv_c_volatile+:} false; then :
  13720. $as_echo_n "(cached) " >&6
  13721. else
  13722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13723. /* end confdefs.h. */
  13724. int
  13725. main ()
  13726. {
  13727. volatile int x;
  13728. int * volatile y = (int *) 0;
  13729. return !x && !y;
  13730. ;
  13731. return 0;
  13732. }
  13733. _ACEOF
  13734. if ac_fn_c_try_compile "$LINENO"; then :
  13735. ac_cv_c_volatile=yes
  13736. else
  13737. ac_cv_c_volatile=no
  13738. fi
  13739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13740. fi
  13741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13742. $as_echo "$ac_cv_c_volatile" >&6; }
  13743. if test $ac_cv_c_volatile = no; then
  13744. $as_echo "#define volatile /**/" >>confdefs.h
  13745. fi
  13746. # Check whether --enable-assertions was given.
  13747. if test "${enable_assertions+set}" = set; then :
  13748. enableval=$enable_assertions;
  13749. else
  13750. enable_assertions=auto
  13751. fi
  13752. case "$enable_assertions" in
  13753. auto) # Use optimization settings to determine assertion level
  13754. ;;
  13755. disabled)
  13756. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13757. ;;
  13758. release)
  13759. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13760. ;;
  13761. enabled)
  13762. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13763. ;;
  13764. paranoid)
  13765. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13766. ;;
  13767. *)
  13768. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13769. ;;
  13770. esac
  13771. # Check whether --enable-dependency-tracking was given.
  13772. if test "${enable_dependency_tracking+set}" = set; then :
  13773. enableval=$enable_dependency_tracking;
  13774. else
  13775. enable_dependency_tracking=yes
  13776. fi
  13777. if test x$enable_dependency_tracking = xyes; then
  13778. have_gcc_mmd_mt=no
  13779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13780. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13782. /* end confdefs.h. */
  13783. #if !defined(__GNUC__) || __GNUC__ < 3
  13784. #error Dependency tracking requires GCC 3.0 or newer
  13785. #endif
  13786. int
  13787. main ()
  13788. {
  13789. ;
  13790. return 0;
  13791. }
  13792. _ACEOF
  13793. if ac_fn_c_try_compile "$LINENO"; then :
  13794. have_gcc_mmd_mt=yes
  13795. fi
  13796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13798. $as_echo "$have_gcc_mmd_mt" >&6; }
  13799. if test x$have_gcc_mmd_mt = xyes; then
  13800. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13801. fi
  13802. fi
  13803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13804. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13805. have_no_undefined=no
  13806. case "$host" in
  13807. *-*-openbsd*)
  13808. ;;
  13809. *)
  13810. save_LDFLAGS="$LDFLAGS"
  13811. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13813. /* end confdefs.h. */
  13814. int
  13815. main ()
  13816. {
  13817. ;
  13818. return 0;
  13819. }
  13820. _ACEOF
  13821. if ac_fn_c_try_link "$LINENO"; then :
  13822. have_no_undefined=yes
  13823. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13824. fi
  13825. rm -f core conftest.err conftest.$ac_objext \
  13826. conftest$ac_exeext conftest.$ac_ext
  13827. LDFLAGS="$save_LDFLAGS"
  13828. ;;
  13829. esac
  13830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13831. $as_echo "$have_no_undefined" >&6; }
  13832. # Check whether --enable-libc was given.
  13833. if test "${enable_libc+set}" = set; then :
  13834. enableval=$enable_libc;
  13835. else
  13836. enable_libc=yes
  13837. fi
  13838. if test x$enable_libc = xyes; then
  13839. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13841. $as_echo_n "checking for ANSI C header files... " >&6; }
  13842. if ${ac_cv_header_stdc+:} false; then :
  13843. $as_echo_n "(cached) " >&6
  13844. else
  13845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13846. /* end confdefs.h. */
  13847. #include <stdlib.h>
  13848. #include <stdarg.h>
  13849. #include <string.h>
  13850. #include <float.h>
  13851. int
  13852. main ()
  13853. {
  13854. ;
  13855. return 0;
  13856. }
  13857. _ACEOF
  13858. if ac_fn_c_try_compile "$LINENO"; then :
  13859. ac_cv_header_stdc=yes
  13860. else
  13861. ac_cv_header_stdc=no
  13862. fi
  13863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13864. if test $ac_cv_header_stdc = yes; then
  13865. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13867. /* end confdefs.h. */
  13868. #include <string.h>
  13869. _ACEOF
  13870. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13871. $EGREP "memchr" >/dev/null 2>&1; then :
  13872. else
  13873. ac_cv_header_stdc=no
  13874. fi
  13875. rm -f conftest*
  13876. fi
  13877. if test $ac_cv_header_stdc = yes; then
  13878. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13880. /* end confdefs.h. */
  13881. #include <stdlib.h>
  13882. _ACEOF
  13883. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13884. $EGREP "free" >/dev/null 2>&1; then :
  13885. else
  13886. ac_cv_header_stdc=no
  13887. fi
  13888. rm -f conftest*
  13889. fi
  13890. if test $ac_cv_header_stdc = yes; then
  13891. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13892. if test "$cross_compiling" = yes; then :
  13893. :
  13894. else
  13895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13896. /* end confdefs.h. */
  13897. #include <ctype.h>
  13898. #include <stdlib.h>
  13899. #if ((' ' & 0x0FF) == 0x020)
  13900. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13901. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13902. #else
  13903. # define ISLOWER(c) \
  13904. (('a' <= (c) && (c) <= 'i') \
  13905. || ('j' <= (c) && (c) <= 'r') \
  13906. || ('s' <= (c) && (c) <= 'z'))
  13907. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13908. #endif
  13909. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13910. int
  13911. main ()
  13912. {
  13913. int i;
  13914. for (i = 0; i < 256; i++)
  13915. if (XOR (islower (i), ISLOWER (i))
  13916. || toupper (i) != TOUPPER (i))
  13917. return 2;
  13918. return 0;
  13919. }
  13920. _ACEOF
  13921. if ac_fn_c_try_run "$LINENO"; then :
  13922. else
  13923. ac_cv_header_stdc=no
  13924. fi
  13925. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13926. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13927. fi
  13928. fi
  13929. fi
  13930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13931. $as_echo "$ac_cv_header_stdc" >&6; }
  13932. if test $ac_cv_header_stdc = yes; then
  13933. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13934. fi
  13935. 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
  13936. do :
  13937. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13938. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13939. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13940. cat >>confdefs.h <<_ACEOF
  13941. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13942. _ACEOF
  13943. fi
  13944. done
  13945. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13946. if test "x$ac_cv_type_size_t" = xyes; then :
  13947. else
  13948. cat >>confdefs.h <<_ACEOF
  13949. #define size_t unsigned int
  13950. _ACEOF
  13951. fi
  13952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13953. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13954. if ${ac_cv_define_M_PI+:} false; then :
  13955. $as_echo_n "(cached) " >&6
  13956. else
  13957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13958. /* end confdefs.h. */
  13959. #include <math.h>
  13960. #ifdef M_PI
  13961. YES_IS_DEFINED
  13962. #endif
  13963. _ACEOF
  13964. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13965. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13966. ac_cv_define_M_PI=yes
  13967. else
  13968. ac_cv_define_M_PI=no
  13969. fi
  13970. rm -f conftest*
  13971. fi
  13972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  13973. $as_echo "$ac_cv_define_M_PI" >&6; }
  13974. if test "$ac_cv_define_M_PI" = "yes" ; then
  13975. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  13976. fi
  13977. case "$host" in
  13978. *-*-cygwin* | *-*-mingw32*)
  13979. ;;
  13980. *)
  13981. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13982. # for constant arguments. Useless!
  13983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13984. $as_echo_n "checking for working alloca.h... " >&6; }
  13985. if ${ac_cv_working_alloca_h+:} false; then :
  13986. $as_echo_n "(cached) " >&6
  13987. else
  13988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13989. /* end confdefs.h. */
  13990. #include <alloca.h>
  13991. int
  13992. main ()
  13993. {
  13994. char *p = (char *) alloca (2 * sizeof (int));
  13995. if (p) return 0;
  13996. ;
  13997. return 0;
  13998. }
  13999. _ACEOF
  14000. if ac_fn_c_try_link "$LINENO"; then :
  14001. ac_cv_working_alloca_h=yes
  14002. else
  14003. ac_cv_working_alloca_h=no
  14004. fi
  14005. rm -f core conftest.err conftest.$ac_objext \
  14006. conftest$ac_exeext conftest.$ac_ext
  14007. fi
  14008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14009. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14010. if test $ac_cv_working_alloca_h = yes; then
  14011. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14012. fi
  14013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14014. $as_echo_n "checking for alloca... " >&6; }
  14015. if ${ac_cv_func_alloca_works+:} false; then :
  14016. $as_echo_n "(cached) " >&6
  14017. else
  14018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14019. /* end confdefs.h. */
  14020. #ifdef __GNUC__
  14021. # define alloca __builtin_alloca
  14022. #else
  14023. # ifdef _MSC_VER
  14024. # include <malloc.h>
  14025. # define alloca _alloca
  14026. # else
  14027. # ifdef HAVE_ALLOCA_H
  14028. # include <alloca.h>
  14029. # else
  14030. # ifdef _AIX
  14031. #pragma alloca
  14032. # else
  14033. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14034. void *alloca (size_t);
  14035. # endif
  14036. # endif
  14037. # endif
  14038. # endif
  14039. #endif
  14040. int
  14041. main ()
  14042. {
  14043. char *p = (char *) alloca (1);
  14044. if (p) return 0;
  14045. ;
  14046. return 0;
  14047. }
  14048. _ACEOF
  14049. if ac_fn_c_try_link "$LINENO"; then :
  14050. ac_cv_func_alloca_works=yes
  14051. else
  14052. ac_cv_func_alloca_works=no
  14053. fi
  14054. rm -f core conftest.err conftest.$ac_objext \
  14055. conftest$ac_exeext conftest.$ac_ext
  14056. fi
  14057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14058. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14059. if test $ac_cv_func_alloca_works = yes; then
  14060. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14061. else
  14062. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14063. # that cause trouble. Some versions do not even contain alloca or
  14064. # contain a buggy version. If you still want to use their alloca,
  14065. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14066. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14067. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14069. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14070. if ${ac_cv_os_cray+:} false; then :
  14071. $as_echo_n "(cached) " >&6
  14072. else
  14073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14074. /* end confdefs.h. */
  14075. #if defined CRAY && ! defined CRAY2
  14076. webecray
  14077. #else
  14078. wenotbecray
  14079. #endif
  14080. _ACEOF
  14081. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14082. $EGREP "webecray" >/dev/null 2>&1; then :
  14083. ac_cv_os_cray=yes
  14084. else
  14085. ac_cv_os_cray=no
  14086. fi
  14087. rm -f conftest*
  14088. fi
  14089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14090. $as_echo "$ac_cv_os_cray" >&6; }
  14091. if test $ac_cv_os_cray = yes; then
  14092. for ac_func in _getb67 GETB67 getb67; do
  14093. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14094. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14095. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14096. cat >>confdefs.h <<_ACEOF
  14097. #define CRAY_STACKSEG_END $ac_func
  14098. _ACEOF
  14099. break
  14100. fi
  14101. done
  14102. fi
  14103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14104. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14105. if ${ac_cv_c_stack_direction+:} false; then :
  14106. $as_echo_n "(cached) " >&6
  14107. else
  14108. if test "$cross_compiling" = yes; then :
  14109. ac_cv_c_stack_direction=0
  14110. else
  14111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14112. /* end confdefs.h. */
  14113. $ac_includes_default
  14114. int
  14115. find_stack_direction (int *addr, int depth)
  14116. {
  14117. int dir, dummy = 0;
  14118. if (! addr)
  14119. addr = &dummy;
  14120. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14121. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14122. return dir + dummy;
  14123. }
  14124. int
  14125. main (int argc, char **argv)
  14126. {
  14127. return find_stack_direction (0, argc + !argv + 20) < 0;
  14128. }
  14129. _ACEOF
  14130. if ac_fn_c_try_run "$LINENO"; then :
  14131. ac_cv_c_stack_direction=1
  14132. else
  14133. ac_cv_c_stack_direction=-1
  14134. fi
  14135. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14136. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14137. fi
  14138. fi
  14139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14140. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14141. cat >>confdefs.h <<_ACEOF
  14142. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14143. _ACEOF
  14144. fi
  14145. ;;
  14146. esac
  14147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14148. $as_echo_n "checking for working memcmp... " >&6; }
  14149. if ${ac_cv_func_memcmp_working+:} false; then :
  14150. $as_echo_n "(cached) " >&6
  14151. else
  14152. if test "$cross_compiling" = yes; then :
  14153. ac_cv_func_memcmp_working=no
  14154. else
  14155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14156. /* end confdefs.h. */
  14157. $ac_includes_default
  14158. int
  14159. main ()
  14160. {
  14161. /* Some versions of memcmp are not 8-bit clean. */
  14162. char c0 = '\100', c1 = '\200', c2 = '\201';
  14163. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14164. return 1;
  14165. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14166. or more and with at least one buffer not starting on a 4-byte boundary.
  14167. William Lewis provided this test program. */
  14168. {
  14169. char foo[21];
  14170. char bar[21];
  14171. int i;
  14172. for (i = 0; i < 4; i++)
  14173. {
  14174. char *a = foo + i;
  14175. char *b = bar + i;
  14176. strcpy (a, "--------01111111");
  14177. strcpy (b, "--------10000000");
  14178. if (memcmp (a, b, 16) >= 0)
  14179. return 1;
  14180. }
  14181. return 0;
  14182. }
  14183. ;
  14184. return 0;
  14185. }
  14186. _ACEOF
  14187. if ac_fn_c_try_run "$LINENO"; then :
  14188. ac_cv_func_memcmp_working=yes
  14189. else
  14190. ac_cv_func_memcmp_working=no
  14191. fi
  14192. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14193. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14194. fi
  14195. fi
  14196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14197. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14198. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14199. *" memcmp.$ac_objext "* ) ;;
  14200. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14201. ;;
  14202. esac
  14203. if test x$ac_cv_func_memcmp_working = xyes; then
  14204. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14205. fi
  14206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14207. $as_echo_n "checking for working strtod... " >&6; }
  14208. if ${ac_cv_func_strtod+:} false; then :
  14209. $as_echo_n "(cached) " >&6
  14210. else
  14211. if test "$cross_compiling" = yes; then :
  14212. ac_cv_func_strtod=no
  14213. else
  14214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14215. /* end confdefs.h. */
  14216. $ac_includes_default
  14217. #ifndef strtod
  14218. double strtod ();
  14219. #endif
  14220. int
  14221. main()
  14222. {
  14223. {
  14224. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14225. char *string = " +69";
  14226. char *term;
  14227. double value;
  14228. value = strtod (string, &term);
  14229. if (value != 69 || term != (string + 4))
  14230. return 1;
  14231. }
  14232. {
  14233. /* Under Solaris 2.4, strtod returns the wrong value for the
  14234. terminating character under some conditions. */
  14235. char *string = "NaN";
  14236. char *term;
  14237. strtod (string, &term);
  14238. if (term != string && *(term - 1) == 0)
  14239. return 1;
  14240. }
  14241. return 0;
  14242. }
  14243. _ACEOF
  14244. if ac_fn_c_try_run "$LINENO"; then :
  14245. ac_cv_func_strtod=yes
  14246. else
  14247. ac_cv_func_strtod=no
  14248. fi
  14249. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14250. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14251. fi
  14252. fi
  14253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14254. $as_echo "$ac_cv_func_strtod" >&6; }
  14255. if test $ac_cv_func_strtod = no; then
  14256. case " $LIBOBJS " in
  14257. *" strtod.$ac_objext "* ) ;;
  14258. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14259. ;;
  14260. esac
  14261. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14262. if test "x$ac_cv_func_pow" = xyes; then :
  14263. fi
  14264. if test $ac_cv_func_pow = no; then
  14265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14266. $as_echo_n "checking for pow in -lm... " >&6; }
  14267. if ${ac_cv_lib_m_pow+:} false; then :
  14268. $as_echo_n "(cached) " >&6
  14269. else
  14270. ac_check_lib_save_LIBS=$LIBS
  14271. LIBS="-lm $LIBS"
  14272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14273. /* end confdefs.h. */
  14274. /* Override any GCC internal prototype to avoid an error.
  14275. Use char because int might match the return type of a GCC
  14276. builtin and then its argument prototype would still apply. */
  14277. #ifdef __cplusplus
  14278. extern "C"
  14279. #endif
  14280. char pow ();
  14281. int
  14282. main ()
  14283. {
  14284. return pow ();
  14285. ;
  14286. return 0;
  14287. }
  14288. _ACEOF
  14289. if ac_fn_c_try_link "$LINENO"; then :
  14290. ac_cv_lib_m_pow=yes
  14291. else
  14292. ac_cv_lib_m_pow=no
  14293. fi
  14294. rm -f core conftest.err conftest.$ac_objext \
  14295. conftest$ac_exeext conftest.$ac_ext
  14296. LIBS=$ac_check_lib_save_LIBS
  14297. fi
  14298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14299. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14300. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14301. POW_LIB=-lm
  14302. else
  14303. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14304. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14305. fi
  14306. fi
  14307. fi
  14308. if test x$ac_cv_func_strtod = xyes; then
  14309. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14310. fi
  14311. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14312. if test "x$ac_cv_func_mprotect" = xyes; then :
  14313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14314. /* end confdefs.h. */
  14315. #include <sys/types.h>
  14316. #include <sys/mman.h>
  14317. int
  14318. main ()
  14319. {
  14320. ;
  14321. return 0;
  14322. }
  14323. _ACEOF
  14324. if ac_fn_c_try_compile "$LINENO"; then :
  14325. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14326. fi
  14327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14328. fi
  14329. 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
  14330. do :
  14331. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14332. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14333. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14334. cat >>confdefs.h <<_ACEOF
  14335. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14336. _ACEOF
  14337. fi
  14338. done
  14339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14340. $as_echo_n "checking for pow in -lm... " >&6; }
  14341. if ${ac_cv_lib_m_pow+:} false; then :
  14342. $as_echo_n "(cached) " >&6
  14343. else
  14344. ac_check_lib_save_LIBS=$LIBS
  14345. LIBS="-lm $LIBS"
  14346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14347. /* end confdefs.h. */
  14348. /* Override any GCC internal prototype to avoid an error.
  14349. Use char because int might match the return type of a GCC
  14350. builtin and then its argument prototype would still apply. */
  14351. #ifdef __cplusplus
  14352. extern "C"
  14353. #endif
  14354. char pow ();
  14355. int
  14356. main ()
  14357. {
  14358. return pow ();
  14359. ;
  14360. return 0;
  14361. }
  14362. _ACEOF
  14363. if ac_fn_c_try_link "$LINENO"; then :
  14364. ac_cv_lib_m_pow=yes
  14365. else
  14366. ac_cv_lib_m_pow=no
  14367. fi
  14368. rm -f core conftest.err conftest.$ac_objext \
  14369. conftest$ac_exeext conftest.$ac_ext
  14370. LIBS=$ac_check_lib_save_LIBS
  14371. fi
  14372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14373. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14374. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14375. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14376. fi
  14377. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
  14378. do :
  14379. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14380. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14381. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14382. cat >>confdefs.h <<_ACEOF
  14383. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14384. _ACEOF
  14385. fi
  14386. done
  14387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14388. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14389. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14390. $as_echo_n "(cached) " >&6
  14391. else
  14392. ac_check_lib_save_LIBS=$LIBS
  14393. LIBS="-liconv $LIBS"
  14394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14395. /* end confdefs.h. */
  14396. /* Override any GCC internal prototype to avoid an error.
  14397. Use char because int might match the return type of a GCC
  14398. builtin and then its argument prototype would still apply. */
  14399. #ifdef __cplusplus
  14400. extern "C"
  14401. #endif
  14402. char iconv_open ();
  14403. int
  14404. main ()
  14405. {
  14406. return iconv_open ();
  14407. ;
  14408. return 0;
  14409. }
  14410. _ACEOF
  14411. if ac_fn_c_try_link "$LINENO"; then :
  14412. ac_cv_lib_iconv_iconv_open=yes
  14413. else
  14414. ac_cv_lib_iconv_iconv_open=no
  14415. fi
  14416. rm -f core conftest.err conftest.$ac_objext \
  14417. conftest$ac_exeext conftest.$ac_ext
  14418. LIBS=$ac_check_lib_save_LIBS
  14419. fi
  14420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14421. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14422. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14423. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14424. fi
  14425. for ac_func in iconv
  14426. do :
  14427. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14428. if test "x$ac_cv_func_iconv" = xyes; then :
  14429. cat >>confdefs.h <<_ACEOF
  14430. #define HAVE_ICONV 1
  14431. _ACEOF
  14432. fi
  14433. done
  14434. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14435. "
  14436. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14437. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14438. fi
  14439. fi
  14440. # Check whether --enable-gcc-atomics was given.
  14441. if test "${enable_gcc_atomics+set}" = set; then :
  14442. enableval=$enable_gcc_atomics;
  14443. else
  14444. enable_gcc_atomics=yes
  14445. fi
  14446. if test x$enable_gcc_atomics = xyes; then
  14447. have_gcc_atomics=no
  14448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14449. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14451. /* end confdefs.h. */
  14452. int
  14453. main ()
  14454. {
  14455. int a;
  14456. void *x, *y, *z;
  14457. __sync_lock_test_and_set(&a, 4);
  14458. __sync_lock_test_and_set(&x, y);
  14459. __sync_fetch_and_add(&a, 1);
  14460. __sync_bool_compare_and_swap(&a, 5, 10);
  14461. __sync_bool_compare_and_swap(&x, y, z);
  14462. ;
  14463. return 0;
  14464. }
  14465. _ACEOF
  14466. if ac_fn_c_try_link "$LINENO"; then :
  14467. have_gcc_atomics=yes
  14468. fi
  14469. rm -f core conftest.err conftest.$ac_objext \
  14470. conftest$ac_exeext conftest.$ac_ext
  14471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14472. $as_echo "$have_gcc_atomics" >&6; }
  14473. if test x$have_gcc_atomics = xyes; then
  14474. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14475. else
  14476. # See if we have the minimum operation needed for GCC atomics
  14477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14478. /* end confdefs.h. */
  14479. int
  14480. main ()
  14481. {
  14482. int a;
  14483. __sync_lock_test_and_set(&a, 1);
  14484. __sync_lock_release(&a);
  14485. ;
  14486. return 0;
  14487. }
  14488. _ACEOF
  14489. if ac_fn_c_try_link "$LINENO"; then :
  14490. have_gcc_sync_lock_test_and_set=yes
  14491. fi
  14492. rm -f core conftest.err conftest.$ac_objext \
  14493. conftest$ac_exeext conftest.$ac_ext
  14494. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14495. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14496. fi
  14497. fi
  14498. fi
  14499. # Standard C sources
  14500. SOURCES="$SOURCES $srcdir/src/*.c"
  14501. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14502. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14503. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14504. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14505. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14506. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14507. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14508. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14509. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14510. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14511. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14512. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14513. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14514. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14515. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14516. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14517. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14518. # Check whether --enable-atomic was given.
  14519. if test "${enable_atomic+set}" = set; then :
  14520. enableval=$enable_atomic;
  14521. else
  14522. enable_atomic=yes
  14523. fi
  14524. if test x$enable_atomic != xyes; then
  14525. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14526. else
  14527. SUMMARY_modules="${SUMMARY_modules} atomic"
  14528. fi
  14529. # Check whether --enable-audio was given.
  14530. if test "${enable_audio+set}" = set; then :
  14531. enableval=$enable_audio;
  14532. else
  14533. enable_audio=yes
  14534. fi
  14535. if test x$enable_audio != xyes; then
  14536. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14537. else
  14538. SUMMARY_modules="${SUMMARY_modules} audio"
  14539. fi
  14540. # Check whether --enable-video was given.
  14541. if test "${enable_video+set}" = set; then :
  14542. enableval=$enable_video;
  14543. else
  14544. enable_video=yes
  14545. fi
  14546. if test x$enable_video != xyes; then
  14547. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14548. else
  14549. SUMMARY_modules="${SUMMARY_modules} video"
  14550. fi
  14551. # Check whether --enable-render was given.
  14552. if test "${enable_render+set}" = set; then :
  14553. enableval=$enable_render;
  14554. else
  14555. enable_render=yes
  14556. fi
  14557. if test x$enable_render != xyes; then
  14558. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14559. else
  14560. SUMMARY_modules="${SUMMARY_modules} render"
  14561. fi
  14562. # Check whether --enable-events was given.
  14563. if test "${enable_events+set}" = set; then :
  14564. enableval=$enable_events;
  14565. else
  14566. enable_events=yes
  14567. fi
  14568. if test x$enable_events != xyes; then
  14569. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14570. else
  14571. SUMMARY_modules="${SUMMARY_modules} events"
  14572. fi
  14573. # Check whether --enable-joystick was given.
  14574. if test "${enable_joystick+set}" = set; then :
  14575. enableval=$enable_joystick;
  14576. else
  14577. enable_joystick=yes
  14578. fi
  14579. if test x$enable_joystick != xyes; then
  14580. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14581. else
  14582. SUMMARY_modules="${SUMMARY_modules} joystick"
  14583. fi
  14584. # Check whether --enable-haptic was given.
  14585. if test "${enable_haptic+set}" = set; then :
  14586. enableval=$enable_haptic;
  14587. else
  14588. enable_haptic=yes
  14589. fi
  14590. if test x$enable_haptic != xyes; then
  14591. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14592. else
  14593. SUMMARY_modules="${SUMMARY_modules} haptic"
  14594. fi
  14595. # Check whether --enable-power was given.
  14596. if test "${enable_power+set}" = set; then :
  14597. enableval=$enable_power;
  14598. else
  14599. enable_power=yes
  14600. fi
  14601. if test x$enable_power != xyes; then
  14602. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14603. else
  14604. SUMMARY_modules="${SUMMARY_modules} power"
  14605. fi
  14606. # Check whether --enable-filesystem was given.
  14607. if test "${enable_filesystem+set}" = set; then :
  14608. enableval=$enable_filesystem;
  14609. else
  14610. enable_filesystem=yes
  14611. fi
  14612. if test x$enable_filesystem != xyes; then
  14613. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14614. else
  14615. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14616. fi
  14617. # Check whether --enable-threads was given.
  14618. if test "${enable_threads+set}" = set; then :
  14619. enableval=$enable_threads;
  14620. else
  14621. enable_threads=yes
  14622. fi
  14623. if test x$enable_threads != xyes; then
  14624. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14625. else
  14626. SUMMARY_modules="${SUMMARY_modules} threads"
  14627. fi
  14628. # Check whether --enable-timers was given.
  14629. if test "${enable_timers+set}" = set; then :
  14630. enableval=$enable_timers;
  14631. else
  14632. enable_timers=yes
  14633. fi
  14634. if test x$enable_timers != xyes; then
  14635. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14636. else
  14637. SUMMARY_modules="${SUMMARY_modules} timers"
  14638. fi
  14639. # Check whether --enable-file was given.
  14640. if test "${enable_file+set}" = set; then :
  14641. enableval=$enable_file;
  14642. else
  14643. enable_file=yes
  14644. fi
  14645. if test x$enable_file != xyes; then
  14646. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14647. else
  14648. SUMMARY_modules="${SUMMARY_modules} file"
  14649. fi
  14650. # Check whether --enable-loadso was given.
  14651. if test "${enable_loadso+set}" = set; then :
  14652. enableval=$enable_loadso;
  14653. else
  14654. enable_loadso=yes
  14655. fi
  14656. if test x$enable_loadso != xyes; then
  14657. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14658. else
  14659. SUMMARY_modules="${SUMMARY_modules} loadso"
  14660. fi
  14661. # Check whether --enable-cpuinfo was given.
  14662. if test "${enable_cpuinfo+set}" = set; then :
  14663. enableval=$enable_cpuinfo;
  14664. else
  14665. enable_cpuinfo=yes
  14666. fi
  14667. if test x$enable_cpuinfo != xyes; then
  14668. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14669. else
  14670. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14671. fi
  14672. # Check whether --enable-assembly was given.
  14673. if test "${enable_assembly+set}" = set; then :
  14674. enableval=$enable_assembly;
  14675. else
  14676. enable_assembly=yes
  14677. fi
  14678. if test x$enable_assembly = xyes; then
  14679. SUMMARY_modules="${SUMMARY_modules} assembly"
  14680. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14681. # Make sure that we don't generate floating point code that would
  14682. # cause illegal instruction exceptions on older processors
  14683. case "$host" in
  14684. *-*-darwin*)
  14685. # Don't need to worry about Apple hardware, it's all SSE capable
  14686. default_ssemath=yes
  14687. ;;
  14688. *64-*-*)
  14689. # x86 64-bit architectures all have SSE instructions
  14690. default_ssemath=yes
  14691. ;;
  14692. *)
  14693. default_ssemath=no
  14694. ;;
  14695. esac
  14696. # Check whether --enable-ssemath was given.
  14697. if test "${enable_ssemath+set}" = set; then :
  14698. enableval=$enable_ssemath;
  14699. else
  14700. enable_ssemath=$default_ssemath
  14701. fi
  14702. if test x$enable_ssemath = xno; then
  14703. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then
  14704. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14705. fi
  14706. fi
  14707. # Check whether --enable-mmx was given.
  14708. if test "${enable_mmx+set}" = set; then :
  14709. enableval=$enable_mmx;
  14710. else
  14711. enable_mmx=yes
  14712. fi
  14713. if test x$enable_mmx = xyes; then
  14714. save_CFLAGS="$CFLAGS"
  14715. have_gcc_mmx=no
  14716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14717. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14718. mmx_CFLAGS="-mmmx"
  14719. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14721. /* end confdefs.h. */
  14722. #ifdef __MINGW32__
  14723. #include <_mingw.h>
  14724. #ifdef __MINGW64_VERSION_MAJOR
  14725. #include <intrin.h>
  14726. #else
  14727. #include <mmintrin.h>
  14728. #endif
  14729. #else
  14730. #include <mmintrin.h>
  14731. #endif
  14732. #ifndef __MMX__
  14733. #error Assembler CPP flag not enabled
  14734. #endif
  14735. int
  14736. main ()
  14737. {
  14738. ;
  14739. return 0;
  14740. }
  14741. _ACEOF
  14742. if ac_fn_c_try_compile "$LINENO"; then :
  14743. have_gcc_mmx=yes
  14744. fi
  14745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14747. $as_echo "$have_gcc_mmx" >&6; }
  14748. CFLAGS="$save_CFLAGS"
  14749. if test x$have_gcc_mmx = xyes; then
  14750. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14751. SUMMARY_math="${SUMMARY_math} mmx"
  14752. fi
  14753. fi
  14754. # Check whether --enable-3dnow was given.
  14755. if test "${enable_3dnow+set}" = set; then :
  14756. enableval=$enable_3dnow;
  14757. else
  14758. enable_3dnow=yes
  14759. fi
  14760. if test x$enable_3dnow = xyes; then
  14761. save_CFLAGS="$CFLAGS"
  14762. have_gcc_3dnow=no
  14763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14764. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14765. amd3dnow_CFLAGS="-m3dnow"
  14766. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14768. /* end confdefs.h. */
  14769. #include <mm3dnow.h>
  14770. #ifndef __3dNOW__
  14771. #error Assembler CPP flag not enabled
  14772. #endif
  14773. int
  14774. main ()
  14775. {
  14776. void *p = 0;
  14777. _m_prefetch(p);
  14778. ;
  14779. return 0;
  14780. }
  14781. _ACEOF
  14782. if ac_fn_c_try_link "$LINENO"; then :
  14783. have_gcc_3dnow=yes
  14784. fi
  14785. rm -f core conftest.err conftest.$ac_objext \
  14786. conftest$ac_exeext conftest.$ac_ext
  14787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14788. $as_echo "$have_gcc_3dnow" >&6; }
  14789. CFLAGS="$save_CFLAGS"
  14790. if test x$have_gcc_3dnow = xyes; then
  14791. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14792. SUMMARY_math="${SUMMARY_math} 3dnow"
  14793. fi
  14794. fi
  14795. # Check whether --enable-sse was given.
  14796. if test "${enable_sse+set}" = set; then :
  14797. enableval=$enable_sse;
  14798. else
  14799. enable_sse=yes
  14800. fi
  14801. if test x$enable_sse = xyes; then
  14802. save_CFLAGS="$CFLAGS"
  14803. have_gcc_sse=no
  14804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14805. $as_echo_n "checking for GCC -msse option... " >&6; }
  14806. sse_CFLAGS="-msse"
  14807. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14809. /* end confdefs.h. */
  14810. #ifdef __MINGW32__
  14811. #include <_mingw.h>
  14812. #ifdef __MINGW64_VERSION_MAJOR
  14813. #include <intrin.h>
  14814. #else
  14815. #include <xmmintrin.h>
  14816. #endif
  14817. #else
  14818. #include <xmmintrin.h>
  14819. #endif
  14820. #ifndef __SSE__
  14821. #error Assembler CPP flag not enabled
  14822. #endif
  14823. int
  14824. main ()
  14825. {
  14826. ;
  14827. return 0;
  14828. }
  14829. _ACEOF
  14830. if ac_fn_c_try_compile "$LINENO"; then :
  14831. have_gcc_sse=yes
  14832. fi
  14833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14835. $as_echo "$have_gcc_sse" >&6; }
  14836. CFLAGS="$save_CFLAGS"
  14837. if test x$have_gcc_sse = xyes; then
  14838. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14839. SUMMARY_math="${SUMMARY_math} sse"
  14840. fi
  14841. fi
  14842. # Check whether --enable-sse2 was given.
  14843. if test "${enable_sse2+set}" = set; then :
  14844. enableval=$enable_sse2;
  14845. else
  14846. enable_sse2=$default_ssemath
  14847. fi
  14848. if test x$enable_sse2 = xyes; then
  14849. save_CFLAGS="$CFLAGS"
  14850. have_gcc_sse2=no
  14851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14852. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14853. sse2_CFLAGS="-msse2"
  14854. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14856. /* end confdefs.h. */
  14857. #ifdef __MINGW32__
  14858. #include <_mingw.h>
  14859. #ifdef __MINGW64_VERSION_MAJOR
  14860. #include <intrin.h>
  14861. #else
  14862. #include <emmintrin.h>
  14863. #endif
  14864. #else
  14865. #include <emmintrin.h>
  14866. #endif
  14867. #ifndef __SSE2__
  14868. #error Assembler CPP flag not enabled
  14869. #endif
  14870. int
  14871. main ()
  14872. {
  14873. ;
  14874. return 0;
  14875. }
  14876. _ACEOF
  14877. if ac_fn_c_try_compile "$LINENO"; then :
  14878. have_gcc_sse2=yes
  14879. fi
  14880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14882. $as_echo "$have_gcc_sse2" >&6; }
  14883. CFLAGS="$save_CFLAGS"
  14884. if test x$have_gcc_sse2 = xyes; then
  14885. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14886. SUMMARY_math="${SUMMARY_math} sse2"
  14887. fi
  14888. fi
  14889. # Check whether --enable-altivec was given.
  14890. if test "${enable_altivec+set}" = set; then :
  14891. enableval=$enable_altivec;
  14892. else
  14893. enable_altivec=yes
  14894. fi
  14895. if test x$enable_altivec = xyes; then
  14896. save_CFLAGS="$CFLAGS"
  14897. have_gcc_altivec=no
  14898. have_altivec_h_hdr=no
  14899. altivec_CFLAGS="-maltivec"
  14900. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14902. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14904. /* end confdefs.h. */
  14905. #include <altivec.h>
  14906. vector unsigned int vzero() {
  14907. return vec_splat_u32(0);
  14908. }
  14909. int
  14910. main ()
  14911. {
  14912. ;
  14913. return 0;
  14914. }
  14915. _ACEOF
  14916. if ac_fn_c_try_compile "$LINENO"; then :
  14917. have_gcc_altivec=yes
  14918. have_altivec_h_hdr=yes
  14919. fi
  14920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14922. $as_echo "$have_gcc_altivec" >&6; }
  14923. if test x$have_gcc_altivec = xno; then
  14924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  14925. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  14926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14927. /* end confdefs.h. */
  14928. vector unsigned int vzero() {
  14929. return vec_splat_u32(0);
  14930. }
  14931. int
  14932. main ()
  14933. {
  14934. ;
  14935. return 0;
  14936. }
  14937. _ACEOF
  14938. if ac_fn_c_try_compile "$LINENO"; then :
  14939. have_gcc_altivec=yes
  14940. fi
  14941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14943. $as_echo "$have_gcc_altivec" >&6; }
  14944. fi
  14945. if test x$have_gcc_altivec = xno; then
  14946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  14947. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  14948. altivec_CFLAGS="-faltivec"
  14949. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14951. /* end confdefs.h. */
  14952. #include <altivec.h>
  14953. vector unsigned int vzero() {
  14954. return vec_splat_u32(0);
  14955. }
  14956. int
  14957. main ()
  14958. {
  14959. ;
  14960. return 0;
  14961. }
  14962. _ACEOF
  14963. if ac_fn_c_try_compile "$LINENO"; then :
  14964. have_gcc_altivec=yes
  14965. have_altivec_h_hdr=yes
  14966. fi
  14967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14969. $as_echo "$have_gcc_altivec" >&6; }
  14970. fi
  14971. if test x$have_gcc_altivec = xno; then
  14972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  14973. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  14974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14975. /* end confdefs.h. */
  14976. vector unsigned int vzero() {
  14977. return vec_splat_u32(0);
  14978. }
  14979. int
  14980. main ()
  14981. {
  14982. ;
  14983. return 0;
  14984. }
  14985. _ACEOF
  14986. if ac_fn_c_try_compile "$LINENO"; then :
  14987. have_gcc_altivec=yes
  14988. fi
  14989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14991. $as_echo "$have_gcc_altivec" >&6; }
  14992. fi
  14993. CFLAGS="$save_CFLAGS"
  14994. if test x$have_gcc_altivec = xyes; then
  14995. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  14996. if test x$have_altivec_h_hdr = xyes; then
  14997. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  14998. fi
  14999. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15000. SUMMARY_math="${SUMMARY_math} altivec"
  15001. fi
  15002. fi
  15003. fi
  15004. CheckOSS()
  15005. {
  15006. # Check whether --enable-oss was given.
  15007. if test "${enable_oss+set}" = set; then :
  15008. enableval=$enable_oss;
  15009. else
  15010. enable_oss=maybe
  15011. fi
  15012. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15013. # use sndio instead. So on there, we default to disabled. You can force
  15014. # it on if you really want, though.
  15015. if test x$enable_oss = xmaybe; then
  15016. enable_oss=yes
  15017. case "$host" in
  15018. *-*-openbsd*)
  15019. enable_oss=no;;
  15020. esac
  15021. fi
  15022. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15024. $as_echo_n "checking for OSS audio support... " >&6; }
  15025. have_oss=no
  15026. if test x$have_oss != xyes; then
  15027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15028. /* end confdefs.h. */
  15029. #include <sys/soundcard.h>
  15030. int
  15031. main ()
  15032. {
  15033. int arg = SNDCTL_DSP_SETFRAGMENT;
  15034. ;
  15035. return 0;
  15036. }
  15037. _ACEOF
  15038. if ac_fn_c_try_compile "$LINENO"; then :
  15039. have_oss=yes
  15040. fi
  15041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15042. fi
  15043. if test x$have_oss != xyes; then
  15044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15045. /* end confdefs.h. */
  15046. #include <soundcard.h>
  15047. int
  15048. main ()
  15049. {
  15050. int arg = SNDCTL_DSP_SETFRAGMENT;
  15051. ;
  15052. return 0;
  15053. }
  15054. _ACEOF
  15055. if ac_fn_c_try_compile "$LINENO"; then :
  15056. have_oss=yes
  15057. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15058. fi
  15059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15060. fi
  15061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15062. $as_echo "$have_oss" >&6; }
  15063. if test x$have_oss = xyes; then
  15064. SUMMARY_audio="${SUMMARY_audio} oss"
  15065. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15066. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15067. have_audio=yes
  15068. # We may need to link with ossaudio emulation library
  15069. case "$host" in
  15070. *-*-openbsd*|*-*-netbsd*)
  15071. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15072. esac
  15073. fi
  15074. fi
  15075. }
  15076. CheckALSA()
  15077. {
  15078. # Check whether --enable-alsa was given.
  15079. if test "${enable_alsa+set}" = set; then :
  15080. enableval=$enable_alsa;
  15081. else
  15082. enable_alsa=yes
  15083. fi
  15084. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15085. alsa_save_CFLAGS="$CFLAGS"
  15086. alsa_save_LDFLAGS="$LDFLAGS"
  15087. alsa_save_LIBS="$LIBS"
  15088. alsa_found=yes
  15089. # Check whether --with-alsa-prefix was given.
  15090. if test "${with_alsa_prefix+set}" = set; then :
  15091. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15092. else
  15093. alsa_prefix=""
  15094. fi
  15095. # Check whether --with-alsa-inc-prefix was given.
  15096. if test "${with_alsa_inc_prefix+set}" = set; then :
  15097. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15098. else
  15099. alsa_inc_prefix=""
  15100. fi
  15101. # Check whether --enable-alsatest was given.
  15102. if test "${enable_alsatest+set}" = set; then :
  15103. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15104. else
  15105. enable_alsatest=yes
  15106. fi
  15107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15108. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15109. if test "$alsa_inc_prefix" != "" ; then
  15110. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15111. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15112. fi
  15113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15114. $as_echo "$ALSA_CFLAGS" >&6; }
  15115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15116. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15117. if test "$alsa_prefix" != "" ; then
  15118. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15119. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15120. fi
  15121. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15122. LIBS=`echo $LIBS | sed 's/-lm//'`
  15123. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15124. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15125. LIBS=`echo $LIBS | sed 's/ //'`
  15126. LIBS="$ALSA_LIBS $LIBS"
  15127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15128. $as_echo "$ALSA_LIBS" >&6; }
  15129. min_alsa_version=0.9.0
  15130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15131. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15132. no_alsa=""
  15133. alsa_min_major_version=`echo $min_alsa_version | \
  15134. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15135. alsa_min_minor_version=`echo $min_alsa_version | \
  15136. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15137. alsa_min_micro_version=`echo $min_alsa_version | \
  15138. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15139. ac_ext=c
  15140. ac_cpp='$CPP $CPPFLAGS'
  15141. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15142. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15143. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15145. /* end confdefs.h. */
  15146. #include <alsa/asoundlib.h>
  15147. int
  15148. main ()
  15149. {
  15150. /* ensure backward compatibility */
  15151. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15152. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15153. #endif
  15154. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15155. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15156. #endif
  15157. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15158. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15159. #endif
  15160. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15161. exit(0);
  15162. # else
  15163. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15164. # error not present
  15165. # endif
  15166. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15167. exit(0);
  15168. # else
  15169. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15170. # error not present
  15171. # endif
  15172. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15173. # error not present
  15174. # endif
  15175. # endif
  15176. # endif
  15177. exit(0);
  15178. ;
  15179. return 0;
  15180. }
  15181. _ACEOF
  15182. if ac_fn_c_try_compile "$LINENO"; then :
  15183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15184. $as_echo "found." >&6; }
  15185. else
  15186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15187. $as_echo "not present." >&6; }
  15188. alsa_found=no
  15189. fi
  15190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15191. ac_ext=c
  15192. ac_cpp='$CPP $CPPFLAGS'
  15193. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15194. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15195. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15196. if test "x$enable_alsatest" = "xyes"; then
  15197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15198. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15199. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15200. $as_echo_n "(cached) " >&6
  15201. else
  15202. ac_check_lib_save_LIBS=$LIBS
  15203. LIBS="-lasound $LIBS"
  15204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15205. /* end confdefs.h. */
  15206. /* Override any GCC internal prototype to avoid an error.
  15207. Use char because int might match the return type of a GCC
  15208. builtin and then its argument prototype would still apply. */
  15209. #ifdef __cplusplus
  15210. extern "C"
  15211. #endif
  15212. char snd_ctl_open ();
  15213. int
  15214. main ()
  15215. {
  15216. return snd_ctl_open ();
  15217. ;
  15218. return 0;
  15219. }
  15220. _ACEOF
  15221. if ac_fn_c_try_link "$LINENO"; then :
  15222. ac_cv_lib_asound_snd_ctl_open=yes
  15223. else
  15224. ac_cv_lib_asound_snd_ctl_open=no
  15225. fi
  15226. rm -f core conftest.err conftest.$ac_objext \
  15227. conftest$ac_exeext conftest.$ac_ext
  15228. LIBS=$ac_check_lib_save_LIBS
  15229. fi
  15230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15231. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15232. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15233. cat >>confdefs.h <<_ACEOF
  15234. #define HAVE_LIBASOUND 1
  15235. _ACEOF
  15236. LIBS="-lasound $LIBS"
  15237. else
  15238. alsa_found=no
  15239. fi
  15240. fi
  15241. if test "x$alsa_found" = "xyes" ; then
  15242. have_alsa=yes
  15243. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15244. LIBS=`echo $LIBS | sed 's/ //'`
  15245. LIBS="-lasound $LIBS"
  15246. fi
  15247. if test "x$alsa_found" = "xno" ; then
  15248. have_alsa=no
  15249. CFLAGS="$alsa_save_CFLAGS"
  15250. LDFLAGS="$alsa_save_LDFLAGS"
  15251. LIBS="$alsa_save_LIBS"
  15252. ALSA_CFLAGS=""
  15253. ALSA_LIBS=""
  15254. fi
  15255. # Restore all flags from before the ALSA detection runs
  15256. CFLAGS="$alsa_save_CFLAGS"
  15257. LDFLAGS="$alsa_save_LDFLAGS"
  15258. LIBS="$alsa_save_LIBS"
  15259. if test x$have_alsa = xyes; then
  15260. # Check whether --enable-alsa-shared was given.
  15261. if test "${enable_alsa_shared+set}" = set; then :
  15262. enableval=$enable_alsa_shared;
  15263. else
  15264. enable_alsa_shared=yes
  15265. fi
  15266. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15267. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15268. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15269. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15270. if test x$have_loadso != xyes && \
  15271. test x$enable_alsa_shared = xyes; then
  15272. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15273. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15274. fi
  15275. if test x$have_loadso = xyes && \
  15276. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15277. echo "-- dynamic libasound -> $alsa_lib"
  15278. cat >>confdefs.h <<_ACEOF
  15279. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15280. _ACEOF
  15281. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15282. else
  15283. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15284. SUMMARY_audio="${SUMMARY_audio} alsa"
  15285. fi
  15286. have_audio=yes
  15287. fi
  15288. fi
  15289. }
  15290. CheckESD()
  15291. {
  15292. # Check whether --enable-esd was given.
  15293. if test "${enable_esd+set}" = set; then :
  15294. enableval=$enable_esd;
  15295. else
  15296. enable_esd=yes
  15297. fi
  15298. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15299. # Check whether --with-esd-prefix was given.
  15300. if test "${with_esd_prefix+set}" = set; then :
  15301. withval=$with_esd_prefix; esd_prefix="$withval"
  15302. else
  15303. esd_prefix=""
  15304. fi
  15305. # Check whether --with-esd-exec-prefix was given.
  15306. if test "${with_esd_exec_prefix+set}" = set; then :
  15307. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15308. else
  15309. esd_exec_prefix=""
  15310. fi
  15311. # Check whether --enable-esdtest was given.
  15312. if test "${enable_esdtest+set}" = set; then :
  15313. enableval=$enable_esdtest;
  15314. else
  15315. enable_esdtest=yes
  15316. fi
  15317. if test x$esd_exec_prefix != x ; then
  15318. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15319. if test x${ESD_CONFIG+set} != xset ; then
  15320. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15321. fi
  15322. fi
  15323. if test x$esd_prefix != x ; then
  15324. esd_args="$esd_args --prefix=$esd_prefix"
  15325. if test x${ESD_CONFIG+set} != xset ; then
  15326. ESD_CONFIG=$esd_prefix/bin/esd-config
  15327. fi
  15328. fi
  15329. # Extract the first word of "esd-config", so it can be a program name with args.
  15330. set dummy esd-config; ac_word=$2
  15331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15332. $as_echo_n "checking for $ac_word... " >&6; }
  15333. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15334. $as_echo_n "(cached) " >&6
  15335. else
  15336. case $ESD_CONFIG in
  15337. [\\/]* | ?:[\\/]*)
  15338. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15339. ;;
  15340. *)
  15341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15342. for as_dir in $PATH
  15343. do
  15344. IFS=$as_save_IFS
  15345. test -z "$as_dir" && as_dir=.
  15346. for ac_exec_ext in '' $ac_executable_extensions; do
  15347. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15348. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15349. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15350. break 2
  15351. fi
  15352. done
  15353. done
  15354. IFS=$as_save_IFS
  15355. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15356. ;;
  15357. esac
  15358. fi
  15359. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15360. if test -n "$ESD_CONFIG"; then
  15361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15362. $as_echo "$ESD_CONFIG" >&6; }
  15363. else
  15364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15365. $as_echo "no" >&6; }
  15366. fi
  15367. min_esd_version=0.2.8
  15368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15369. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15370. no_esd=""
  15371. if test "$ESD_CONFIG" = "no" ; then
  15372. no_esd=yes
  15373. else
  15374. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15375. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15376. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15377. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15378. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15379. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15380. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15381. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15382. if test "x$enable_esdtest" = "xyes" ; then
  15383. ac_save_CFLAGS="$CFLAGS"
  15384. ac_save_LIBS="$LIBS"
  15385. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15386. LIBS="$LIBS $ESD_LIBS"
  15387. rm -f conf.esdtest
  15388. if test "$cross_compiling" = yes; then :
  15389. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15390. else
  15391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15392. /* end confdefs.h. */
  15393. #include <stdio.h>
  15394. #include <stdlib.h>
  15395. #include <string.h>
  15396. #include <esd.h>
  15397. char*
  15398. my_strdup (char *str)
  15399. {
  15400. char *new_str;
  15401. if (str)
  15402. {
  15403. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15404. strcpy (new_str, str);
  15405. }
  15406. else
  15407. new_str = NULL;
  15408. return new_str;
  15409. }
  15410. int main ()
  15411. {
  15412. int major, minor, micro;
  15413. char *tmp_version;
  15414. system ("touch conf.esdtest");
  15415. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15416. tmp_version = my_strdup("$min_esd_version");
  15417. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15418. printf("%s, bad version string\n", "$min_esd_version");
  15419. exit(1);
  15420. }
  15421. if (($esd_major_version > major) ||
  15422. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15423. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15424. {
  15425. return 0;
  15426. }
  15427. else
  15428. {
  15429. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15430. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15431. printf("*** best to upgrade to the required version.\n");
  15432. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15433. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15434. printf("*** config.cache before re-running configure\n");
  15435. return 1;
  15436. }
  15437. }
  15438. _ACEOF
  15439. if ac_fn_c_try_run "$LINENO"; then :
  15440. else
  15441. no_esd=yes
  15442. fi
  15443. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15444. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15445. fi
  15446. CFLAGS="$ac_save_CFLAGS"
  15447. LIBS="$ac_save_LIBS"
  15448. fi
  15449. fi
  15450. if test "x$no_esd" = x ; then
  15451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15452. $as_echo "yes" >&6; }
  15453. have_esd=yes
  15454. else
  15455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15456. $as_echo "no" >&6; }
  15457. if test "$ESD_CONFIG" = "no" ; then
  15458. echo "*** The esd-config script installed by ESD could not be found"
  15459. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15460. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15461. echo "*** full path to esd-config."
  15462. else
  15463. if test -f conf.esdtest ; then
  15464. :
  15465. else
  15466. echo "*** Could not run ESD test program, checking why..."
  15467. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15468. LIBS="$LIBS $ESD_LIBS"
  15469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15470. /* end confdefs.h. */
  15471. #include <stdio.h>
  15472. #include <esd.h>
  15473. int
  15474. main ()
  15475. {
  15476. return 0;
  15477. ;
  15478. return 0;
  15479. }
  15480. _ACEOF
  15481. if ac_fn_c_try_link "$LINENO"; then :
  15482. echo "*** The test program compiled, but did not run. This usually means"
  15483. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15484. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15485. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15486. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15487. echo "*** is required on your system"
  15488. echo "***"
  15489. echo "*** If you have an old version installed, it is best to remove it, although"
  15490. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15491. else
  15492. echo "*** The test program failed to compile or link. See the file config.log for the"
  15493. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15494. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15495. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15496. fi
  15497. rm -f core conftest.err conftest.$ac_objext \
  15498. conftest$ac_exeext conftest.$ac_ext
  15499. CFLAGS="$ac_save_CFLAGS"
  15500. LIBS="$ac_save_LIBS"
  15501. fi
  15502. fi
  15503. ESD_CFLAGS=""
  15504. ESD_LIBS=""
  15505. have_esd=no
  15506. fi
  15507. rm -f conf.esdtest
  15508. if test x$have_esd = xyes; then
  15509. # Check whether --enable-esd-shared was given.
  15510. if test "${enable_esd_shared+set}" = set; then :
  15511. enableval=$enable_esd_shared;
  15512. else
  15513. enable_esd_shared=yes
  15514. fi
  15515. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15516. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15517. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15518. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15519. if test x$have_loadso != xyes && \
  15520. test x$enable_esd_shared = xyes; then
  15521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15522. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15523. fi
  15524. if test x$have_loadso = xyes && \
  15525. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15526. echo "-- dynamic libesd -> $esd_lib"
  15527. cat >>confdefs.h <<_ACEOF
  15528. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15529. _ACEOF
  15530. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15531. else
  15532. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15533. SUMMARY_audio="${SUMMARY_audio} esd"
  15534. fi
  15535. have_audio=yes
  15536. fi
  15537. fi
  15538. }
  15539. CheckPulseAudio()
  15540. {
  15541. # Check whether --enable-pulseaudio was given.
  15542. if test "${enable_pulseaudio+set}" = set; then :
  15543. enableval=$enable_pulseaudio;
  15544. else
  15545. enable_pulseaudio=yes
  15546. fi
  15547. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15548. audio_pulseaudio=no
  15549. PULSEAUDIO_REQUIRED_VERSION=0.9
  15550. # Extract the first word of "pkg-config", so it can be a program name with args.
  15551. set dummy pkg-config; ac_word=$2
  15552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15553. $as_echo_n "checking for $ac_word... " >&6; }
  15554. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15555. $as_echo_n "(cached) " >&6
  15556. else
  15557. case $PKG_CONFIG in
  15558. [\\/]* | ?:[\\/]*)
  15559. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15560. ;;
  15561. *)
  15562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15563. for as_dir in $PATH
  15564. do
  15565. IFS=$as_save_IFS
  15566. test -z "$as_dir" && as_dir=.
  15567. for ac_exec_ext in '' $ac_executable_extensions; do
  15568. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15569. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15571. break 2
  15572. fi
  15573. done
  15574. done
  15575. IFS=$as_save_IFS
  15576. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15577. ;;
  15578. esac
  15579. fi
  15580. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15581. if test -n "$PKG_CONFIG"; then
  15582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15583. $as_echo "$PKG_CONFIG" >&6; }
  15584. else
  15585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15586. $as_echo "no" >&6; }
  15587. fi
  15588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15589. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15590. if test x$PKG_CONFIG != xno; then
  15591. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15592. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15593. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15594. audio_pulseaudio=yes
  15595. fi
  15596. fi
  15597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15598. $as_echo "$audio_pulseaudio" >&6; }
  15599. if test x$audio_pulseaudio = xyes; then
  15600. # Check whether --enable-pulseaudio-shared was given.
  15601. if test "${enable_pulseaudio_shared+set}" = set; then :
  15602. enableval=$enable_pulseaudio_shared;
  15603. else
  15604. enable_pulseaudio_shared=yes
  15605. fi
  15606. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15607. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15608. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15609. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15610. if test x$have_loadso != xyes && \
  15611. test x$enable_pulseaudio_shared = xyes; then
  15612. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15613. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15614. fi
  15615. if test x$have_loadso = xyes && \
  15616. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15617. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15618. cat >>confdefs.h <<_ACEOF
  15619. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15620. _ACEOF
  15621. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15622. case "$host" in
  15623. # On Solaris, pulseaudio must be linked deferred explicitly
  15624. # to prevent undefined symbol failures.
  15625. *-*-solaris*)
  15626. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15627. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15628. esac
  15629. else
  15630. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15631. SUMMARY_audio="${SUMMARY_audio} pulse"
  15632. fi
  15633. have_audio=yes
  15634. fi
  15635. fi
  15636. }
  15637. CheckARTSC()
  15638. {
  15639. # Check whether --enable-arts was given.
  15640. if test "${enable_arts+set}" = set; then :
  15641. enableval=$enable_arts;
  15642. else
  15643. enable_arts=yes
  15644. fi
  15645. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15646. # Extract the first word of "artsc-config", so it can be a program name with args.
  15647. set dummy artsc-config; ac_word=$2
  15648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15649. $as_echo_n "checking for $ac_word... " >&6; }
  15650. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15651. $as_echo_n "(cached) " >&6
  15652. else
  15653. case $ARTSCONFIG in
  15654. [\\/]* | ?:[\\/]*)
  15655. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15656. ;;
  15657. *)
  15658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15659. for as_dir in $PATH
  15660. do
  15661. IFS=$as_save_IFS
  15662. test -z "$as_dir" && as_dir=.
  15663. for ac_exec_ext in '' $ac_executable_extensions; do
  15664. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15665. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15667. break 2
  15668. fi
  15669. done
  15670. done
  15671. IFS=$as_save_IFS
  15672. ;;
  15673. esac
  15674. fi
  15675. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15676. if test -n "$ARTSCONFIG"; then
  15677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15678. $as_echo "$ARTSCONFIG" >&6; }
  15679. else
  15680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15681. $as_echo "no" >&6; }
  15682. fi
  15683. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15684. : # arts isn't installed
  15685. else
  15686. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15687. ARTS_LIBS=`$ARTSCONFIG --libs`
  15688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15689. $as_echo_n "checking for aRts development environment... " >&6; }
  15690. audio_arts=no
  15691. save_CFLAGS="$CFLAGS"
  15692. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15694. /* end confdefs.h. */
  15695. #include <artsc.h>
  15696. int
  15697. main ()
  15698. {
  15699. arts_stream_t stream;
  15700. ;
  15701. return 0;
  15702. }
  15703. _ACEOF
  15704. if ac_fn_c_try_compile "$LINENO"; then :
  15705. audio_arts=yes
  15706. fi
  15707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15708. CFLAGS="$save_CFLAGS"
  15709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15710. $as_echo "$audio_arts" >&6; }
  15711. if test x$audio_arts = xyes; then
  15712. # Check whether --enable-arts-shared was given.
  15713. if test "${enable_arts_shared+set}" = set; then :
  15714. enableval=$enable_arts_shared;
  15715. else
  15716. enable_arts_shared=yes
  15717. fi
  15718. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15719. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15720. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15721. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15722. if test x$have_loadso != xyes && \
  15723. test x$enable_arts_shared = xyes; then
  15724. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15725. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15726. fi
  15727. if test x$have_loadso = xyes && \
  15728. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15729. echo "-- dynamic libartsc -> $arts_lib"
  15730. cat >>confdefs.h <<_ACEOF
  15731. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15732. _ACEOF
  15733. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15734. else
  15735. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15736. SUMMARY_audio="${SUMMARY_audio} arts"
  15737. fi
  15738. have_audio=yes
  15739. fi
  15740. fi
  15741. fi
  15742. }
  15743. CheckNAS()
  15744. {
  15745. # Check whether --enable-nas was given.
  15746. if test "${enable_nas+set}" = set; then :
  15747. enableval=$enable_nas;
  15748. else
  15749. enable_nas=yes
  15750. fi
  15751. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15752. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15753. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15754. have_nas_hdr=yes
  15755. fi
  15756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15757. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15758. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15759. $as_echo_n "(cached) " >&6
  15760. else
  15761. ac_check_lib_save_LIBS=$LIBS
  15762. LIBS="-laudio $LIBS"
  15763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15764. /* end confdefs.h. */
  15765. /* Override any GCC internal prototype to avoid an error.
  15766. Use char because int might match the return type of a GCC
  15767. builtin and then its argument prototype would still apply. */
  15768. #ifdef __cplusplus
  15769. extern "C"
  15770. #endif
  15771. char AuOpenServer ();
  15772. int
  15773. main ()
  15774. {
  15775. return AuOpenServer ();
  15776. ;
  15777. return 0;
  15778. }
  15779. _ACEOF
  15780. if ac_fn_c_try_link "$LINENO"; then :
  15781. ac_cv_lib_audio_AuOpenServer=yes
  15782. else
  15783. ac_cv_lib_audio_AuOpenServer=no
  15784. fi
  15785. rm -f core conftest.err conftest.$ac_objext \
  15786. conftest$ac_exeext conftest.$ac_ext
  15787. LIBS=$ac_check_lib_save_LIBS
  15788. fi
  15789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15790. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15791. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15792. have_nas_lib=yes
  15793. fi
  15794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15795. $as_echo_n "checking for NAS audio support... " >&6; }
  15796. have_nas=no
  15797. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15798. have_nas=yes
  15799. NAS_LIBS="-laudio"
  15800. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15801. have_nas=yes
  15802. NAS_CFLAGS="-I/usr/X11R6/include/"
  15803. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15804. fi
  15805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15806. $as_echo "$have_nas" >&6; }
  15807. if test x$have_nas = xyes; then
  15808. # Check whether --enable-nas-shared was given.
  15809. if test "${enable_nas_shared+set}" = set; then :
  15810. enableval=$enable_nas_shared;
  15811. else
  15812. enable_nas_shared=yes
  15813. fi
  15814. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15815. if test x$have_loadso != xyes && \
  15816. test x$enable_nas_shared = xyes; then
  15817. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15818. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15819. fi
  15820. if test x$have_loadso = xyes && \
  15821. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15822. echo "-- dynamic libaudio -> $nas_lib"
  15823. cat >>confdefs.h <<_ACEOF
  15824. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15825. _ACEOF
  15826. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  15827. else
  15828. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  15829. SUMMARY_audio="${SUMMARY_audio} nas"
  15830. fi
  15831. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  15832. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  15833. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  15834. have_audio=yes
  15835. fi
  15836. fi
  15837. }
  15838. CheckSNDIO()
  15839. {
  15840. # Check whether --enable-sndio was given.
  15841. if test "${enable_sndio+set}" = set; then :
  15842. enableval=$enable_sndio;
  15843. else
  15844. enable_sndio=yes
  15845. fi
  15846. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  15847. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  15848. if test "x$ac_cv_header_sndio_h" = xyes; then :
  15849. have_sndio_hdr=yes
  15850. fi
  15851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  15852. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  15853. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  15854. $as_echo_n "(cached) " >&6
  15855. else
  15856. ac_check_lib_save_LIBS=$LIBS
  15857. LIBS="-lsndio $LIBS"
  15858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15859. /* end confdefs.h. */
  15860. /* Override any GCC internal prototype to avoid an error.
  15861. Use char because int might match the return type of a GCC
  15862. builtin and then its argument prototype would still apply. */
  15863. #ifdef __cplusplus
  15864. extern "C"
  15865. #endif
  15866. char sio_open ();
  15867. int
  15868. main ()
  15869. {
  15870. return sio_open ();
  15871. ;
  15872. return 0;
  15873. }
  15874. _ACEOF
  15875. if ac_fn_c_try_link "$LINENO"; then :
  15876. ac_cv_lib_sndio_sio_open=yes
  15877. else
  15878. ac_cv_lib_sndio_sio_open=no
  15879. fi
  15880. rm -f core conftest.err conftest.$ac_objext \
  15881. conftest$ac_exeext conftest.$ac_ext
  15882. LIBS=$ac_check_lib_save_LIBS
  15883. fi
  15884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  15885. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  15886. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  15887. have_sndio_lib=yes
  15888. fi
  15889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  15890. $as_echo_n "checking for sndio audio support... " >&6; }
  15891. have_sndio=no
  15892. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  15893. have_sndio=yes
  15894. SNDIO_LIBS="-lsndio"
  15895. fi
  15896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  15897. $as_echo "$have_sndio" >&6; }
  15898. if test x$have_sndio = xyes; then
  15899. # Check whether --enable-sndio-shared was given.
  15900. if test "${enable_sndio_shared+set}" = set; then :
  15901. enableval=$enable_sndio_shared;
  15902. else
  15903. enable_sndio_shared=yes
  15904. fi
  15905. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15906. if test x$have_loadso != xyes && \
  15907. test x$enable_sndio_shared = xyes; then
  15908. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  15909. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  15910. fi
  15911. if test x$have_loadso = xyes && \
  15912. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  15913. echo "-- dynamic libsndio -> $sndio_lib"
  15914. cat >>confdefs.h <<_ACEOF
  15915. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  15916. _ACEOF
  15917. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  15918. else
  15919. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  15920. SUMMARY_audio="${SUMMARY_audio} sndio"
  15921. fi
  15922. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  15923. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  15924. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  15925. have_audio=yes
  15926. fi
  15927. fi
  15928. }
  15929. CheckDiskAudio()
  15930. {
  15931. # Check whether --enable-diskaudio was given.
  15932. if test "${enable_diskaudio+set}" = set; then :
  15933. enableval=$enable_diskaudio;
  15934. else
  15935. enable_diskaudio=yes
  15936. fi
  15937. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  15938. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  15939. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  15940. SUMMARY_audio="${SUMMARY_audio} disk"
  15941. fi
  15942. }
  15943. CheckDummyAudio()
  15944. {
  15945. # Check whether --enable-dummyaudio was given.
  15946. if test "${enable_dummyaudio+set}" = set; then :
  15947. enableval=$enable_dummyaudio;
  15948. else
  15949. enable_dummyaudio=yes
  15950. fi
  15951. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  15952. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  15953. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  15954. SUMMARY_audio="${SUMMARY_audio} dummy"
  15955. fi
  15956. }
  15957. CheckVisibilityHidden()
  15958. {
  15959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  15960. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  15961. have_gcc_fvisibility=no
  15962. visibility_CFLAGS="-fvisibility=hidden"
  15963. save_CFLAGS="$CFLAGS"
  15964. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  15965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15966. /* end confdefs.h. */
  15967. #if !defined(__GNUC__) || __GNUC__ < 4
  15968. #error SDL only uses visibility attributes in GCC 4 or newer
  15969. #endif
  15970. int
  15971. main ()
  15972. {
  15973. ;
  15974. return 0;
  15975. }
  15976. _ACEOF
  15977. if ac_fn_c_try_compile "$LINENO"; then :
  15978. have_gcc_fvisibility=yes
  15979. fi
  15980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  15982. $as_echo "$have_gcc_fvisibility" >&6; }
  15983. CFLAGS="$save_CFLAGS"
  15984. if test x$have_gcc_fvisibility = xyes; then
  15985. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  15986. fi
  15987. }
  15988. CheckStackBoundary()
  15989. {
  15990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  15991. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  15992. have_gcc_preferred_stack_boundary=no
  15993. save_CFLAGS="$CFLAGS"
  15994. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  15995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15996. /* end confdefs.h. */
  15997. int x = 0;
  15998. int
  15999. main ()
  16000. {
  16001. ;
  16002. return 0;
  16003. }
  16004. _ACEOF
  16005. if ac_fn_c_try_compile "$LINENO"; then :
  16006. have_gcc_preferred_stack_boundary=yes
  16007. fi
  16008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16010. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16011. CFLAGS="$save_CFLAGS"
  16012. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16013. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16014. fi
  16015. }
  16016. CheckWarnAll()
  16017. {
  16018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16019. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16020. have_gcc_Wall=no
  16021. save_CFLAGS="$CFLAGS"
  16022. CFLAGS="$save_CFLAGS -Wall"
  16023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16024. /* end confdefs.h. */
  16025. int x = 0;
  16026. int
  16027. main ()
  16028. {
  16029. ;
  16030. return 0;
  16031. }
  16032. _ACEOF
  16033. if ac_fn_c_try_compile "$LINENO"; then :
  16034. have_gcc_Wall=yes
  16035. fi
  16036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16038. $as_echo "$have_gcc_Wall" >&6; }
  16039. CFLAGS="$save_CFLAGS"
  16040. if test x$have_gcc_Wall = xyes; then
  16041. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16043. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16044. need_gcc_Wno_multichar=no
  16045. case "$host" in
  16046. *-*-haiku*)
  16047. need_gcc_Wno_multichar=yes
  16048. ;;
  16049. esac
  16050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16051. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16052. if test x$need_gcc_Wno_multichar = xyes; then
  16053. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16054. fi
  16055. fi
  16056. }
  16057. CheckWarnShadow()
  16058. {
  16059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wshadow option" >&5
  16060. $as_echo_n "checking for GCC -Wshadow option... " >&6; }
  16061. have_gcc_Wshadow=no
  16062. save_CFLAGS="$CFLAGS"
  16063. CFLAGS="$save_CFLAGS -Wshadow"
  16064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16065. /* end confdefs.h. */
  16066. int x = 0;
  16067. int
  16068. main ()
  16069. {
  16070. ;
  16071. return 0;
  16072. }
  16073. _ACEOF
  16074. if ac_fn_c_try_compile "$LINENO"; then :
  16075. have_gcc_Wshadow=yes
  16076. fi
  16077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wshadow" >&5
  16079. $as_echo "$have_gcc_Wshadow" >&6; }
  16080. CFLAGS="$save_CFLAGS"
  16081. if test x$have_gcc_Wshadow = xyes; then
  16082. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wshadow"
  16083. fi
  16084. }
  16085. CheckWayland()
  16086. {
  16087. # Check whether --enable-video-wayland was given.
  16088. if test "${enable_video_wayland+set}" = set; then :
  16089. enableval=$enable_video_wayland;
  16090. else
  16091. enable_video_wayland=yes
  16092. fi
  16093. # Check whether --enable-video-wayland-qt-touch was given.
  16094. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16095. enableval=$enable_video_wayland_qt_touch;
  16096. else
  16097. enable_video_wayland_qt_touch=yes
  16098. fi
  16099. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16100. # Extract the first word of "pkg-config", so it can be a program name with args.
  16101. set dummy pkg-config; ac_word=$2
  16102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16103. $as_echo_n "checking for $ac_word... " >&6; }
  16104. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16105. $as_echo_n "(cached) " >&6
  16106. else
  16107. case $PKG_CONFIG in
  16108. [\\/]* | ?:[\\/]*)
  16109. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16110. ;;
  16111. *)
  16112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16113. for as_dir in $PATH
  16114. do
  16115. IFS=$as_save_IFS
  16116. test -z "$as_dir" && as_dir=.
  16117. for ac_exec_ext in '' $ac_executable_extensions; do
  16118. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16119. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16120. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16121. break 2
  16122. fi
  16123. done
  16124. done
  16125. IFS=$as_save_IFS
  16126. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16127. ;;
  16128. esac
  16129. fi
  16130. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16131. if test -n "$PKG_CONFIG"; then
  16132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16133. $as_echo "$PKG_CONFIG" >&6; }
  16134. else
  16135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16136. $as_echo "no" >&6; }
  16137. fi
  16138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16139. $as_echo_n "checking for Wayland support... " >&6; }
  16140. video_wayland=no
  16141. if test x$PKG_CONFIG != xno && \
  16142. test x$video_opengl_egl = xyes && \
  16143. test x$video_opengles_v2 = xyes; then
  16144. if $PKG_CONFIG --exists wayland-client wayland-egl wayland-cursor egl xkbcommon ; then
  16145. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16146. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16147. video_wayland=yes
  16148. fi
  16149. fi
  16150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16151. $as_echo "$video_wayland" >&6; }
  16152. if test x$video_wayland = xyes; then
  16153. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16154. if test x$enable_video_wayland_qt_touch = xyes; then
  16155. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16156. fi
  16157. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16158. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS"
  16159. # Check whether --enable-wayland-shared was given.
  16160. if test "${enable_wayland_shared+set}" = set; then :
  16161. enableval=$enable_wayland_shared;
  16162. else
  16163. enable_wayland_shared=maybe
  16164. fi
  16165. case "$host" in
  16166. *)
  16167. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16168. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16169. if test x$wayland_egl_lib = x; then
  16170. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16171. fi
  16172. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16173. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16174. ;;
  16175. esac
  16176. if test x$enable_wayland_shared = xmaybe; then
  16177. enable_wayland_shared=yes
  16178. fi
  16179. if test x$have_loadso != xyes && \
  16180. test x$enable_wayland_shared = xyes; then
  16181. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16182. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16183. enable_wayland_shared=no
  16184. fi
  16185. if test x$have_loadso = xyes && \
  16186. test x$enable_wayland_shared = xyes && \
  16187. test x$wayland_client_lib != x && \
  16188. test x$wayland_egl_lib != x && \
  16189. test x$wayland_cursor_lib != x && \
  16190. test x$xkbcommon_lib != x; then
  16191. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16192. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16193. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16194. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16195. cat >>confdefs.h <<_ACEOF
  16196. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16197. _ACEOF
  16198. cat >>confdefs.h <<_ACEOF
  16199. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16200. _ACEOF
  16201. cat >>confdefs.h <<_ACEOF
  16202. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16203. _ACEOF
  16204. cat >>confdefs.h <<_ACEOF
  16205. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16206. _ACEOF
  16207. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16208. else
  16209. enable_wayland_shared=no
  16210. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16211. SUMMARY_video="${SUMMARY_video} wayland"
  16212. fi
  16213. have_video=yes
  16214. fi
  16215. fi
  16216. }
  16217. CheckMir()
  16218. {
  16219. # Check whether --enable-video-mir was given.
  16220. if test "${enable_video_mir+set}" = set; then :
  16221. enableval=$enable_video_mir;
  16222. else
  16223. enable_video_mir=yes
  16224. fi
  16225. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16226. # Extract the first word of "pkg-config", so it can be a program name with args.
  16227. set dummy pkg-config; ac_word=$2
  16228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16229. $as_echo_n "checking for $ac_word... " >&6; }
  16230. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16231. $as_echo_n "(cached) " >&6
  16232. else
  16233. case $PKG_CONFIG in
  16234. [\\/]* | ?:[\\/]*)
  16235. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16236. ;;
  16237. *)
  16238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16239. for as_dir in $PATH
  16240. do
  16241. IFS=$as_save_IFS
  16242. test -z "$as_dir" && as_dir=.
  16243. for ac_exec_ext in '' $ac_executable_extensions; do
  16244. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16245. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16246. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16247. break 2
  16248. fi
  16249. done
  16250. done
  16251. IFS=$as_save_IFS
  16252. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16253. ;;
  16254. esac
  16255. fi
  16256. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16257. if test -n "$PKG_CONFIG"; then
  16258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16259. $as_echo "$PKG_CONFIG" >&6; }
  16260. else
  16261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16262. $as_echo "no" >&6; }
  16263. fi
  16264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16265. $as_echo_n "checking for Mir support... " >&6; }
  16266. video_mir=no
  16267. if test x$PKG_CONFIG != xno; then
  16268. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16269. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16270. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16271. save_CFLAGS="$CFLAGS"
  16272. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16274. /* end confdefs.h. */
  16275. #include <mir_toolkit/mir_client_library.h>
  16276. int
  16277. main ()
  16278. {
  16279. MirMotionToolType tool = mir_motion_tool_type_mouse;
  16280. ;
  16281. return 0;
  16282. }
  16283. _ACEOF
  16284. if ac_fn_c_try_compile "$LINENO"; then :
  16285. video_mir=yes
  16286. fi
  16287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16288. CFLAGS="$save_CFLAGS"
  16289. fi
  16290. fi
  16291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16292. $as_echo "$video_mir" >&6; }
  16293. if test x$video_mir = xyes; then
  16294. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16295. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16296. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16297. # Check whether --enable-mir-shared was given.
  16298. if test "${enable_mir_shared+set}" = set; then :
  16299. enableval=$enable_mir_shared;
  16300. else
  16301. enable_mir_shared=maybe
  16302. fi
  16303. case "$host" in
  16304. *)
  16305. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16306. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16307. ;;
  16308. esac
  16309. if test x$enable_mir_shared = xmaybe; then
  16310. enable_mir_shared=yes
  16311. fi
  16312. if test x$have_loadso != xyes && \
  16313. test x$enable_mir_shared = xyes; then
  16314. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16315. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16316. enable_mir_shared=no
  16317. fi
  16318. if test x$have_loadso = xyes && \
  16319. test x$enable_mir_shared = xyes && \
  16320. test x$mirclient_lib != x && \
  16321. test x$xkbcommon_lib != x; then
  16322. echo "-- dynamic libmirclient -> $mirclient_lib"
  16323. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16324. cat >>confdefs.h <<_ACEOF
  16325. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16326. _ACEOF
  16327. cat >>confdefs.h <<_ACEOF
  16328. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16329. _ACEOF
  16330. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16331. else
  16332. enable_mir_shared=no
  16333. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16334. SUMMARY_video="${SUMMARY_video} mir"
  16335. fi
  16336. have_video=yes
  16337. fi
  16338. fi
  16339. }
  16340. CheckNativeClient()
  16341. {
  16342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16343. /* end confdefs.h. */
  16344. #if !defined(__native_client__)
  16345. #error "NO NACL"
  16346. #endif
  16347. int
  16348. main ()
  16349. {
  16350. ;
  16351. return 0;
  16352. }
  16353. _ACEOF
  16354. if ac_fn_c_try_compile "$LINENO"; then :
  16355. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16356. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16357. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16358. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16359. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16360. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16361. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16362. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16363. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16364. SUMMARY_audio="${SUMMARY_audio} nacl"
  16365. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16366. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16367. fi
  16368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16369. }
  16370. CheckX11()
  16371. {
  16372. # Check whether --enable-video-x11 was given.
  16373. if test "${enable_video_x11+set}" = set; then :
  16374. enableval=$enable_video_x11;
  16375. else
  16376. enable_video_x11=yes
  16377. fi
  16378. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16379. case "$host" in
  16380. *-*-darwin*)
  16381. # This isn't necessary for X11, but fixes GLX detection
  16382. if test "x$x_includes" = xNONE && \
  16383. test "x$x_libraries" = xNONE && \
  16384. test -d /usr/X11R6/include && \
  16385. test -d /usr/X11R6/lib; then
  16386. x_includes="/usr/X11R6/include"
  16387. x_libraries="/usr/X11R6/lib"
  16388. fi
  16389. ;;
  16390. esac
  16391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16392. $as_echo_n "checking for X... " >&6; }
  16393. # Check whether --with-x was given.
  16394. if test "${with_x+set}" = set; then :
  16395. withval=$with_x;
  16396. fi
  16397. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16398. if test "x$with_x" = xno; then
  16399. # The user explicitly disabled X.
  16400. have_x=disabled
  16401. else
  16402. case $x_includes,$x_libraries in #(
  16403. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16404. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16405. $as_echo_n "(cached) " >&6
  16406. else
  16407. # One or both of the vars are not set, and there is no cached value.
  16408. ac_x_includes=no ac_x_libraries=no
  16409. rm -f -r conftest.dir
  16410. if mkdir conftest.dir; then
  16411. cd conftest.dir
  16412. cat >Imakefile <<'_ACEOF'
  16413. incroot:
  16414. @echo incroot='${INCROOT}'
  16415. usrlibdir:
  16416. @echo usrlibdir='${USRLIBDIR}'
  16417. libdir:
  16418. @echo libdir='${LIBDIR}'
  16419. _ACEOF
  16420. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16421. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16422. for ac_var in incroot usrlibdir libdir; do
  16423. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16424. done
  16425. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16426. for ac_extension in a so sl dylib la dll; do
  16427. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16428. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16429. ac_im_usrlibdir=$ac_im_libdir; break
  16430. fi
  16431. done
  16432. # Screen out bogus values from the imake configuration. They are
  16433. # bogus both because they are the default anyway, and because
  16434. # using them would break gcc on systems where it needs fixed includes.
  16435. case $ac_im_incroot in
  16436. /usr/include) ac_x_includes= ;;
  16437. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16438. esac
  16439. case $ac_im_usrlibdir in
  16440. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16441. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16442. esac
  16443. fi
  16444. cd ..
  16445. rm -f -r conftest.dir
  16446. fi
  16447. # Standard set of common directories for X headers.
  16448. # Check X11 before X11Rn because it is often a symlink to the current release.
  16449. ac_x_header_dirs='
  16450. /usr/X11/include
  16451. /usr/X11R7/include
  16452. /usr/X11R6/include
  16453. /usr/X11R5/include
  16454. /usr/X11R4/include
  16455. /usr/include/X11
  16456. /usr/include/X11R7
  16457. /usr/include/X11R6
  16458. /usr/include/X11R5
  16459. /usr/include/X11R4
  16460. /usr/local/X11/include
  16461. /usr/local/X11R7/include
  16462. /usr/local/X11R6/include
  16463. /usr/local/X11R5/include
  16464. /usr/local/X11R4/include
  16465. /usr/local/include/X11
  16466. /usr/local/include/X11R7
  16467. /usr/local/include/X11R6
  16468. /usr/local/include/X11R5
  16469. /usr/local/include/X11R4
  16470. /usr/X386/include
  16471. /usr/x386/include
  16472. /usr/XFree86/include/X11
  16473. /usr/include
  16474. /usr/local/include
  16475. /usr/unsupported/include
  16476. /usr/athena/include
  16477. /usr/local/x11r5/include
  16478. /usr/lpp/Xamples/include
  16479. /usr/openwin/include
  16480. /usr/openwin/share/include'
  16481. if test "$ac_x_includes" = no; then
  16482. # Guess where to find include files, by looking for Xlib.h.
  16483. # First, try using that file with no special directory specified.
  16484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16485. /* end confdefs.h. */
  16486. #include <X11/Xlib.h>
  16487. _ACEOF
  16488. if ac_fn_c_try_cpp "$LINENO"; then :
  16489. # We can compile using X headers with no special include directory.
  16490. ac_x_includes=
  16491. else
  16492. for ac_dir in $ac_x_header_dirs; do
  16493. if test -r "$ac_dir/X11/Xlib.h"; then
  16494. ac_x_includes=$ac_dir
  16495. break
  16496. fi
  16497. done
  16498. fi
  16499. rm -f conftest.err conftest.i conftest.$ac_ext
  16500. fi # $ac_x_includes = no
  16501. if test "$ac_x_libraries" = no; then
  16502. # Check for the libraries.
  16503. # See if we find them without any special options.
  16504. # Don't add to $LIBS permanently.
  16505. ac_save_LIBS=$LIBS
  16506. LIBS="-lX11 $LIBS"
  16507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16508. /* end confdefs.h. */
  16509. #include <X11/Xlib.h>
  16510. int
  16511. main ()
  16512. {
  16513. XrmInitialize ()
  16514. ;
  16515. return 0;
  16516. }
  16517. _ACEOF
  16518. if ac_fn_c_try_link "$LINENO"; then :
  16519. LIBS=$ac_save_LIBS
  16520. # We can link X programs with no special library path.
  16521. ac_x_libraries=
  16522. else
  16523. LIBS=$ac_save_LIBS
  16524. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16525. do
  16526. # Don't even attempt the hair of trying to link an X program!
  16527. for ac_extension in a so sl dylib la dll; do
  16528. if test -r "$ac_dir/libX11.$ac_extension"; then
  16529. ac_x_libraries=$ac_dir
  16530. break 2
  16531. fi
  16532. done
  16533. done
  16534. fi
  16535. rm -f core conftest.err conftest.$ac_objext \
  16536. conftest$ac_exeext conftest.$ac_ext
  16537. fi # $ac_x_libraries = no
  16538. case $ac_x_includes,$ac_x_libraries in #(
  16539. no,* | *,no | *\'*)
  16540. # Didn't find X, or a directory has "'" in its name.
  16541. ac_cv_have_x="have_x=no";; #(
  16542. *)
  16543. # Record where we found X for the cache.
  16544. ac_cv_have_x="have_x=yes\
  16545. ac_x_includes='$ac_x_includes'\
  16546. ac_x_libraries='$ac_x_libraries'"
  16547. esac
  16548. fi
  16549. ;; #(
  16550. *) have_x=yes;;
  16551. esac
  16552. eval "$ac_cv_have_x"
  16553. fi # $with_x != no
  16554. if test "$have_x" != yes; then
  16555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16556. $as_echo "$have_x" >&6; }
  16557. no_x=yes
  16558. else
  16559. # If each of the values was on the command line, it overrides each guess.
  16560. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16561. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16562. # Update the cache value to reflect the command line values.
  16563. ac_cv_have_x="have_x=yes\
  16564. ac_x_includes='$x_includes'\
  16565. ac_x_libraries='$x_libraries'"
  16566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16567. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16568. fi
  16569. if test "$no_x" = yes; then
  16570. # Not all programs may use this symbol, but it does not hurt to define it.
  16571. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16572. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16573. else
  16574. if test -n "$x_includes"; then
  16575. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16576. fi
  16577. # It would also be nice to do this for all -L options, not just this one.
  16578. if test -n "$x_libraries"; then
  16579. X_LIBS="$X_LIBS -L$x_libraries"
  16580. # For Solaris; some versions of Sun CC require a space after -R and
  16581. # others require no space. Words are not sufficient . . . .
  16582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16583. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16584. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16585. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16586. ac_c_werror_flag=yes
  16587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16588. /* end confdefs.h. */
  16589. int
  16590. main ()
  16591. {
  16592. ;
  16593. return 0;
  16594. }
  16595. _ACEOF
  16596. if ac_fn_c_try_link "$LINENO"; then :
  16597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16598. $as_echo "no" >&6; }
  16599. X_LIBS="$X_LIBS -R$x_libraries"
  16600. else
  16601. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16603. /* end confdefs.h. */
  16604. int
  16605. main ()
  16606. {
  16607. ;
  16608. return 0;
  16609. }
  16610. _ACEOF
  16611. if ac_fn_c_try_link "$LINENO"; then :
  16612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16613. $as_echo "yes" >&6; }
  16614. X_LIBS="$X_LIBS -R $x_libraries"
  16615. else
  16616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16617. $as_echo "neither works" >&6; }
  16618. fi
  16619. rm -f core conftest.err conftest.$ac_objext \
  16620. conftest$ac_exeext conftest.$ac_ext
  16621. fi
  16622. rm -f core conftest.err conftest.$ac_objext \
  16623. conftest$ac_exeext conftest.$ac_ext
  16624. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16625. LIBS=$ac_xsave_LIBS
  16626. fi
  16627. # Check for system-dependent libraries X programs must link with.
  16628. # Do this before checking for the system-independent R6 libraries
  16629. # (-lICE), since we may need -lsocket or whatever for X linking.
  16630. if test "$ISC" = yes; then
  16631. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16632. else
  16633. # Martyn Johnson says this is needed for Ultrix, if the X
  16634. # libraries were built with DECnet support. And Karl Berry says
  16635. # the Alpha needs dnet_stub (dnet does not exist).
  16636. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16638. /* end confdefs.h. */
  16639. /* Override any GCC internal prototype to avoid an error.
  16640. Use char because int might match the return type of a GCC
  16641. builtin and then its argument prototype would still apply. */
  16642. #ifdef __cplusplus
  16643. extern "C"
  16644. #endif
  16645. char XOpenDisplay ();
  16646. int
  16647. main ()
  16648. {
  16649. return XOpenDisplay ();
  16650. ;
  16651. return 0;
  16652. }
  16653. _ACEOF
  16654. if ac_fn_c_try_link "$LINENO"; then :
  16655. else
  16656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16657. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16658. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16659. $as_echo_n "(cached) " >&6
  16660. else
  16661. ac_check_lib_save_LIBS=$LIBS
  16662. LIBS="-ldnet $LIBS"
  16663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16664. /* end confdefs.h. */
  16665. /* Override any GCC internal prototype to avoid an error.
  16666. Use char because int might match the return type of a GCC
  16667. builtin and then its argument prototype would still apply. */
  16668. #ifdef __cplusplus
  16669. extern "C"
  16670. #endif
  16671. char dnet_ntoa ();
  16672. int
  16673. main ()
  16674. {
  16675. return dnet_ntoa ();
  16676. ;
  16677. return 0;
  16678. }
  16679. _ACEOF
  16680. if ac_fn_c_try_link "$LINENO"; then :
  16681. ac_cv_lib_dnet_dnet_ntoa=yes
  16682. else
  16683. ac_cv_lib_dnet_dnet_ntoa=no
  16684. fi
  16685. rm -f core conftest.err conftest.$ac_objext \
  16686. conftest$ac_exeext conftest.$ac_ext
  16687. LIBS=$ac_check_lib_save_LIBS
  16688. fi
  16689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16690. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  16691. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  16692. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16693. fi
  16694. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  16696. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  16697. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  16698. $as_echo_n "(cached) " >&6
  16699. else
  16700. ac_check_lib_save_LIBS=$LIBS
  16701. LIBS="-ldnet_stub $LIBS"
  16702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16703. /* end confdefs.h. */
  16704. /* Override any GCC internal prototype to avoid an error.
  16705. Use char because int might match the return type of a GCC
  16706. builtin and then its argument prototype would still apply. */
  16707. #ifdef __cplusplus
  16708. extern "C"
  16709. #endif
  16710. char dnet_ntoa ();
  16711. int
  16712. main ()
  16713. {
  16714. return dnet_ntoa ();
  16715. ;
  16716. return 0;
  16717. }
  16718. _ACEOF
  16719. if ac_fn_c_try_link "$LINENO"; then :
  16720. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16721. else
  16722. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16723. fi
  16724. rm -f core conftest.err conftest.$ac_objext \
  16725. conftest$ac_exeext conftest.$ac_ext
  16726. LIBS=$ac_check_lib_save_LIBS
  16727. fi
  16728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16729. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  16730. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  16731. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16732. fi
  16733. fi
  16734. fi
  16735. rm -f core conftest.err conftest.$ac_objext \
  16736. conftest$ac_exeext conftest.$ac_ext
  16737. LIBS="$ac_xsave_LIBS"
  16738. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  16739. # to get the SysV transport functions.
  16740. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  16741. # needs -lnsl.
  16742. # The nsl library prevents programs from opening the X display
  16743. # on Irix 5.2, according to T.E. Dickey.
  16744. # The functions gethostbyname, getservbyname, and inet_addr are
  16745. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  16746. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16747. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16748. fi
  16749. if test $ac_cv_func_gethostbyname = no; then
  16750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16751. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16752. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16753. $as_echo_n "(cached) " >&6
  16754. else
  16755. ac_check_lib_save_LIBS=$LIBS
  16756. LIBS="-lnsl $LIBS"
  16757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16758. /* end confdefs.h. */
  16759. /* Override any GCC internal prototype to avoid an error.
  16760. Use char because int might match the return type of a GCC
  16761. builtin and then its argument prototype would still apply. */
  16762. #ifdef __cplusplus
  16763. extern "C"
  16764. #endif
  16765. char gethostbyname ();
  16766. int
  16767. main ()
  16768. {
  16769. return gethostbyname ();
  16770. ;
  16771. return 0;
  16772. }
  16773. _ACEOF
  16774. if ac_fn_c_try_link "$LINENO"; then :
  16775. ac_cv_lib_nsl_gethostbyname=yes
  16776. else
  16777. ac_cv_lib_nsl_gethostbyname=no
  16778. fi
  16779. rm -f core conftest.err conftest.$ac_objext \
  16780. conftest$ac_exeext conftest.$ac_ext
  16781. LIBS=$ac_check_lib_save_LIBS
  16782. fi
  16783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16784. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16785. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16786. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  16787. fi
  16788. if test $ac_cv_lib_nsl_gethostbyname = no; then
  16789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  16790. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  16791. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  16792. $as_echo_n "(cached) " >&6
  16793. else
  16794. ac_check_lib_save_LIBS=$LIBS
  16795. LIBS="-lbsd $LIBS"
  16796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16797. /* end confdefs.h. */
  16798. /* Override any GCC internal prototype to avoid an error.
  16799. Use char because int might match the return type of a GCC
  16800. builtin and then its argument prototype would still apply. */
  16801. #ifdef __cplusplus
  16802. extern "C"
  16803. #endif
  16804. char gethostbyname ();
  16805. int
  16806. main ()
  16807. {
  16808. return gethostbyname ();
  16809. ;
  16810. return 0;
  16811. }
  16812. _ACEOF
  16813. if ac_fn_c_try_link "$LINENO"; then :
  16814. ac_cv_lib_bsd_gethostbyname=yes
  16815. else
  16816. ac_cv_lib_bsd_gethostbyname=no
  16817. fi
  16818. rm -f core conftest.err conftest.$ac_objext \
  16819. conftest$ac_exeext conftest.$ac_ext
  16820. LIBS=$ac_check_lib_save_LIBS
  16821. fi
  16822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  16823. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  16824. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  16825. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  16826. fi
  16827. fi
  16828. fi
  16829. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  16830. # socket/setsockopt and other routines are undefined under SCO ODT
  16831. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  16832. # on later versions), says Simon Leinen: it contains gethostby*
  16833. # variants that don't use the name server (or something). -lsocket
  16834. # must be given before -lnsl if both are needed. We assume that
  16835. # if connect needs -lnsl, so does gethostbyname.
  16836. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  16837. if test "x$ac_cv_func_connect" = xyes; then :
  16838. fi
  16839. if test $ac_cv_func_connect = no; then
  16840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  16841. $as_echo_n "checking for connect in -lsocket... " >&6; }
  16842. if ${ac_cv_lib_socket_connect+:} false; then :
  16843. $as_echo_n "(cached) " >&6
  16844. else
  16845. ac_check_lib_save_LIBS=$LIBS
  16846. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  16847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16848. /* end confdefs.h. */
  16849. /* Override any GCC internal prototype to avoid an error.
  16850. Use char because int might match the return type of a GCC
  16851. builtin and then its argument prototype would still apply. */
  16852. #ifdef __cplusplus
  16853. extern "C"
  16854. #endif
  16855. char connect ();
  16856. int
  16857. main ()
  16858. {
  16859. return connect ();
  16860. ;
  16861. return 0;
  16862. }
  16863. _ACEOF
  16864. if ac_fn_c_try_link "$LINENO"; then :
  16865. ac_cv_lib_socket_connect=yes
  16866. else
  16867. ac_cv_lib_socket_connect=no
  16868. fi
  16869. rm -f core conftest.err conftest.$ac_objext \
  16870. conftest$ac_exeext conftest.$ac_ext
  16871. LIBS=$ac_check_lib_save_LIBS
  16872. fi
  16873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  16874. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  16875. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  16876. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  16877. fi
  16878. fi
  16879. # Guillermo Gomez says -lposix is necessary on A/UX.
  16880. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  16881. if test "x$ac_cv_func_remove" = xyes; then :
  16882. fi
  16883. if test $ac_cv_func_remove = no; then
  16884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  16885. $as_echo_n "checking for remove in -lposix... " >&6; }
  16886. if ${ac_cv_lib_posix_remove+:} false; then :
  16887. $as_echo_n "(cached) " >&6
  16888. else
  16889. ac_check_lib_save_LIBS=$LIBS
  16890. LIBS="-lposix $LIBS"
  16891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16892. /* end confdefs.h. */
  16893. /* Override any GCC internal prototype to avoid an error.
  16894. Use char because int might match the return type of a GCC
  16895. builtin and then its argument prototype would still apply. */
  16896. #ifdef __cplusplus
  16897. extern "C"
  16898. #endif
  16899. char remove ();
  16900. int
  16901. main ()
  16902. {
  16903. return remove ();
  16904. ;
  16905. return 0;
  16906. }
  16907. _ACEOF
  16908. if ac_fn_c_try_link "$LINENO"; then :
  16909. ac_cv_lib_posix_remove=yes
  16910. else
  16911. ac_cv_lib_posix_remove=no
  16912. fi
  16913. rm -f core conftest.err conftest.$ac_objext \
  16914. conftest$ac_exeext conftest.$ac_ext
  16915. LIBS=$ac_check_lib_save_LIBS
  16916. fi
  16917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  16918. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  16919. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  16920. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  16921. fi
  16922. fi
  16923. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  16924. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  16925. if test "x$ac_cv_func_shmat" = xyes; then :
  16926. fi
  16927. if test $ac_cv_func_shmat = no; then
  16928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  16929. $as_echo_n "checking for shmat in -lipc... " >&6; }
  16930. if ${ac_cv_lib_ipc_shmat+:} false; then :
  16931. $as_echo_n "(cached) " >&6
  16932. else
  16933. ac_check_lib_save_LIBS=$LIBS
  16934. LIBS="-lipc $LIBS"
  16935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16936. /* end confdefs.h. */
  16937. /* Override any GCC internal prototype to avoid an error.
  16938. Use char because int might match the return type of a GCC
  16939. builtin and then its argument prototype would still apply. */
  16940. #ifdef __cplusplus
  16941. extern "C"
  16942. #endif
  16943. char shmat ();
  16944. int
  16945. main ()
  16946. {
  16947. return shmat ();
  16948. ;
  16949. return 0;
  16950. }
  16951. _ACEOF
  16952. if ac_fn_c_try_link "$LINENO"; then :
  16953. ac_cv_lib_ipc_shmat=yes
  16954. else
  16955. ac_cv_lib_ipc_shmat=no
  16956. fi
  16957. rm -f core conftest.err conftest.$ac_objext \
  16958. conftest$ac_exeext conftest.$ac_ext
  16959. LIBS=$ac_check_lib_save_LIBS
  16960. fi
  16961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  16962. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  16963. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  16964. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  16965. fi
  16966. fi
  16967. fi
  16968. # Check for libraries that X11R6 Xt/Xaw programs need.
  16969. ac_save_LDFLAGS=$LDFLAGS
  16970. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  16971. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  16972. # check for ICE first), but we must link in the order -lSM -lICE or
  16973. # we get undefined symbols. So assume we have SM if we have ICE.
  16974. # These have to be linked with before -lX11, unlike the other
  16975. # libraries we check for below, so use a different variable.
  16976. # John Interrante, Karl Berry
  16977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  16978. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  16979. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  16980. $as_echo_n "(cached) " >&6
  16981. else
  16982. ac_check_lib_save_LIBS=$LIBS
  16983. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  16984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16985. /* end confdefs.h. */
  16986. /* Override any GCC internal prototype to avoid an error.
  16987. Use char because int might match the return type of a GCC
  16988. builtin and then its argument prototype would still apply. */
  16989. #ifdef __cplusplus
  16990. extern "C"
  16991. #endif
  16992. char IceConnectionNumber ();
  16993. int
  16994. main ()
  16995. {
  16996. return IceConnectionNumber ();
  16997. ;
  16998. return 0;
  16999. }
  17000. _ACEOF
  17001. if ac_fn_c_try_link "$LINENO"; then :
  17002. ac_cv_lib_ICE_IceConnectionNumber=yes
  17003. else
  17004. ac_cv_lib_ICE_IceConnectionNumber=no
  17005. fi
  17006. rm -f core conftest.err conftest.$ac_objext \
  17007. conftest$ac_exeext conftest.$ac_ext
  17008. LIBS=$ac_check_lib_save_LIBS
  17009. fi
  17010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17011. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17012. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17013. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17014. fi
  17015. LDFLAGS=$ac_save_LDFLAGS
  17016. fi
  17017. if test x$have_x = xyes; then
  17018. # Check whether --enable-x11-shared was given.
  17019. if test "${enable_x11_shared+set}" = set; then :
  17020. enableval=$enable_x11_shared;
  17021. else
  17022. enable_x11_shared=maybe
  17023. fi
  17024. case "$host" in
  17025. *-*-darwin*)
  17026. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17027. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17028. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17029. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17030. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17031. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17032. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17033. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17034. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17035. ;;
  17036. *-*-openbsd*)
  17037. x11_lib='libX11.so'
  17038. x11ext_lib='libXext.so'
  17039. xcursor_lib='libXcursor.so'
  17040. xinerama_lib='libXinerama.so'
  17041. xinput_lib='libXi.so'
  17042. xrandr_lib='libXrandr.so'
  17043. xrender_lib='libXrender.so'
  17044. xss_lib='libXss.so'
  17045. xvidmode_lib='libXxf86vm.so'
  17046. ;;
  17047. *)
  17048. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17049. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17050. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17051. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17052. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17053. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17054. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17055. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17056. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17057. ;;
  17058. esac
  17059. if test x$ac_cv_func_shmat != xyes; then
  17060. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17061. fi
  17062. CFLAGS="$CFLAGS $X_CFLAGS"
  17063. LDFLAGS="$LDFLAGS $X_LIBS"
  17064. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17065. #include <X11/Xproto.h>
  17066. "
  17067. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17068. have_xext_h_hdr=yes
  17069. else
  17070. have_xext_h_hdr=no
  17071. fi
  17072. if test x$have_xext_h_hdr != xyes; then
  17073. as_fn_error $? "
  17074. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17075. " "$LINENO" 5
  17076. fi
  17077. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17078. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17079. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17080. # Needed so SDL applications can include SDL_syswm.h
  17081. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17082. if test x$enable_x11_shared = xmaybe; then
  17083. enable_x11_shared=yes
  17084. fi
  17085. if test x$have_loadso != xyes && \
  17086. test x$enable_x11_shared = xyes; then
  17087. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17088. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17089. enable_x11_shared=no
  17090. fi
  17091. if test x$have_loadso = xyes && \
  17092. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17093. echo "-- dynamic libX11 -> $x11_lib"
  17094. echo "-- dynamic libX11ext -> $x11ext_lib"
  17095. cat >>confdefs.h <<_ACEOF
  17096. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17097. _ACEOF
  17098. cat >>confdefs.h <<_ACEOF
  17099. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17100. _ACEOF
  17101. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17102. else
  17103. enable_x11_shared=no
  17104. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17105. SUMMARY_video="${SUMMARY_video} x11"
  17106. fi
  17107. have_video=yes
  17108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17109. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17110. have_const_param_XextAddDisplay=no
  17111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17112. /* end confdefs.h. */
  17113. #include <X11/Xlib.h>
  17114. #include <X11/Xproto.h>
  17115. #include <X11/extensions/Xext.h>
  17116. #include <X11/extensions/extutil.h>
  17117. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17118. int
  17119. main ()
  17120. {
  17121. ;
  17122. return 0;
  17123. }
  17124. _ACEOF
  17125. if ac_fn_c_try_compile "$LINENO"; then :
  17126. have_const_param_XextAddDisplay=yes
  17127. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17128. fi
  17129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17131. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to _XData32" >&5
  17133. $as_echo_n "checking for const parameter to _XData32... " >&6; }
  17134. have_const_param_xdata32=no
  17135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17136. /* end confdefs.h. */
  17137. #include <X11/Xlibint.h>
  17138. extern int _XData32(Display *dpy,register _Xconst long *data,unsigned len);
  17139. int
  17140. main ()
  17141. {
  17142. ;
  17143. return 0;
  17144. }
  17145. _ACEOF
  17146. if ac_fn_c_try_compile "$LINENO"; then :
  17147. have_const_param_xdata32=yes
  17148. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 1" >>confdefs.h
  17149. fi
  17150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_xdata32" >&5
  17152. $as_echo "$have_const_param_xdata32" >&6; }
  17153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17154. $as_echo_n "checking for XGenericEvent... " >&6; }
  17155. have_XGenericEvent=no
  17156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17157. /* end confdefs.h. */
  17158. #include <X11/Xlib.h>
  17159. int
  17160. main ()
  17161. {
  17162. Display *display;
  17163. XEvent event;
  17164. XGenericEventCookie *cookie = &event.xcookie;
  17165. XNextEvent(display, &event);
  17166. XGetEventData(display, cookie);
  17167. XFreeEventData(display, cookie);
  17168. ;
  17169. return 0;
  17170. }
  17171. _ACEOF
  17172. if ac_fn_c_try_compile "$LINENO"; then :
  17173. have_XGenericEvent=yes
  17174. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17175. fi
  17176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17178. $as_echo "$have_XGenericEvent" >&6; }
  17179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17180. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17181. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17182. $as_echo_n "(cached) " >&6
  17183. else
  17184. ac_check_lib_save_LIBS=$LIBS
  17185. LIBS="-lX11 $LIBS"
  17186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17187. /* end confdefs.h. */
  17188. /* Override any GCC internal prototype to avoid an error.
  17189. Use char because int might match the return type of a GCC
  17190. builtin and then its argument prototype would still apply. */
  17191. #ifdef __cplusplus
  17192. extern "C"
  17193. #endif
  17194. char XkbKeycodeToKeysym ();
  17195. int
  17196. main ()
  17197. {
  17198. return XkbKeycodeToKeysym ();
  17199. ;
  17200. return 0;
  17201. }
  17202. _ACEOF
  17203. if ac_fn_c_try_link "$LINENO"; then :
  17204. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17205. else
  17206. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17207. fi
  17208. rm -f core conftest.err conftest.$ac_objext \
  17209. conftest$ac_exeext conftest.$ac_ext
  17210. LIBS=$ac_check_lib_save_LIBS
  17211. fi
  17212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17213. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17214. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17215. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17216. fi
  17217. # Check whether --enable-video-x11-xcursor was given.
  17218. if test "${enable_video_x11_xcursor+set}" = set; then :
  17219. enableval=$enable_video_x11_xcursor;
  17220. else
  17221. enable_video_x11_xcursor=yes
  17222. fi
  17223. if test x$enable_video_x11_xcursor = xyes; then
  17224. definitely_enable_video_x11_xcursor=no
  17225. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17226. "
  17227. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17228. have_xcursor_h_hdr=yes
  17229. else
  17230. have_xcursor_h_hdr=no
  17231. fi
  17232. if test x$have_xcursor_h_hdr = xyes; then
  17233. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17234. echo "-- dynamic libXcursor -> $xcursor_lib"
  17235. cat >>confdefs.h <<_ACEOF
  17236. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17237. _ACEOF
  17238. definitely_enable_video_x11_xcursor=yes
  17239. else
  17240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17241. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17242. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17243. $as_echo_n "(cached) " >&6
  17244. else
  17245. ac_check_lib_save_LIBS=$LIBS
  17246. LIBS="-lXcursor $LIBS"
  17247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17248. /* end confdefs.h. */
  17249. /* Override any GCC internal prototype to avoid an error.
  17250. Use char because int might match the return type of a GCC
  17251. builtin and then its argument prototype would still apply. */
  17252. #ifdef __cplusplus
  17253. extern "C"
  17254. #endif
  17255. char XcursorImageCreate ();
  17256. int
  17257. main ()
  17258. {
  17259. return XcursorImageCreate ();
  17260. ;
  17261. return 0;
  17262. }
  17263. _ACEOF
  17264. if ac_fn_c_try_link "$LINENO"; then :
  17265. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17266. else
  17267. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17268. fi
  17269. rm -f core conftest.err conftest.$ac_objext \
  17270. conftest$ac_exeext conftest.$ac_ext
  17271. LIBS=$ac_check_lib_save_LIBS
  17272. fi
  17273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17274. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17275. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17276. have_xcursor_lib=yes
  17277. fi
  17278. if test x$have_xcursor_lib = xyes ; then
  17279. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17280. definitely_enable_video_x11_xcursor=yes
  17281. fi
  17282. fi
  17283. fi
  17284. fi
  17285. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17286. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17287. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17288. fi
  17289. # Check whether --enable-video-x11-xinerama was given.
  17290. if test "${enable_video_x11_xinerama+set}" = set; then :
  17291. enableval=$enable_video_x11_xinerama;
  17292. else
  17293. enable_video_x11_xinerama=yes
  17294. fi
  17295. if test x$enable_video_x11_xinerama = xyes; then
  17296. definitely_enable_video_x11_xinerama=no
  17297. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17298. "
  17299. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17300. have_xinerama_h_hdr=yes
  17301. else
  17302. have_xinerama_h_hdr=no
  17303. fi
  17304. if test x$have_xinerama_h_hdr = xyes; then
  17305. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17306. echo "-- dynamic libXinerama -> $xinerama_lib"
  17307. cat >>confdefs.h <<_ACEOF
  17308. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17309. _ACEOF
  17310. definitely_enable_video_x11_xinerama=yes
  17311. else
  17312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17313. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17314. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17315. $as_echo_n "(cached) " >&6
  17316. else
  17317. ac_check_lib_save_LIBS=$LIBS
  17318. LIBS="-lXinerama $LIBS"
  17319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17320. /* end confdefs.h. */
  17321. /* Override any GCC internal prototype to avoid an error.
  17322. Use char because int might match the return type of a GCC
  17323. builtin and then its argument prototype would still apply. */
  17324. #ifdef __cplusplus
  17325. extern "C"
  17326. #endif
  17327. char XineramaQueryExtension ();
  17328. int
  17329. main ()
  17330. {
  17331. return XineramaQueryExtension ();
  17332. ;
  17333. return 0;
  17334. }
  17335. _ACEOF
  17336. if ac_fn_c_try_link "$LINENO"; then :
  17337. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17338. else
  17339. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17340. fi
  17341. rm -f core conftest.err conftest.$ac_objext \
  17342. conftest$ac_exeext conftest.$ac_ext
  17343. LIBS=$ac_check_lib_save_LIBS
  17344. fi
  17345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17346. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17347. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17348. have_xinerama_lib=yes
  17349. fi
  17350. if test x$have_xinerama_lib = xyes ; then
  17351. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17352. definitely_enable_video_x11_xinerama=yes
  17353. fi
  17354. fi
  17355. fi
  17356. fi
  17357. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17358. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17359. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17360. fi
  17361. # Check whether --enable-video-x11-xinput was given.
  17362. if test "${enable_video_x11_xinput+set}" = set; then :
  17363. enableval=$enable_video_x11_xinput;
  17364. else
  17365. enable_video_x11_xinput=yes
  17366. fi
  17367. if test x$enable_video_x11_xinput = xyes; then
  17368. definitely_enable_video_x11_xinput=no
  17369. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17370. "
  17371. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17372. have_xinput_h_hdr=yes
  17373. else
  17374. have_xinput_h_hdr=no
  17375. fi
  17376. if test x$have_xinput_h_hdr = xyes; then
  17377. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17378. echo "-- dynamic libXi -> $xinput_lib"
  17379. cat >>confdefs.h <<_ACEOF
  17380. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17381. _ACEOF
  17382. definitely_enable_video_x11_xinput=yes
  17383. else
  17384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17385. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17386. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17387. $as_echo_n "(cached) " >&6
  17388. else
  17389. ac_check_lib_save_LIBS=$LIBS
  17390. LIBS="-lXi $LIBS"
  17391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17392. /* end confdefs.h. */
  17393. /* Override any GCC internal prototype to avoid an error.
  17394. Use char because int might match the return type of a GCC
  17395. builtin and then its argument prototype would still apply. */
  17396. #ifdef __cplusplus
  17397. extern "C"
  17398. #endif
  17399. char XOpenDevice ();
  17400. int
  17401. main ()
  17402. {
  17403. return XOpenDevice ();
  17404. ;
  17405. return 0;
  17406. }
  17407. _ACEOF
  17408. if ac_fn_c_try_link "$LINENO"; then :
  17409. ac_cv_lib_Xi_XOpenDevice=yes
  17410. else
  17411. ac_cv_lib_Xi_XOpenDevice=no
  17412. fi
  17413. rm -f core conftest.err conftest.$ac_objext \
  17414. conftest$ac_exeext conftest.$ac_ext
  17415. LIBS=$ac_check_lib_save_LIBS
  17416. fi
  17417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17418. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17419. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17420. have_xinput_lib=yes
  17421. fi
  17422. if test x$have_xinput_lib = xyes ; then
  17423. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17424. definitely_enable_video_x11_xinput=yes
  17425. fi
  17426. fi
  17427. fi
  17428. fi
  17429. if test x$definitely_enable_video_x11_xinput = xyes; then
  17430. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17431. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17433. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17434. have_xinput2_multitouch=no
  17435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17436. /* end confdefs.h. */
  17437. #include <X11/Xlib.h>
  17438. #include <X11/Xproto.h>
  17439. #include <X11/extensions/XInput2.h>
  17440. int
  17441. main ()
  17442. {
  17443. int event_type = XI_TouchBegin;
  17444. XITouchClassInfo *t;
  17445. ;
  17446. return 0;
  17447. }
  17448. _ACEOF
  17449. if ac_fn_c_try_compile "$LINENO"; then :
  17450. have_xinput2_multitouch=yes
  17451. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17452. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17453. fi
  17454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17456. $as_echo "$have_xinput2_multitouch" >&6; }
  17457. fi
  17458. # Check whether --enable-video-x11-xrandr was given.
  17459. if test "${enable_video_x11_xrandr+set}" = set; then :
  17460. enableval=$enable_video_x11_xrandr;
  17461. else
  17462. enable_video_x11_xrandr=yes
  17463. fi
  17464. if test x$enable_video_x11_xrandr = xyes; then
  17465. definitely_enable_video_x11_xrandr=no
  17466. have_xrandr_h_hdr=no
  17467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17468. /* end confdefs.h. */
  17469. #include <X11/Xlib.h>
  17470. #include <X11/extensions/Xrandr.h>
  17471. int
  17472. main ()
  17473. {
  17474. XRRScreenResources *res = NULL;
  17475. ;
  17476. return 0;
  17477. }
  17478. _ACEOF
  17479. if ac_fn_c_try_compile "$LINENO"; then :
  17480. have_xrandr_h_hdr=yes
  17481. fi
  17482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17483. if test x$have_xrandr_h_hdr = xyes; then
  17484. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17485. echo "-- dynamic libXrandr -> $xrandr_lib"
  17486. cat >>confdefs.h <<_ACEOF
  17487. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17488. _ACEOF
  17489. definitely_enable_video_x11_xrandr=yes
  17490. else
  17491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17492. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17493. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17494. $as_echo_n "(cached) " >&6
  17495. else
  17496. ac_check_lib_save_LIBS=$LIBS
  17497. LIBS="-lXrandr $LIBS"
  17498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17499. /* end confdefs.h. */
  17500. /* Override any GCC internal prototype to avoid an error.
  17501. Use char because int might match the return type of a GCC
  17502. builtin and then its argument prototype would still apply. */
  17503. #ifdef __cplusplus
  17504. extern "C"
  17505. #endif
  17506. char XRRQueryExtension ();
  17507. int
  17508. main ()
  17509. {
  17510. return XRRQueryExtension ();
  17511. ;
  17512. return 0;
  17513. }
  17514. _ACEOF
  17515. if ac_fn_c_try_link "$LINENO"; then :
  17516. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17517. else
  17518. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17519. fi
  17520. rm -f core conftest.err conftest.$ac_objext \
  17521. conftest$ac_exeext conftest.$ac_ext
  17522. LIBS=$ac_check_lib_save_LIBS
  17523. fi
  17524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17525. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17526. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17527. have_xrandr_lib=yes
  17528. fi
  17529. if test x$have_xrandr_lib = xyes ; then
  17530. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17531. definitely_enable_video_x11_xrandr=yes
  17532. fi
  17533. fi
  17534. fi
  17535. fi
  17536. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17537. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17538. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17539. fi
  17540. # Check whether --enable-video-x11-scrnsaver was given.
  17541. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17542. enableval=$enable_video_x11_scrnsaver;
  17543. else
  17544. enable_video_x11_scrnsaver=yes
  17545. fi
  17546. if test x$enable_video_x11_scrnsaver = xyes; then
  17547. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17548. "
  17549. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17550. have_scrnsaver_h_hdr=yes
  17551. else
  17552. have_scrnsaver_h_hdr=no
  17553. fi
  17554. if test x$have_scrnsaver_h_hdr = xyes; then
  17555. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17556. echo "-- dynamic libXss -> $xss_lib"
  17557. cat >>confdefs.h <<_ACEOF
  17558. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17559. _ACEOF
  17560. definitely_enable_video_x11_scrnsaver=yes
  17561. else
  17562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17563. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17564. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17565. $as_echo_n "(cached) " >&6
  17566. else
  17567. ac_check_lib_save_LIBS=$LIBS
  17568. LIBS="-lXss $LIBS"
  17569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17570. /* end confdefs.h. */
  17571. /* Override any GCC internal prototype to avoid an error.
  17572. Use char because int might match the return type of a GCC
  17573. builtin and then its argument prototype would still apply. */
  17574. #ifdef __cplusplus
  17575. extern "C"
  17576. #endif
  17577. char XScreenSaverSuspend ();
  17578. int
  17579. main ()
  17580. {
  17581. return XScreenSaverSuspend ();
  17582. ;
  17583. return 0;
  17584. }
  17585. _ACEOF
  17586. if ac_fn_c_try_link "$LINENO"; then :
  17587. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17588. else
  17589. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17590. fi
  17591. rm -f core conftest.err conftest.$ac_objext \
  17592. conftest$ac_exeext conftest.$ac_ext
  17593. LIBS=$ac_check_lib_save_LIBS
  17594. fi
  17595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17596. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17597. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17598. have_xss_lib=yes
  17599. fi
  17600. if test x$have_xss_lib = xyes ; then
  17601. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17602. definitely_enable_video_x11_scrnsaver=yes
  17603. fi
  17604. fi
  17605. fi
  17606. fi
  17607. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17608. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17609. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17610. fi
  17611. # Check whether --enable-video-x11-xshape was given.
  17612. if test "${enable_video_x11_xshape+set}" = set; then :
  17613. enableval=$enable_video_x11_xshape;
  17614. else
  17615. enable_video_x11_xshape=yes
  17616. fi
  17617. if test x$enable_video_x11_xshape = xyes; then
  17618. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17619. "
  17620. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17621. have_shape_h_hdr=yes
  17622. else
  17623. have_shape_h_hdr=no
  17624. fi
  17625. if test x$have_shape_h_hdr = xyes; then
  17626. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17627. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  17628. fi
  17629. fi
  17630. # Check whether --enable-video-x11-vm was given.
  17631. if test "${enable_video_x11_vm+set}" = set; then :
  17632. enableval=$enable_video_x11_vm;
  17633. else
  17634. enable_video_x11_vm=yes
  17635. fi
  17636. if test x$enable_video_x11_vm = xyes; then
  17637. definitely_enable_video_x11_vm=no
  17638. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17639. "
  17640. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17641. have_vm_h_hdr=yes
  17642. else
  17643. have_vm_h_hdr=no
  17644. fi
  17645. if test x$have_vm_h_hdr = xyes; then
  17646. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17647. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17648. cat >>confdefs.h <<_ACEOF
  17649. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17650. _ACEOF
  17651. definitely_enable_video_x11_vm=yes
  17652. else
  17653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17654. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17655. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17656. $as_echo_n "(cached) " >&6
  17657. else
  17658. ac_check_lib_save_LIBS=$LIBS
  17659. LIBS="-lXxf86vm $LIBS"
  17660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17661. /* end confdefs.h. */
  17662. /* Override any GCC internal prototype to avoid an error.
  17663. Use char because int might match the return type of a GCC
  17664. builtin and then its argument prototype would still apply. */
  17665. #ifdef __cplusplus
  17666. extern "C"
  17667. #endif
  17668. char XF86VidModeQueryVersion ();
  17669. int
  17670. main ()
  17671. {
  17672. return XF86VidModeQueryVersion ();
  17673. ;
  17674. return 0;
  17675. }
  17676. _ACEOF
  17677. if ac_fn_c_try_link "$LINENO"; then :
  17678. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17679. else
  17680. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17681. fi
  17682. rm -f core conftest.err conftest.$ac_objext \
  17683. conftest$ac_exeext conftest.$ac_ext
  17684. LIBS=$ac_check_lib_save_LIBS
  17685. fi
  17686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17687. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17688. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  17689. have_vm_lib=yes
  17690. fi
  17691. if test x$have_vm_lib = xyes ; then
  17692. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  17693. definitely_enable_video_x11_vm=yes
  17694. fi
  17695. fi
  17696. fi
  17697. fi
  17698. if test x$definitely_enable_video_x11_vm = xyes; then
  17699. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  17700. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  17701. fi
  17702. fi
  17703. fi
  17704. }
  17705. CheckVivanteVideo()
  17706. {
  17707. # Check whether --enable-video-vivante was given.
  17708. if test "${enable_video_vivante+set}" = set; then :
  17709. enableval=$enable_video_vivante;
  17710. else
  17711. enable_video_vivante=yes
  17712. fi
  17713. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  17714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  17715. $as_echo_n "checking for Vivante VDK API... " >&6; }
  17716. have_vivante_vdk=no
  17717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17718. /* end confdefs.h. */
  17719. #define LINUX
  17720. #define EGL_API_FB
  17721. #include <gc_vdk.h>
  17722. int
  17723. main ()
  17724. {
  17725. ;
  17726. return 0;
  17727. }
  17728. _ACEOF
  17729. if ac_fn_c_try_compile "$LINENO"; then :
  17730. have_vivante_vdk=yes
  17731. fi
  17732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  17734. $as_echo "$have_vivante_vdk" >&6; }
  17735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  17736. $as_echo_n "checking for Vivante FB API... " >&6; }
  17737. have_vivante_egl=no
  17738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17739. /* end confdefs.h. */
  17740. #define LINUX
  17741. #define EGL_API_FB
  17742. #include <EGL/eglvivante.h>
  17743. int
  17744. main ()
  17745. {
  17746. ;
  17747. return 0;
  17748. }
  17749. _ACEOF
  17750. if ac_fn_c_try_compile "$LINENO"; then :
  17751. have_vivante_egl=yes
  17752. fi
  17753. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  17755. $as_echo "$have_vivante_egl" >&6; }
  17756. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  17757. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  17758. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  17759. if test x$have_vivante_vdk = xyes; then
  17760. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  17761. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  17762. fi
  17763. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  17764. SUMMARY_video="${SUMMARY_video} vivante"
  17765. have_video=yes
  17766. fi
  17767. fi
  17768. }
  17769. CheckHaikuVideo()
  17770. {
  17771. if test x$enable_video = xyes; then
  17772. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  17773. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  17774. have_video=yes
  17775. SUMMARY_video="${SUMMARY_video} haiku"
  17776. fi
  17777. }
  17778. CheckCOCOA()
  17779. {
  17780. # Check whether --enable-video-cocoa was given.
  17781. if test "${enable_video_cocoa+set}" = set; then :
  17782. enableval=$enable_video_cocoa;
  17783. else
  17784. enable_video_cocoa=yes
  17785. fi
  17786. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  17787. save_CFLAGS="$CFLAGS"
  17788. CFLAGS="$CFLAGS -x objective-c"
  17789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  17790. $as_echo_n "checking for Cocoa framework... " >&6; }
  17791. have_cocoa=no
  17792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17793. /* end confdefs.h. */
  17794. #import <Cocoa/Cocoa.h>
  17795. int
  17796. main ()
  17797. {
  17798. ;
  17799. return 0;
  17800. }
  17801. _ACEOF
  17802. if ac_fn_c_try_compile "$LINENO"; then :
  17803. have_cocoa=yes
  17804. fi
  17805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  17807. $as_echo "$have_cocoa" >&6; }
  17808. CFLAGS="$save_CFLAGS"
  17809. if test x$have_cocoa = xyes; then
  17810. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  17811. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  17812. SUMMARY_video="${SUMMARY_video} cocoa"
  17813. have_video=yes
  17814. fi
  17815. fi
  17816. }
  17817. CheckDirectFB()
  17818. {
  17819. # Check whether --enable-video-directfb was given.
  17820. if test "${enable_video_directfb+set}" = set; then :
  17821. enableval=$enable_video_directfb;
  17822. else
  17823. enable_video_directfb=no
  17824. fi
  17825. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  17826. video_directfb=no
  17827. DIRECTFB_REQUIRED_VERSION=1.0.0
  17828. for ac_prog in directfb-config
  17829. do
  17830. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17831. set dummy $ac_prog; ac_word=$2
  17832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17833. $as_echo_n "checking for $ac_word... " >&6; }
  17834. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  17835. $as_echo_n "(cached) " >&6
  17836. else
  17837. case $DIRECTFBCONFIG in
  17838. [\\/]* | ?:[\\/]*)
  17839. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  17840. ;;
  17841. *)
  17842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17843. as_dummy="$prefix/bin:$PATH"
  17844. for as_dir in $as_dummy
  17845. do
  17846. IFS=$as_save_IFS
  17847. test -z "$as_dir" && as_dir=.
  17848. for ac_exec_ext in '' $ac_executable_extensions; do
  17849. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17850. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17851. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17852. break 2
  17853. fi
  17854. done
  17855. done
  17856. IFS=$as_save_IFS
  17857. ;;
  17858. esac
  17859. fi
  17860. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  17861. if test -n "$DIRECTFBCONFIG"; then
  17862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  17863. $as_echo "$DIRECTFBCONFIG" >&6; }
  17864. else
  17865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17866. $as_echo "no" >&6; }
  17867. fi
  17868. test -n "$DIRECTFBCONFIG" && break
  17869. done
  17870. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  17871. if test x$DIRECTFBCONFIG = xno; then
  17872. # Extract the first word of "pkg-config", so it can be a program name with args.
  17873. set dummy pkg-config; ac_word=$2
  17874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17875. $as_echo_n "checking for $ac_word... " >&6; }
  17876. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17877. $as_echo_n "(cached) " >&6
  17878. else
  17879. case $PKG_CONFIG in
  17880. [\\/]* | ?:[\\/]*)
  17881. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17882. ;;
  17883. *)
  17884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17885. for as_dir in $PATH
  17886. do
  17887. IFS=$as_save_IFS
  17888. test -z "$as_dir" && as_dir=.
  17889. for ac_exec_ext in '' $ac_executable_extensions; do
  17890. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17891. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17892. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17893. break 2
  17894. fi
  17895. done
  17896. done
  17897. IFS=$as_save_IFS
  17898. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  17899. ;;
  17900. esac
  17901. fi
  17902. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17903. if test -n "$PKG_CONFIG"; then
  17904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17905. $as_echo "$PKG_CONFIG" >&6; }
  17906. else
  17907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17908. $as_echo "no" >&6; }
  17909. fi
  17910. if test x$PKG_CONFIG != xno; then
  17911. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  17912. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  17913. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  17914. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  17915. video_directfb=yes
  17916. fi
  17917. fi
  17918. else
  17919. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  17920. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17921. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  17922. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  17923. if test $HAVE_VERSION -ge $NEED_VERSION; then
  17924. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  17925. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  17926. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  17927. video_directfb=yes
  17928. fi
  17929. fi
  17930. if test x$video_directfb = xyes; then
  17931. # SuSE 11.1 installs directfb-config without directfb-devel
  17932. save_CPPFLAGS="$CPPFLAGS"
  17933. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  17934. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  17935. if test "x$ac_cv_header_directfb_h" = xyes; then :
  17936. have_directfb_hdr=yes
  17937. else
  17938. have_directfb_hdr=no
  17939. fi
  17940. CPPFLAGS="$save_CPPFLAGS"
  17941. video_directfb=$have_directfb_hdr
  17942. fi
  17943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  17944. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  17945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  17946. $as_echo "$video_directfb" >&6; }
  17947. if test x$video_directfb = xyes; then
  17948. # Check whether --enable-directfb-shared was given.
  17949. if test "${enable_directfb_shared+set}" = set; then :
  17950. enableval=$enable_directfb_shared;
  17951. else
  17952. enable_directfb_shared=yes
  17953. fi
  17954. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  17955. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  17956. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  17957. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  17958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  17959. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  17960. directfb_shared=no
  17961. directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  17962. # | sed 's/.*\/\(.*\)/\1/; q'`]
  17963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  17964. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  17965. if test x$have_loadso != xyes && \
  17966. test x$enable_directfb_shared = xyes; then
  17967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  17968. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  17969. fi
  17970. if test x$have_loadso = xyes && \
  17971. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  17972. directfb_shared=yes
  17973. echo "-- $directfb_lib_spec -> $directfb_lib"
  17974. cat >>confdefs.h <<_ACEOF
  17975. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  17976. _ACEOF
  17977. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  17978. else
  17979. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  17980. SUMMARY_video="${SUMMARY_video} directfb"
  17981. fi
  17982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  17983. $as_echo "$directfb_shared" >&6; }
  17984. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  17985. have_video=yes
  17986. fi
  17987. fi
  17988. }
  17989. CheckFusionSound()
  17990. {
  17991. # Check whether --enable-fusionsound was given.
  17992. if test "${enable_fusionsound+set}" = set; then :
  17993. enableval=$enable_fusionsound;
  17994. else
  17995. enable_fusionsound=no
  17996. fi
  17997. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17998. fusionsound=no
  17999. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  18000. # Extract the first word of "pkg-config", so it can be a program name with args.
  18001. set dummy pkg-config; ac_word=$2
  18002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18003. $as_echo_n "checking for $ac_word... " >&6; }
  18004. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18005. $as_echo_n "(cached) " >&6
  18006. else
  18007. case $PKG_CONFIG in
  18008. [\\/]* | ?:[\\/]*)
  18009. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18010. ;;
  18011. *)
  18012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18013. for as_dir in $PATH
  18014. do
  18015. IFS=$as_save_IFS
  18016. test -z "$as_dir" && as_dir=.
  18017. for ac_exec_ext in '' $ac_executable_extensions; do
  18018. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18019. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18020. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18021. break 2
  18022. fi
  18023. done
  18024. done
  18025. IFS=$as_save_IFS
  18026. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18027. ;;
  18028. esac
  18029. fi
  18030. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18031. if test -n "$PKG_CONFIG"; then
  18032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18033. $as_echo "$PKG_CONFIG" >&6; }
  18034. else
  18035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18036. $as_echo "no" >&6; }
  18037. fi
  18038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  18039. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  18040. if test x$PKG_CONFIG != xno; then
  18041. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  18042. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  18043. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  18044. fusionsound=yes
  18045. fi
  18046. fi
  18047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  18048. $as_echo "$fusionsound" >&6; }
  18049. if test x$fusionsound = xyes; then
  18050. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  18051. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  18052. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  18053. # Check whether --enable-fusionsound-shared was given.
  18054. if test "${enable_fusionsound_shared+set}" = set; then :
  18055. enableval=$enable_fusionsound_shared;
  18056. else
  18057. enable_fusionsound_shared=yes
  18058. fi
  18059. fusionsound_shared=no
  18060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  18061. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  18062. if test x$have_loadso != xyes && \
  18063. test x$enable_fusionsound_shared = xyes; then
  18064. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  18065. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  18066. fi
  18067. if test x$have_loadso = xyes && \
  18068. test x$enable_fusionsound_shared = xyes; then
  18069. cat >>confdefs.h <<_ACEOF
  18070. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  18071. _ACEOF
  18072. fusionsound_shared=yes
  18073. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  18074. else
  18075. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  18076. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  18077. fi
  18078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  18079. $as_echo "$fusionsound_shared" >&6; }
  18080. have_audio=yes
  18081. fi
  18082. fi
  18083. }
  18084. CheckDummyVideo()
  18085. {
  18086. # Check whether --enable-video-dummy was given.
  18087. if test "${enable_video_dummy+set}" = set; then :
  18088. enableval=$enable_video_dummy;
  18089. else
  18090. enable_video_dummy=yes
  18091. fi
  18092. if test x$enable_video_dummy = xyes; then
  18093. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18094. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18095. have_video=yes
  18096. SUMMARY_video="${SUMMARY_video} dummy"
  18097. fi
  18098. }
  18099. # Check whether --enable-video-opengl was given.
  18100. if test "${enable_video_opengl+set}" = set; then :
  18101. enableval=$enable_video_opengl;
  18102. else
  18103. enable_video_opengl=yes
  18104. fi
  18105. CheckOpenGLX11()
  18106. {
  18107. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18109. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18110. video_opengl=no
  18111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18112. /* end confdefs.h. */
  18113. #include <GL/gl.h>
  18114. #include <GL/glx.h>
  18115. int
  18116. main ()
  18117. {
  18118. ;
  18119. return 0;
  18120. }
  18121. _ACEOF
  18122. if ac_fn_c_try_compile "$LINENO"; then :
  18123. video_opengl=yes
  18124. fi
  18125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18127. $as_echo "$video_opengl" >&6; }
  18128. if test x$video_opengl = xyes; then
  18129. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18130. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18131. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18132. SUMMARY_video="${SUMMARY_video} opengl"
  18133. fi
  18134. fi
  18135. }
  18136. # Check whether --enable-video-opengles was given.
  18137. if test "${enable_video_opengles+set}" = set; then :
  18138. enableval=$enable_video_opengles;
  18139. else
  18140. enable_video_opengles=yes
  18141. fi
  18142. # Check whether --enable-video-opengles1 was given.
  18143. if test "${enable_video_opengles1+set}" = set; then :
  18144. enableval=$enable_video_opengles1;
  18145. else
  18146. enable_video_opengles1=yes
  18147. fi
  18148. # Check whether --enable-video-opengles2 was given.
  18149. if test "${enable_video_opengles2+set}" = set; then :
  18150. enableval=$enable_video_opengles2;
  18151. else
  18152. enable_video_opengles2=yes
  18153. fi
  18154. CheckOpenGLESX11()
  18155. {
  18156. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18158. $as_echo_n "checking for EGL support... " >&6; }
  18159. video_opengl_egl=no
  18160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18161. /* end confdefs.h. */
  18162. #define LINUX
  18163. #define EGL_API_FB
  18164. #include <EGL/egl.h>
  18165. #include <EGL/eglext.h>
  18166. int
  18167. main ()
  18168. {
  18169. ;
  18170. return 0;
  18171. }
  18172. _ACEOF
  18173. if ac_fn_c_try_compile "$LINENO"; then :
  18174. video_opengl_egl=yes
  18175. fi
  18176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18178. $as_echo "$video_opengl_egl" >&6; }
  18179. if test x$video_opengl_egl = xyes; then
  18180. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18181. fi
  18182. if test x$enable_video_opengles1 = xyes; then
  18183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18184. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18185. video_opengles_v1=no
  18186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18187. /* end confdefs.h. */
  18188. #include <GLES/gl.h>
  18189. #include <GLES/glext.h>
  18190. int
  18191. main ()
  18192. {
  18193. ;
  18194. return 0;
  18195. }
  18196. _ACEOF
  18197. if ac_fn_c_try_compile "$LINENO"; then :
  18198. video_opengles_v1=yes
  18199. fi
  18200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18202. $as_echo "$video_opengles_v1" >&6; }
  18203. if test x$video_opengles_v1 = xyes; then
  18204. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18205. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18206. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18207. fi
  18208. fi
  18209. if test x$enable_video_opengles2 = xyes; then
  18210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18211. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18212. video_opengles_v2=no
  18213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18214. /* end confdefs.h. */
  18215. #include <GLES2/gl2.h>
  18216. #include <GLES2/gl2ext.h>
  18217. int
  18218. main ()
  18219. {
  18220. ;
  18221. return 0;
  18222. }
  18223. _ACEOF
  18224. if ac_fn_c_try_compile "$LINENO"; then :
  18225. video_opengles_v2=yes
  18226. fi
  18227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18229. $as_echo "$video_opengles_v2" >&6; }
  18230. if test x$video_opengles_v2 = xyes; then
  18231. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18232. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18233. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18234. fi
  18235. fi
  18236. fi
  18237. }
  18238. CheckWINDOWSGL()
  18239. {
  18240. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18241. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18242. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18243. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18244. SUMMARY_video="${SUMMARY_video} opengl"
  18245. fi
  18246. }
  18247. CheckWINDOWSGLES()
  18248. {
  18249. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18251. $as_echo_n "checking for EGL support... " >&6; }
  18252. video_opengl_egl=no
  18253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18254. /* end confdefs.h. */
  18255. #include <EGL/egl.h>
  18256. int
  18257. main ()
  18258. {
  18259. ;
  18260. return 0;
  18261. }
  18262. _ACEOF
  18263. if ac_fn_c_try_compile "$LINENO"; then :
  18264. video_opengl_egl=yes
  18265. fi
  18266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18268. $as_echo "$video_opengl_egl" >&6; }
  18269. if test x$video_opengl_egl = xyes; then
  18270. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18271. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18272. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18273. fi
  18274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18275. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18276. video_opengles_v2=no
  18277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18278. /* end confdefs.h. */
  18279. #include <GLES2/gl2.h>
  18280. #include <GLES2/gl2ext.h>
  18281. int
  18282. main ()
  18283. {
  18284. ;
  18285. return 0;
  18286. }
  18287. _ACEOF
  18288. if ac_fn_c_try_compile "$LINENO"; then :
  18289. video_opengles_v2=yes
  18290. fi
  18291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18293. $as_echo "$video_opengles_v2" >&6; }
  18294. if test x$video_opengles_v2 = xyes; then
  18295. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18296. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18297. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18298. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18299. fi
  18300. fi
  18301. }
  18302. CheckHaikuGL()
  18303. {
  18304. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18305. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18306. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18307. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18308. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18309. SUMMARY_video="${SUMMARY_video} opengl"
  18310. fi
  18311. }
  18312. CheckMacGL()
  18313. {
  18314. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18315. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18316. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18317. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18318. SUMMARY_video="${SUMMARY_video} opengl"
  18319. fi
  18320. }
  18321. CheckEmscriptenGLES()
  18322. {
  18323. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18325. $as_echo_n "checking for EGL support... " >&6; }
  18326. video_opengl_egl=no
  18327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18328. /* end confdefs.h. */
  18329. #include <EGL/egl.h>
  18330. int
  18331. main ()
  18332. {
  18333. ;
  18334. return 0;
  18335. }
  18336. _ACEOF
  18337. if ac_fn_c_try_compile "$LINENO"; then :
  18338. video_opengl_egl=yes
  18339. fi
  18340. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18342. $as_echo "$video_opengl_egl" >&6; }
  18343. if test x$video_opengl_egl = xyes; then
  18344. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18345. fi
  18346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18347. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18348. video_opengles_v2=no
  18349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18350. /* end confdefs.h. */
  18351. #include <GLES2/gl2.h>
  18352. #include <GLES2/gl2ext.h>
  18353. int
  18354. main ()
  18355. {
  18356. ;
  18357. return 0;
  18358. }
  18359. _ACEOF
  18360. if ac_fn_c_try_compile "$LINENO"; then :
  18361. video_opengles_v2=yes
  18362. fi
  18363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18365. $as_echo "$video_opengles_v2" >&6; }
  18366. if test x$video_opengles_v2 = xyes; then
  18367. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18368. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18369. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18370. fi
  18371. fi
  18372. }
  18373. CheckInputEvents()
  18374. {
  18375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18376. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18377. use_input_events=no
  18378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18379. /* end confdefs.h. */
  18380. #include <linux/input.h>
  18381. int
  18382. main ()
  18383. {
  18384. #ifndef EVIOCGNAME
  18385. #error EVIOCGNAME() ioctl not available
  18386. #endif
  18387. ;
  18388. return 0;
  18389. }
  18390. _ACEOF
  18391. if ac_fn_c_try_compile "$LINENO"; then :
  18392. use_input_events=yes
  18393. fi
  18394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18396. $as_echo "$use_input_events" >&6; }
  18397. if test x$use_input_events = xyes; then
  18398. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18399. SUMMARY_input="${SUMMARY_input} linuxev"
  18400. fi
  18401. }
  18402. CheckInputKD()
  18403. {
  18404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18405. $as_echo_n "checking for Linux kd.h... " >&6; }
  18406. use_input_kd=no
  18407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18408. /* end confdefs.h. */
  18409. #include <linux/kd.h>
  18410. #include <linux/keyboard.h>
  18411. int
  18412. main ()
  18413. {
  18414. struct kbentry kbe;
  18415. kbe.kb_table = KG_CTRL;
  18416. ioctl(0, KDGKBENT, &kbe);
  18417. ;
  18418. return 0;
  18419. }
  18420. _ACEOF
  18421. if ac_fn_c_try_compile "$LINENO"; then :
  18422. use_input_kd=yes
  18423. fi
  18424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18426. $as_echo "$use_input_kd" >&6; }
  18427. if test x$use_input_kd = xyes; then
  18428. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18429. SUMMARY_input="${SUMMARY_input} linuxkd"
  18430. fi
  18431. }
  18432. CheckLibUDev()
  18433. {
  18434. # Check whether --enable-libudev was given.
  18435. if test "${enable_libudev+set}" = set; then :
  18436. enableval=$enable_libudev;
  18437. else
  18438. enable_libudev=yes
  18439. fi
  18440. if test x$enable_libudev = xyes; then
  18441. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18442. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18443. have_libudev_h_hdr=yes
  18444. else
  18445. have_libudev_h_hdr=no
  18446. fi
  18447. if test x$have_libudev_h_hdr = xyes; then
  18448. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18449. fi
  18450. fi
  18451. }
  18452. CheckDBus()
  18453. {
  18454. # Check whether --enable-dbus was given.
  18455. if test "${enable_dbus+set}" = set; then :
  18456. enableval=$enable_dbus;
  18457. else
  18458. enable_dbus=yes
  18459. fi
  18460. if test x$enable_dbus = xyes; then
  18461. # Extract the first word of "pkg-config", so it can be a program name with args.
  18462. set dummy pkg-config; ac_word=$2
  18463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18464. $as_echo_n "checking for $ac_word... " >&6; }
  18465. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18466. $as_echo_n "(cached) " >&6
  18467. else
  18468. case $PKG_CONFIG in
  18469. [\\/]* | ?:[\\/]*)
  18470. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18471. ;;
  18472. *)
  18473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18474. for as_dir in $PATH
  18475. do
  18476. IFS=$as_save_IFS
  18477. test -z "$as_dir" && as_dir=.
  18478. for ac_exec_ext in '' $ac_executable_extensions; do
  18479. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18480. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18481. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18482. break 2
  18483. fi
  18484. done
  18485. done
  18486. IFS=$as_save_IFS
  18487. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18488. ;;
  18489. esac
  18490. fi
  18491. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18492. if test -n "$PKG_CONFIG"; then
  18493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18494. $as_echo "$PKG_CONFIG" >&6; }
  18495. else
  18496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18497. $as_echo "no" >&6; }
  18498. fi
  18499. if test x$PKG_CONFIG != xno; then
  18500. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18501. save_CFLAGS="$CFLAGS"
  18502. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18503. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18504. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18505. have_dbus_dbus_h_hdr=yes
  18506. else
  18507. have_dbus_dbus_h_hdr=no
  18508. fi
  18509. CFLAGS="$save_CFLAGS"
  18510. if test x$have_dbus_dbus_h_hdr = xyes; then
  18511. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18512. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18513. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  18514. fi
  18515. fi
  18516. fi
  18517. }
  18518. CheckIBus()
  18519. {
  18520. # Check whether --enable-ibus was given.
  18521. if test "${enable_ibus+set}" = set; then :
  18522. enableval=$enable_ibus;
  18523. else
  18524. enable_ibus=yes
  18525. fi
  18526. if test x$enable_ibus = xyes; then
  18527. # Extract the first word of "pkg-config", so it can be a program name with args.
  18528. set dummy pkg-config; ac_word=$2
  18529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18530. $as_echo_n "checking for $ac_word... " >&6; }
  18531. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18532. $as_echo_n "(cached) " >&6
  18533. else
  18534. case $PKG_CONFIG in
  18535. [\\/]* | ?:[\\/]*)
  18536. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18537. ;;
  18538. *)
  18539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18540. for as_dir in $PATH
  18541. do
  18542. IFS=$as_save_IFS
  18543. test -z "$as_dir" && as_dir=.
  18544. for ac_exec_ext in '' $ac_executable_extensions; do
  18545. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18546. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18547. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18548. break 2
  18549. fi
  18550. done
  18551. done
  18552. IFS=$as_save_IFS
  18553. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18554. ;;
  18555. esac
  18556. fi
  18557. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18558. if test -n "$PKG_CONFIG"; then
  18559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18560. $as_echo "$PKG_CONFIG" >&6; }
  18561. else
  18562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18563. $as_echo "no" >&6; }
  18564. fi
  18565. if test x$PKG_CONFIG != xno; then
  18566. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  18567. save_CFLAGS="$CFLAGS"
  18568. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  18569. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  18570. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  18571. have_ibus_ibus_h_hdr=yes
  18572. else
  18573. have_ibus_ibus_h_hdr=no
  18574. fi
  18575. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  18576. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  18577. have_inotify_inotify_h_hdr=yes
  18578. else
  18579. have_inotify_inotify_h_hdr=no
  18580. fi
  18581. CFLAGS="$save_CFLAGS"
  18582. if test x$have_ibus_ibus_h_hdr = xyes; then
  18583. if test x$enable_dbus != xyes; then
  18584. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  18585. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  18586. have_ibus_ibus_h_hdr=no
  18587. elif test x$have_inotify_inotify_h_hdr != xyes; then
  18588. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  18589. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  18590. have_ibus_ibus_h_hdr=no
  18591. else
  18592. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  18593. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  18594. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  18595. fi
  18596. fi
  18597. fi
  18598. fi
  18599. }
  18600. CheckTslib()
  18601. {
  18602. # Check whether --enable-input-tslib was given.
  18603. if test "${enable_input_tslib+set}" = set; then :
  18604. enableval=$enable_input_tslib;
  18605. else
  18606. enable_input_tslib=yes
  18607. fi
  18608. if test x$enable_input_tslib = xyes; then
  18609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  18610. $as_echo_n "checking for Touchscreen library support... " >&6; }
  18611. enable_input_tslib=no
  18612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18613. /* end confdefs.h. */
  18614. #include "tslib.h"
  18615. int
  18616. main ()
  18617. {
  18618. ;
  18619. return 0;
  18620. }
  18621. _ACEOF
  18622. if ac_fn_c_try_compile "$LINENO"; then :
  18623. enable_input_tslib=yes
  18624. fi
  18625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  18627. $as_echo "$enable_input_tslib" >&6; }
  18628. if test x$enable_input_tslib = xyes; then
  18629. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  18630. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  18631. SUMMARY_input="${SUMMARY_input} ts"
  18632. fi
  18633. fi
  18634. }
  18635. CheckPTHREAD()
  18636. {
  18637. # Check whether --enable-pthreads was given.
  18638. if test "${enable_pthreads+set}" = set; then :
  18639. enableval=$enable_pthreads;
  18640. else
  18641. enable_pthreads=yes
  18642. fi
  18643. # Check whether --enable-pthread-sem was given.
  18644. if test "${enable_pthread_sem+set}" = set; then :
  18645. enableval=$enable_pthread_sem;
  18646. else
  18647. enable_pthread_sem=yes
  18648. fi
  18649. case "$host" in
  18650. *-*-androideabi*)
  18651. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18652. pthread_lib=""
  18653. ;;
  18654. *-*-linux*|*-*-uclinux*)
  18655. pthread_cflags="-D_REENTRANT"
  18656. pthread_lib="-lpthread"
  18657. ;;
  18658. *-*-bsdi*)
  18659. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18660. pthread_lib=""
  18661. ;;
  18662. *-*-darwin*)
  18663. pthread_cflags="-D_THREAD_SAFE"
  18664. # causes Carbon.p complaints?
  18665. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18666. ;;
  18667. *-*-freebsd*|*-*-dragonfly*)
  18668. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18669. pthread_lib="-pthread"
  18670. ;;
  18671. *-*-netbsd*)
  18672. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18673. pthread_lib="-lpthread"
  18674. ;;
  18675. *-*-openbsd*)
  18676. pthread_cflags="-D_REENTRANT"
  18677. pthread_lib="-pthread"
  18678. ;;
  18679. *-*-solaris2.9)
  18680. # From Solaris 9+, posix4's preferred name is rt.
  18681. pthread_cflags="-D_REENTRANT"
  18682. pthread_lib="-lpthread -lrt"
  18683. ;;
  18684. *-*-solaris2.10)
  18685. # Solaris 10+ merged pthread into libc.
  18686. pthread_cflags="-D_REENTRANT"
  18687. pthread_lib="-lrt"
  18688. ;;
  18689. *-*-solaris*)
  18690. # Solaris 11+ merged rt into libc.
  18691. pthread_cflags="-D_REENTRANT"
  18692. pthread_lib=""
  18693. ;;
  18694. *-*-sysv5*)
  18695. pthread_cflags="-D_REENTRANT -Kthread"
  18696. pthread_lib=""
  18697. ;;
  18698. *-*-aix*)
  18699. pthread_cflags="-D_REENTRANT -mthreads"
  18700. pthread_lib="-lpthread"
  18701. ;;
  18702. *-*-hpux11*)
  18703. pthread_cflags="-D_REENTRANT"
  18704. pthread_lib="-L/usr/lib -lpthread"
  18705. ;;
  18706. *-*-haiku*)
  18707. pthread_cflags="-D_REENTRANT"
  18708. pthread_lib=""
  18709. ;;
  18710. *)
  18711. pthread_cflags="-D_REENTRANT"
  18712. pthread_lib="-lpthread"
  18713. ;;
  18714. esac
  18715. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  18716. # Save the original compiler flags and libraries
  18717. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18718. # Add the pthread compiler flags and libraries
  18719. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18720. # Check to see if we have pthread support on this system
  18721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  18722. $as_echo_n "checking for pthreads... " >&6; }
  18723. use_pthreads=no
  18724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18725. /* end confdefs.h. */
  18726. #include <pthread.h>
  18727. int
  18728. main ()
  18729. {
  18730. pthread_attr_t type;
  18731. pthread_attr_init(&type);
  18732. ;
  18733. return 0;
  18734. }
  18735. _ACEOF
  18736. if ac_fn_c_try_link "$LINENO"; then :
  18737. use_pthreads=yes
  18738. fi
  18739. rm -f core conftest.err conftest.$ac_objext \
  18740. conftest$ac_exeext conftest.$ac_ext
  18741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  18742. $as_echo "$use_pthreads" >&6; }
  18743. # Restore the compiler flags and libraries
  18744. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18745. # Do futher testing if we have pthread support...
  18746. if test x$use_pthreads = xyes; then
  18747. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  18748. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  18749. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  18750. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  18751. # Save the original compiler flags and libraries
  18752. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18753. # Add the pthread compiler flags and libraries
  18754. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18755. # Check to see if recursive mutexes are available
  18756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  18757. $as_echo_n "checking for recursive mutexes... " >&6; }
  18758. has_recursive_mutexes=no
  18759. if test x$has_recursive_mutexes = xno; then
  18760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18761. /* end confdefs.h. */
  18762. #define _GNU_SOURCE 1
  18763. #include <pthread.h>
  18764. int
  18765. main ()
  18766. {
  18767. pthread_mutexattr_t attr;
  18768. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  18769. ;
  18770. return 0;
  18771. }
  18772. _ACEOF
  18773. if ac_fn_c_try_link "$LINENO"; then :
  18774. has_recursive_mutexes=yes
  18775. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  18776. fi
  18777. rm -f core conftest.err conftest.$ac_objext \
  18778. conftest$ac_exeext conftest.$ac_ext
  18779. fi
  18780. if test x$has_recursive_mutexes = xno; then
  18781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18782. /* end confdefs.h. */
  18783. #define _GNU_SOURCE 1
  18784. #include <pthread.h>
  18785. int
  18786. main ()
  18787. {
  18788. pthread_mutexattr_t attr;
  18789. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  18790. ;
  18791. return 0;
  18792. }
  18793. _ACEOF
  18794. if ac_fn_c_try_link "$LINENO"; then :
  18795. has_recursive_mutexes=yes
  18796. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  18797. fi
  18798. rm -f core conftest.err conftest.$ac_objext \
  18799. conftest$ac_exeext conftest.$ac_ext
  18800. fi
  18801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  18802. $as_echo "$has_recursive_mutexes" >&6; }
  18803. # Check to see if pthread semaphore support is missing
  18804. if test x$enable_pthread_sem = xyes; then
  18805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  18806. $as_echo_n "checking for pthread semaphores... " >&6; }
  18807. have_pthread_sem=no
  18808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18809. /* end confdefs.h. */
  18810. #include <pthread.h>
  18811. #include <semaphore.h>
  18812. int
  18813. main ()
  18814. {
  18815. ;
  18816. return 0;
  18817. }
  18818. _ACEOF
  18819. if ac_fn_c_try_compile "$LINENO"; then :
  18820. have_pthread_sem=yes
  18821. fi
  18822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  18824. $as_echo "$have_pthread_sem" >&6; }
  18825. fi
  18826. if test x$have_pthread_sem = xyes; then
  18827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  18828. $as_echo_n "checking for sem_timedwait... " >&6; }
  18829. have_sem_timedwait=no
  18830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18831. /* end confdefs.h. */
  18832. #include <pthread.h>
  18833. #include <semaphore.h>
  18834. int
  18835. main ()
  18836. {
  18837. sem_timedwait(NULL, NULL);
  18838. ;
  18839. return 0;
  18840. }
  18841. _ACEOF
  18842. if ac_fn_c_try_link "$LINENO"; then :
  18843. have_sem_timedwait=yes
  18844. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  18845. fi
  18846. rm -f core conftest.err conftest.$ac_objext \
  18847. conftest$ac_exeext conftest.$ac_ext
  18848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  18849. $as_echo "$have_sem_timedwait" >&6; }
  18850. fi
  18851. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  18852. "
  18853. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  18854. have_pthread_np_h=yes
  18855. else
  18856. have_pthread_np_h=no
  18857. fi
  18858. if test x$have_pthread_np_h = xyes; then
  18859. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  18860. fi
  18861. # Check to see if pthread naming is available
  18862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  18863. $as_echo_n "checking for pthread_setname_np... " >&6; }
  18864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18865. /* end confdefs.h. */
  18866. /* Override any GCC internal prototype to avoid an error.
  18867. Use char because int might match the return type of a GCC
  18868. builtin and then its argument prototype would still apply. */
  18869. #ifdef __cplusplus
  18870. extern "C"
  18871. #endif
  18872. char pthread_setname_np ();
  18873. int
  18874. main ()
  18875. {
  18876. return pthread_setname_np ();
  18877. ;
  18878. return 0;
  18879. }
  18880. _ACEOF
  18881. if ac_fn_c_try_link "$LINENO"; then :
  18882. has_pthread_setname_np=yes
  18883. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  18884. else
  18885. has_pthread_setname_np=no
  18886. fi
  18887. rm -f core conftest.err conftest.$ac_objext \
  18888. conftest$ac_exeext conftest.$ac_ext
  18889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  18890. $as_echo "$has_pthread_setname_np" >&6; }
  18891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  18892. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  18893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18894. /* end confdefs.h. */
  18895. /* Override any GCC internal prototype to avoid an error.
  18896. Use char because int might match the return type of a GCC
  18897. builtin and then its argument prototype would still apply. */
  18898. #ifdef __cplusplus
  18899. extern "C"
  18900. #endif
  18901. char pthread_set_name_np ();
  18902. int
  18903. main ()
  18904. {
  18905. return pthread_set_name_np ();
  18906. ;
  18907. return 0;
  18908. }
  18909. _ACEOF
  18910. if ac_fn_c_try_link "$LINENO"; then :
  18911. has_pthread_set_name_np=yes
  18912. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  18913. else
  18914. has_pthread_set_name_np=no
  18915. fi
  18916. rm -f core conftest.err conftest.$ac_objext \
  18917. conftest$ac_exeext conftest.$ac_ext
  18918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  18919. $as_echo "$has_pthread_set_name_np" >&6; }
  18920. # Restore the compiler flags and libraries
  18921. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18922. # Basic thread creation functions
  18923. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  18924. # Semaphores
  18925. # We can fake these with mutexes and condition variables if necessary
  18926. if test x$have_pthread_sem = xyes; then
  18927. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  18928. else
  18929. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  18930. fi
  18931. # Mutexes
  18932. # We can fake these with semaphores if necessary
  18933. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  18934. # Condition variables
  18935. # We can fake these with semaphores and mutexes if necessary
  18936. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  18937. # Thread local storage
  18938. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  18939. have_threads=yes
  18940. fi
  18941. fi
  18942. }
  18943. CheckWINDOWS()
  18944. {
  18945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  18946. $as_echo_n "checking Windows compiler... " >&6; }
  18947. have_win32_gcc=no
  18948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18949. /* end confdefs.h. */
  18950. #include <windows.h>
  18951. int
  18952. main ()
  18953. {
  18954. ;
  18955. return 0;
  18956. }
  18957. _ACEOF
  18958. if ac_fn_c_try_compile "$LINENO"; then :
  18959. have_win32_gcc=yes
  18960. fi
  18961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  18963. $as_echo "$have_win32_gcc" >&6; }
  18964. if test x$have_win32_gcc != xyes; then
  18965. as_fn_error $? "
  18966. *** Your compiler ($CC) does not produce Windows executables!
  18967. " "$LINENO" 5
  18968. fi
  18969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  18970. $as_echo_n "checking Windows CE... " >&6; }
  18971. have_wince=no
  18972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18973. /* end confdefs.h. */
  18974. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  18975. #error This is not Windows CE
  18976. #endif
  18977. int
  18978. main ()
  18979. {
  18980. ;
  18981. return 0;
  18982. }
  18983. _ACEOF
  18984. if ac_fn_c_try_compile "$LINENO"; then :
  18985. have_wince=yes
  18986. as_fn_error $? "
  18987. *** Sorry, Windows CE is no longer supported.
  18988. " "$LINENO" 5
  18989. fi
  18990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  18992. $as_echo "$have_wince" >&6; }
  18993. # This fixes Windows stack alignment with newer GCC
  18994. CheckStackBoundary
  18995. }
  18996. CheckDIRECTX()
  18997. {
  18998. # Check whether --enable-directx was given.
  18999. if test "${enable_directx+set}" = set; then :
  19000. enableval=$enable_directx;
  19001. else
  19002. enable_directx=yes
  19003. fi
  19004. if test x$enable_directx = xyes; then
  19005. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19006. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19007. have_d3d=yes
  19008. fi
  19009. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19010. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19011. have_d3d11=yes
  19012. fi
  19013. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19014. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19015. have_ddraw=yes
  19016. fi
  19017. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19018. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19019. have_dsound=yes
  19020. fi
  19021. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19022. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19023. have_dinput=yes
  19024. fi
  19025. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19026. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19027. have_dxgi=yes
  19028. fi
  19029. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  19030. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  19031. have_xaudio2=yes
  19032. fi
  19033. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19034. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19035. have_xinput=yes
  19036. fi
  19037. if test x$have_ddraw = xyes; then
  19038. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19039. fi
  19040. if test x$have_dinput = xyes; then
  19041. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19042. fi
  19043. if test x$have_dsound = xyes; then
  19044. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19045. fi
  19046. if test x$have_dxgi = xyes; then
  19047. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19048. fi
  19049. if test x$have_xinput = xyes; then
  19050. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19051. fi
  19052. SUMMARY_video="${SUMMARY_video} directx"
  19053. SUMMARY_audio="${SUMMARY_audio} directx"
  19054. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19055. # FIXME: ...so force it off for now.
  19056. case "$host" in
  19057. *-*-cygwin*)
  19058. have_dinput=false
  19059. ;;
  19060. esac
  19061. fi
  19062. }
  19063. CheckDLOPEN()
  19064. {
  19065. # Check whether --enable-sdl-dlopen was given.
  19066. if test "${enable_sdl_dlopen+set}" = set; then :
  19067. enableval=$enable_sdl_dlopen;
  19068. else
  19069. enable_sdl_dlopen=yes
  19070. fi
  19071. if test x$enable_sdl_dlopen = xyes; then
  19072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19073. $as_echo_n "checking for dlopen... " >&6; }
  19074. have_dlopen=no
  19075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19076. /* end confdefs.h. */
  19077. #include <dlfcn.h>
  19078. int
  19079. main ()
  19080. {
  19081. void *handle = dlopen("", RTLD_NOW);
  19082. const char *loaderror = (char *) dlerror();
  19083. ;
  19084. return 0;
  19085. }
  19086. _ACEOF
  19087. if ac_fn_c_try_compile "$LINENO"; then :
  19088. have_dlopen=yes
  19089. fi
  19090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19092. $as_echo "$have_dlopen" >&6; }
  19093. if test x$have_dlopen = xyes; then
  19094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19095. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19096. if ${ac_cv_lib_c_dlopen+:} false; then :
  19097. $as_echo_n "(cached) " >&6
  19098. else
  19099. ac_check_lib_save_LIBS=$LIBS
  19100. LIBS="-lc $LIBS"
  19101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19102. /* end confdefs.h. */
  19103. /* Override any GCC internal prototype to avoid an error.
  19104. Use char because int might match the return type of a GCC
  19105. builtin and then its argument prototype would still apply. */
  19106. #ifdef __cplusplus
  19107. extern "C"
  19108. #endif
  19109. char dlopen ();
  19110. int
  19111. main ()
  19112. {
  19113. return dlopen ();
  19114. ;
  19115. return 0;
  19116. }
  19117. _ACEOF
  19118. if ac_fn_c_try_link "$LINENO"; then :
  19119. ac_cv_lib_c_dlopen=yes
  19120. else
  19121. ac_cv_lib_c_dlopen=no
  19122. fi
  19123. rm -f core conftest.err conftest.$ac_objext \
  19124. conftest$ac_exeext conftest.$ac_ext
  19125. LIBS=$ac_check_lib_save_LIBS
  19126. fi
  19127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19128. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19129. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19130. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19131. else
  19132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19133. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19134. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19135. $as_echo_n "(cached) " >&6
  19136. else
  19137. ac_check_lib_save_LIBS=$LIBS
  19138. LIBS="-ldl $LIBS"
  19139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19140. /* end confdefs.h. */
  19141. /* Override any GCC internal prototype to avoid an error.
  19142. Use char because int might match the return type of a GCC
  19143. builtin and then its argument prototype would still apply. */
  19144. #ifdef __cplusplus
  19145. extern "C"
  19146. #endif
  19147. char dlopen ();
  19148. int
  19149. main ()
  19150. {
  19151. return dlopen ();
  19152. ;
  19153. return 0;
  19154. }
  19155. _ACEOF
  19156. if ac_fn_c_try_link "$LINENO"; then :
  19157. ac_cv_lib_dl_dlopen=yes
  19158. else
  19159. ac_cv_lib_dl_dlopen=no
  19160. fi
  19161. rm -f core conftest.err conftest.$ac_objext \
  19162. conftest$ac_exeext conftest.$ac_ext
  19163. LIBS=$ac_check_lib_save_LIBS
  19164. fi
  19165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19166. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19167. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19168. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19169. else
  19170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19171. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19172. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19173. $as_echo_n "(cached) " >&6
  19174. else
  19175. ac_check_lib_save_LIBS=$LIBS
  19176. LIBS="-lltdl $LIBS"
  19177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19178. /* end confdefs.h. */
  19179. /* Override any GCC internal prototype to avoid an error.
  19180. Use char because int might match the return type of a GCC
  19181. builtin and then its argument prototype would still apply. */
  19182. #ifdef __cplusplus
  19183. extern "C"
  19184. #endif
  19185. char dlopen ();
  19186. int
  19187. main ()
  19188. {
  19189. return dlopen ();
  19190. ;
  19191. return 0;
  19192. }
  19193. _ACEOF
  19194. if ac_fn_c_try_link "$LINENO"; then :
  19195. ac_cv_lib_ltdl_dlopen=yes
  19196. else
  19197. ac_cv_lib_ltdl_dlopen=no
  19198. fi
  19199. rm -f core conftest.err conftest.$ac_objext \
  19200. conftest$ac_exeext conftest.$ac_ext
  19201. LIBS=$ac_check_lib_save_LIBS
  19202. fi
  19203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19204. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19205. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19206. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19207. fi
  19208. fi
  19209. fi
  19210. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19211. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19212. have_loadso=yes
  19213. fi
  19214. fi
  19215. }
  19216. CheckUSBHID()
  19217. {
  19218. case "$host" in
  19219. *-*-*bsd*)
  19220. if test x$enable_joystick = xyes; then
  19221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19222. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19223. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19224. $as_echo_n "(cached) " >&6
  19225. else
  19226. ac_check_lib_save_LIBS=$LIBS
  19227. LIBS="-lusbhid $LIBS"
  19228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19229. /* end confdefs.h. */
  19230. /* Override any GCC internal prototype to avoid an error.
  19231. Use char because int might match the return type of a GCC
  19232. builtin and then its argument prototype would still apply. */
  19233. #ifdef __cplusplus
  19234. extern "C"
  19235. #endif
  19236. char hid_init ();
  19237. int
  19238. main ()
  19239. {
  19240. return hid_init ();
  19241. ;
  19242. return 0;
  19243. }
  19244. _ACEOF
  19245. if ac_fn_c_try_link "$LINENO"; then :
  19246. ac_cv_lib_usbhid_hid_init=yes
  19247. else
  19248. ac_cv_lib_usbhid_hid_init=no
  19249. fi
  19250. rm -f core conftest.err conftest.$ac_objext \
  19251. conftest$ac_exeext conftest.$ac_ext
  19252. LIBS=$ac_check_lib_save_LIBS
  19253. fi
  19254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19255. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19256. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  19257. have_libusbhid=yes
  19258. fi
  19259. if test x$have_libusbhid = xyes; then
  19260. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  19261. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  19262. USB_CFLAGS="-DHAVE_USBHID_H"
  19263. fi
  19264. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  19265. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  19266. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  19267. fi
  19268. USB_LIBS="$USB_LIBS -lusbhid"
  19269. else
  19270. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  19271. if test "x$ac_cv_header_usb_h" = xyes; then :
  19272. USB_CFLAGS="-DHAVE_USB_H"
  19273. fi
  19274. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  19275. if test "x$ac_cv_header_libusb_h" = xyes; then :
  19276. USB_CFLAGS="-DHAVE_LIBUSB_H"
  19277. fi
  19278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  19279. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  19280. if ${ac_cv_lib_usb_hid_init+:} false; then :
  19281. $as_echo_n "(cached) " >&6
  19282. else
  19283. ac_check_lib_save_LIBS=$LIBS
  19284. LIBS="-lusb $LIBS"
  19285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19286. /* end confdefs.h. */
  19287. /* Override any GCC internal prototype to avoid an error.
  19288. Use char because int might match the return type of a GCC
  19289. builtin and then its argument prototype would still apply. */
  19290. #ifdef __cplusplus
  19291. extern "C"
  19292. #endif
  19293. char hid_init ();
  19294. int
  19295. main ()
  19296. {
  19297. return hid_init ();
  19298. ;
  19299. return 0;
  19300. }
  19301. _ACEOF
  19302. if ac_fn_c_try_link "$LINENO"; then :
  19303. ac_cv_lib_usb_hid_init=yes
  19304. else
  19305. ac_cv_lib_usb_hid_init=no
  19306. fi
  19307. rm -f core conftest.err conftest.$ac_objext \
  19308. conftest$ac_exeext conftest.$ac_ext
  19309. LIBS=$ac_check_lib_save_LIBS
  19310. fi
  19311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  19312. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  19313. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  19314. USB_LIBS="$USB_LIBS -lusb"
  19315. fi
  19316. fi
  19317. save_CFLAGS="$CFLAGS"
  19318. CFLAGS="$CFLAGS $USB_CFLAGS"
  19319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  19320. $as_echo_n "checking for usbhid... " >&6; }
  19321. have_usbhid=no
  19322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19323. /* end confdefs.h. */
  19324. #include <sys/types.h>
  19325. #if defined(HAVE_USB_H)
  19326. #include <usb.h>
  19327. #endif
  19328. #ifdef __DragonFly__
  19329. # include <bus/usb/usb.h>
  19330. # include <bus/usb/usbhid.h>
  19331. #else
  19332. # include <dev/usb/usb.h>
  19333. # include <dev/usb/usbhid.h>
  19334. #endif
  19335. #if defined(HAVE_USBHID_H)
  19336. #include <usbhid.h>
  19337. #elif defined(HAVE_LIBUSB_H)
  19338. #include <libusb.h>
  19339. #elif defined(HAVE_LIBUSBHID_H)
  19340. #include <libusbhid.h>
  19341. #endif
  19342. int
  19343. main ()
  19344. {
  19345. struct report_desc *repdesc;
  19346. struct usb_ctl_report *repbuf;
  19347. hid_kind_t hidkind;
  19348. ;
  19349. return 0;
  19350. }
  19351. _ACEOF
  19352. if ac_fn_c_try_compile "$LINENO"; then :
  19353. have_usbhid=yes
  19354. fi
  19355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  19357. $as_echo "$have_usbhid" >&6; }
  19358. if test x$have_usbhid = xyes; then
  19359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  19360. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  19361. have_usbhid_ucr_data=no
  19362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19363. /* end confdefs.h. */
  19364. #include <sys/types.h>
  19365. #if defined(HAVE_USB_H)
  19366. #include <usb.h>
  19367. #endif
  19368. #ifdef __DragonFly__
  19369. # include <bus/usb/usb.h>
  19370. # include <bus/usb/usbhid.h>
  19371. #else
  19372. # include <dev/usb/usb.h>
  19373. # include <dev/usb/usbhid.h>
  19374. #endif
  19375. #if defined(HAVE_USBHID_H)
  19376. #include <usbhid.h>
  19377. #elif defined(HAVE_LIBUSB_H)
  19378. #include <libusb.h>
  19379. #elif defined(HAVE_LIBUSBHID_H)
  19380. #include <libusbhid.h>
  19381. #endif
  19382. int
  19383. main ()
  19384. {
  19385. struct usb_ctl_report buf;
  19386. if (buf.ucr_data) { }
  19387. ;
  19388. return 0;
  19389. }
  19390. _ACEOF
  19391. if ac_fn_c_try_compile "$LINENO"; then :
  19392. have_usbhid_ucr_data=yes
  19393. fi
  19394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19395. if test x$have_usbhid_ucr_data = xyes; then
  19396. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  19397. fi
  19398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  19399. $as_echo "$have_usbhid_ucr_data" >&6; }
  19400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  19401. $as_echo_n "checking for new usbhid API... " >&6; }
  19402. have_usbhid_new=no
  19403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19404. /* end confdefs.h. */
  19405. #include <sys/types.h>
  19406. #if defined(HAVE_USB_H)
  19407. #include <usb.h>
  19408. #endif
  19409. #ifdef __DragonFly__
  19410. #include <bus/usb/usb.h>
  19411. #include <bus/usb/usbhid.h>
  19412. #else
  19413. #include <dev/usb/usb.h>
  19414. #include <dev/usb/usbhid.h>
  19415. #endif
  19416. #if defined(HAVE_USBHID_H)
  19417. #include <usbhid.h>
  19418. #elif defined(HAVE_LIBUSB_H)
  19419. #include <libusb.h>
  19420. #elif defined(HAVE_LIBUSBHID_H)
  19421. #include <libusbhid.h>
  19422. #endif
  19423. int
  19424. main ()
  19425. {
  19426. report_desc_t d;
  19427. hid_start_parse(d, 1, 1);
  19428. ;
  19429. return 0;
  19430. }
  19431. _ACEOF
  19432. if ac_fn_c_try_compile "$LINENO"; then :
  19433. have_usbhid_new=yes
  19434. fi
  19435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19436. if test x$have_usbhid_new = xyes; then
  19437. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  19438. fi
  19439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  19440. $as_echo "$have_usbhid_new" >&6; }
  19441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  19442. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  19443. have_machine_joystick=no
  19444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19445. /* end confdefs.h. */
  19446. #include <machine/joystick.h>
  19447. int
  19448. main ()
  19449. {
  19450. struct joystick t;
  19451. ;
  19452. return 0;
  19453. }
  19454. _ACEOF
  19455. if ac_fn_c_try_compile "$LINENO"; then :
  19456. have_machine_joystick=yes
  19457. fi
  19458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19459. if test x$have_machine_joystick = xyes; then
  19460. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  19461. fi
  19462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  19463. $as_echo "$have_machine_joystick" >&6; }
  19464. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  19465. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  19466. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  19467. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  19468. have_joystick=yes
  19469. fi
  19470. CFLAGS="$save_CFLAGS"
  19471. fi
  19472. ;;
  19473. esac
  19474. }
  19475. CheckClockGettime()
  19476. {
  19477. # Check whether --enable-clock_gettime was given.
  19478. if test "${enable_clock_gettime+set}" = set; then :
  19479. enableval=$enable_clock_gettime;
  19480. else
  19481. enable_clock_gettime=yes
  19482. fi
  19483. if test x$enable_clock_gettime = xyes; then
  19484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  19485. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  19486. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  19487. $as_echo_n "(cached) " >&6
  19488. else
  19489. ac_check_lib_save_LIBS=$LIBS
  19490. LIBS="-lrt $LIBS"
  19491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19492. /* end confdefs.h. */
  19493. /* Override any GCC internal prototype to avoid an error.
  19494. Use char because int might match the return type of a GCC
  19495. builtin and then its argument prototype would still apply. */
  19496. #ifdef __cplusplus
  19497. extern "C"
  19498. #endif
  19499. char clock_gettime ();
  19500. int
  19501. main ()
  19502. {
  19503. return clock_gettime ();
  19504. ;
  19505. return 0;
  19506. }
  19507. _ACEOF
  19508. if ac_fn_c_try_link "$LINENO"; then :
  19509. ac_cv_lib_rt_clock_gettime=yes
  19510. else
  19511. ac_cv_lib_rt_clock_gettime=no
  19512. fi
  19513. rm -f core conftest.err conftest.$ac_objext \
  19514. conftest$ac_exeext conftest.$ac_ext
  19515. LIBS=$ac_check_lib_save_LIBS
  19516. fi
  19517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  19518. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  19519. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  19520. have_clock_gettime=yes
  19521. fi
  19522. if test x$have_clock_gettime = xyes; then
  19523. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19524. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  19525. else
  19526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  19527. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  19528. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  19529. $as_echo_n "(cached) " >&6
  19530. else
  19531. ac_check_lib_save_LIBS=$LIBS
  19532. LIBS="-lc $LIBS"
  19533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19534. /* end confdefs.h. */
  19535. /* Override any GCC internal prototype to avoid an error.
  19536. Use char because int might match the return type of a GCC
  19537. builtin and then its argument prototype would still apply. */
  19538. #ifdef __cplusplus
  19539. extern "C"
  19540. #endif
  19541. char clock_gettime ();
  19542. int
  19543. main ()
  19544. {
  19545. return clock_gettime ();
  19546. ;
  19547. return 0;
  19548. }
  19549. _ACEOF
  19550. if ac_fn_c_try_link "$LINENO"; then :
  19551. ac_cv_lib_c_clock_gettime=yes
  19552. else
  19553. ac_cv_lib_c_clock_gettime=no
  19554. fi
  19555. rm -f core conftest.err conftest.$ac_objext \
  19556. conftest$ac_exeext conftest.$ac_ext
  19557. LIBS=$ac_check_lib_save_LIBS
  19558. fi
  19559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  19560. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  19561. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  19562. have_clock_gettime=yes
  19563. fi
  19564. if test x$have_clock_gettime = xyes; then
  19565. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19566. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19567. fi
  19568. fi
  19569. fi
  19570. }
  19571. CheckLinuxVersion()
  19572. {
  19573. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  19574. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  19575. have_linux_version_h=yes
  19576. fi
  19577. if test x$have_linux_version_h = xyes; then
  19578. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  19579. fi
  19580. }
  19581. CheckRPATH()
  19582. {
  19583. # Check whether --enable-rpath was given.
  19584. if test "${enable_rpath+set}" = set; then :
  19585. enableval=$enable_rpath;
  19586. else
  19587. enable_rpath=yes
  19588. fi
  19589. }
  19590. case "$host" in
  19591. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  19592. case "$host" in
  19593. *-raspberry-linux*)
  19594. # Raspberry Pi
  19595. ARCH=linux
  19596. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19597. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19598. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19599. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19600. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  19601. if test x$enable_video = xyes; then
  19602. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19603. # FIXME: confdefs? Not AC_DEFINE?
  19604. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19605. SUMMARY_video="${SUMMARY_video} rpi"
  19606. fi
  19607. ;;
  19608. *-*-androideabi*)
  19609. # Android
  19610. ARCH=android
  19611. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  19612. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  19613. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  19614. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  19615. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  19616. if test x$enable_video = xyes; then
  19617. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  19618. # FIXME: confdefs? Not AC_DEFINE?
  19619. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  19620. SUMMARY_video="${SUMMARY_video} android"
  19621. fi
  19622. ;;
  19623. *-*-linux*) ARCH=linux ;;
  19624. *-*-uclinux*) ARCH=linux ;;
  19625. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  19626. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  19627. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  19628. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  19629. *-*-bsdi*) ARCH=bsdi ;;
  19630. *-*-freebsd*) ARCH=freebsd ;;
  19631. *-*-dragonfly*) ARCH=freebsd ;;
  19632. *-*-netbsd*) ARCH=netbsd ;;
  19633. *-*-openbsd*) ARCH=openbsd ;;
  19634. *-*-sysv5*) ARCH=sysv5 ;;
  19635. *-*-solaris*) ARCH=solaris ;;
  19636. *-*-hpux*) ARCH=hpux ;;
  19637. *-*-aix*) ARCH=aix ;;
  19638. *-*-minix*) ARCH=minix ;;
  19639. esac
  19640. CheckVisibilityHidden
  19641. CheckDummyVideo
  19642. CheckDiskAudio
  19643. CheckDummyAudio
  19644. CheckDLOPEN
  19645. CheckOSS
  19646. CheckALSA
  19647. CheckPulseAudio
  19648. CheckARTSC
  19649. CheckESD
  19650. CheckNAS
  19651. CheckSNDIO
  19652. CheckX11
  19653. CheckDirectFB
  19654. CheckFusionSound
  19655. CheckOpenGLX11
  19656. CheckOpenGLESX11
  19657. CheckMir
  19658. CheckWayland
  19659. CheckLibUDev
  19660. CheckDBus
  19661. CheckIBus
  19662. case $ARCH in
  19663. linux)
  19664. CheckInputEvents
  19665. CheckInputKD
  19666. ;;
  19667. esac
  19668. CheckTslib
  19669. CheckUSBHID
  19670. CheckPTHREAD
  19671. CheckClockGettime
  19672. CheckLinuxVersion
  19673. CheckRPATH
  19674. CheckVivanteVideo
  19675. # Set up files for the audio library
  19676. if test x$enable_audio = xyes; then
  19677. case $ARCH in
  19678. sysv5|solaris|hpux)
  19679. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  19680. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  19681. have_audio=yes
  19682. ;;
  19683. netbsd) # Don't use this on OpenBSD, it's busted.
  19684. $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
  19685. SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  19686. have_audio=yes
  19687. ;;
  19688. aix)
  19689. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  19690. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  19691. have_audio=yes
  19692. ;;
  19693. android)
  19694. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  19695. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  19696. SUMMARY_audio="${SUMMARY_audio} android"
  19697. have_audio=yes
  19698. ;;
  19699. esac
  19700. fi
  19701. # Set up files for the joystick library
  19702. if test x$enable_joystick = xyes; then
  19703. case $ARCH in
  19704. linux)
  19705. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  19706. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  19707. have_joystick=yes
  19708. ;;
  19709. android)
  19710. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  19711. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  19712. have_joystick=yes
  19713. ;;
  19714. esac
  19715. fi
  19716. # Set up files for the haptic library
  19717. if test x$enable_haptic = xyes; then
  19718. if test x$use_input_events = xyes; then
  19719. case $ARCH in
  19720. linux)
  19721. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  19722. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  19723. have_haptic=yes
  19724. ;;
  19725. esac
  19726. fi
  19727. fi
  19728. # Set up files for the power library
  19729. if test x$enable_power = xyes; then
  19730. case $ARCH in
  19731. linux)
  19732. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  19733. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  19734. have_power=yes
  19735. ;;
  19736. android)
  19737. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  19738. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  19739. have_power=yes
  19740. ;;
  19741. esac
  19742. fi
  19743. # Set up files for the filesystem library
  19744. if test x$enable_filesystem = xyes; then
  19745. case $ARCH in
  19746. android)
  19747. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  19748. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  19749. have_filesystem=yes
  19750. ;;
  19751. *)
  19752. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  19753. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  19754. have_filesystem=yes
  19755. ;;
  19756. esac
  19757. fi
  19758. # Set up files for the timer library
  19759. if test x$enable_timers = xyes; then
  19760. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  19761. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  19762. have_timers=yes
  19763. fi
  19764. # Set up files for udev hotplugging support
  19765. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  19766. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  19767. fi
  19768. # Set up files for evdev input
  19769. if test x$use_input_events = xyes; then
  19770. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  19771. fi
  19772. ;;
  19773. *-*-cygwin* | *-*-mingw32*)
  19774. ARCH=win32
  19775. if test "$build" != "$host"; then # cross-compiling
  19776. # Default cross-compile location
  19777. ac_default_prefix=/usr/local/cross-tools/$host
  19778. else
  19779. # Look for the location of the tools and install there
  19780. if test "$BUILD_PREFIX" != ""; then
  19781. ac_default_prefix=$BUILD_PREFIX
  19782. fi
  19783. fi
  19784. CheckDummyVideo
  19785. CheckDiskAudio
  19786. CheckDummyAudio
  19787. CheckWINDOWS
  19788. CheckWINDOWSGL
  19789. CheckWINDOWSGLES
  19790. CheckDIRECTX
  19791. # Set up the core platform files
  19792. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  19793. # Set up files for the video library
  19794. if test x$enable_video = xyes; then
  19795. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  19796. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  19797. have_video=yes
  19798. # Check whether --enable-render-d3d was given.
  19799. if test "${enable_render_d3d+set}" = set; then :
  19800. enableval=$enable_render_d3d;
  19801. else
  19802. enable_render_d3d=yes
  19803. fi
  19804. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  19805. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  19806. fi
  19807. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  19808. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  19809. fi
  19810. fi
  19811. # Set up files for the audio library
  19812. if test x$enable_audio = xyes; then
  19813. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  19814. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  19815. if test x$have_dsound = xyes; then
  19816. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  19817. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  19818. fi
  19819. if test x$have_xaudio2 = xyes; then
  19820. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  19821. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  19822. fi
  19823. have_audio=yes
  19824. fi
  19825. # Set up files for the joystick library
  19826. if test x$enable_joystick = xyes; then
  19827. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  19828. if test x$have_xinput = xyes; then
  19829. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  19830. fi
  19831. if test x$have_dinput = xyes; then
  19832. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  19833. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  19834. fi
  19835. else
  19836. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  19837. fi
  19838. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  19839. have_joystick=yes
  19840. fi
  19841. if test x$enable_haptic = xyes; then
  19842. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  19843. if test x$have_xinput = xyes; then
  19844. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  19845. fi
  19846. if test x$have_dinput = xyes; then
  19847. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  19848. fi
  19849. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  19850. have_haptic=yes
  19851. fi
  19852. fi
  19853. if test x$enable_power = xyes; then
  19854. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  19855. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  19856. have_power=yes
  19857. fi
  19858. if test x$enable_filesystem = xyes; then
  19859. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  19860. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  19861. have_filesystem=yes
  19862. fi
  19863. # Set up files for the thread library
  19864. if test x$enable_threads = xyes; then
  19865. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  19866. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  19867. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  19868. have_threads=yes
  19869. fi
  19870. # Set up files for the timer library
  19871. if test x$enable_timers = xyes; then
  19872. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  19873. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  19874. have_timers=yes
  19875. fi
  19876. # Set up files for the shared object loading library
  19877. if test x$enable_loadso = xyes; then
  19878. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  19879. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  19880. have_loadso=yes
  19881. fi
  19882. # Set up the system libraries we need
  19883. if test -f /lib/w32api/libuuid.a; then
  19884. LIBUUID=/lib/w32api/libuuid.a
  19885. else
  19886. LIBUUID=-luuid
  19887. fi
  19888. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
  19889. # The Windows platform requires special setup
  19890. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  19891. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  19892. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  19893. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  19894. # Check to see if this is a mingw or cygwin build
  19895. have_mingw32=
  19896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  19897. $as_echo_n "checking for main in -lmingw32... " >&6; }
  19898. if ${ac_cv_lib_mingw32_main+:} false; then :
  19899. $as_echo_n "(cached) " >&6
  19900. else
  19901. ac_check_lib_save_LIBS=$LIBS
  19902. LIBS="-lmingw32 $LIBS"
  19903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19904. /* end confdefs.h. */
  19905. int
  19906. main ()
  19907. {
  19908. return main ();
  19909. ;
  19910. return 0;
  19911. }
  19912. _ACEOF
  19913. if ac_fn_c_try_link "$LINENO"; then :
  19914. ac_cv_lib_mingw32_main=yes
  19915. else
  19916. ac_cv_lib_mingw32_main=no
  19917. fi
  19918. rm -f core conftest.err conftest.$ac_objext \
  19919. conftest$ac_exeext conftest.$ac_ext
  19920. LIBS=$ac_check_lib_save_LIBS
  19921. fi
  19922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  19923. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  19924. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  19925. have_mingw32=yes
  19926. fi
  19927. if test x$have_mingw32 = xyes; then
  19928. SDL_LIBS="-lmingw32 $SDL_LIBS"
  19929. else
  19930. SDL_LIBS="-lcygwin $SDL_LIBS"
  19931. fi
  19932. ;;
  19933. *-*-beos*)
  19934. as_fn_error $? "
  19935. *** BeOS support has been removed as of SDL 2.0.2.
  19936. " "$LINENO" 5
  19937. ;;
  19938. *-*-haiku*)
  19939. ARCH=haiku
  19940. ac_default_prefix=/boot/system
  19941. CheckDummyVideo
  19942. CheckDiskAudio
  19943. CheckDummyAudio
  19944. CheckHaikuVideo
  19945. CheckHaikuGL
  19946. CheckPTHREAD
  19947. # Set up files for the audio library
  19948. if test x$enable_audio = xyes; then
  19949. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  19950. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  19951. have_audio=yes
  19952. fi
  19953. # Set up files for the joystick library
  19954. if test x$enable_joystick = xyes; then
  19955. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  19956. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  19957. have_joystick=yes
  19958. fi
  19959. # Set up files for the timer library
  19960. if test x$enable_timers = xyes; then
  19961. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  19962. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  19963. have_timers=yes
  19964. fi
  19965. # Set up files for the shared object loading library
  19966. if test x$enable_loadso = xyes; then
  19967. $as_echo "#define SDL_LOADSO_HAIKU 1" >>confdefs.h
  19968. SOURCES="$SOURCES $srcdir/src/loadso/haiku/*.c"
  19969. have_loadso=yes
  19970. fi
  19971. # Set up files for the system power library
  19972. if test x$enable_power = xyes; then
  19973. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  19974. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  19975. have_power=yes
  19976. fi
  19977. # Set up files for the system filesystem library
  19978. if test x$enable_filesystem = xyes; then
  19979. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  19980. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  19981. have_filesystem=yes
  19982. fi
  19983. # The Haiku platform requires special setup.
  19984. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  19985. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  19986. ;;
  19987. arm*-apple-darwin*)
  19988. # iOS - We are not writing anything to confdefs.h because you have to replace
  19989. # SDL_config.h for SDL_config_iphoneos.h anyway
  19990. ARCH=ios
  19991. CheckVisibilityHidden
  19992. CheckDummyVideo
  19993. CheckDiskAudio
  19994. CheckDummyAudio
  19995. CheckDLOPEN
  19996. CheckCOCOA
  19997. CheckPTHREAD
  19998. # Set up files for the audio library
  19999. if test x$enable_audio = xyes; then
  20000. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  20001. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20002. have_audio=yes
  20003. fi
  20004. # Set up files for the joystick library
  20005. if test x$enable_joystick = xyes; then
  20006. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20007. have_joystick=yes
  20008. fi
  20009. # Set up files for the haptic library
  20010. #if test x$enable_haptic = xyes; then
  20011. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20012. # have_haptic=yes
  20013. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20014. #fi
  20015. # Set up files for the power library
  20016. if test x$enable_power = xyes; then
  20017. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20018. have_power=yes
  20019. fi
  20020. # Set up files for the filesystem library
  20021. if test x$enable_filesystem = xyes; then
  20022. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20023. have_filesystem=yes
  20024. fi
  20025. # Set up files for the timer library
  20026. if test x$enable_timers = xyes; then
  20027. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20028. have_timers=yes
  20029. fi
  20030. # Set up additional files for the file library
  20031. if test x$enable_file = xyes; then
  20032. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20033. fi
  20034. # The iOS platform requires special setup.
  20035. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20036. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20037. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20038. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20039. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20040. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20041. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20042. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20043. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20044. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20045. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20046. ;;
  20047. *-*-darwin* )
  20048. # This could be either full "Mac OS X", or plain "Darwin" which is
  20049. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20050. # Next line is broken, and a few files below require Mac OS X (full)
  20051. ARCH=macosx
  20052. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20053. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20054. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20055. CheckVisibilityHidden
  20056. CheckDummyVideo
  20057. CheckDiskAudio
  20058. CheckDummyAudio
  20059. CheckDLOPEN
  20060. CheckCOCOA
  20061. CheckX11
  20062. CheckMacGL
  20063. CheckOpenGLX11
  20064. CheckPTHREAD
  20065. # Set up files for the audio library
  20066. if test x$enable_audio = xyes; then
  20067. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20068. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
  20069. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20070. have_audio=yes
  20071. fi
  20072. # Set up files for the joystick library
  20073. if test x$enable_joystick = xyes; then
  20074. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20075. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20076. have_joystick=yes
  20077. fi
  20078. # Set up files for the haptic library
  20079. if test x$enable_haptic = xyes; then
  20080. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20081. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20082. have_haptic=yes
  20083. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20084. fi
  20085. # Set up files for the power library
  20086. if test x$enable_power = xyes; then
  20087. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20088. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20089. have_power=yes
  20090. fi
  20091. # Set up files for the filesystem library
  20092. if test x$enable_filesystem = xyes; then
  20093. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20094. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20095. have_filesystem=yes
  20096. fi
  20097. # Set up files for the timer library
  20098. if test x$enable_timers = xyes; then
  20099. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20100. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20101. have_timers=yes
  20102. fi
  20103. # Set up additional files for the file library
  20104. if test x$enable_file = xyes; then
  20105. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20106. fi
  20107. # The Mac OS X platform requires special setup.
  20108. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20109. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  20110. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  20111. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  20112. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  20113. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  20114. # If audio is used, add the AudioUnit framework
  20115. if test x$enable_audio = xyes; then
  20116. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
  20117. fi
  20118. ;;
  20119. *-nacl|*-pnacl)
  20120. ARCH=nacl
  20121. CheckNativeClient
  20122. CheckDummyAudio
  20123. CheckDummyVideo
  20124. CheckInputEvents
  20125. CheckPTHREAD
  20126. # Set up files for the timer library
  20127. if test x$enable_timers = xyes; then
  20128. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20129. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20130. have_timers=yes
  20131. fi
  20132. if test x$enable_filesystem = xyes; then
  20133. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  20134. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  20135. have_filesystem=yes
  20136. fi
  20137. ;;
  20138. *-*-emscripten* )
  20139. if test x$enable_video = xyes; then
  20140. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20141. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  20142. have_video=yes
  20143. SUMMARY_video="${SUMMARY_video} emscripten"
  20144. fi
  20145. if test x$enable_audio = xyes; then
  20146. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20147. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  20148. have_audio=yes
  20149. SUMMARY_audio="${SUMMARY_audio} emscripten"
  20150. fi
  20151. CheckVisibilityHidden
  20152. CheckDummyVideo
  20153. CheckDiskAudio
  20154. CheckDummyAudio
  20155. CheckDLOPEN
  20156. CheckClockGettime
  20157. CheckEmscriptenGLES
  20158. # Set up files for the power library
  20159. if test x$enable_power = xyes; then
  20160. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  20161. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  20162. have_power=yes
  20163. fi
  20164. # Set up files for the power library
  20165. if test x$enable_joystick = xyes; then
  20166. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  20167. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  20168. have_joystick=yes
  20169. fi
  20170. # Set up files for the filesystem library
  20171. if test x$enable_filesystem = xyes; then
  20172. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  20173. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  20174. have_filesystem=yes
  20175. fi
  20176. # Set up files for the timer library
  20177. if test x$enable_timers = xyes; then
  20178. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20179. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20180. have_timers=yes
  20181. fi
  20182. ;;
  20183. *)
  20184. as_fn_error $? "
  20185. *** Unsupported host: Please add to configure.in
  20186. " "$LINENO" 5
  20187. ;;
  20188. esac
  20189. CheckWarnAll
  20190. CheckWarnShadow
  20191. # Verify that we have all the platform specific files we need
  20192. if test x$have_joystick != xyes; then
  20193. if test x$enable_joystick = xyes; then
  20194. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  20195. fi
  20196. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  20197. fi
  20198. if test x$have_haptic != xyes; then
  20199. if test x$enable_haptic = xyes; then
  20200. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  20201. fi
  20202. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  20203. fi
  20204. if test x$have_threads != xyes; then
  20205. if test x$enable_threads = xyes; then
  20206. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  20207. fi
  20208. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  20209. fi
  20210. if test x$have_timers != xyes; then
  20211. if test x$enable_timers = xyes; then
  20212. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  20213. fi
  20214. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  20215. fi
  20216. if test x$have_filesystem != xyes; then
  20217. if test x$enable_filesystem = xyes; then
  20218. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  20219. fi
  20220. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  20221. fi
  20222. if test x$have_loadso != xyes; then
  20223. if test x$enable_loadso = xyes; then
  20224. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  20225. fi
  20226. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  20227. fi
  20228. if test x$SDLMAIN_SOURCES = x; then
  20229. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  20230. fi
  20231. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  20232. OBJECTS=`echo $SOURCES`
  20233. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  20234. for EXT in asm cc m c S; do
  20235. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  20236. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  20237. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  20238. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20239. done
  20240. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  20241. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  20242. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  20243. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  20244. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  20245. \\$(WINDRES) \\$< \\$@,g"`
  20246. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  20247. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  20248. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20249. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20250. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20251. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20252. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  20253. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  20254. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20255. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20256. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20257. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20258. # Set runtime shared library paths as needed
  20259. if test "x$enable_rpath" = "xyes"; then
  20260. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  20261. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  20262. fi
  20263. if test $ARCH = solaris; then
  20264. SDL_RLD_FLAGS="-R\${libdir}"
  20265. fi
  20266. else
  20267. SDL_RLD_FLAGS=""
  20268. fi
  20269. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  20270. if test x$enable_shared = xyes; then
  20271. ENABLE_SHARED_TRUE=
  20272. ENABLE_SHARED_FALSE="#"
  20273. else
  20274. ENABLE_SHARED_TRUE="#"
  20275. ENABLE_SHARED_FALSE=
  20276. fi
  20277. if test x$enable_static = xyes; then
  20278. ENABLE_STATIC_TRUE=
  20279. ENABLE_STATIC_FALSE="#"
  20280. else
  20281. ENABLE_STATIC_TRUE="#"
  20282. ENABLE_STATIC_FALSE=
  20283. fi
  20284. cat >Makefile.rules <<__EOF__
  20285. # Build rules for objects
  20286. -include \$(OBJECTS:.lo=.d)
  20287. # Special dependency for SDL.c, since it depends on SDL_revision.h
  20288. $srcdir/src/SDL.c: update-revision
  20289. $DEPENDS
  20290. $VERSION_DEPENDS
  20291. $SDLMAIN_DEPENDS
  20292. $SDLTEST_DEPENDS
  20293. __EOF__
  20294. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config SDL2.spec sdl2.pc"
  20295. ac_config_commands="$ac_config_commands sdl2_config"
  20296. SUMMARY="SDL2 Configure Summary:\n"
  20297. if test x$enable_shared = xyes; then
  20298. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  20299. fi
  20300. if test x$enable_static = xyes; then
  20301. SUMMARY="${SUMMARY}Building Static Libraries\n"
  20302. fi
  20303. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  20304. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  20305. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  20306. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  20307. if test x$have_x = xyes; then
  20308. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  20309. fi
  20310. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  20311. if test x$enable_libudev = xyes; then
  20312. SUMMARY="${SUMMARY}Using libudev : YES\n"
  20313. else
  20314. SUMMARY="${SUMMARY}Using libudev : NO\n"
  20315. fi
  20316. if test x$have_dbus_dbus_h_hdr = xyes; then
  20317. SUMMARY="${SUMMARY}Using dbus : YES\n"
  20318. else
  20319. SUMMARY="${SUMMARY}Using dbus : NO\n"
  20320. fi
  20321. if test x$have_ibus_ibus_h_hdr = xyes; then
  20322. SUMMARY="${SUMMARY}Using ibus : YES\n"
  20323. else
  20324. SUMMARY="${SUMMARY}Using ibus : NO\n"
  20325. fi
  20326. ac_config_commands="$ac_config_commands summary"
  20327. cat >confcache <<\_ACEOF
  20328. # This file is a shell script that caches the results of configure
  20329. # tests run on this system so they can be shared between configure
  20330. # scripts and configure runs, see configure's option --config-cache.
  20331. # It is not useful on other systems. If it contains results you don't
  20332. # want to keep, you may remove or edit it.
  20333. #
  20334. # config.status only pays attention to the cache file if you give it
  20335. # the --recheck option to rerun configure.
  20336. #
  20337. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20338. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20339. # following values.
  20340. _ACEOF
  20341. # The following way of writing the cache mishandles newlines in values,
  20342. # but we know of no workaround that is simple, portable, and efficient.
  20343. # So, we kill variables containing newlines.
  20344. # Ultrix sh set writes to stderr and can't be redirected directly,
  20345. # and sets the high bit in the cache file unless we assign to the vars.
  20346. (
  20347. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20348. eval ac_val=\$$ac_var
  20349. case $ac_val in #(
  20350. *${as_nl}*)
  20351. case $ac_var in #(
  20352. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  20353. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20354. esac
  20355. case $ac_var in #(
  20356. _ | IFS | as_nl) ;; #(
  20357. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20358. *) { eval $ac_var=; unset $ac_var;} ;;
  20359. esac ;;
  20360. esac
  20361. done
  20362. (set) 2>&1 |
  20363. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20364. *${as_nl}ac_space=\ *)
  20365. # `set' does not quote correctly, so add quotes: double-quote
  20366. # substitution turns \\\\ into \\, and sed turns \\ into \.
  20367. sed -n \
  20368. "s/'/'\\\\''/g;
  20369. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20370. ;; #(
  20371. *)
  20372. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20373. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20374. ;;
  20375. esac |
  20376. sort
  20377. ) |
  20378. sed '
  20379. /^ac_cv_env_/b end
  20380. t clear
  20381. :clear
  20382. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20383. t end
  20384. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20385. :end' >>confcache
  20386. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20387. if test -w "$cache_file"; then
  20388. if test "x$cache_file" != "x/dev/null"; then
  20389. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  20390. $as_echo "$as_me: updating cache $cache_file" >&6;}
  20391. if test ! -f "$cache_file" || test -h "$cache_file"; then
  20392. cat confcache >"$cache_file"
  20393. else
  20394. case $cache_file in #(
  20395. */* | ?:*)
  20396. mv -f confcache "$cache_file"$$ &&
  20397. mv -f "$cache_file"$$ "$cache_file" ;; #(
  20398. *)
  20399. mv -f confcache "$cache_file" ;;
  20400. esac
  20401. fi
  20402. fi
  20403. else
  20404. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  20405. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20406. fi
  20407. fi
  20408. rm -f confcache
  20409. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20410. # Let make expand exec_prefix.
  20411. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20412. DEFS=-DHAVE_CONFIG_H
  20413. ac_libobjs=
  20414. ac_ltlibobjs=
  20415. U=
  20416. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20417. # 1. Remove the extension, and $U if already installed.
  20418. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20419. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20420. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20421. # will be set to the directory where LIBOBJS objects are built.
  20422. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20423. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  20424. done
  20425. LIBOBJS=$ac_libobjs
  20426. LTLIBOBJS=$ac_ltlibobjs
  20427. : "${CONFIG_STATUS=./config.status}"
  20428. ac_write_fail=0
  20429. ac_clean_files_save=$ac_clean_files
  20430. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20431. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  20432. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20433. as_write_fail=0
  20434. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  20435. #! $SHELL
  20436. # Generated by $as_me.
  20437. # Run this file to recreate the current configuration.
  20438. # Compiler output produced by configure, useful for debugging
  20439. # configure, is in config.log if it exists.
  20440. debug=false
  20441. ac_cs_recheck=false
  20442. ac_cs_silent=false
  20443. SHELL=\${CONFIG_SHELL-$SHELL}
  20444. export SHELL
  20445. _ASEOF
  20446. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  20447. ## -------------------- ##
  20448. ## M4sh Initialization. ##
  20449. ## -------------------- ##
  20450. # Be more Bourne compatible
  20451. DUALCASE=1; export DUALCASE # for MKS sh
  20452. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20453. emulate sh
  20454. NULLCMD=:
  20455. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20456. # is contrary to our usage. Disable this feature.
  20457. alias -g '${1+"$@"}'='"$@"'
  20458. setopt NO_GLOB_SUBST
  20459. else
  20460. case `(set -o) 2>/dev/null` in #(
  20461. *posix*) :
  20462. set -o posix ;; #(
  20463. *) :
  20464. ;;
  20465. esac
  20466. fi
  20467. as_nl='
  20468. '
  20469. export as_nl
  20470. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  20471. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  20472. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  20473. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  20474. # Prefer a ksh shell builtin over an external printf program on Solaris,
  20475. # but without wasting forks for bash or zsh.
  20476. if test -z "$BASH_VERSION$ZSH_VERSION" \
  20477. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  20478. as_echo='print -r --'
  20479. as_echo_n='print -rn --'
  20480. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  20481. as_echo='printf %s\n'
  20482. as_echo_n='printf %s'
  20483. else
  20484. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  20485. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  20486. as_echo_n='/usr/ucb/echo -n'
  20487. else
  20488. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  20489. as_echo_n_body='eval
  20490. arg=$1;
  20491. case $arg in #(
  20492. *"$as_nl"*)
  20493. expr "X$arg" : "X\\(.*\\)$as_nl";
  20494. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  20495. esac;
  20496. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  20497. '
  20498. export as_echo_n_body
  20499. as_echo_n='sh -c $as_echo_n_body as_echo'
  20500. fi
  20501. export as_echo_body
  20502. as_echo='sh -c $as_echo_body as_echo'
  20503. fi
  20504. # The user is always right.
  20505. if test "${PATH_SEPARATOR+set}" != set; then
  20506. PATH_SEPARATOR=:
  20507. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20508. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20509. PATH_SEPARATOR=';'
  20510. }
  20511. fi
  20512. # IFS
  20513. # We need space, tab and new line, in precisely that order. Quoting is
  20514. # there to prevent editors from complaining about space-tab.
  20515. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20516. # splitting by setting IFS to empty value.)
  20517. IFS=" "" $as_nl"
  20518. # Find who we are. Look in the path if we contain no directory separator.
  20519. as_myself=
  20520. case $0 in #((
  20521. *[\\/]* ) as_myself=$0 ;;
  20522. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20523. for as_dir in $PATH
  20524. do
  20525. IFS=$as_save_IFS
  20526. test -z "$as_dir" && as_dir=.
  20527. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20528. done
  20529. IFS=$as_save_IFS
  20530. ;;
  20531. esac
  20532. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20533. # in which case we are not to be found in the path.
  20534. if test "x$as_myself" = x; then
  20535. as_myself=$0
  20536. fi
  20537. if test ! -f "$as_myself"; then
  20538. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20539. exit 1
  20540. fi
  20541. # Unset variables that we do not need and which cause bugs (e.g. in
  20542. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  20543. # suppresses any "Segmentation fault" message there. '((' could
  20544. # trigger a bug in pdksh 5.2.14.
  20545. for as_var in BASH_ENV ENV MAIL MAILPATH
  20546. do eval test x\${$as_var+set} = xset \
  20547. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  20548. done
  20549. PS1='$ '
  20550. PS2='> '
  20551. PS4='+ '
  20552. # NLS nuisances.
  20553. LC_ALL=C
  20554. export LC_ALL
  20555. LANGUAGE=C
  20556. export LANGUAGE
  20557. # CDPATH.
  20558. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20559. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  20560. # ----------------------------------------
  20561. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  20562. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  20563. # script with STATUS, using 1 if that was 0.
  20564. as_fn_error ()
  20565. {
  20566. as_status=$1; test $as_status -eq 0 && as_status=1
  20567. if test "$4"; then
  20568. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  20569. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  20570. fi
  20571. $as_echo "$as_me: error: $2" >&2
  20572. as_fn_exit $as_status
  20573. } # as_fn_error
  20574. # as_fn_set_status STATUS
  20575. # -----------------------
  20576. # Set $? to STATUS, without forking.
  20577. as_fn_set_status ()
  20578. {
  20579. return $1
  20580. } # as_fn_set_status
  20581. # as_fn_exit STATUS
  20582. # -----------------
  20583. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  20584. as_fn_exit ()
  20585. {
  20586. set +e
  20587. as_fn_set_status $1
  20588. exit $1
  20589. } # as_fn_exit
  20590. # as_fn_unset VAR
  20591. # ---------------
  20592. # Portably unset VAR.
  20593. as_fn_unset ()
  20594. {
  20595. { eval $1=; unset $1;}
  20596. }
  20597. as_unset=as_fn_unset
  20598. # as_fn_append VAR VALUE
  20599. # ----------------------
  20600. # Append the text in VALUE to the end of the definition contained in VAR. Take
  20601. # advantage of any shell optimizations that allow amortized linear growth over
  20602. # repeated appends, instead of the typical quadratic growth present in naive
  20603. # implementations.
  20604. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  20605. eval 'as_fn_append ()
  20606. {
  20607. eval $1+=\$2
  20608. }'
  20609. else
  20610. as_fn_append ()
  20611. {
  20612. eval $1=\$$1\$2
  20613. }
  20614. fi # as_fn_append
  20615. # as_fn_arith ARG...
  20616. # ------------------
  20617. # Perform arithmetic evaluation on the ARGs, and store the result in the
  20618. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  20619. # must be portable across $(()) and expr.
  20620. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  20621. eval 'as_fn_arith ()
  20622. {
  20623. as_val=$(( $* ))
  20624. }'
  20625. else
  20626. as_fn_arith ()
  20627. {
  20628. as_val=`expr "$@" || test $? -eq 1`
  20629. }
  20630. fi # as_fn_arith
  20631. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20632. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20633. as_expr=expr
  20634. else
  20635. as_expr=false
  20636. fi
  20637. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20638. as_basename=basename
  20639. else
  20640. as_basename=false
  20641. fi
  20642. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20643. as_dirname=dirname
  20644. else
  20645. as_dirname=false
  20646. fi
  20647. as_me=`$as_basename -- "$0" ||
  20648. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20649. X"$0" : 'X\(//\)$' \| \
  20650. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20651. $as_echo X/"$0" |
  20652. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20653. s//\1/
  20654. q
  20655. }
  20656. /^X\/\(\/\/\)$/{
  20657. s//\1/
  20658. q
  20659. }
  20660. /^X\/\(\/\).*/{
  20661. s//\1/
  20662. q
  20663. }
  20664. s/.*/./; q'`
  20665. # Avoid depending upon Character Ranges.
  20666. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20667. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20668. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20669. as_cr_digits='0123456789'
  20670. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20671. ECHO_C= ECHO_N= ECHO_T=
  20672. case `echo -n x` in #(((((
  20673. -n*)
  20674. case `echo 'xy\c'` in
  20675. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20676. xy) ECHO_C='\c';;
  20677. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  20678. ECHO_T=' ';;
  20679. esac;;
  20680. *)
  20681. ECHO_N='-n';;
  20682. esac
  20683. rm -f conf$$ conf$$.exe conf$$.file
  20684. if test -d conf$$.dir; then
  20685. rm -f conf$$.dir/conf$$.file
  20686. else
  20687. rm -f conf$$.dir
  20688. mkdir conf$$.dir 2>/dev/null
  20689. fi
  20690. if (echo >conf$$.file) 2>/dev/null; then
  20691. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20692. as_ln_s='ln -s'
  20693. # ... but there are two gotchas:
  20694. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20695. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20696. # In both cases, we have to default to `cp -pR'.
  20697. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20698. as_ln_s='cp -pR'
  20699. elif ln conf$$.file conf$$ 2>/dev/null; then
  20700. as_ln_s=ln
  20701. else
  20702. as_ln_s='cp -pR'
  20703. fi
  20704. else
  20705. as_ln_s='cp -pR'
  20706. fi
  20707. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20708. rmdir conf$$.dir 2>/dev/null
  20709. # as_fn_mkdir_p
  20710. # -------------
  20711. # Create "$as_dir" as a directory, including parents if necessary.
  20712. as_fn_mkdir_p ()
  20713. {
  20714. case $as_dir in #(
  20715. -*) as_dir=./$as_dir;;
  20716. esac
  20717. test -d "$as_dir" || eval $as_mkdir_p || {
  20718. as_dirs=
  20719. while :; do
  20720. case $as_dir in #(
  20721. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  20722. *) as_qdir=$as_dir;;
  20723. esac
  20724. as_dirs="'$as_qdir' $as_dirs"
  20725. as_dir=`$as_dirname -- "$as_dir" ||
  20726. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20727. X"$as_dir" : 'X\(//\)[^/]' \| \
  20728. X"$as_dir" : 'X\(//\)$' \| \
  20729. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20730. $as_echo X"$as_dir" |
  20731. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20732. s//\1/
  20733. q
  20734. }
  20735. /^X\(\/\/\)[^/].*/{
  20736. s//\1/
  20737. q
  20738. }
  20739. /^X\(\/\/\)$/{
  20740. s//\1/
  20741. q
  20742. }
  20743. /^X\(\/\).*/{
  20744. s//\1/
  20745. q
  20746. }
  20747. s/.*/./; q'`
  20748. test -d "$as_dir" && break
  20749. done
  20750. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20751. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  20752. } # as_fn_mkdir_p
  20753. if mkdir -p . 2>/dev/null; then
  20754. as_mkdir_p='mkdir -p "$as_dir"'
  20755. else
  20756. test -d ./-p && rmdir ./-p
  20757. as_mkdir_p=false
  20758. fi
  20759. # as_fn_executable_p FILE
  20760. # -----------------------
  20761. # Test if FILE is an executable regular file.
  20762. as_fn_executable_p ()
  20763. {
  20764. test -f "$1" && test -x "$1"
  20765. } # as_fn_executable_p
  20766. as_test_x='test -x'
  20767. as_executable_p=as_fn_executable_p
  20768. # Sed expression to map a string onto a valid CPP name.
  20769. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20770. # Sed expression to map a string onto a valid variable name.
  20771. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20772. exec 6>&1
  20773. ## ----------------------------------- ##
  20774. ## Main body of $CONFIG_STATUS script. ##
  20775. ## ----------------------------------- ##
  20776. _ASEOF
  20777. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  20778. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20779. # Save the log message, to keep $0 and so on meaningful, and to
  20780. # report actual input values of CONFIG_FILES etc. instead of their
  20781. # values after options handling.
  20782. ac_log="
  20783. This file was extended by $as_me, which was
  20784. generated by GNU Autoconf 2.69. Invocation command line was
  20785. CONFIG_FILES = $CONFIG_FILES
  20786. CONFIG_HEADERS = $CONFIG_HEADERS
  20787. CONFIG_LINKS = $CONFIG_LINKS
  20788. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20789. $ $0 $@
  20790. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20791. "
  20792. _ACEOF
  20793. case $ac_config_files in *"
  20794. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  20795. esac
  20796. case $ac_config_headers in *"
  20797. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  20798. esac
  20799. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20800. # Files that config.status was made for.
  20801. config_files="$ac_config_files"
  20802. config_headers="$ac_config_headers"
  20803. config_commands="$ac_config_commands"
  20804. _ACEOF
  20805. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20806. ac_cs_usage="\
  20807. \`$as_me' instantiates files and other configuration actions
  20808. from templates according to the current configuration. Unless the files
  20809. and actions are specified as TAGs, all are instantiated by default.
  20810. Usage: $0 [OPTION]... [TAG]...
  20811. -h, --help print this help, then exit
  20812. -V, --version print version number and configuration settings, then exit
  20813. --config print configuration, then exit
  20814. -q, --quiet, --silent
  20815. do not print progress messages
  20816. -d, --debug don't remove temporary files
  20817. --recheck update $as_me by reconfiguring in the same conditions
  20818. --file=FILE[:TEMPLATE]
  20819. instantiate the configuration file FILE
  20820. --header=FILE[:TEMPLATE]
  20821. instantiate the configuration header FILE
  20822. Configuration files:
  20823. $config_files
  20824. Configuration headers:
  20825. $config_headers
  20826. Configuration commands:
  20827. $config_commands
  20828. Report bugs to the package provider."
  20829. _ACEOF
  20830. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20831. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  20832. ac_cs_version="\\
  20833. config.status
  20834. configured by $0, generated by GNU Autoconf 2.69,
  20835. with options \\"\$ac_cs_config\\"
  20836. Copyright (C) 2012 Free Software Foundation, Inc.
  20837. This config.status script is free software; the Free Software Foundation
  20838. gives unlimited permission to copy, distribute and modify it."
  20839. ac_pwd='$ac_pwd'
  20840. srcdir='$srcdir'
  20841. INSTALL='$INSTALL'
  20842. AWK='$AWK'
  20843. test -n "\$AWK" || AWK=awk
  20844. _ACEOF
  20845. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20846. # The default lists apply if the user does not specify any file.
  20847. ac_need_defaults=:
  20848. while test $# != 0
  20849. do
  20850. case $1 in
  20851. --*=?*)
  20852. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20853. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20854. ac_shift=:
  20855. ;;
  20856. --*=)
  20857. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20858. ac_optarg=
  20859. ac_shift=:
  20860. ;;
  20861. *)
  20862. ac_option=$1
  20863. ac_optarg=$2
  20864. ac_shift=shift
  20865. ;;
  20866. esac
  20867. case $ac_option in
  20868. # Handling of the options.
  20869. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20870. ac_cs_recheck=: ;;
  20871. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20872. $as_echo "$ac_cs_version"; exit ;;
  20873. --config | --confi | --conf | --con | --co | --c )
  20874. $as_echo "$ac_cs_config"; exit ;;
  20875. --debug | --debu | --deb | --de | --d | -d )
  20876. debug=: ;;
  20877. --file | --fil | --fi | --f )
  20878. $ac_shift
  20879. case $ac_optarg in
  20880. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20881. '') as_fn_error $? "missing file argument" ;;
  20882. esac
  20883. as_fn_append CONFIG_FILES " '$ac_optarg'"
  20884. ac_need_defaults=false;;
  20885. --header | --heade | --head | --hea )
  20886. $ac_shift
  20887. case $ac_optarg in
  20888. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20889. esac
  20890. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  20891. ac_need_defaults=false;;
  20892. --he | --h)
  20893. # Conflict between --help and --header
  20894. as_fn_error $? "ambiguous option: \`$1'
  20895. Try \`$0 --help' for more information.";;
  20896. --help | --hel | -h )
  20897. $as_echo "$ac_cs_usage"; exit ;;
  20898. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20899. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20900. ac_cs_silent=: ;;
  20901. # This is an error.
  20902. -*) as_fn_error $? "unrecognized option: \`$1'
  20903. Try \`$0 --help' for more information." ;;
  20904. *) as_fn_append ac_config_targets " $1"
  20905. ac_need_defaults=false ;;
  20906. esac
  20907. shift
  20908. done
  20909. ac_configure_extra_args=
  20910. if $ac_cs_silent; then
  20911. exec 6>/dev/null
  20912. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20913. fi
  20914. _ACEOF
  20915. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20916. if \$ac_cs_recheck; then
  20917. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20918. shift
  20919. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  20920. CONFIG_SHELL='$SHELL'
  20921. export CONFIG_SHELL
  20922. exec "\$@"
  20923. fi
  20924. _ACEOF
  20925. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20926. exec 5>>config.log
  20927. {
  20928. echo
  20929. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20930. ## Running $as_me. ##
  20931. _ASBOX
  20932. $as_echo "$ac_log"
  20933. } >&5
  20934. _ACEOF
  20935. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20936. #
  20937. # INIT-COMMANDS
  20938. #
  20939. # The HP-UX ksh and POSIX shell print the target directory to stdout
  20940. # if CDPATH is set.
  20941. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20942. sed_quote_subst='$sed_quote_subst'
  20943. double_quote_subst='$double_quote_subst'
  20944. delay_variable_subst='$delay_variable_subst'
  20945. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  20946. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  20947. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  20948. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  20949. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  20950. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  20951. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  20952. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  20953. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  20954. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  20955. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  20956. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  20957. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  20958. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  20959. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  20960. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  20961. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  20962. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  20963. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  20964. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  20965. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  20966. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  20967. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  20968. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  20969. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  20970. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  20971. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  20972. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  20973. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  20974. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  20975. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  20976. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  20977. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  20978. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  20979. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  20980. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  20981. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  20982. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  20983. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  20984. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  20985. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  20986. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  20987. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  20988. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  20989. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  20990. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  20991. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20992. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20993. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  20994. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  20995. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  20996. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  20997. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  20998. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  20999. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21000. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21001. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21002. 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"`'
  21003. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21004. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21005. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21006. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21007. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21008. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21009. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21010. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21011. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21012. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21013. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21014. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21015. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21016. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21017. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21018. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21019. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21020. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21021. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21022. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21023. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21024. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21025. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21026. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21027. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21028. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21029. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21030. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21031. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21032. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21033. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21034. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21035. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21036. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  21037. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  21038. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  21039. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  21040. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  21041. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21042. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  21043. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  21044. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  21045. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  21046. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  21047. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  21048. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  21049. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  21050. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  21051. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  21052. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  21053. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21054. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  21055. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  21056. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  21057. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21058. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  21059. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  21060. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  21061. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  21062. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  21063. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21064. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21065. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  21066. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  21067. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  21068. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  21069. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  21070. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  21071. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  21072. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  21073. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  21074. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  21075. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  21076. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  21077. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  21078. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  21079. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  21080. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  21081. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  21082. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  21083. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21084. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21085. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21086. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  21087. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  21088. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21089. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  21090. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  21091. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  21092. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  21093. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  21094. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  21095. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21096. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21097. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  21098. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21099. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21100. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21101. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21102. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21103. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21104. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  21105. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21106. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21107. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21108. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  21109. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  21110. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  21111. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  21112. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  21113. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  21114. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  21115. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  21116. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  21117. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21118. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21119. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21120. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21121. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21122. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21123. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  21124. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  21125. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21126. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21127. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  21128. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  21129. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  21130. LTCC='$LTCC'
  21131. LTCFLAGS='$LTCFLAGS'
  21132. compiler='$compiler_DEFAULT'
  21133. # A function that is used when there is no print builtin or printf.
  21134. func_fallback_echo ()
  21135. {
  21136. eval 'cat <<_LTECHO_EOF
  21137. \$1
  21138. _LTECHO_EOF'
  21139. }
  21140. # Quote evaled strings.
  21141. for var in AS \
  21142. DLLTOOL \
  21143. OBJDUMP \
  21144. SHELL \
  21145. ECHO \
  21146. PATH_SEPARATOR \
  21147. SED \
  21148. GREP \
  21149. EGREP \
  21150. FGREP \
  21151. LD \
  21152. NM \
  21153. LN_S \
  21154. lt_SP2NL \
  21155. lt_NL2SP \
  21156. reload_flag \
  21157. deplibs_check_method \
  21158. file_magic_cmd \
  21159. file_magic_glob \
  21160. want_nocaseglob \
  21161. sharedlib_from_linklib_cmd \
  21162. AR \
  21163. AR_FLAGS \
  21164. archiver_list_spec \
  21165. STRIP \
  21166. RANLIB \
  21167. CC \
  21168. CFLAGS \
  21169. compiler \
  21170. lt_cv_sys_global_symbol_pipe \
  21171. lt_cv_sys_global_symbol_to_cdecl \
  21172. lt_cv_sys_global_symbol_to_c_name_address \
  21173. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21174. nm_file_list_spec \
  21175. lt_prog_compiler_no_builtin_flag \
  21176. lt_prog_compiler_pic \
  21177. lt_prog_compiler_wl \
  21178. lt_prog_compiler_static \
  21179. lt_cv_prog_compiler_c_o \
  21180. need_locks \
  21181. MANIFEST_TOOL \
  21182. DSYMUTIL \
  21183. NMEDIT \
  21184. LIPO \
  21185. OTOOL \
  21186. OTOOL64 \
  21187. shrext_cmds \
  21188. export_dynamic_flag_spec \
  21189. whole_archive_flag_spec \
  21190. compiler_needs_object \
  21191. with_gnu_ld \
  21192. allow_undefined_flag \
  21193. no_undefined_flag \
  21194. hardcode_libdir_flag_spec \
  21195. hardcode_libdir_separator \
  21196. exclude_expsyms \
  21197. include_expsyms \
  21198. file_list_spec \
  21199. variables_saved_for_relink \
  21200. libname_spec \
  21201. library_names_spec \
  21202. soname_spec \
  21203. install_override_mode \
  21204. finish_eval \
  21205. old_striplib \
  21206. striplib \
  21207. compiler_lib_search_dirs \
  21208. predep_objects \
  21209. postdep_objects \
  21210. predeps \
  21211. postdeps \
  21212. compiler_lib_search_path \
  21213. LD_CXX \
  21214. reload_flag_CXX \
  21215. compiler_CXX \
  21216. lt_prog_compiler_no_builtin_flag_CXX \
  21217. lt_prog_compiler_pic_CXX \
  21218. lt_prog_compiler_wl_CXX \
  21219. lt_prog_compiler_static_CXX \
  21220. lt_cv_prog_compiler_c_o_CXX \
  21221. export_dynamic_flag_spec_CXX \
  21222. whole_archive_flag_spec_CXX \
  21223. compiler_needs_object_CXX \
  21224. with_gnu_ld_CXX \
  21225. allow_undefined_flag_CXX \
  21226. no_undefined_flag_CXX \
  21227. hardcode_libdir_flag_spec_CXX \
  21228. hardcode_libdir_separator_CXX \
  21229. exclude_expsyms_CXX \
  21230. include_expsyms_CXX \
  21231. file_list_spec_CXX \
  21232. compiler_lib_search_dirs_CXX \
  21233. predep_objects_CXX \
  21234. postdep_objects_CXX \
  21235. predeps_CXX \
  21236. postdeps_CXX \
  21237. compiler_lib_search_path_CXX; do
  21238. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21239. *[\\\\\\\`\\"\\\$]*)
  21240. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  21241. ;;
  21242. *)
  21243. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21244. ;;
  21245. esac
  21246. done
  21247. # Double-quote double-evaled strings.
  21248. for var in reload_cmds \
  21249. old_postinstall_cmds \
  21250. old_postuninstall_cmds \
  21251. old_archive_cmds \
  21252. extract_expsyms_cmds \
  21253. old_archive_from_new_cmds \
  21254. old_archive_from_expsyms_cmds \
  21255. archive_cmds \
  21256. archive_expsym_cmds \
  21257. module_cmds \
  21258. module_expsym_cmds \
  21259. export_symbols_cmds \
  21260. prelink_cmds \
  21261. postlink_cmds \
  21262. postinstall_cmds \
  21263. postuninstall_cmds \
  21264. finish_cmds \
  21265. sys_lib_search_path_spec \
  21266. sys_lib_dlsearch_path_spec \
  21267. reload_cmds_CXX \
  21268. old_archive_cmds_CXX \
  21269. old_archive_from_new_cmds_CXX \
  21270. old_archive_from_expsyms_cmds_CXX \
  21271. archive_cmds_CXX \
  21272. archive_expsym_cmds_CXX \
  21273. module_cmds_CXX \
  21274. module_expsym_cmds_CXX \
  21275. export_symbols_cmds_CXX \
  21276. prelink_cmds_CXX \
  21277. postlink_cmds_CXX; do
  21278. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21279. *[\\\\\\\`\\"\\\$]*)
  21280. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  21281. ;;
  21282. *)
  21283. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21284. ;;
  21285. esac
  21286. done
  21287. ac_aux_dir='$ac_aux_dir'
  21288. xsi_shell='$xsi_shell'
  21289. lt_shell_append='$lt_shell_append'
  21290. # See if we are running on zsh, and set the options which allow our
  21291. # commands through without removal of \ escapes INIT.
  21292. if test -n "\${ZSH_VERSION+set}" ; then
  21293. setopt NO_GLOB_SUBST
  21294. fi
  21295. PACKAGE='$PACKAGE'
  21296. VERSION='$VERSION'
  21297. TIMESTAMP='$TIMESTAMP'
  21298. RM='$RM'
  21299. ofile='$ofile'
  21300. SUMMARY="$SUMMARY"
  21301. _ACEOF
  21302. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21303. # Handling of arguments.
  21304. for ac_config_target in $ac_config_targets
  21305. do
  21306. case $ac_config_target in
  21307. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  21308. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  21309. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  21310. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  21311. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  21312. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  21313. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  21314. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  21315. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  21316. esac
  21317. done
  21318. # If the user did not use the arguments to specify the items to instantiate,
  21319. # then the envvar interface is used. Set only those that are not.
  21320. # We use the long form for the default assignment because of an extremely
  21321. # bizarre bug on SunOS 4.1.3.
  21322. if $ac_need_defaults; then
  21323. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21324. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21325. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21326. fi
  21327. # Have a temporary directory for convenience. Make it in the build tree
  21328. # simply because there is no reason against having it here, and in addition,
  21329. # creating and moving files from /tmp can sometimes cause problems.
  21330. # Hook for its removal unless debugging.
  21331. # Note that there is a small window in which the directory will not be cleaned:
  21332. # after its creation but before its name has been assigned to `$tmp'.
  21333. $debug ||
  21334. {
  21335. tmp= ac_tmp=
  21336. trap 'exit_status=$?
  21337. : "${ac_tmp:=$tmp}"
  21338. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  21339. ' 0
  21340. trap 'as_fn_exit 1' 1 2 13 15
  21341. }
  21342. # Create a (secure) tmp directory for tmp files.
  21343. {
  21344. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21345. test -d "$tmp"
  21346. } ||
  21347. {
  21348. tmp=./conf$$-$RANDOM
  21349. (umask 077 && mkdir "$tmp")
  21350. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  21351. ac_tmp=$tmp
  21352. # Set up the scripts for CONFIG_FILES section.
  21353. # No need to generate them if there are no CONFIG_FILES.
  21354. # This happens for instance with `./config.status config.h'.
  21355. if test -n "$CONFIG_FILES"; then
  21356. ac_cr=`echo X | tr X '\015'`
  21357. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  21358. # But we know of no other shell where ac_cr would be empty at this
  21359. # point, so we can use a bashism as a fallback.
  21360. if test "x$ac_cr" = x; then
  21361. eval ac_cr=\$\'\\r\'
  21362. fi
  21363. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21364. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21365. ac_cs_awk_cr='\\r'
  21366. else
  21367. ac_cs_awk_cr=$ac_cr
  21368. fi
  21369. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  21370. _ACEOF
  21371. {
  21372. echo "cat >conf$$subs.awk <<_ACEOF" &&
  21373. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21374. echo "_ACEOF"
  21375. } >conf$$subs.sh ||
  21376. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21377. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  21378. ac_delim='%!_!# '
  21379. for ac_last_try in false false false false false :; do
  21380. . ./conf$$subs.sh ||
  21381. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21382. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21383. if test $ac_delim_n = $ac_delim_num; then
  21384. break
  21385. elif $ac_last_try; then
  21386. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21387. else
  21388. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21389. fi
  21390. done
  21391. rm -f conf$$subs.sh
  21392. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21393. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  21394. _ACEOF
  21395. sed -n '
  21396. h
  21397. s/^/S["/; s/!.*/"]=/
  21398. p
  21399. g
  21400. s/^[^!]*!//
  21401. :repl
  21402. t repl
  21403. s/'"$ac_delim"'$//
  21404. t delim
  21405. :nl
  21406. h
  21407. s/\(.\{148\}\)..*/\1/
  21408. t more1
  21409. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21410. p
  21411. n
  21412. b repl
  21413. :more1
  21414. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21415. p
  21416. g
  21417. s/.\{148\}//
  21418. t nl
  21419. :delim
  21420. h
  21421. s/\(.\{148\}\)..*/\1/
  21422. t more2
  21423. s/["\\]/\\&/g; s/^/"/; s/$/"/
  21424. p
  21425. b
  21426. :more2
  21427. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21428. p
  21429. g
  21430. s/.\{148\}//
  21431. t delim
  21432. ' <conf$$subs.awk | sed '
  21433. /^[^""]/{
  21434. N
  21435. s/\n//
  21436. }
  21437. ' >>$CONFIG_STATUS || ac_write_fail=1
  21438. rm -f conf$$subs.awk
  21439. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21440. _ACAWK
  21441. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  21442. for (key in S) S_is_set[key] = 1
  21443. FS = ""
  21444. }
  21445. {
  21446. line = $ 0
  21447. nfields = split(line, field, "@")
  21448. substed = 0
  21449. len = length(field[1])
  21450. for (i = 2; i < nfields; i++) {
  21451. key = field[i]
  21452. keylen = length(key)
  21453. if (S_is_set[key]) {
  21454. value = S[key]
  21455. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21456. len += length(value) + length(field[++i])
  21457. substed = 1
  21458. } else
  21459. len += 1 + keylen
  21460. }
  21461. print line
  21462. }
  21463. _ACAWK
  21464. _ACEOF
  21465. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21466. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21467. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21468. else
  21469. cat
  21470. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  21471. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  21472. _ACEOF
  21473. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  21474. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  21475. # trailing colons and then remove the whole line if VPATH becomes empty
  21476. # (actually we leave an empty line to preserve line numbers).
  21477. if test "x$srcdir" = x.; then
  21478. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  21479. h
  21480. s///
  21481. s/^/:/
  21482. s/[ ]*$/:/
  21483. s/:\$(srcdir):/:/g
  21484. s/:\${srcdir}:/:/g
  21485. s/:@srcdir@:/:/g
  21486. s/^:*//
  21487. s/:*$//
  21488. x
  21489. s/\(=[ ]*\).*/\1/
  21490. G
  21491. s/\n//
  21492. s/^[^=]*=[ ]*$//
  21493. }'
  21494. fi
  21495. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21496. fi # test -n "$CONFIG_FILES"
  21497. # Set up the scripts for CONFIG_HEADERS section.
  21498. # No need to generate them if there are no CONFIG_HEADERS.
  21499. # This happens for instance with `./config.status Makefile'.
  21500. if test -n "$CONFIG_HEADERS"; then
  21501. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  21502. BEGIN {
  21503. _ACEOF
  21504. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21505. # here-document in config.status, that substitutes the proper values into
  21506. # config.h.in to produce config.h.
  21507. # Create a delimiter string that does not exist in confdefs.h, to ease
  21508. # handling of long lines.
  21509. ac_delim='%!_!# '
  21510. for ac_last_try in false false :; do
  21511. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  21512. if test -z "$ac_tt"; then
  21513. break
  21514. elif $ac_last_try; then
  21515. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  21516. else
  21517. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21518. fi
  21519. done
  21520. # For the awk script, D is an array of macro values keyed by name,
  21521. # likewise P contains macro parameters if any. Preserve backslash
  21522. # newline sequences.
  21523. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21524. sed -n '
  21525. s/.\{148\}/&'"$ac_delim"'/g
  21526. t rset
  21527. :rset
  21528. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21529. t def
  21530. d
  21531. :def
  21532. s/\\$//
  21533. t bsnl
  21534. s/["\\]/\\&/g
  21535. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21536. D["\1"]=" \3"/p
  21537. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21538. d
  21539. :bsnl
  21540. s/["\\]/\\&/g
  21541. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21542. D["\1"]=" \3\\\\\\n"\\/p
  21543. t cont
  21544. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21545. t cont
  21546. d
  21547. :cont
  21548. n
  21549. s/.\{148\}/&'"$ac_delim"'/g
  21550. t clear
  21551. :clear
  21552. s/\\$//
  21553. t bsnlc
  21554. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21555. d
  21556. :bsnlc
  21557. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21558. b cont
  21559. ' <confdefs.h | sed '
  21560. s/'"$ac_delim"'/"\\\
  21561. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21562. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21563. for (key in D) D_is_set[key] = 1
  21564. FS = ""
  21565. }
  21566. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21567. line = \$ 0
  21568. split(line, arg, " ")
  21569. if (arg[1] == "#") {
  21570. defundef = arg[2]
  21571. mac1 = arg[3]
  21572. } else {
  21573. defundef = substr(arg[1], 2)
  21574. mac1 = arg[2]
  21575. }
  21576. split(mac1, mac2, "(") #)
  21577. macro = mac2[1]
  21578. prefix = substr(line, 1, index(line, defundef) - 1)
  21579. if (D_is_set[macro]) {
  21580. # Preserve the white space surrounding the "#".
  21581. print prefix "define", macro P[macro] D[macro]
  21582. next
  21583. } else {
  21584. # Replace #undef with comments. This is necessary, for example,
  21585. # in the case of _POSIX_SOURCE, which is predefined and required
  21586. # on some systems where configure will not decide to define it.
  21587. if (defundef == "undef") {
  21588. print "/*", prefix defundef, macro, "*/"
  21589. next
  21590. }
  21591. }
  21592. }
  21593. { print }
  21594. _ACAWK
  21595. _ACEOF
  21596. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21597. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  21598. fi # test -n "$CONFIG_HEADERS"
  21599. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21600. shift
  21601. for ac_tag
  21602. do
  21603. case $ac_tag in
  21604. :[FHLC]) ac_mode=$ac_tag; continue;;
  21605. esac
  21606. case $ac_mode$ac_tag in
  21607. :[FHL]*:*);;
  21608. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  21609. :[FH]-) ac_tag=-:-;;
  21610. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21611. esac
  21612. ac_save_IFS=$IFS
  21613. IFS=:
  21614. set x $ac_tag
  21615. IFS=$ac_save_IFS
  21616. shift
  21617. ac_file=$1
  21618. shift
  21619. case $ac_mode in
  21620. :L) ac_source=$1;;
  21621. :[FH])
  21622. ac_file_inputs=
  21623. for ac_f
  21624. do
  21625. case $ac_f in
  21626. -) ac_f="$ac_tmp/stdin";;
  21627. *) # Look for the file first in the build tree, then in the source tree
  21628. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21629. # because $ac_f cannot contain `:'.
  21630. test -f "$ac_f" ||
  21631. case $ac_f in
  21632. [\\/$]*) false;;
  21633. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21634. esac ||
  21635. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  21636. esac
  21637. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21638. as_fn_append ac_file_inputs " '$ac_f'"
  21639. done
  21640. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21641. # use $as_me), people would be surprised to read:
  21642. # /* config.h. Generated by config.status. */
  21643. configure_input='Generated from '`
  21644. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21645. `' by configure.'
  21646. if test x"$ac_file" != x-; then
  21647. configure_input="$ac_file. $configure_input"
  21648. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  21649. $as_echo "$as_me: creating $ac_file" >&6;}
  21650. fi
  21651. # Neutralize special characters interpreted by sed in replacement strings.
  21652. case $configure_input in #(
  21653. *\&* | *\|* | *\\* )
  21654. ac_sed_conf_input=`$as_echo "$configure_input" |
  21655. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21656. *) ac_sed_conf_input=$configure_input;;
  21657. esac
  21658. case $ac_tag in
  21659. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  21660. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  21661. esac
  21662. ;;
  21663. esac
  21664. ac_dir=`$as_dirname -- "$ac_file" ||
  21665. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21666. X"$ac_file" : 'X\(//\)[^/]' \| \
  21667. X"$ac_file" : 'X\(//\)$' \| \
  21668. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21669. $as_echo X"$ac_file" |
  21670. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21671. s//\1/
  21672. q
  21673. }
  21674. /^X\(\/\/\)[^/].*/{
  21675. s//\1/
  21676. q
  21677. }
  21678. /^X\(\/\/\)$/{
  21679. s//\1/
  21680. q
  21681. }
  21682. /^X\(\/\).*/{
  21683. s//\1/
  21684. q
  21685. }
  21686. s/.*/./; q'`
  21687. as_dir="$ac_dir"; as_fn_mkdir_p
  21688. ac_builddir=.
  21689. case "$ac_dir" in
  21690. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21691. *)
  21692. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21693. # A ".." for each directory in $ac_dir_suffix.
  21694. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21695. case $ac_top_builddir_sub in
  21696. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21697. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21698. esac ;;
  21699. esac
  21700. ac_abs_top_builddir=$ac_pwd
  21701. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21702. # for backward compatibility:
  21703. ac_top_builddir=$ac_top_build_prefix
  21704. case $srcdir in
  21705. .) # We are building in place.
  21706. ac_srcdir=.
  21707. ac_top_srcdir=$ac_top_builddir_sub
  21708. ac_abs_top_srcdir=$ac_pwd ;;
  21709. [\\/]* | ?:[\\/]* ) # Absolute name.
  21710. ac_srcdir=$srcdir$ac_dir_suffix;
  21711. ac_top_srcdir=$srcdir
  21712. ac_abs_top_srcdir=$srcdir ;;
  21713. *) # Relative name.
  21714. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21715. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21716. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21717. esac
  21718. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21719. case $ac_mode in
  21720. :F)
  21721. #
  21722. # CONFIG_FILE
  21723. #
  21724. case $INSTALL in
  21725. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21726. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21727. esac
  21728. _ACEOF
  21729. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21730. # If the template does not know about datarootdir, expand it.
  21731. # FIXME: This hack should be removed a few years after 2.60.
  21732. ac_datarootdir_hack=; ac_datarootdir_seen=
  21733. ac_sed_dataroot='
  21734. /datarootdir/ {
  21735. p
  21736. q
  21737. }
  21738. /@datadir@/p
  21739. /@docdir@/p
  21740. /@infodir@/p
  21741. /@localedir@/p
  21742. /@mandir@/p'
  21743. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21744. *datarootdir*) ac_datarootdir_seen=yes;;
  21745. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21746. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21747. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21748. _ACEOF
  21749. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21750. ac_datarootdir_hack='
  21751. s&@datadir@&$datadir&g
  21752. s&@docdir@&$docdir&g
  21753. s&@infodir@&$infodir&g
  21754. s&@localedir@&$localedir&g
  21755. s&@mandir@&$mandir&g
  21756. s&\\\${datarootdir}&$datarootdir&g' ;;
  21757. esac
  21758. _ACEOF
  21759. # Neutralize VPATH when `$srcdir' = `.'.
  21760. # Shell code in configure.ac might set extrasub.
  21761. # FIXME: do we really want to maintain this feature?
  21762. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21763. ac_sed_extra="$ac_vpsub
  21764. $extrasub
  21765. _ACEOF
  21766. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21767. :t
  21768. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21769. s|@configure_input@|$ac_sed_conf_input|;t t
  21770. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21771. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  21772. s&@srcdir@&$ac_srcdir&;t t
  21773. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21774. s&@top_srcdir@&$ac_top_srcdir&;t t
  21775. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21776. s&@builddir@&$ac_builddir&;t t
  21777. s&@abs_builddir@&$ac_abs_builddir&;t t
  21778. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21779. s&@INSTALL@&$ac_INSTALL&;t t
  21780. $ac_datarootdir_hack
  21781. "
  21782. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  21783. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21784. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21785. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  21786. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  21787. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  21788. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21789. which seems to be undefined. Please make sure it is defined" >&5
  21790. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21791. which seems to be undefined. Please make sure it is defined" >&2;}
  21792. rm -f "$ac_tmp/stdin"
  21793. case $ac_file in
  21794. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  21795. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  21796. esac \
  21797. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21798. ;;
  21799. :H)
  21800. #
  21801. # CONFIG_HEADER
  21802. #
  21803. if test x"$ac_file" != x-; then
  21804. {
  21805. $as_echo "/* $configure_input */" \
  21806. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  21807. } >"$ac_tmp/config.h" \
  21808. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21809. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  21810. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  21811. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  21812. else
  21813. rm -f "$ac_file"
  21814. mv "$ac_tmp/config.h" "$ac_file" \
  21815. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21816. fi
  21817. else
  21818. $as_echo "/* $configure_input */" \
  21819. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  21820. || as_fn_error $? "could not create -" "$LINENO" 5
  21821. fi
  21822. ;;
  21823. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  21824. $as_echo "$as_me: executing $ac_file commands" >&6;}
  21825. ;;
  21826. esac
  21827. case $ac_file$ac_mode in
  21828. "libtool":C)
  21829. # See if we are running on zsh, and set the options which allow our
  21830. # commands through without removal of \ escapes.
  21831. if test -n "${ZSH_VERSION+set}" ; then
  21832. setopt NO_GLOB_SUBST
  21833. fi
  21834. cfgfile="${ofile}T"
  21835. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  21836. $RM "$cfgfile"
  21837. cat <<_LT_EOF >> "$cfgfile"
  21838. #! $SHELL
  21839. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  21840. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  21841. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  21842. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  21843. #
  21844. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  21845. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  21846. # Foundation, Inc.
  21847. # Written by Gordon Matzigkeit, 1996
  21848. #
  21849. # This file is part of GNU Libtool.
  21850. #
  21851. # GNU Libtool is free software; you can redistribute it and/or
  21852. # modify it under the terms of the GNU General Public License as
  21853. # published by the Free Software Foundation; either version 2 of
  21854. # the License, or (at your option) any later version.
  21855. #
  21856. # As a special exception to the GNU General Public License,
  21857. # if you distribute this file as part of a program or library that
  21858. # is built using GNU Libtool, you may include this file under the
  21859. # same distribution terms that you use for the rest of that program.
  21860. #
  21861. # GNU Libtool is distributed in the hope that it will be useful,
  21862. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21863. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21864. # GNU General Public License for more details.
  21865. #
  21866. # You should have received a copy of the GNU General Public License
  21867. # along with GNU Libtool; see the file COPYING. If not, a copy
  21868. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  21869. # obtained by writing to the Free Software Foundation, Inc.,
  21870. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21871. # The names of the tagged configurations supported by this script.
  21872. available_tags="CXX "
  21873. # ### BEGIN LIBTOOL CONFIG
  21874. # Which release of libtool.m4 was used?
  21875. macro_version=$macro_version
  21876. macro_revision=$macro_revision
  21877. # Assembler program.
  21878. AS=$lt_AS
  21879. # DLL creation program.
  21880. DLLTOOL=$lt_DLLTOOL
  21881. # Object dumper program.
  21882. OBJDUMP=$lt_OBJDUMP
  21883. # Whether or not to build shared libraries.
  21884. build_libtool_libs=$enable_shared
  21885. # Whether or not to build static libraries.
  21886. build_old_libs=$enable_static
  21887. # What type of objects to build.
  21888. pic_mode=$pic_mode
  21889. # Whether or not to optimize for fast installation.
  21890. fast_install=$enable_fast_install
  21891. # Shell to use when invoking shell scripts.
  21892. SHELL=$lt_SHELL
  21893. # An echo program that protects backslashes.
  21894. ECHO=$lt_ECHO
  21895. # The PATH separator for the build system.
  21896. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  21897. # The host system.
  21898. host_alias=$host_alias
  21899. host=$host
  21900. host_os=$host_os
  21901. # The build system.
  21902. build_alias=$build_alias
  21903. build=$build
  21904. build_os=$build_os
  21905. # A sed program that does not truncate output.
  21906. SED=$lt_SED
  21907. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  21908. Xsed="\$SED -e 1s/^X//"
  21909. # A grep program that handles long lines.
  21910. GREP=$lt_GREP
  21911. # An ERE matcher.
  21912. EGREP=$lt_EGREP
  21913. # A literal string matcher.
  21914. FGREP=$lt_FGREP
  21915. # A BSD- or MS-compatible name lister.
  21916. NM=$lt_NM
  21917. # Whether we need soft or hard links.
  21918. LN_S=$lt_LN_S
  21919. # What is the maximum length of a command?
  21920. max_cmd_len=$max_cmd_len
  21921. # Object file suffix (normally "o").
  21922. objext=$ac_objext
  21923. # Executable file suffix (normally "").
  21924. exeext=$exeext
  21925. # whether the shell understands "unset".
  21926. lt_unset=$lt_unset
  21927. # turn spaces into newlines.
  21928. SP2NL=$lt_lt_SP2NL
  21929. # turn newlines into spaces.
  21930. NL2SP=$lt_lt_NL2SP
  21931. # convert \$build file names to \$host format.
  21932. to_host_file_cmd=$lt_cv_to_host_file_cmd
  21933. # convert \$build files to toolchain format.
  21934. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  21935. # Method to check whether dependent libraries are shared objects.
  21936. deplibs_check_method=$lt_deplibs_check_method
  21937. # Command to use when deplibs_check_method = "file_magic".
  21938. file_magic_cmd=$lt_file_magic_cmd
  21939. # How to find potential files when deplibs_check_method = "file_magic".
  21940. file_magic_glob=$lt_file_magic_glob
  21941. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  21942. want_nocaseglob=$lt_want_nocaseglob
  21943. # Command to associate shared and link libraries.
  21944. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  21945. # The archiver.
  21946. AR=$lt_AR
  21947. # Flags to create an archive.
  21948. AR_FLAGS=$lt_AR_FLAGS
  21949. # How to feed a file listing to the archiver.
  21950. archiver_list_spec=$lt_archiver_list_spec
  21951. # A symbol stripping program.
  21952. STRIP=$lt_STRIP
  21953. # Commands used to install an old-style archive.
  21954. RANLIB=$lt_RANLIB
  21955. old_postinstall_cmds=$lt_old_postinstall_cmds
  21956. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  21957. # Whether to use a lock for old archive extraction.
  21958. lock_old_archive_extraction=$lock_old_archive_extraction
  21959. # A C compiler.
  21960. LTCC=$lt_CC
  21961. # LTCC compiler flags.
  21962. LTCFLAGS=$lt_CFLAGS
  21963. # Take the output of nm and produce a listing of raw symbols and C names.
  21964. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  21965. # Transform the output of nm in a proper C declaration.
  21966. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  21967. # Transform the output of nm in a C name address pair.
  21968. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  21969. # Transform the output of nm in a C name address pair when lib prefix is needed.
  21970. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  21971. # Specify filename containing input files for \$NM.
  21972. nm_file_list_spec=$lt_nm_file_list_spec
  21973. # The root where to search for dependent libraries,and in which our libraries should be installed.
  21974. lt_sysroot=$lt_sysroot
  21975. # The name of the directory that contains temporary libtool files.
  21976. objdir=$objdir
  21977. # Used to examine libraries when file_magic_cmd begins with "file".
  21978. MAGIC_CMD=$MAGIC_CMD
  21979. # Must we lock files when doing compilation?
  21980. need_locks=$lt_need_locks
  21981. # Manifest tool.
  21982. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  21983. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  21984. DSYMUTIL=$lt_DSYMUTIL
  21985. # Tool to change global to local symbols on Mac OS X.
  21986. NMEDIT=$lt_NMEDIT
  21987. # Tool to manipulate fat objects and archives on Mac OS X.
  21988. LIPO=$lt_LIPO
  21989. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  21990. OTOOL=$lt_OTOOL
  21991. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  21992. OTOOL64=$lt_OTOOL64
  21993. # Old archive suffix (normally "a").
  21994. libext=$libext
  21995. # Shared library suffix (normally ".so").
  21996. shrext_cmds=$lt_shrext_cmds
  21997. # The commands to extract the exported symbol list from a shared archive.
  21998. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  21999. # Variables whose values should be saved in libtool wrapper scripts and
  22000. # restored at link time.
  22001. variables_saved_for_relink=$lt_variables_saved_for_relink
  22002. # Do we need the "lib" prefix for modules?
  22003. need_lib_prefix=$need_lib_prefix
  22004. # Do we need a version for libraries?
  22005. need_version=$need_version
  22006. # Library versioning type.
  22007. version_type=$version_type
  22008. # Shared library runtime path variable.
  22009. runpath_var=$runpath_var
  22010. # Shared library path variable.
  22011. shlibpath_var=$shlibpath_var
  22012. # Is shlibpath searched before the hard-coded library search path?
  22013. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22014. # Format of library name prefix.
  22015. libname_spec=$lt_libname_spec
  22016. # List of archive names. First name is the real one, the rest are links.
  22017. # The last name is the one that the linker finds with -lNAME
  22018. library_names_spec=$lt_library_names_spec
  22019. # The coded name of the library, if different from the real name.
  22020. soname_spec=$lt_soname_spec
  22021. # Permission mode override for installation of shared libraries.
  22022. install_override_mode=$lt_install_override_mode
  22023. # Command to use after installation of a shared archive.
  22024. postinstall_cmds=$lt_postinstall_cmds
  22025. # Command to use after uninstallation of a shared archive.
  22026. postuninstall_cmds=$lt_postuninstall_cmds
  22027. # Commands used to finish a libtool library installation in a directory.
  22028. finish_cmds=$lt_finish_cmds
  22029. # As "finish_cmds", except a single script fragment to be evaled but
  22030. # not shown.
  22031. finish_eval=$lt_finish_eval
  22032. # Whether we should hardcode library paths into libraries.
  22033. hardcode_into_libs=$hardcode_into_libs
  22034. # Compile-time system search path for libraries.
  22035. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22036. # Run-time system search path for libraries.
  22037. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22038. # Whether dlopen is supported.
  22039. dlopen_support=$enable_dlopen
  22040. # Whether dlopen of programs is supported.
  22041. dlopen_self=$enable_dlopen_self
  22042. # Whether dlopen of statically linked programs is supported.
  22043. dlopen_self_static=$enable_dlopen_self_static
  22044. # Commands to strip libraries.
  22045. old_striplib=$lt_old_striplib
  22046. striplib=$lt_striplib
  22047. # The linker used to build libraries.
  22048. LD=$lt_LD
  22049. # How to create reloadable object files.
  22050. reload_flag=$lt_reload_flag
  22051. reload_cmds=$lt_reload_cmds
  22052. # Commands used to build an old-style archive.
  22053. old_archive_cmds=$lt_old_archive_cmds
  22054. # A language specific compiler.
  22055. CC=$lt_compiler
  22056. # Is the compiler the GNU compiler?
  22057. with_gcc=$GCC
  22058. # Compiler flag to turn off builtin functions.
  22059. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22060. # Additional compiler flags for building library objects.
  22061. pic_flag=$lt_lt_prog_compiler_pic
  22062. # How to pass a linker flag through the compiler.
  22063. wl=$lt_lt_prog_compiler_wl
  22064. # Compiler flag to prevent dynamic linking.
  22065. link_static_flag=$lt_lt_prog_compiler_static
  22066. # Does compiler simultaneously support -c and -o options?
  22067. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22068. # Whether or not to add -lc for building shared libraries.
  22069. build_libtool_need_lc=$archive_cmds_need_lc
  22070. # Whether or not to disallow shared libs when runtime libs are static.
  22071. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22072. # Compiler flag to allow reflexive dlopens.
  22073. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22074. # Compiler flag to generate shared objects directly from archives.
  22075. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22076. # Whether the compiler copes with passing no objects directly.
  22077. compiler_needs_object=$lt_compiler_needs_object
  22078. # Create an old-style archive from a shared archive.
  22079. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22080. # Create a temporary old-style archive to link instead of a shared archive.
  22081. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22082. # Commands used to build a shared archive.
  22083. archive_cmds=$lt_archive_cmds
  22084. archive_expsym_cmds=$lt_archive_expsym_cmds
  22085. # Commands used to build a loadable module if different from building
  22086. # a shared archive.
  22087. module_cmds=$lt_module_cmds
  22088. module_expsym_cmds=$lt_module_expsym_cmds
  22089. # Whether we are building with GNU ld or not.
  22090. with_gnu_ld=$lt_with_gnu_ld
  22091. # Flag that allows shared libraries with undefined symbols to be built.
  22092. allow_undefined_flag=$lt_allow_undefined_flag
  22093. # Flag that enforces no undefined symbols.
  22094. no_undefined_flag=$lt_no_undefined_flag
  22095. # Flag to hardcode \$libdir into a binary during linking.
  22096. # This must work even if \$libdir does not exist
  22097. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22098. # Whether we need a single "-rpath" flag with a separated argument.
  22099. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22100. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22101. # DIR into the resulting binary.
  22102. hardcode_direct=$hardcode_direct
  22103. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22104. # DIR into the resulting binary and the resulting library dependency is
  22105. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22106. # library is relocated.
  22107. hardcode_direct_absolute=$hardcode_direct_absolute
  22108. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22109. # into the resulting binary.
  22110. hardcode_minus_L=$hardcode_minus_L
  22111. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22112. # into the resulting binary.
  22113. hardcode_shlibpath_var=$hardcode_shlibpath_var
  22114. # Set to "yes" if building a shared library automatically hardcodes DIR
  22115. # into the library and all subsequent libraries and executables linked
  22116. # against it.
  22117. hardcode_automatic=$hardcode_automatic
  22118. # Set to yes if linker adds runtime paths of dependent libraries
  22119. # to runtime path list.
  22120. inherit_rpath=$inherit_rpath
  22121. # Whether libtool must link a program against all its dependency libraries.
  22122. link_all_deplibs=$link_all_deplibs
  22123. # Set to "yes" if exported symbols are required.
  22124. always_export_symbols=$always_export_symbols
  22125. # The commands to list exported symbols.
  22126. export_symbols_cmds=$lt_export_symbols_cmds
  22127. # Symbols that should not be listed in the preloaded symbols.
  22128. exclude_expsyms=$lt_exclude_expsyms
  22129. # Symbols that must always be exported.
  22130. include_expsyms=$lt_include_expsyms
  22131. # Commands necessary for linking programs (against libraries) with templates.
  22132. prelink_cmds=$lt_prelink_cmds
  22133. # Commands necessary for finishing linking programs.
  22134. postlink_cmds=$lt_postlink_cmds
  22135. # Specify filename containing input files.
  22136. file_list_spec=$lt_file_list_spec
  22137. # How to hardcode a shared library path into an executable.
  22138. hardcode_action=$hardcode_action
  22139. # The directories searched by this compiler when creating a shared library.
  22140. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22141. # Dependencies to place before and after the objects being linked to
  22142. # create a shared library.
  22143. predep_objects=$lt_predep_objects
  22144. postdep_objects=$lt_postdep_objects
  22145. predeps=$lt_predeps
  22146. postdeps=$lt_postdeps
  22147. # The library search path used internally by the compiler when linking
  22148. # a shared library.
  22149. compiler_lib_search_path=$lt_compiler_lib_search_path
  22150. # ### END LIBTOOL CONFIG
  22151. _LT_EOF
  22152. case $host_os in
  22153. aix3*)
  22154. cat <<\_LT_EOF >> "$cfgfile"
  22155. # AIX sometimes has problems with the GCC collect2 program. For some
  22156. # reason, if we set the COLLECT_NAMES environment variable, the problems
  22157. # vanish in a puff of smoke.
  22158. if test "X${COLLECT_NAMES+set}" != Xset; then
  22159. COLLECT_NAMES=
  22160. export COLLECT_NAMES
  22161. fi
  22162. _LT_EOF
  22163. ;;
  22164. esac
  22165. ltmain="$ac_aux_dir/ltmain.sh"
  22166. # We use sed instead of cat because bash on DJGPP gets confused if
  22167. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  22168. # text mode, it properly converts lines to CR/LF. This bash problem
  22169. # is reportedly fixed, but why not run on old versions too?
  22170. sed '$q' "$ltmain" >> "$cfgfile" \
  22171. || (rm -f "$cfgfile"; exit 1)
  22172. if test x"$xsi_shell" = xyes; then
  22173. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  22174. func_dirname ()\
  22175. {\
  22176. \ case ${1} in\
  22177. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22178. \ * ) func_dirname_result="${3}" ;;\
  22179. \ esac\
  22180. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  22181. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22182. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22183. test 0 -eq $? || _lt_function_replace_fail=:
  22184. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  22185. func_basename ()\
  22186. {\
  22187. \ func_basename_result="${1##*/}"\
  22188. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22189. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22190. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22191. test 0 -eq $? || _lt_function_replace_fail=:
  22192. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  22193. func_dirname_and_basename ()\
  22194. {\
  22195. \ case ${1} in\
  22196. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22197. \ * ) func_dirname_result="${3}" ;;\
  22198. \ esac\
  22199. \ func_basename_result="${1##*/}"\
  22200. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22201. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22202. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22203. test 0 -eq $? || _lt_function_replace_fail=:
  22204. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  22205. func_stripname ()\
  22206. {\
  22207. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  22208. \ # positional parameters, so assign one to ordinary parameter first.\
  22209. \ func_stripname_result=${3}\
  22210. \ func_stripname_result=${func_stripname_result#"${1}"}\
  22211. \ func_stripname_result=${func_stripname_result%"${2}"}\
  22212. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  22213. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22214. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22215. test 0 -eq $? || _lt_function_replace_fail=:
  22216. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  22217. func_split_long_opt ()\
  22218. {\
  22219. \ func_split_long_opt_name=${1%%=*}\
  22220. \ func_split_long_opt_arg=${1#*=}\
  22221. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22222. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22223. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22224. test 0 -eq $? || _lt_function_replace_fail=:
  22225. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  22226. func_split_short_opt ()\
  22227. {\
  22228. \ func_split_short_opt_arg=${1#??}\
  22229. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  22230. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22231. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22232. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22233. test 0 -eq $? || _lt_function_replace_fail=:
  22234. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  22235. func_lo2o ()\
  22236. {\
  22237. \ case ${1} in\
  22238. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  22239. \ *) func_lo2o_result=${1} ;;\
  22240. \ esac\
  22241. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  22242. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22243. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22244. test 0 -eq $? || _lt_function_replace_fail=:
  22245. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  22246. func_xform ()\
  22247. {\
  22248. func_xform_result=${1%.*}.lo\
  22249. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  22250. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22251. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22252. test 0 -eq $? || _lt_function_replace_fail=:
  22253. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  22254. func_arith ()\
  22255. {\
  22256. func_arith_result=$(( $* ))\
  22257. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  22258. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22259. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22260. test 0 -eq $? || _lt_function_replace_fail=:
  22261. sed -e '/^func_len ()$/,/^} # func_len /c\
  22262. func_len ()\
  22263. {\
  22264. func_len_result=${#1}\
  22265. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  22266. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22267. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22268. test 0 -eq $? || _lt_function_replace_fail=:
  22269. fi
  22270. if test x"$lt_shell_append" = xyes; then
  22271. sed -e '/^func_append ()$/,/^} # func_append /c\
  22272. func_append ()\
  22273. {\
  22274. eval "${1}+=\\${2}"\
  22275. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  22276. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22277. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22278. test 0 -eq $? || _lt_function_replace_fail=:
  22279. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  22280. func_append_quoted ()\
  22281. {\
  22282. \ func_quote_for_eval "${2}"\
  22283. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  22284. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  22285. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22286. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22287. test 0 -eq $? || _lt_function_replace_fail=:
  22288. # Save a `func_append' function call where possible by direct use of '+='
  22289. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  22290. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22291. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22292. test 0 -eq $? || _lt_function_replace_fail=:
  22293. else
  22294. # Save a `func_append' function call even when '+=' is not available
  22295. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  22296. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22297. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22298. test 0 -eq $? || _lt_function_replace_fail=:
  22299. fi
  22300. if test x"$_lt_function_replace_fail" = x":"; then
  22301. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  22302. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  22303. fi
  22304. mv -f "$cfgfile" "$ofile" ||
  22305. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  22306. chmod +x "$ofile"
  22307. cat <<_LT_EOF >> "$ofile"
  22308. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  22309. # The linker used to build libraries.
  22310. LD=$lt_LD_CXX
  22311. # How to create reloadable object files.
  22312. reload_flag=$lt_reload_flag_CXX
  22313. reload_cmds=$lt_reload_cmds_CXX
  22314. # Commands used to build an old-style archive.
  22315. old_archive_cmds=$lt_old_archive_cmds_CXX
  22316. # A language specific compiler.
  22317. CC=$lt_compiler_CXX
  22318. # Is the compiler the GNU compiler?
  22319. with_gcc=$GCC_CXX
  22320. # Compiler flag to turn off builtin functions.
  22321. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  22322. # Additional compiler flags for building library objects.
  22323. pic_flag=$lt_lt_prog_compiler_pic_CXX
  22324. # How to pass a linker flag through the compiler.
  22325. wl=$lt_lt_prog_compiler_wl_CXX
  22326. # Compiler flag to prevent dynamic linking.
  22327. link_static_flag=$lt_lt_prog_compiler_static_CXX
  22328. # Does compiler simultaneously support -c and -o options?
  22329. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  22330. # Whether or not to add -lc for building shared libraries.
  22331. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  22332. # Whether or not to disallow shared libs when runtime libs are static.
  22333. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  22334. # Compiler flag to allow reflexive dlopens.
  22335. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  22336. # Compiler flag to generate shared objects directly from archives.
  22337. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  22338. # Whether the compiler copes with passing no objects directly.
  22339. compiler_needs_object=$lt_compiler_needs_object_CXX
  22340. # Create an old-style archive from a shared archive.
  22341. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  22342. # Create a temporary old-style archive to link instead of a shared archive.
  22343. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  22344. # Commands used to build a shared archive.
  22345. archive_cmds=$lt_archive_cmds_CXX
  22346. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  22347. # Commands used to build a loadable module if different from building
  22348. # a shared archive.
  22349. module_cmds=$lt_module_cmds_CXX
  22350. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  22351. # Whether we are building with GNU ld or not.
  22352. with_gnu_ld=$lt_with_gnu_ld_CXX
  22353. # Flag that allows shared libraries with undefined symbols to be built.
  22354. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  22355. # Flag that enforces no undefined symbols.
  22356. no_undefined_flag=$lt_no_undefined_flag_CXX
  22357. # Flag to hardcode \$libdir into a binary during linking.
  22358. # This must work even if \$libdir does not exist
  22359. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  22360. # Whether we need a single "-rpath" flag with a separated argument.
  22361. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  22362. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22363. # DIR into the resulting binary.
  22364. hardcode_direct=$hardcode_direct_CXX
  22365. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22366. # DIR into the resulting binary and the resulting library dependency is
  22367. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22368. # library is relocated.
  22369. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  22370. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22371. # into the resulting binary.
  22372. hardcode_minus_L=$hardcode_minus_L_CXX
  22373. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22374. # into the resulting binary.
  22375. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  22376. # Set to "yes" if building a shared library automatically hardcodes DIR
  22377. # into the library and all subsequent libraries and executables linked
  22378. # against it.
  22379. hardcode_automatic=$hardcode_automatic_CXX
  22380. # Set to yes if linker adds runtime paths of dependent libraries
  22381. # to runtime path list.
  22382. inherit_rpath=$inherit_rpath_CXX
  22383. # Whether libtool must link a program against all its dependency libraries.
  22384. link_all_deplibs=$link_all_deplibs_CXX
  22385. # Set to "yes" if exported symbols are required.
  22386. always_export_symbols=$always_export_symbols_CXX
  22387. # The commands to list exported symbols.
  22388. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  22389. # Symbols that should not be listed in the preloaded symbols.
  22390. exclude_expsyms=$lt_exclude_expsyms_CXX
  22391. # Symbols that must always be exported.
  22392. include_expsyms=$lt_include_expsyms_CXX
  22393. # Commands necessary for linking programs (against libraries) with templates.
  22394. prelink_cmds=$lt_prelink_cmds_CXX
  22395. # Commands necessary for finishing linking programs.
  22396. postlink_cmds=$lt_postlink_cmds_CXX
  22397. # Specify filename containing input files.
  22398. file_list_spec=$lt_file_list_spec_CXX
  22399. # How to hardcode a shared library path into an executable.
  22400. hardcode_action=$hardcode_action_CXX
  22401. # The directories searched by this compiler when creating a shared library.
  22402. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  22403. # Dependencies to place before and after the objects being linked to
  22404. # create a shared library.
  22405. predep_objects=$lt_predep_objects_CXX
  22406. postdep_objects=$lt_postdep_objects_CXX
  22407. predeps=$lt_predeps_CXX
  22408. postdeps=$lt_postdeps_CXX
  22409. # The library search path used internally by the compiler when linking
  22410. # a shared library.
  22411. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  22412. # ### END LIBTOOL TAG CONFIG: CXX
  22413. _LT_EOF
  22414. ;;
  22415. "sdl2_config":C) chmod a+x sdl2-config ;;
  22416. "summary":C) echo -en "$SUMMARY" ;;
  22417. esac
  22418. done # for ac_tag
  22419. as_fn_exit 0
  22420. _ACEOF
  22421. ac_clean_files=$ac_clean_files_save
  22422. test $ac_write_fail = 0 ||
  22423. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  22424. # configure is writing to config.log, and then calls config.status.
  22425. # config.status does its own redirection, appending to config.log.
  22426. # Unfortunately, on DOS this fails, as config.log is still kept open
  22427. # by configure, so config.status won't be able to write to it; its
  22428. # output is simply discarded. So we exec the FD to /dev/null,
  22429. # effectively closing config.log, so it can be properly (re)opened and
  22430. # appended to by config.status. When coming back to configure, we
  22431. # need to make the FD available again.
  22432. if test "$no_create" != yes; then
  22433. ac_cs_success=:
  22434. ac_config_status_args=
  22435. test "$silent" = yes &&
  22436. ac_config_status_args="$ac_config_status_args --quiet"
  22437. exec 5>/dev/null
  22438. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22439. exec 5>>config.log
  22440. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22441. # would make configure fail if this is the last instruction.
  22442. $ac_cs_success || as_fn_exit 1
  22443. fi
  22444. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22445. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22446. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22447. fi