configure 783 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="README.txt"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER
  582. EXTRA_LDFLAGS
  583. BUILD_LDFLAGS
  584. EXTRA_CFLAGS
  585. BUILD_CFLAGS
  586. SDLTEST_OBJECTS
  587. SDLMAIN_OBJECTS
  588. VERSION_OBJECTS
  589. GEN_OBJECTS
  590. GEN_HEADERS
  591. OBJECTS
  592. INCLUDE
  593. ac_aux_dir
  594. ENABLE_STATIC_FALSE
  595. ENABLE_STATIC_TRUE
  596. ENABLE_SHARED_FALSE
  597. ENABLE_SHARED_TRUE
  598. SDL_RLD_FLAGS
  599. SDL_STATIC_LIBS
  600. SDL_LIBS
  601. SDL_CFLAGS
  602. DIRECTFBCONFIG
  603. X_EXTRA_LIBS
  604. X_LIBS
  605. X_PRE_LIBS
  606. X_CFLAGS
  607. XMKMF
  608. ARTSCONFIG
  609. PKG_CONFIG
  610. ESD_LIBS
  611. ESD_CFLAGS
  612. ESD_CONFIG
  613. ALSA_LIBS
  614. ALSA_CFLAGS
  615. POW_LIB
  616. LIBOBJS
  617. ALLOCA
  618. WINDRES
  619. SET_MAKE
  620. INSTALL_DATA
  621. INSTALL_SCRIPT
  622. INSTALL_PROGRAM
  623. CXXCPP
  624. ac_ct_CXX
  625. CXXFLAGS
  626. CXX
  627. LT_AGE
  628. LT_REVISION
  629. LT_CURRENT
  630. LT_RELEASE
  631. CPP
  632. OTOOL64
  633. OTOOL
  634. LIPO
  635. NMEDIT
  636. DSYMUTIL
  637. MANIFEST_TOOL
  638. AWK
  639. RANLIB
  640. STRIP
  641. ac_ct_AR
  642. AR
  643. LN_S
  644. NM
  645. ac_ct_DUMPBIN
  646. DUMPBIN
  647. LD
  648. FGREP
  649. EGREP
  650. GREP
  651. SED
  652. OBJEXT
  653. EXEEXT
  654. ac_ct_CC
  655. CPPFLAGS
  656. LDFLAGS
  657. CFLAGS
  658. CC
  659. host_os
  660. host_vendor
  661. host_cpu
  662. host
  663. build_os
  664. build_vendor
  665. build_cpu
  666. build
  667. LIBTOOL
  668. OBJDUMP
  669. DLLTOOL
  670. AS
  671. SDL_VERSION
  672. SDL_BINARY_AGE
  673. SDL_INTERFACE_AGE
  674. SDL_MICRO_VERSION
  675. SDL_MINOR_VERSION
  676. SDL_MAJOR_VERSION
  677. target_alias
  678. host_alias
  679. build_alias
  680. LIBS
  681. ECHO_T
  682. ECHO_N
  683. ECHO_C
  684. DEFS
  685. mandir
  686. localedir
  687. libdir
  688. psdir
  689. pdfdir
  690. dvidir
  691. htmldir
  692. infodir
  693. docdir
  694. oldincludedir
  695. includedir
  696. runstatedir
  697. localstatedir
  698. sharedstatedir
  699. sysconfdir
  700. datadir
  701. datarootdir
  702. libexecdir
  703. sbindir
  704. bindir
  705. program_transform_name
  706. prefix
  707. exec_prefix
  708. PACKAGE_URL
  709. PACKAGE_BUGREPORT
  710. PACKAGE_STRING
  711. PACKAGE_VERSION
  712. PACKAGE_TARNAME
  713. PACKAGE_NAME
  714. PATH_SEPARATOR
  715. SHELL'
  716. ac_subst_files=''
  717. ac_user_opts='
  718. enable_option_checking
  719. enable_shared
  720. enable_static
  721. with_pic
  722. enable_fast_install
  723. with_gnu_ld
  724. with_sysroot
  725. enable_libtool_lock
  726. enable_assertions
  727. enable_dependency_tracking
  728. enable_libc
  729. enable_gcc_atomics
  730. enable_atomic
  731. enable_audio
  732. enable_video
  733. enable_render
  734. enable_events
  735. enable_joystick
  736. enable_haptic
  737. enable_power
  738. enable_filesystem
  739. enable_threads
  740. enable_timers
  741. enable_file
  742. enable_loadso
  743. enable_cpuinfo
  744. enable_assembly
  745. enable_ssemath
  746. enable_mmx
  747. enable_3dnow
  748. enable_sse
  749. enable_sse2
  750. enable_sse3
  751. enable_altivec
  752. enable_oss
  753. enable_alsa
  754. with_alsa_prefix
  755. with_alsa_inc_prefix
  756. enable_alsatest
  757. enable_alsa_shared
  758. enable_esd
  759. with_esd_prefix
  760. with_esd_exec_prefix
  761. enable_esdtest
  762. enable_esd_shared
  763. enable_pulseaudio
  764. enable_pulseaudio_shared
  765. enable_arts
  766. enable_arts_shared
  767. enable_nas
  768. enable_nas_shared
  769. enable_sndio
  770. enable_sndio_shared
  771. enable_fusionsound
  772. enable_fusionsound_shared
  773. enable_diskaudio
  774. enable_dummyaudio
  775. enable_libsamplerate
  776. enable_libsamplerate_shared
  777. enable_video_wayland
  778. enable_video_wayland_qt_touch
  779. enable_wayland_shared
  780. enable_video_mir
  781. enable_mir_shared
  782. enable_video_x11
  783. with_x
  784. enable_x11_shared
  785. enable_video_x11_xcursor
  786. enable_video_x11_xdbe
  787. enable_video_x11_xinerama
  788. enable_video_x11_xinput
  789. enable_video_x11_xrandr
  790. enable_video_x11_scrnsaver
  791. enable_video_x11_xshape
  792. enable_video_x11_vm
  793. enable_video_vivante
  794. enable_video_cocoa
  795. enable_video_directfb
  796. enable_directfb_shared
  797. enable_video_dummy
  798. enable_video_opengl
  799. enable_video_opengles
  800. enable_video_opengles1
  801. enable_video_opengles2
  802. enable_libudev
  803. enable_dbus
  804. enable_ime
  805. enable_ibus
  806. enable_fcitx
  807. enable_input_tslib
  808. enable_pthreads
  809. enable_pthread_sem
  810. enable_directx
  811. enable_sdl_dlopen
  812. enable_clock_gettime
  813. enable_rpath
  814. enable_render_d3d
  815. '
  816. ac_precious_vars='build_alias
  817. host_alias
  818. target_alias
  819. CC
  820. CFLAGS
  821. LDFLAGS
  822. LIBS
  823. CPPFLAGS
  824. CPP
  825. CXX
  826. CXXFLAGS
  827. CCC
  828. CXXCPP
  829. XMKMF'
  830. # Initialize some variables set by options.
  831. ac_init_help=
  832. ac_init_version=false
  833. ac_unrecognized_opts=
  834. ac_unrecognized_sep=
  835. # The variables have the same names as the options, with
  836. # dashes changed to underlines.
  837. cache_file=/dev/null
  838. exec_prefix=NONE
  839. no_create=
  840. no_recursion=
  841. prefix=NONE
  842. program_prefix=NONE
  843. program_suffix=NONE
  844. program_transform_name=s,x,x,
  845. silent=
  846. site=
  847. srcdir=
  848. verbose=
  849. x_includes=NONE
  850. x_libraries=NONE
  851. # Installation directory options.
  852. # These are left unexpanded so users can "make install exec_prefix=/foo"
  853. # and all the variables that are supposed to be based on exec_prefix
  854. # by default will actually change.
  855. # Use braces instead of parens because sh, perl, etc. also accept them.
  856. # (The list follows the same order as the GNU Coding Standards.)
  857. bindir='${exec_prefix}/bin'
  858. sbindir='${exec_prefix}/sbin'
  859. libexecdir='${exec_prefix}/libexec'
  860. datarootdir='${prefix}/share'
  861. datadir='${datarootdir}'
  862. sysconfdir='${prefix}/etc'
  863. sharedstatedir='${prefix}/com'
  864. localstatedir='${prefix}/var'
  865. runstatedir='${localstatedir}/run'
  866. includedir='${prefix}/include'
  867. oldincludedir='/usr/include'
  868. docdir='${datarootdir}/doc/${PACKAGE}'
  869. infodir='${datarootdir}/info'
  870. htmldir='${docdir}'
  871. dvidir='${docdir}'
  872. pdfdir='${docdir}'
  873. psdir='${docdir}'
  874. libdir='${exec_prefix}/lib'
  875. localedir='${datarootdir}/locale'
  876. mandir='${datarootdir}/man'
  877. ac_prev=
  878. ac_dashdash=
  879. for ac_option
  880. do
  881. # If the previous option needs an argument, assign it.
  882. if test -n "$ac_prev"; then
  883. eval $ac_prev=\$ac_option
  884. ac_prev=
  885. continue
  886. fi
  887. case $ac_option in
  888. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  889. *=) ac_optarg= ;;
  890. *) ac_optarg=yes ;;
  891. esac
  892. # Accept the important Cygnus configure options, so we can diagnose typos.
  893. case $ac_dashdash$ac_option in
  894. --)
  895. ac_dashdash=yes ;;
  896. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  897. ac_prev=bindir ;;
  898. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  899. bindir=$ac_optarg ;;
  900. -build | --build | --buil | --bui | --bu)
  901. ac_prev=build_alias ;;
  902. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  903. build_alias=$ac_optarg ;;
  904. -cache-file | --cache-file | --cache-fil | --cache-fi \
  905. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  906. ac_prev=cache_file ;;
  907. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  908. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  909. cache_file=$ac_optarg ;;
  910. --config-cache | -C)
  911. cache_file=config.cache ;;
  912. -datadir | --datadir | --datadi | --datad)
  913. ac_prev=datadir ;;
  914. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  915. datadir=$ac_optarg ;;
  916. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  917. | --dataroo | --dataro | --datar)
  918. ac_prev=datarootdir ;;
  919. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  920. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  921. datarootdir=$ac_optarg ;;
  922. -disable-* | --disable-*)
  923. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  924. # Reject names that are not valid shell variable names.
  925. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  926. as_fn_error $? "invalid feature name: $ac_useropt"
  927. ac_useropt_orig=$ac_useropt
  928. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  929. case $ac_user_opts in
  930. *"
  931. "enable_$ac_useropt"
  932. "*) ;;
  933. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  934. ac_unrecognized_sep=', ';;
  935. esac
  936. eval enable_$ac_useropt=no ;;
  937. -docdir | --docdir | --docdi | --doc | --do)
  938. ac_prev=docdir ;;
  939. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  940. docdir=$ac_optarg ;;
  941. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  942. ac_prev=dvidir ;;
  943. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  944. dvidir=$ac_optarg ;;
  945. -enable-* | --enable-*)
  946. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  947. # Reject names that are not valid shell variable names.
  948. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  949. as_fn_error $? "invalid feature name: $ac_useropt"
  950. ac_useropt_orig=$ac_useropt
  951. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  952. case $ac_user_opts in
  953. *"
  954. "enable_$ac_useropt"
  955. "*) ;;
  956. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  957. ac_unrecognized_sep=', ';;
  958. esac
  959. eval enable_$ac_useropt=\$ac_optarg ;;
  960. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  961. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  962. | --exec | --exe | --ex)
  963. ac_prev=exec_prefix ;;
  964. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  965. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  966. | --exec=* | --exe=* | --ex=*)
  967. exec_prefix=$ac_optarg ;;
  968. -gas | --gas | --ga | --g)
  969. # Obsolete; use --with-gas.
  970. with_gas=yes ;;
  971. -help | --help | --hel | --he | -h)
  972. ac_init_help=long ;;
  973. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  974. ac_init_help=recursive ;;
  975. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  976. ac_init_help=short ;;
  977. -host | --host | --hos | --ho)
  978. ac_prev=host_alias ;;
  979. -host=* | --host=* | --hos=* | --ho=*)
  980. host_alias=$ac_optarg ;;
  981. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  982. ac_prev=htmldir ;;
  983. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  984. | --ht=*)
  985. htmldir=$ac_optarg ;;
  986. -includedir | --includedir | --includedi | --included | --include \
  987. | --includ | --inclu | --incl | --inc)
  988. ac_prev=includedir ;;
  989. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  990. | --includ=* | --inclu=* | --incl=* | --inc=*)
  991. includedir=$ac_optarg ;;
  992. -infodir | --infodir | --infodi | --infod | --info | --inf)
  993. ac_prev=infodir ;;
  994. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  995. infodir=$ac_optarg ;;
  996. -libdir | --libdir | --libdi | --libd)
  997. ac_prev=libdir ;;
  998. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  999. libdir=$ac_optarg ;;
  1000. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1001. | --libexe | --libex | --libe)
  1002. ac_prev=libexecdir ;;
  1003. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1004. | --libexe=* | --libex=* | --libe=*)
  1005. libexecdir=$ac_optarg ;;
  1006. -localedir | --localedir | --localedi | --localed | --locale)
  1007. ac_prev=localedir ;;
  1008. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1009. localedir=$ac_optarg ;;
  1010. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1011. | --localstate | --localstat | --localsta | --localst | --locals)
  1012. ac_prev=localstatedir ;;
  1013. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1014. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1015. localstatedir=$ac_optarg ;;
  1016. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1017. ac_prev=mandir ;;
  1018. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1019. mandir=$ac_optarg ;;
  1020. -nfp | --nfp | --nf)
  1021. # Obsolete; use --without-fp.
  1022. with_fp=no ;;
  1023. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1024. | --no-cr | --no-c | -n)
  1025. no_create=yes ;;
  1026. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1027. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1028. no_recursion=yes ;;
  1029. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1030. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1031. | --oldin | --oldi | --old | --ol | --o)
  1032. ac_prev=oldincludedir ;;
  1033. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1034. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1035. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1036. oldincludedir=$ac_optarg ;;
  1037. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1038. ac_prev=prefix ;;
  1039. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1040. prefix=$ac_optarg ;;
  1041. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1042. | --program-pre | --program-pr | --program-p)
  1043. ac_prev=program_prefix ;;
  1044. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1045. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1046. program_prefix=$ac_optarg ;;
  1047. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1048. | --program-suf | --program-su | --program-s)
  1049. ac_prev=program_suffix ;;
  1050. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1051. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1052. program_suffix=$ac_optarg ;;
  1053. -program-transform-name | --program-transform-name \
  1054. | --program-transform-nam | --program-transform-na \
  1055. | --program-transform-n | --program-transform- \
  1056. | --program-transform | --program-transfor \
  1057. | --program-transfo | --program-transf \
  1058. | --program-trans | --program-tran \
  1059. | --progr-tra | --program-tr | --program-t)
  1060. ac_prev=program_transform_name ;;
  1061. -program-transform-name=* | --program-transform-name=* \
  1062. | --program-transform-nam=* | --program-transform-na=* \
  1063. | --program-transform-n=* | --program-transform-=* \
  1064. | --program-transform=* | --program-transfor=* \
  1065. | --program-transfo=* | --program-transf=* \
  1066. | --program-trans=* | --program-tran=* \
  1067. | --progr-tra=* | --program-tr=* | --program-t=*)
  1068. program_transform_name=$ac_optarg ;;
  1069. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1070. ac_prev=pdfdir ;;
  1071. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1072. pdfdir=$ac_optarg ;;
  1073. -psdir | --psdir | --psdi | --psd | --ps)
  1074. ac_prev=psdir ;;
  1075. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1076. psdir=$ac_optarg ;;
  1077. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1078. | -silent | --silent | --silen | --sile | --sil)
  1079. silent=yes ;;
  1080. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1081. | --runstate | --runstat | --runsta | --runst | --runs \
  1082. | --run | --ru | --r)
  1083. ac_prev=runstatedir ;;
  1084. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1085. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1086. | --run=* | --ru=* | --r=*)
  1087. runstatedir=$ac_optarg ;;
  1088. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1089. ac_prev=sbindir ;;
  1090. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1091. | --sbi=* | --sb=*)
  1092. sbindir=$ac_optarg ;;
  1093. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1094. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1095. | --sharedst | --shareds | --shared | --share | --shar \
  1096. | --sha | --sh)
  1097. ac_prev=sharedstatedir ;;
  1098. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1099. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1100. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1101. | --sha=* | --sh=*)
  1102. sharedstatedir=$ac_optarg ;;
  1103. -site | --site | --sit)
  1104. ac_prev=site ;;
  1105. -site=* | --site=* | --sit=*)
  1106. site=$ac_optarg ;;
  1107. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1108. ac_prev=srcdir ;;
  1109. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1110. srcdir=$ac_optarg ;;
  1111. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1112. | --syscon | --sysco | --sysc | --sys | --sy)
  1113. ac_prev=sysconfdir ;;
  1114. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1115. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1116. sysconfdir=$ac_optarg ;;
  1117. -target | --target | --targe | --targ | --tar | --ta | --t)
  1118. ac_prev=target_alias ;;
  1119. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1120. target_alias=$ac_optarg ;;
  1121. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1122. verbose=yes ;;
  1123. -version | --version | --versio | --versi | --vers | -V)
  1124. ac_init_version=: ;;
  1125. -with-* | --with-*)
  1126. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1127. # Reject names that are not valid shell variable names.
  1128. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1129. as_fn_error $? "invalid package name: $ac_useropt"
  1130. ac_useropt_orig=$ac_useropt
  1131. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1132. case $ac_user_opts in
  1133. *"
  1134. "with_$ac_useropt"
  1135. "*) ;;
  1136. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1137. ac_unrecognized_sep=', ';;
  1138. esac
  1139. eval with_$ac_useropt=\$ac_optarg ;;
  1140. -without-* | --without-*)
  1141. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1142. # Reject names that are not valid shell variable names.
  1143. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1144. as_fn_error $? "invalid package name: $ac_useropt"
  1145. ac_useropt_orig=$ac_useropt
  1146. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1147. case $ac_user_opts in
  1148. *"
  1149. "with_$ac_useropt"
  1150. "*) ;;
  1151. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1152. ac_unrecognized_sep=', ';;
  1153. esac
  1154. eval with_$ac_useropt=no ;;
  1155. --x)
  1156. # Obsolete; use --with-x.
  1157. with_x=yes ;;
  1158. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1159. | --x-incl | --x-inc | --x-in | --x-i)
  1160. ac_prev=x_includes ;;
  1161. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1162. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1163. x_includes=$ac_optarg ;;
  1164. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1165. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1166. ac_prev=x_libraries ;;
  1167. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1168. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1169. x_libraries=$ac_optarg ;;
  1170. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1171. Try \`$0 --help' for more information"
  1172. ;;
  1173. *=*)
  1174. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1175. # Reject names that are not valid shell variable names.
  1176. case $ac_envvar in #(
  1177. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1178. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1179. esac
  1180. eval $ac_envvar=\$ac_optarg
  1181. export $ac_envvar ;;
  1182. *)
  1183. # FIXME: should be removed in autoconf 3.0.
  1184. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1185. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1186. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1187. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1188. ;;
  1189. esac
  1190. done
  1191. if test -n "$ac_prev"; then
  1192. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1193. as_fn_error $? "missing argument to $ac_option"
  1194. fi
  1195. if test -n "$ac_unrecognized_opts"; then
  1196. case $enable_option_checking in
  1197. no) ;;
  1198. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1199. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1200. esac
  1201. fi
  1202. # Check all directory arguments for consistency.
  1203. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1204. datadir sysconfdir sharedstatedir localstatedir includedir \
  1205. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1206. libdir localedir mandir runstatedir
  1207. do
  1208. eval ac_val=\$$ac_var
  1209. # Remove trailing slashes.
  1210. case $ac_val in
  1211. */ )
  1212. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1213. eval $ac_var=\$ac_val;;
  1214. esac
  1215. # Be sure to have absolute directory names.
  1216. case $ac_val in
  1217. [\\/$]* | ?:[\\/]* ) continue;;
  1218. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1219. esac
  1220. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1221. done
  1222. # There might be people who depend on the old broken behavior: `$host'
  1223. # used to hold the argument of --host etc.
  1224. # FIXME: To remove some day.
  1225. build=$build_alias
  1226. host=$host_alias
  1227. target=$target_alias
  1228. # FIXME: To remove some day.
  1229. if test "x$host_alias" != x; then
  1230. if test "x$build_alias" = x; then
  1231. cross_compiling=maybe
  1232. elif test "x$build_alias" != "x$host_alias"; then
  1233. cross_compiling=yes
  1234. fi
  1235. fi
  1236. ac_tool_prefix=
  1237. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1238. test "$silent" = yes && exec 6>/dev/null
  1239. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1240. ac_ls_di=`ls -di .` &&
  1241. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1242. as_fn_error $? "working directory cannot be determined"
  1243. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1244. as_fn_error $? "pwd does not report name of working directory"
  1245. # Find the source files, if location was not specified.
  1246. if test -z "$srcdir"; then
  1247. ac_srcdir_defaulted=yes
  1248. # Try the directory containing this script, then the parent directory.
  1249. ac_confdir=`$as_dirname -- "$as_myself" ||
  1250. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1251. X"$as_myself" : 'X\(//\)[^/]' \| \
  1252. X"$as_myself" : 'X\(//\)$' \| \
  1253. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1254. $as_echo X"$as_myself" |
  1255. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1256. s//\1/
  1257. q
  1258. }
  1259. /^X\(\/\/\)[^/].*/{
  1260. s//\1/
  1261. q
  1262. }
  1263. /^X\(\/\/\)$/{
  1264. s//\1/
  1265. q
  1266. }
  1267. /^X\(\/\).*/{
  1268. s//\1/
  1269. q
  1270. }
  1271. s/.*/./; q'`
  1272. srcdir=$ac_confdir
  1273. if test ! -r "$srcdir/$ac_unique_file"; then
  1274. srcdir=..
  1275. fi
  1276. else
  1277. ac_srcdir_defaulted=no
  1278. fi
  1279. if test ! -r "$srcdir/$ac_unique_file"; then
  1280. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1281. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1282. fi
  1283. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1284. ac_abs_confdir=`(
  1285. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1286. pwd)`
  1287. # When building in place, set srcdir=.
  1288. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1289. srcdir=.
  1290. fi
  1291. # Remove unnecessary trailing slashes from srcdir.
  1292. # Double slashes in file names in object file debugging info
  1293. # mess up M-x gdb in Emacs.
  1294. case $srcdir in
  1295. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1296. esac
  1297. for ac_var in $ac_precious_vars; do
  1298. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1299. eval ac_env_${ac_var}_value=\$${ac_var}
  1300. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1301. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1302. done
  1303. #
  1304. # Report the --help message.
  1305. #
  1306. if test "$ac_init_help" = "long"; then
  1307. # Omit some internal or obsolete options to make the list less imposing.
  1308. # This message is too long to be a string in the A/UX 3.1 sh.
  1309. cat <<_ACEOF
  1310. \`configure' configures this package to adapt to many kinds of systems.
  1311. Usage: $0 [OPTION]... [VAR=VALUE]...
  1312. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1313. VAR=VALUE. See below for descriptions of some of the useful variables.
  1314. Defaults for the options are specified in brackets.
  1315. Configuration:
  1316. -h, --help display this help and exit
  1317. --help=short display options specific to this package
  1318. --help=recursive display the short help of all the included packages
  1319. -V, --version display version information and exit
  1320. -q, --quiet, --silent do not print \`checking ...' messages
  1321. --cache-file=FILE cache test results in FILE [disabled]
  1322. -C, --config-cache alias for \`--cache-file=config.cache'
  1323. -n, --no-create do not create output files
  1324. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1325. Installation directories:
  1326. --prefix=PREFIX install architecture-independent files in PREFIX
  1327. [$ac_default_prefix]
  1328. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1329. [PREFIX]
  1330. By default, \`make install' will install all the files in
  1331. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1332. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1333. for instance \`--prefix=\$HOME'.
  1334. For better control, use the options below.
  1335. Fine tuning of the installation directories:
  1336. --bindir=DIR user executables [EPREFIX/bin]
  1337. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1338. --libexecdir=DIR program executables [EPREFIX/libexec]
  1339. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1340. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1341. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1342. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1343. --libdir=DIR object code libraries [EPREFIX/lib]
  1344. --includedir=DIR C header files [PREFIX/include]
  1345. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1346. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1347. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1348. --infodir=DIR info documentation [DATAROOTDIR/info]
  1349. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1350. --mandir=DIR man documentation [DATAROOTDIR/man]
  1351. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1352. --htmldir=DIR html documentation [DOCDIR]
  1353. --dvidir=DIR dvi documentation [DOCDIR]
  1354. --pdfdir=DIR pdf documentation [DOCDIR]
  1355. --psdir=DIR ps documentation [DOCDIR]
  1356. _ACEOF
  1357. cat <<\_ACEOF
  1358. X features:
  1359. --x-includes=DIR X include files are in DIR
  1360. --x-libraries=DIR X library files are in DIR
  1361. System types:
  1362. --build=BUILD configure for building on BUILD [guessed]
  1363. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1364. _ACEOF
  1365. fi
  1366. if test -n "$ac_init_help"; then
  1367. cat <<\_ACEOF
  1368. Optional Features:
  1369. --disable-option-checking ignore unrecognized --enable/--with options
  1370. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1371. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1372. --enable-shared[=PKGS] build shared libraries [default=yes]
  1373. --enable-static[=PKGS] build static libraries [default=yes]
  1374. --enable-fast-install[=PKGS]
  1375. optimize for fast installation [default=yes]
  1376. --disable-libtool-lock avoid locking (might break parallel builds)
  1377. --enable-assertions Enable internal sanity checks
  1378. (auto/disabled/release/enabled/paranoid)
  1379. [[default=auto]]
  1380. --enable-dependency-tracking
  1381. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1382. --enable-libc Use the system C library [[default=yes]]
  1383. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1384. --enable-atomic Enable the atomic operations subsystem
  1385. [[default=yes]]
  1386. --enable-audio Enable the audio subsystem [[default=yes]]
  1387. --enable-video Enable the video subsystem [[default=yes]]
  1388. --enable-render Enable the render subsystem [[default=yes]]
  1389. --enable-events Enable the events subsystem [[default=yes]]
  1390. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1391. --enable-haptic Enable the haptic (force feedback) subsystem
  1392. [[default=yes]]
  1393. --enable-power Enable the power subsystem [[default=yes]]
  1394. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1395. --enable-threads Enable the threading subsystem [[default=yes]]
  1396. --enable-timers Enable the timer subsystem [[default=yes]]
  1397. --enable-file Enable the file subsystem [[default=yes]]
  1398. --enable-loadso Enable the shared object loading subsystem
  1399. [[default=yes]]
  1400. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1401. --enable-assembly Enable assembly routines [[default=yes]]
  1402. --enable-ssemath Allow GCC to use SSE floating point math
  1403. [[default=maybe]]
  1404. --enable-mmx use MMX assembly routines [[default=yes]]
  1405. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1406. --enable-sse use SSE assembly routines [[default=yes]]
  1407. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1408. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1409. --enable-altivec use Altivec assembly routines [[default=yes]]
  1410. --enable-oss support the OSS audio API [[default=maybe]]
  1411. --enable-alsa support the ALSA audio API [[default=yes]]
  1412. --disable-alsatest Do not try to compile and run a test Alsa program
  1413. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1414. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1415. --disable-esdtest Do not try to compile and run a test ESD program
  1416. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1417. --enable-pulseaudio use PulseAudio [[default=yes]]
  1418. --enable-pulseaudio-shared
  1419. dynamically load PulseAudio support [[default=yes]]
  1420. --enable-arts support the Analog Real Time Synthesizer
  1421. [[default=yes]]
  1422. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1423. --enable-nas support the NAS audio API [[default=yes]]
  1424. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1425. --enable-sndio support the sndio audio API [[default=yes]]
  1426. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1427. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1428. --enable-fusionsound-shared
  1429. dynamically load fusionsound audio support
  1430. [[default=yes]]
  1431. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1432. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1433. --enable-libsamplerate use libsamplerate for audio rate conversion
  1434. [[default=yes]]
  1435. --enable-libsamplerate-shared
  1436. dynamically load libsamplerate [[default=yes]]
  1437. --enable-video-wayland use Wayland video driver [[default=yes]]
  1438. --enable-video-wayland-qt-touch
  1439. QtWayland server support for Wayland video driver
  1440. [[default=yes]]
  1441. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1442. --enable-video-mir use Mir video driver [[default=yes]]
  1443. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1444. --enable-video-x11 use X11 video driver [[default=yes]]
  1445. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1446. --enable-video-x11-xcursor
  1447. enable X11 Xcursor support [[default=yes]]
  1448. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1449. --enable-video-x11-xinerama
  1450. enable X11 Xinerama support [[default=yes]]
  1451. --enable-video-x11-xinput
  1452. enable X11 XInput extension for manymouse, tablets,
  1453. etc [[default=yes]]
  1454. --enable-video-x11-xrandr
  1455. enable X11 Xrandr extension for fullscreen
  1456. [[default=yes]]
  1457. --enable-video-x11-scrnsaver
  1458. enable X11 screensaver extension [[default=yes]]
  1459. --enable-video-x11-xshape
  1460. enable X11 XShape support [[default=yes]]
  1461. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1462. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1463. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1464. --enable-video-directfb use DirectFB video driver [[default=no]]
  1465. --enable-directfb-shared
  1466. dynamically load directfb support [[default=yes]]
  1467. --enable-video-dummy use dummy video driver [[default=yes]]
  1468. --enable-video-opengl include OpenGL support [[default=yes]]
  1469. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1470. --enable-video-opengles1
  1471. include OpenGL ES 1.1 support [[default=yes]]
  1472. --enable-video-opengles2
  1473. include OpenGL ES 2.0 support [[default=yes]]
  1474. --enable-libudev enable libudev support [[default=yes]]
  1475. --enable-dbus enable D-Bus support [[default=yes]]
  1476. --enable-ime enable IME support [[default=yes]]
  1477. --enable-ibus enable IBus support [[default=yes]]
  1478. --enable-fcitx enable fcitx support [[default=yes]]
  1479. --enable-input-tslib use the Touchscreen library for input
  1480. [[default=yes]]
  1481. --enable-pthreads use POSIX threads for multi-threading
  1482. [[default=yes]]
  1483. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1484. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1485. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1486. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1487. UNIX [[default=yes]]
  1488. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1489. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1490. Optional Packages:
  1491. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1492. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1493. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1494. both]
  1495. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1496. --with-sysroot=DIR Search for dependent libraries within DIR
  1497. (or the compiler's sysroot if not specified).
  1498. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1499. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1500. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1501. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1502. --with-x use the X Window System
  1503. Some influential environment variables:
  1504. CC C compiler command
  1505. CFLAGS C compiler flags
  1506. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1507. nonstandard directory <lib dir>
  1508. LIBS libraries to pass to the linker, e.g. -l<library>
  1509. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1510. you have headers in a nonstandard directory <include dir>
  1511. CPP C preprocessor
  1512. CXX C++ compiler command
  1513. CXXFLAGS C++ compiler flags
  1514. CXXCPP C++ preprocessor
  1515. XMKMF Path to xmkmf, Makefile generator for X Window System
  1516. Use these variables to override the choices made by `configure' or to help
  1517. it to find libraries and programs with nonstandard names/locations.
  1518. Report bugs to the package provider.
  1519. _ACEOF
  1520. ac_status=$?
  1521. fi
  1522. if test "$ac_init_help" = "recursive"; then
  1523. # If there are subdirs, report their specific --help.
  1524. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1525. test -d "$ac_dir" ||
  1526. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1527. continue
  1528. ac_builddir=.
  1529. case "$ac_dir" in
  1530. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1531. *)
  1532. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1533. # A ".." for each directory in $ac_dir_suffix.
  1534. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1535. case $ac_top_builddir_sub in
  1536. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1537. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1538. esac ;;
  1539. esac
  1540. ac_abs_top_builddir=$ac_pwd
  1541. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1542. # for backward compatibility:
  1543. ac_top_builddir=$ac_top_build_prefix
  1544. case $srcdir in
  1545. .) # We are building in place.
  1546. ac_srcdir=.
  1547. ac_top_srcdir=$ac_top_builddir_sub
  1548. ac_abs_top_srcdir=$ac_pwd ;;
  1549. [\\/]* | ?:[\\/]* ) # Absolute name.
  1550. ac_srcdir=$srcdir$ac_dir_suffix;
  1551. ac_top_srcdir=$srcdir
  1552. ac_abs_top_srcdir=$srcdir ;;
  1553. *) # Relative name.
  1554. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1555. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1556. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1557. esac
  1558. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1559. cd "$ac_dir" || { ac_status=$?; continue; }
  1560. # Check for guested configure.
  1561. if test -f "$ac_srcdir/configure.gnu"; then
  1562. echo &&
  1563. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1564. elif test -f "$ac_srcdir/configure"; then
  1565. echo &&
  1566. $SHELL "$ac_srcdir/configure" --help=recursive
  1567. else
  1568. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1569. fi || ac_status=$?
  1570. cd "$ac_pwd" || { ac_status=$?; break; }
  1571. done
  1572. fi
  1573. test -n "$ac_init_help" && exit $ac_status
  1574. if $ac_init_version; then
  1575. cat <<\_ACEOF
  1576. configure
  1577. generated by GNU Autoconf 2.69
  1578. Copyright (C) 2012 Free Software Foundation, Inc.
  1579. This configure script is free software; the Free Software Foundation
  1580. gives unlimited permission to copy, distribute and modify it.
  1581. _ACEOF
  1582. exit
  1583. fi
  1584. ## ------------------------ ##
  1585. ## Autoconf initialization. ##
  1586. ## ------------------------ ##
  1587. # ac_fn_c_try_compile LINENO
  1588. # --------------------------
  1589. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1590. ac_fn_c_try_compile ()
  1591. {
  1592. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1593. rm -f conftest.$ac_objext
  1594. if { { ac_try="$ac_compile"
  1595. case "(($ac_try" in
  1596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1597. *) ac_try_echo=$ac_try;;
  1598. esac
  1599. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1600. $as_echo "$ac_try_echo"; } >&5
  1601. (eval "$ac_compile") 2>conftest.err
  1602. ac_status=$?
  1603. if test -s conftest.err; then
  1604. grep -v '^ *+' conftest.err >conftest.er1
  1605. cat conftest.er1 >&5
  1606. mv -f conftest.er1 conftest.err
  1607. fi
  1608. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1609. test $ac_status = 0; } && {
  1610. test -z "$ac_c_werror_flag" ||
  1611. test ! -s conftest.err
  1612. } && test -s conftest.$ac_objext; then :
  1613. ac_retval=0
  1614. else
  1615. $as_echo "$as_me: failed program was:" >&5
  1616. sed 's/^/| /' conftest.$ac_ext >&5
  1617. ac_retval=1
  1618. fi
  1619. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1620. as_fn_set_status $ac_retval
  1621. } # ac_fn_c_try_compile
  1622. # ac_fn_c_try_link LINENO
  1623. # -----------------------
  1624. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1625. ac_fn_c_try_link ()
  1626. {
  1627. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1628. rm -f conftest.$ac_objext conftest$ac_exeext
  1629. if { { ac_try="$ac_link"
  1630. case "(($ac_try" in
  1631. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1632. *) ac_try_echo=$ac_try;;
  1633. esac
  1634. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1635. $as_echo "$ac_try_echo"; } >&5
  1636. (eval "$ac_link") 2>conftest.err
  1637. ac_status=$?
  1638. if test -s conftest.err; then
  1639. grep -v '^ *+' conftest.err >conftest.er1
  1640. cat conftest.er1 >&5
  1641. mv -f conftest.er1 conftest.err
  1642. fi
  1643. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1644. test $ac_status = 0; } && {
  1645. test -z "$ac_c_werror_flag" ||
  1646. test ! -s conftest.err
  1647. } && test -s conftest$ac_exeext && {
  1648. test "$cross_compiling" = yes ||
  1649. test -x conftest$ac_exeext
  1650. }; then :
  1651. ac_retval=0
  1652. else
  1653. $as_echo "$as_me: failed program was:" >&5
  1654. sed 's/^/| /' conftest.$ac_ext >&5
  1655. ac_retval=1
  1656. fi
  1657. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1658. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1659. # interfere with the next link command; also delete a directory that is
  1660. # left behind by Apple's compiler. We do this before executing the actions.
  1661. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1662. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1663. as_fn_set_status $ac_retval
  1664. } # ac_fn_c_try_link
  1665. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1666. # -------------------------------------------------------
  1667. # Tests whether HEADER exists and can be compiled using the include files in
  1668. # INCLUDES, setting the cache variable VAR accordingly.
  1669. ac_fn_c_check_header_compile ()
  1670. {
  1671. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1673. $as_echo_n "checking for $2... " >&6; }
  1674. if eval \${$3+:} false; then :
  1675. $as_echo_n "(cached) " >&6
  1676. else
  1677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1678. /* end confdefs.h. */
  1679. $4
  1680. #include <$2>
  1681. _ACEOF
  1682. if ac_fn_c_try_compile "$LINENO"; then :
  1683. eval "$3=yes"
  1684. else
  1685. eval "$3=no"
  1686. fi
  1687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1688. fi
  1689. eval ac_res=\$$3
  1690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1691. $as_echo "$ac_res" >&6; }
  1692. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1693. } # ac_fn_c_check_header_compile
  1694. # ac_fn_c_try_cpp LINENO
  1695. # ----------------------
  1696. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1697. ac_fn_c_try_cpp ()
  1698. {
  1699. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1700. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1701. case "(($ac_try" in
  1702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1703. *) ac_try_echo=$ac_try;;
  1704. esac
  1705. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1706. $as_echo "$ac_try_echo"; } >&5
  1707. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1708. ac_status=$?
  1709. if test -s conftest.err; then
  1710. grep -v '^ *+' conftest.err >conftest.er1
  1711. cat conftest.er1 >&5
  1712. mv -f conftest.er1 conftest.err
  1713. fi
  1714. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1715. test $ac_status = 0; } > conftest.i && {
  1716. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1717. test ! -s conftest.err
  1718. }; then :
  1719. ac_retval=0
  1720. else
  1721. $as_echo "$as_me: failed program was:" >&5
  1722. sed 's/^/| /' conftest.$ac_ext >&5
  1723. ac_retval=1
  1724. fi
  1725. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1726. as_fn_set_status $ac_retval
  1727. } # ac_fn_c_try_cpp
  1728. # ac_fn_c_try_run LINENO
  1729. # ----------------------
  1730. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1731. # that executables *can* be run.
  1732. ac_fn_c_try_run ()
  1733. {
  1734. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1735. if { { ac_try="$ac_link"
  1736. case "(($ac_try" in
  1737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1738. *) ac_try_echo=$ac_try;;
  1739. esac
  1740. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1741. $as_echo "$ac_try_echo"; } >&5
  1742. (eval "$ac_link") 2>&5
  1743. ac_status=$?
  1744. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1745. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1746. { { case "(($ac_try" in
  1747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1748. *) ac_try_echo=$ac_try;;
  1749. esac
  1750. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1751. $as_echo "$ac_try_echo"; } >&5
  1752. (eval "$ac_try") 2>&5
  1753. ac_status=$?
  1754. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1755. test $ac_status = 0; }; }; then :
  1756. ac_retval=0
  1757. else
  1758. $as_echo "$as_me: program exited with status $ac_status" >&5
  1759. $as_echo "$as_me: failed program was:" >&5
  1760. sed 's/^/| /' conftest.$ac_ext >&5
  1761. ac_retval=$ac_status
  1762. fi
  1763. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1764. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1765. as_fn_set_status $ac_retval
  1766. } # ac_fn_c_try_run
  1767. # ac_fn_c_check_func LINENO FUNC VAR
  1768. # ----------------------------------
  1769. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1770. ac_fn_c_check_func ()
  1771. {
  1772. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1774. $as_echo_n "checking for $2... " >&6; }
  1775. if eval \${$3+:} false; then :
  1776. $as_echo_n "(cached) " >&6
  1777. else
  1778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1779. /* end confdefs.h. */
  1780. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1781. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1782. #define $2 innocuous_$2
  1783. /* System header to define __stub macros and hopefully few prototypes,
  1784. which can conflict with char $2 (); below.
  1785. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1786. <limits.h> exists even on freestanding compilers. */
  1787. #ifdef __STDC__
  1788. # include <limits.h>
  1789. #else
  1790. # include <assert.h>
  1791. #endif
  1792. #undef $2
  1793. /* Override any GCC internal prototype to avoid an error.
  1794. Use char because int might match the return type of a GCC
  1795. builtin and then its argument prototype would still apply. */
  1796. #ifdef __cplusplus
  1797. extern "C"
  1798. #endif
  1799. char $2 ();
  1800. /* The GNU C library defines this for functions which it implements
  1801. to always fail with ENOSYS. Some functions are actually named
  1802. something starting with __ and the normal name is an alias. */
  1803. #if defined __stub_$2 || defined __stub___$2
  1804. choke me
  1805. #endif
  1806. int
  1807. main ()
  1808. {
  1809. return $2 ();
  1810. ;
  1811. return 0;
  1812. }
  1813. _ACEOF
  1814. if ac_fn_c_try_link "$LINENO"; then :
  1815. eval "$3=yes"
  1816. else
  1817. eval "$3=no"
  1818. fi
  1819. rm -f core conftest.err conftest.$ac_objext \
  1820. conftest$ac_exeext conftest.$ac_ext
  1821. fi
  1822. eval ac_res=\$$3
  1823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1824. $as_echo "$ac_res" >&6; }
  1825. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1826. } # ac_fn_c_check_func
  1827. # ac_fn_cxx_try_compile LINENO
  1828. # ----------------------------
  1829. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1830. ac_fn_cxx_try_compile ()
  1831. {
  1832. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1833. rm -f conftest.$ac_objext
  1834. if { { ac_try="$ac_compile"
  1835. case "(($ac_try" in
  1836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1837. *) ac_try_echo=$ac_try;;
  1838. esac
  1839. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1840. $as_echo "$ac_try_echo"; } >&5
  1841. (eval "$ac_compile") 2>conftest.err
  1842. ac_status=$?
  1843. if test -s conftest.err; then
  1844. grep -v '^ *+' conftest.err >conftest.er1
  1845. cat conftest.er1 >&5
  1846. mv -f conftest.er1 conftest.err
  1847. fi
  1848. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1849. test $ac_status = 0; } && {
  1850. test -z "$ac_cxx_werror_flag" ||
  1851. test ! -s conftest.err
  1852. } && test -s conftest.$ac_objext; then :
  1853. ac_retval=0
  1854. else
  1855. $as_echo "$as_me: failed program was:" >&5
  1856. sed 's/^/| /' conftest.$ac_ext >&5
  1857. ac_retval=1
  1858. fi
  1859. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1860. as_fn_set_status $ac_retval
  1861. } # ac_fn_cxx_try_compile
  1862. # ac_fn_cxx_try_cpp LINENO
  1863. # ------------------------
  1864. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1865. ac_fn_cxx_try_cpp ()
  1866. {
  1867. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1868. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1869. case "(($ac_try" in
  1870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1871. *) ac_try_echo=$ac_try;;
  1872. esac
  1873. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1874. $as_echo "$ac_try_echo"; } >&5
  1875. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1876. ac_status=$?
  1877. if test -s conftest.err; then
  1878. grep -v '^ *+' conftest.err >conftest.er1
  1879. cat conftest.er1 >&5
  1880. mv -f conftest.er1 conftest.err
  1881. fi
  1882. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1883. test $ac_status = 0; } > conftest.i && {
  1884. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1885. test ! -s conftest.err
  1886. }; then :
  1887. ac_retval=0
  1888. else
  1889. $as_echo "$as_me: failed program was:" >&5
  1890. sed 's/^/| /' conftest.$ac_ext >&5
  1891. ac_retval=1
  1892. fi
  1893. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1894. as_fn_set_status $ac_retval
  1895. } # ac_fn_cxx_try_cpp
  1896. # ac_fn_cxx_try_link LINENO
  1897. # -------------------------
  1898. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1899. ac_fn_cxx_try_link ()
  1900. {
  1901. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1902. rm -f conftest.$ac_objext conftest$ac_exeext
  1903. if { { ac_try="$ac_link"
  1904. case "(($ac_try" in
  1905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1906. *) ac_try_echo=$ac_try;;
  1907. esac
  1908. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1909. $as_echo "$ac_try_echo"; } >&5
  1910. (eval "$ac_link") 2>conftest.err
  1911. ac_status=$?
  1912. if test -s conftest.err; then
  1913. grep -v '^ *+' conftest.err >conftest.er1
  1914. cat conftest.er1 >&5
  1915. mv -f conftest.er1 conftest.err
  1916. fi
  1917. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1918. test $ac_status = 0; } && {
  1919. test -z "$ac_cxx_werror_flag" ||
  1920. test ! -s conftest.err
  1921. } && test -s conftest$ac_exeext && {
  1922. test "$cross_compiling" = yes ||
  1923. test -x conftest$ac_exeext
  1924. }; then :
  1925. ac_retval=0
  1926. else
  1927. $as_echo "$as_me: failed program was:" >&5
  1928. sed 's/^/| /' conftest.$ac_ext >&5
  1929. ac_retval=1
  1930. fi
  1931. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1932. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1933. # interfere with the next link command; also delete a directory that is
  1934. # left behind by Apple's compiler. We do this before executing the actions.
  1935. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1936. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1937. as_fn_set_status $ac_retval
  1938. } # ac_fn_cxx_try_link
  1939. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1940. # -------------------------------------------------------
  1941. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1942. # the include files in INCLUDES and setting the cache variable VAR
  1943. # accordingly.
  1944. ac_fn_c_check_header_mongrel ()
  1945. {
  1946. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1947. if eval \${$3+:} false; then :
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1949. $as_echo_n "checking for $2... " >&6; }
  1950. if eval \${$3+:} false; then :
  1951. $as_echo_n "(cached) " >&6
  1952. fi
  1953. eval ac_res=\$$3
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1955. $as_echo "$ac_res" >&6; }
  1956. else
  1957. # Is the header compilable?
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1959. $as_echo_n "checking $2 usability... " >&6; }
  1960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1961. /* end confdefs.h. */
  1962. $4
  1963. #include <$2>
  1964. _ACEOF
  1965. if ac_fn_c_try_compile "$LINENO"; then :
  1966. ac_header_compiler=yes
  1967. else
  1968. ac_header_compiler=no
  1969. fi
  1970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1972. $as_echo "$ac_header_compiler" >&6; }
  1973. # Is the header present?
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1975. $as_echo_n "checking $2 presence... " >&6; }
  1976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1977. /* end confdefs.h. */
  1978. #include <$2>
  1979. _ACEOF
  1980. if ac_fn_c_try_cpp "$LINENO"; then :
  1981. ac_header_preproc=yes
  1982. else
  1983. ac_header_preproc=no
  1984. fi
  1985. rm -f conftest.err conftest.i conftest.$ac_ext
  1986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1987. $as_echo "$ac_header_preproc" >&6; }
  1988. # So? What about this header?
  1989. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1990. yes:no: )
  1991. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1992. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1993. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1994. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1995. ;;
  1996. no:yes:* )
  1997. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1998. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1999. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2000. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2002. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2003. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2004. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2006. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2007. ;;
  2008. esac
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2010. $as_echo_n "checking for $2... " >&6; }
  2011. if eval \${$3+:} false; then :
  2012. $as_echo_n "(cached) " >&6
  2013. else
  2014. eval "$3=\$ac_header_compiler"
  2015. fi
  2016. eval ac_res=\$$3
  2017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2018. $as_echo "$ac_res" >&6; }
  2019. fi
  2020. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2021. } # ac_fn_c_check_header_mongrel
  2022. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2023. # -------------------------------------------
  2024. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2025. # variable VAR accordingly.
  2026. ac_fn_c_check_type ()
  2027. {
  2028. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2030. $as_echo_n "checking for $2... " >&6; }
  2031. if eval \${$3+:} false; then :
  2032. $as_echo_n "(cached) " >&6
  2033. else
  2034. eval "$3=no"
  2035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2036. /* end confdefs.h. */
  2037. $4
  2038. int
  2039. main ()
  2040. {
  2041. if (sizeof ($2))
  2042. return 0;
  2043. ;
  2044. return 0;
  2045. }
  2046. _ACEOF
  2047. if ac_fn_c_try_compile "$LINENO"; then :
  2048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2049. /* end confdefs.h. */
  2050. $4
  2051. int
  2052. main ()
  2053. {
  2054. if (sizeof (($2)))
  2055. return 0;
  2056. ;
  2057. return 0;
  2058. }
  2059. _ACEOF
  2060. if ac_fn_c_try_compile "$LINENO"; then :
  2061. else
  2062. eval "$3=yes"
  2063. fi
  2064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2065. fi
  2066. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2067. fi
  2068. eval ac_res=\$$3
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2070. $as_echo "$ac_res" >&6; }
  2071. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2072. } # ac_fn_c_check_type
  2073. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2074. # ----------------------------------------------------
  2075. # Tries to find if the field MEMBER exists in type AGGR, after including
  2076. # INCLUDES, setting cache variable VAR accordingly.
  2077. ac_fn_c_check_member ()
  2078. {
  2079. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2081. $as_echo_n "checking for $2.$3... " >&6; }
  2082. if eval \${$4+:} false; then :
  2083. $as_echo_n "(cached) " >&6
  2084. else
  2085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2086. /* end confdefs.h. */
  2087. $5
  2088. int
  2089. main ()
  2090. {
  2091. static $2 ac_aggr;
  2092. if (ac_aggr.$3)
  2093. return 0;
  2094. ;
  2095. return 0;
  2096. }
  2097. _ACEOF
  2098. if ac_fn_c_try_compile "$LINENO"; then :
  2099. eval "$4=yes"
  2100. else
  2101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2102. /* end confdefs.h. */
  2103. $5
  2104. int
  2105. main ()
  2106. {
  2107. static $2 ac_aggr;
  2108. if (sizeof ac_aggr.$3)
  2109. return 0;
  2110. ;
  2111. return 0;
  2112. }
  2113. _ACEOF
  2114. if ac_fn_c_try_compile "$LINENO"; then :
  2115. eval "$4=yes"
  2116. else
  2117. eval "$4=no"
  2118. fi
  2119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2120. fi
  2121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2122. fi
  2123. eval ac_res=\$$4
  2124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2125. $as_echo "$ac_res" >&6; }
  2126. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2127. } # ac_fn_c_check_member
  2128. cat >config.log <<_ACEOF
  2129. This file contains any messages produced by compilers while
  2130. running configure, to aid debugging if configure makes a mistake.
  2131. It was created by $as_me, which was
  2132. generated by GNU Autoconf 2.69. Invocation command line was
  2133. $ $0 $@
  2134. _ACEOF
  2135. exec 5>>config.log
  2136. {
  2137. cat <<_ASUNAME
  2138. ## --------- ##
  2139. ## Platform. ##
  2140. ## --------- ##
  2141. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2142. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2143. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2144. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2145. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2146. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2147. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2148. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2149. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2150. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2151. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2152. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2153. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2154. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2155. _ASUNAME
  2156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2157. for as_dir in $PATH
  2158. do
  2159. IFS=$as_save_IFS
  2160. test -z "$as_dir" && as_dir=.
  2161. $as_echo "PATH: $as_dir"
  2162. done
  2163. IFS=$as_save_IFS
  2164. } >&5
  2165. cat >&5 <<_ACEOF
  2166. ## ----------- ##
  2167. ## Core tests. ##
  2168. ## ----------- ##
  2169. _ACEOF
  2170. # Keep a trace of the command line.
  2171. # Strip out --no-create and --no-recursion so they do not pile up.
  2172. # Strip out --silent because we don't want to record it for future runs.
  2173. # Also quote any args containing shell meta-characters.
  2174. # Make two passes to allow for proper duplicate-argument suppression.
  2175. ac_configure_args=
  2176. ac_configure_args0=
  2177. ac_configure_args1=
  2178. ac_must_keep_next=false
  2179. for ac_pass in 1 2
  2180. do
  2181. for ac_arg
  2182. do
  2183. case $ac_arg in
  2184. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2185. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2186. | -silent | --silent | --silen | --sile | --sil)
  2187. continue ;;
  2188. *\'*)
  2189. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2190. esac
  2191. case $ac_pass in
  2192. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2193. 2)
  2194. as_fn_append ac_configure_args1 " '$ac_arg'"
  2195. if test $ac_must_keep_next = true; then
  2196. ac_must_keep_next=false # Got value, back to normal.
  2197. else
  2198. case $ac_arg in
  2199. *=* | --config-cache | -C | -disable-* | --disable-* \
  2200. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2201. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2202. | -with-* | --with-* | -without-* | --without-* | --x)
  2203. case "$ac_configure_args0 " in
  2204. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2205. esac
  2206. ;;
  2207. -* ) ac_must_keep_next=true ;;
  2208. esac
  2209. fi
  2210. as_fn_append ac_configure_args " '$ac_arg'"
  2211. ;;
  2212. esac
  2213. done
  2214. done
  2215. { ac_configure_args0=; unset ac_configure_args0;}
  2216. { ac_configure_args1=; unset ac_configure_args1;}
  2217. # When interrupted or exit'd, cleanup temporary files, and complete
  2218. # config.log. We remove comments because anyway the quotes in there
  2219. # would cause problems or look ugly.
  2220. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2221. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2222. trap 'exit_status=$?
  2223. # Save into config.log some information that might help in debugging.
  2224. {
  2225. echo
  2226. $as_echo "## ---------------- ##
  2227. ## Cache variables. ##
  2228. ## ---------------- ##"
  2229. echo
  2230. # The following way of writing the cache mishandles newlines in values,
  2231. (
  2232. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2233. eval ac_val=\$$ac_var
  2234. case $ac_val in #(
  2235. *${as_nl}*)
  2236. case $ac_var in #(
  2237. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2238. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2239. esac
  2240. case $ac_var in #(
  2241. _ | IFS | as_nl) ;; #(
  2242. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2243. *) { eval $ac_var=; unset $ac_var;} ;;
  2244. esac ;;
  2245. esac
  2246. done
  2247. (set) 2>&1 |
  2248. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2249. *${as_nl}ac_space=\ *)
  2250. sed -n \
  2251. "s/'\''/'\''\\\\'\'''\''/g;
  2252. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2253. ;; #(
  2254. *)
  2255. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2256. ;;
  2257. esac |
  2258. sort
  2259. )
  2260. echo
  2261. $as_echo "## ----------------- ##
  2262. ## Output variables. ##
  2263. ## ----------------- ##"
  2264. echo
  2265. for ac_var in $ac_subst_vars
  2266. do
  2267. eval ac_val=\$$ac_var
  2268. case $ac_val in
  2269. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2270. esac
  2271. $as_echo "$ac_var='\''$ac_val'\''"
  2272. done | sort
  2273. echo
  2274. if test -n "$ac_subst_files"; then
  2275. $as_echo "## ------------------- ##
  2276. ## File substitutions. ##
  2277. ## ------------------- ##"
  2278. echo
  2279. for ac_var in $ac_subst_files
  2280. do
  2281. eval ac_val=\$$ac_var
  2282. case $ac_val in
  2283. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2284. esac
  2285. $as_echo "$ac_var='\''$ac_val'\''"
  2286. done | sort
  2287. echo
  2288. fi
  2289. if test -s confdefs.h; then
  2290. $as_echo "## ----------- ##
  2291. ## confdefs.h. ##
  2292. ## ----------- ##"
  2293. echo
  2294. cat confdefs.h
  2295. echo
  2296. fi
  2297. test "$ac_signal" != 0 &&
  2298. $as_echo "$as_me: caught signal $ac_signal"
  2299. $as_echo "$as_me: exit $exit_status"
  2300. } >&5
  2301. rm -f core *.core core.conftest.* &&
  2302. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2303. exit $exit_status
  2304. ' 0
  2305. for ac_signal in 1 2 13 15; do
  2306. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2307. done
  2308. ac_signal=0
  2309. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2310. rm -f -r conftest* confdefs.h
  2311. $as_echo "/* confdefs.h */" > confdefs.h
  2312. # Predefined preprocessor variables.
  2313. cat >>confdefs.h <<_ACEOF
  2314. #define PACKAGE_NAME "$PACKAGE_NAME"
  2315. _ACEOF
  2316. cat >>confdefs.h <<_ACEOF
  2317. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2318. _ACEOF
  2319. cat >>confdefs.h <<_ACEOF
  2320. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2321. _ACEOF
  2322. cat >>confdefs.h <<_ACEOF
  2323. #define PACKAGE_STRING "$PACKAGE_STRING"
  2324. _ACEOF
  2325. cat >>confdefs.h <<_ACEOF
  2326. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2327. _ACEOF
  2328. cat >>confdefs.h <<_ACEOF
  2329. #define PACKAGE_URL "$PACKAGE_URL"
  2330. _ACEOF
  2331. # Let the site file select an alternate cache file if it wants to.
  2332. # Prefer an explicitly selected file to automatically selected ones.
  2333. ac_site_file1=NONE
  2334. ac_site_file2=NONE
  2335. if test -n "$CONFIG_SITE"; then
  2336. # We do not want a PATH search for config.site.
  2337. case $CONFIG_SITE in #((
  2338. -*) ac_site_file1=./$CONFIG_SITE;;
  2339. */*) ac_site_file1=$CONFIG_SITE;;
  2340. *) ac_site_file1=./$CONFIG_SITE;;
  2341. esac
  2342. elif test "x$prefix" != xNONE; then
  2343. ac_site_file1=$prefix/share/config.site
  2344. ac_site_file2=$prefix/etc/config.site
  2345. else
  2346. ac_site_file1=$ac_default_prefix/share/config.site
  2347. ac_site_file2=$ac_default_prefix/etc/config.site
  2348. fi
  2349. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2350. do
  2351. test "x$ac_site_file" = xNONE && continue
  2352. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2353. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2354. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2355. sed 's/^/| /' "$ac_site_file" >&5
  2356. . "$ac_site_file" \
  2357. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2358. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2359. as_fn_error $? "failed to load site script $ac_site_file
  2360. See \`config.log' for more details" "$LINENO" 5; }
  2361. fi
  2362. done
  2363. if test -r "$cache_file"; then
  2364. # Some versions of bash will fail to source /dev/null (special files
  2365. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2366. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2368. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2369. case $cache_file in
  2370. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2371. *) . "./$cache_file";;
  2372. esac
  2373. fi
  2374. else
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2376. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2377. >$cache_file
  2378. fi
  2379. # Check that the precious variables saved in the cache have kept the same
  2380. # value.
  2381. ac_cache_corrupted=false
  2382. for ac_var in $ac_precious_vars; do
  2383. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2384. eval ac_new_set=\$ac_env_${ac_var}_set
  2385. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2386. eval ac_new_val=\$ac_env_${ac_var}_value
  2387. case $ac_old_set,$ac_new_set in
  2388. set,)
  2389. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2390. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2391. ac_cache_corrupted=: ;;
  2392. ,set)
  2393. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2394. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2395. ac_cache_corrupted=: ;;
  2396. ,);;
  2397. *)
  2398. if test "x$ac_old_val" != "x$ac_new_val"; then
  2399. # differences in whitespace do not lead to failure.
  2400. ac_old_val_w=`echo x $ac_old_val`
  2401. ac_new_val_w=`echo x $ac_new_val`
  2402. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2404. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2405. ac_cache_corrupted=:
  2406. else
  2407. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2408. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2409. eval $ac_var=\$ac_old_val
  2410. fi
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2412. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2414. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2415. fi;;
  2416. esac
  2417. # Pass precious variables to config.status.
  2418. if test "$ac_new_set" = set; then
  2419. case $ac_new_val in
  2420. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2421. *) ac_arg=$ac_var=$ac_new_val ;;
  2422. esac
  2423. case " $ac_configure_args " in
  2424. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2425. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2426. esac
  2427. fi
  2428. done
  2429. if $ac_cache_corrupted; then
  2430. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2431. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2432. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2433. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2434. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2435. fi
  2436. ## -------------------- ##
  2437. ## Main body of script. ##
  2438. ## -------------------- ##
  2439. ac_ext=c
  2440. ac_cpp='$CPP $CPPFLAGS'
  2441. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2442. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2443. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2444. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2445. ac_aux_dir=
  2446. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2447. if test -f "$ac_dir/install-sh"; then
  2448. ac_aux_dir=$ac_dir
  2449. ac_install_sh="$ac_aux_dir/install-sh -c"
  2450. break
  2451. elif test -f "$ac_dir/install.sh"; then
  2452. ac_aux_dir=$ac_dir
  2453. ac_install_sh="$ac_aux_dir/install.sh -c"
  2454. break
  2455. elif test -f "$ac_dir/shtool"; then
  2456. ac_aux_dir=$ac_dir
  2457. ac_install_sh="$ac_aux_dir/shtool install -c"
  2458. break
  2459. fi
  2460. done
  2461. if test -z "$ac_aux_dir"; then
  2462. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2463. fi
  2464. # These three variables are undocumented and unsupported,
  2465. # and are intended to be withdrawn in a future Autoconf release.
  2466. # They can cause serious problems if a builder's source tree is in a directory
  2467. # whose full name contains unusual characters.
  2468. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2469. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2470. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2471. orig_CFLAGS="$CFLAGS"
  2472. #
  2473. # Making releases:
  2474. # Edit include/SDL_version.h and change the version, then:
  2475. # SDL_MICRO_VERSION += 1;
  2476. # SDL_INTERFACE_AGE += 1;
  2477. # SDL_BINARY_AGE += 1;
  2478. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2479. # if backwards compatibility has been broken,
  2480. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2481. #
  2482. SDL_MAJOR_VERSION=2
  2483. SDL_MINOR_VERSION=0
  2484. SDL_MICRO_VERSION=5
  2485. SDL_INTERFACE_AGE=0
  2486. SDL_BINARY_AGE=5
  2487. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2488. # libtool versioning
  2489. case `pwd` in
  2490. *\ * | *\ *)
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2492. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2493. esac
  2494. macro_version='2.4.2'
  2495. macro_revision='1.3337'
  2496. ltmain="$ac_aux_dir/ltmain.sh"
  2497. # Make sure we can run config.sub.
  2498. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2499. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2501. $as_echo_n "checking build system type... " >&6; }
  2502. if ${ac_cv_build+:} false; then :
  2503. $as_echo_n "(cached) " >&6
  2504. else
  2505. ac_build_alias=$build_alias
  2506. test "x$ac_build_alias" = x &&
  2507. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2508. test "x$ac_build_alias" = x &&
  2509. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2510. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2511. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2512. fi
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2514. $as_echo "$ac_cv_build" >&6; }
  2515. case $ac_cv_build in
  2516. *-*-*) ;;
  2517. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2518. esac
  2519. build=$ac_cv_build
  2520. ac_save_IFS=$IFS; IFS='-'
  2521. set x $ac_cv_build
  2522. shift
  2523. build_cpu=$1
  2524. build_vendor=$2
  2525. shift; shift
  2526. # Remember, the first character of IFS is used to create $*,
  2527. # except with old shells:
  2528. build_os=$*
  2529. IFS=$ac_save_IFS
  2530. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2532. $as_echo_n "checking host system type... " >&6; }
  2533. if ${ac_cv_host+:} false; then :
  2534. $as_echo_n "(cached) " >&6
  2535. else
  2536. if test "x$host_alias" = x; then
  2537. ac_cv_host=$ac_cv_build
  2538. else
  2539. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2540. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2541. fi
  2542. fi
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2544. $as_echo "$ac_cv_host" >&6; }
  2545. case $ac_cv_host in
  2546. *-*-*) ;;
  2547. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2548. esac
  2549. host=$ac_cv_host
  2550. ac_save_IFS=$IFS; IFS='-'
  2551. set x $ac_cv_host
  2552. shift
  2553. host_cpu=$1
  2554. host_vendor=$2
  2555. shift; shift
  2556. # Remember, the first character of IFS is used to create $*,
  2557. # except with old shells:
  2558. host_os=$*
  2559. IFS=$ac_save_IFS
  2560. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2561. # Backslashify metacharacters that are still active within
  2562. # double-quoted strings.
  2563. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2564. # Same as above, but do not quote variable references.
  2565. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2566. # Sed substitution to delay expansion of an escaped shell variable in a
  2567. # double_quote_subst'ed string.
  2568. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2569. # Sed substitution to delay expansion of an escaped single quote.
  2570. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2571. # Sed substitution to avoid accidental globbing in evaled expressions
  2572. no_glob_subst='s/\*/\\\*/g'
  2573. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2574. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2575. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2577. $as_echo_n "checking how to print strings... " >&6; }
  2578. # Test print first, because it will be a builtin if present.
  2579. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2580. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2581. ECHO='print -r --'
  2582. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2583. ECHO='printf %s\n'
  2584. else
  2585. # Use this function as a fallback that always works.
  2586. func_fallback_echo ()
  2587. {
  2588. eval 'cat <<_LTECHO_EOF
  2589. $1
  2590. _LTECHO_EOF'
  2591. }
  2592. ECHO='func_fallback_echo'
  2593. fi
  2594. # func_echo_all arg...
  2595. # Invoke $ECHO with all args, space-separated.
  2596. func_echo_all ()
  2597. {
  2598. $ECHO ""
  2599. }
  2600. case "$ECHO" in
  2601. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2602. $as_echo "printf" >&6; } ;;
  2603. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2604. $as_echo "print -r" >&6; } ;;
  2605. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2606. $as_echo "cat" >&6; } ;;
  2607. esac
  2608. ac_ext=c
  2609. ac_cpp='$CPP $CPPFLAGS'
  2610. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2611. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2612. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2613. if test -n "$ac_tool_prefix"; then
  2614. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2615. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2617. $as_echo_n "checking for $ac_word... " >&6; }
  2618. if ${ac_cv_prog_CC+:} false; then :
  2619. $as_echo_n "(cached) " >&6
  2620. else
  2621. if test -n "$CC"; then
  2622. ac_cv_prog_CC="$CC" # Let the user override the test.
  2623. else
  2624. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2625. for as_dir in $PATH
  2626. do
  2627. IFS=$as_save_IFS
  2628. test -z "$as_dir" && as_dir=.
  2629. for ac_exec_ext in '' $ac_executable_extensions; do
  2630. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2631. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2632. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2633. break 2
  2634. fi
  2635. done
  2636. done
  2637. IFS=$as_save_IFS
  2638. fi
  2639. fi
  2640. CC=$ac_cv_prog_CC
  2641. if test -n "$CC"; then
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2643. $as_echo "$CC" >&6; }
  2644. else
  2645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2646. $as_echo "no" >&6; }
  2647. fi
  2648. fi
  2649. if test -z "$ac_cv_prog_CC"; then
  2650. ac_ct_CC=$CC
  2651. # Extract the first word of "gcc", so it can be a program name with args.
  2652. set dummy gcc; ac_word=$2
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2654. $as_echo_n "checking for $ac_word... " >&6; }
  2655. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2656. $as_echo_n "(cached) " >&6
  2657. else
  2658. if test -n "$ac_ct_CC"; then
  2659. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2660. else
  2661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2662. for as_dir in $PATH
  2663. do
  2664. IFS=$as_save_IFS
  2665. test -z "$as_dir" && as_dir=.
  2666. for ac_exec_ext in '' $ac_executable_extensions; do
  2667. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2668. ac_cv_prog_ac_ct_CC="gcc"
  2669. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2670. break 2
  2671. fi
  2672. done
  2673. done
  2674. IFS=$as_save_IFS
  2675. fi
  2676. fi
  2677. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2678. if test -n "$ac_ct_CC"; then
  2679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2680. $as_echo "$ac_ct_CC" >&6; }
  2681. else
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2683. $as_echo "no" >&6; }
  2684. fi
  2685. if test "x$ac_ct_CC" = x; then
  2686. CC=""
  2687. else
  2688. case $cross_compiling:$ac_tool_warned in
  2689. yes:)
  2690. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2691. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2692. ac_tool_warned=yes ;;
  2693. esac
  2694. CC=$ac_ct_CC
  2695. fi
  2696. else
  2697. CC="$ac_cv_prog_CC"
  2698. fi
  2699. if test -z "$CC"; then
  2700. if test -n "$ac_tool_prefix"; then
  2701. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2702. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2704. $as_echo_n "checking for $ac_word... " >&6; }
  2705. if ${ac_cv_prog_CC+:} false; then :
  2706. $as_echo_n "(cached) " >&6
  2707. else
  2708. if test -n "$CC"; then
  2709. ac_cv_prog_CC="$CC" # Let the user override the test.
  2710. else
  2711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2712. for as_dir in $PATH
  2713. do
  2714. IFS=$as_save_IFS
  2715. test -z "$as_dir" && as_dir=.
  2716. for ac_exec_ext in '' $ac_executable_extensions; do
  2717. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2718. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2720. break 2
  2721. fi
  2722. done
  2723. done
  2724. IFS=$as_save_IFS
  2725. fi
  2726. fi
  2727. CC=$ac_cv_prog_CC
  2728. if test -n "$CC"; then
  2729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2730. $as_echo "$CC" >&6; }
  2731. else
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2733. $as_echo "no" >&6; }
  2734. fi
  2735. fi
  2736. fi
  2737. if test -z "$CC"; then
  2738. # Extract the first word of "cc", so it can be a program name with args.
  2739. set dummy cc; ac_word=$2
  2740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2741. $as_echo_n "checking for $ac_word... " >&6; }
  2742. if ${ac_cv_prog_CC+:} false; then :
  2743. $as_echo_n "(cached) " >&6
  2744. else
  2745. if test -n "$CC"; then
  2746. ac_cv_prog_CC="$CC" # Let the user override the test.
  2747. else
  2748. ac_prog_rejected=no
  2749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2750. for as_dir in $PATH
  2751. do
  2752. IFS=$as_save_IFS
  2753. test -z "$as_dir" && as_dir=.
  2754. for ac_exec_ext in '' $ac_executable_extensions; do
  2755. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2756. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2757. ac_prog_rejected=yes
  2758. continue
  2759. fi
  2760. ac_cv_prog_CC="cc"
  2761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2762. break 2
  2763. fi
  2764. done
  2765. done
  2766. IFS=$as_save_IFS
  2767. if test $ac_prog_rejected = yes; then
  2768. # We found a bogon in the path, so make sure we never use it.
  2769. set dummy $ac_cv_prog_CC
  2770. shift
  2771. if test $# != 0; then
  2772. # We chose a different compiler from the bogus one.
  2773. # However, it has the same basename, so the bogon will be chosen
  2774. # first if we set CC to just the basename; use the full file name.
  2775. shift
  2776. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2777. fi
  2778. fi
  2779. fi
  2780. fi
  2781. CC=$ac_cv_prog_CC
  2782. if test -n "$CC"; then
  2783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2784. $as_echo "$CC" >&6; }
  2785. else
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2787. $as_echo "no" >&6; }
  2788. fi
  2789. fi
  2790. if test -z "$CC"; then
  2791. if test -n "$ac_tool_prefix"; then
  2792. for ac_prog in cl.exe
  2793. do
  2794. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2795. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2797. $as_echo_n "checking for $ac_word... " >&6; }
  2798. if ${ac_cv_prog_CC+:} false; then :
  2799. $as_echo_n "(cached) " >&6
  2800. else
  2801. if test -n "$CC"; then
  2802. ac_cv_prog_CC="$CC" # Let the user override the test.
  2803. else
  2804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2805. for as_dir in $PATH
  2806. do
  2807. IFS=$as_save_IFS
  2808. test -z "$as_dir" && as_dir=.
  2809. for ac_exec_ext in '' $ac_executable_extensions; do
  2810. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2811. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2812. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2813. break 2
  2814. fi
  2815. done
  2816. done
  2817. IFS=$as_save_IFS
  2818. fi
  2819. fi
  2820. CC=$ac_cv_prog_CC
  2821. if test -n "$CC"; then
  2822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2823. $as_echo "$CC" >&6; }
  2824. else
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2826. $as_echo "no" >&6; }
  2827. fi
  2828. test -n "$CC" && break
  2829. done
  2830. fi
  2831. if test -z "$CC"; then
  2832. ac_ct_CC=$CC
  2833. for ac_prog in cl.exe
  2834. do
  2835. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2836. set dummy $ac_prog; ac_word=$2
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2838. $as_echo_n "checking for $ac_word... " >&6; }
  2839. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2840. $as_echo_n "(cached) " >&6
  2841. else
  2842. if test -n "$ac_ct_CC"; then
  2843. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2844. else
  2845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2846. for as_dir in $PATH
  2847. do
  2848. IFS=$as_save_IFS
  2849. test -z "$as_dir" && as_dir=.
  2850. for ac_exec_ext in '' $ac_executable_extensions; do
  2851. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2852. ac_cv_prog_ac_ct_CC="$ac_prog"
  2853. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2854. break 2
  2855. fi
  2856. done
  2857. done
  2858. IFS=$as_save_IFS
  2859. fi
  2860. fi
  2861. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2862. if test -n "$ac_ct_CC"; then
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2864. $as_echo "$ac_ct_CC" >&6; }
  2865. else
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2867. $as_echo "no" >&6; }
  2868. fi
  2869. test -n "$ac_ct_CC" && break
  2870. done
  2871. if test "x$ac_ct_CC" = x; then
  2872. CC=""
  2873. else
  2874. case $cross_compiling:$ac_tool_warned in
  2875. yes:)
  2876. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2877. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2878. ac_tool_warned=yes ;;
  2879. esac
  2880. CC=$ac_ct_CC
  2881. fi
  2882. fi
  2883. fi
  2884. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2885. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2886. as_fn_error $? "no acceptable C compiler found in \$PATH
  2887. See \`config.log' for more details" "$LINENO" 5; }
  2888. # Provide some information about the compiler.
  2889. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2890. set X $ac_compile
  2891. ac_compiler=$2
  2892. for ac_option in --version -v -V -qversion; do
  2893. { { ac_try="$ac_compiler $ac_option >&5"
  2894. case "(($ac_try" in
  2895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2896. *) ac_try_echo=$ac_try;;
  2897. esac
  2898. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2899. $as_echo "$ac_try_echo"; } >&5
  2900. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2901. ac_status=$?
  2902. if test -s conftest.err; then
  2903. sed '10a\
  2904. ... rest of stderr output deleted ...
  2905. 10q' conftest.err >conftest.er1
  2906. cat conftest.er1 >&5
  2907. fi
  2908. rm -f conftest.er1 conftest.err
  2909. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2910. test $ac_status = 0; }
  2911. done
  2912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2913. /* end confdefs.h. */
  2914. int
  2915. main ()
  2916. {
  2917. ;
  2918. return 0;
  2919. }
  2920. _ACEOF
  2921. ac_clean_files_save=$ac_clean_files
  2922. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2923. # Try to create an executable without -o first, disregard a.out.
  2924. # It will help us diagnose broken compilers, and finding out an intuition
  2925. # of exeext.
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2927. $as_echo_n "checking whether the C compiler works... " >&6; }
  2928. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2929. # The possible output files:
  2930. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2931. ac_rmfiles=
  2932. for ac_file in $ac_files
  2933. do
  2934. case $ac_file in
  2935. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2936. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2937. esac
  2938. done
  2939. rm -f $ac_rmfiles
  2940. if { { ac_try="$ac_link_default"
  2941. case "(($ac_try" in
  2942. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2943. *) ac_try_echo=$ac_try;;
  2944. esac
  2945. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2946. $as_echo "$ac_try_echo"; } >&5
  2947. (eval "$ac_link_default") 2>&5
  2948. ac_status=$?
  2949. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2950. test $ac_status = 0; }; then :
  2951. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2952. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2953. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2954. # so that the user can short-circuit this test for compilers unknown to
  2955. # Autoconf.
  2956. for ac_file in $ac_files ''
  2957. do
  2958. test -f "$ac_file" || continue
  2959. case $ac_file in
  2960. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2961. ;;
  2962. [ab].out )
  2963. # We found the default executable, but exeext='' is most
  2964. # certainly right.
  2965. break;;
  2966. *.* )
  2967. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2968. then :; else
  2969. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2970. fi
  2971. # We set ac_cv_exeext here because the later test for it is not
  2972. # safe: cross compilers may not add the suffix if given an `-o'
  2973. # argument, so we may need to know it at that point already.
  2974. # Even if this section looks crufty: it has the advantage of
  2975. # actually working.
  2976. break;;
  2977. * )
  2978. break;;
  2979. esac
  2980. done
  2981. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2982. else
  2983. ac_file=''
  2984. fi
  2985. if test -z "$ac_file"; then :
  2986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2987. $as_echo "no" >&6; }
  2988. $as_echo "$as_me: failed program was:" >&5
  2989. sed 's/^/| /' conftest.$ac_ext >&5
  2990. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2991. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2992. as_fn_error 77 "C compiler cannot create executables
  2993. See \`config.log' for more details" "$LINENO" 5; }
  2994. else
  2995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2996. $as_echo "yes" >&6; }
  2997. fi
  2998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2999. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3001. $as_echo "$ac_file" >&6; }
  3002. ac_exeext=$ac_cv_exeext
  3003. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3004. ac_clean_files=$ac_clean_files_save
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3006. $as_echo_n "checking for suffix of executables... " >&6; }
  3007. if { { ac_try="$ac_link"
  3008. case "(($ac_try" in
  3009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3010. *) ac_try_echo=$ac_try;;
  3011. esac
  3012. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3013. $as_echo "$ac_try_echo"; } >&5
  3014. (eval "$ac_link") 2>&5
  3015. ac_status=$?
  3016. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3017. test $ac_status = 0; }; then :
  3018. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3019. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3020. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3021. # `rm'.
  3022. for ac_file in conftest.exe conftest conftest.*; do
  3023. test -f "$ac_file" || continue
  3024. case $ac_file in
  3025. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3026. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3027. break;;
  3028. * ) break;;
  3029. esac
  3030. done
  3031. else
  3032. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3033. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3034. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3035. See \`config.log' for more details" "$LINENO" 5; }
  3036. fi
  3037. rm -f conftest conftest$ac_cv_exeext
  3038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3039. $as_echo "$ac_cv_exeext" >&6; }
  3040. rm -f conftest.$ac_ext
  3041. EXEEXT=$ac_cv_exeext
  3042. ac_exeext=$EXEEXT
  3043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3044. /* end confdefs.h. */
  3045. #include <stdio.h>
  3046. int
  3047. main ()
  3048. {
  3049. FILE *f = fopen ("conftest.out", "w");
  3050. return ferror (f) || fclose (f) != 0;
  3051. ;
  3052. return 0;
  3053. }
  3054. _ACEOF
  3055. ac_clean_files="$ac_clean_files conftest.out"
  3056. # Check that the compiler produces executables we can run. If not, either
  3057. # the compiler is broken, or we cross compile.
  3058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3059. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3060. if test "$cross_compiling" != yes; then
  3061. { { ac_try="$ac_link"
  3062. case "(($ac_try" in
  3063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3064. *) ac_try_echo=$ac_try;;
  3065. esac
  3066. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3067. $as_echo "$ac_try_echo"; } >&5
  3068. (eval "$ac_link") 2>&5
  3069. ac_status=$?
  3070. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3071. test $ac_status = 0; }
  3072. if { ac_try='./conftest$ac_cv_exeext'
  3073. { { case "(($ac_try" in
  3074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3075. *) ac_try_echo=$ac_try;;
  3076. esac
  3077. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3078. $as_echo "$ac_try_echo"; } >&5
  3079. (eval "$ac_try") 2>&5
  3080. ac_status=$?
  3081. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3082. test $ac_status = 0; }; }; then
  3083. cross_compiling=no
  3084. else
  3085. if test "$cross_compiling" = maybe; then
  3086. cross_compiling=yes
  3087. else
  3088. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3089. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3090. as_fn_error $? "cannot run C compiled programs.
  3091. If you meant to cross compile, use \`--host'.
  3092. See \`config.log' for more details" "$LINENO" 5; }
  3093. fi
  3094. fi
  3095. fi
  3096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3097. $as_echo "$cross_compiling" >&6; }
  3098. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3099. ac_clean_files=$ac_clean_files_save
  3100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3101. $as_echo_n "checking for suffix of object files... " >&6; }
  3102. if ${ac_cv_objext+:} false; then :
  3103. $as_echo_n "(cached) " >&6
  3104. else
  3105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3106. /* end confdefs.h. */
  3107. int
  3108. main ()
  3109. {
  3110. ;
  3111. return 0;
  3112. }
  3113. _ACEOF
  3114. rm -f conftest.o conftest.obj
  3115. if { { ac_try="$ac_compile"
  3116. case "(($ac_try" in
  3117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3118. *) ac_try_echo=$ac_try;;
  3119. esac
  3120. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3121. $as_echo "$ac_try_echo"; } >&5
  3122. (eval "$ac_compile") 2>&5
  3123. ac_status=$?
  3124. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3125. test $ac_status = 0; }; then :
  3126. for ac_file in conftest.o conftest.obj conftest.*; do
  3127. test -f "$ac_file" || continue;
  3128. case $ac_file in
  3129. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3130. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3131. break;;
  3132. esac
  3133. done
  3134. else
  3135. $as_echo "$as_me: failed program was:" >&5
  3136. sed 's/^/| /' conftest.$ac_ext >&5
  3137. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3138. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3139. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3140. See \`config.log' for more details" "$LINENO" 5; }
  3141. fi
  3142. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3143. fi
  3144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3145. $as_echo "$ac_cv_objext" >&6; }
  3146. OBJEXT=$ac_cv_objext
  3147. ac_objext=$OBJEXT
  3148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3149. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3150. if ${ac_cv_c_compiler_gnu+:} false; then :
  3151. $as_echo_n "(cached) " >&6
  3152. else
  3153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3154. /* end confdefs.h. */
  3155. int
  3156. main ()
  3157. {
  3158. #ifndef __GNUC__
  3159. choke me
  3160. #endif
  3161. ;
  3162. return 0;
  3163. }
  3164. _ACEOF
  3165. if ac_fn_c_try_compile "$LINENO"; then :
  3166. ac_compiler_gnu=yes
  3167. else
  3168. ac_compiler_gnu=no
  3169. fi
  3170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3171. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3172. fi
  3173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3174. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3175. if test $ac_compiler_gnu = yes; then
  3176. GCC=yes
  3177. else
  3178. GCC=
  3179. fi
  3180. ac_test_CFLAGS=${CFLAGS+set}
  3181. ac_save_CFLAGS=$CFLAGS
  3182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3183. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3184. if ${ac_cv_prog_cc_g+:} false; then :
  3185. $as_echo_n "(cached) " >&6
  3186. else
  3187. ac_save_c_werror_flag=$ac_c_werror_flag
  3188. ac_c_werror_flag=yes
  3189. ac_cv_prog_cc_g=no
  3190. CFLAGS="-g"
  3191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3192. /* end confdefs.h. */
  3193. int
  3194. main ()
  3195. {
  3196. ;
  3197. return 0;
  3198. }
  3199. _ACEOF
  3200. if ac_fn_c_try_compile "$LINENO"; then :
  3201. ac_cv_prog_cc_g=yes
  3202. else
  3203. CFLAGS=""
  3204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3205. /* end confdefs.h. */
  3206. int
  3207. main ()
  3208. {
  3209. ;
  3210. return 0;
  3211. }
  3212. _ACEOF
  3213. if ac_fn_c_try_compile "$LINENO"; then :
  3214. else
  3215. ac_c_werror_flag=$ac_save_c_werror_flag
  3216. CFLAGS="-g"
  3217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3218. /* end confdefs.h. */
  3219. int
  3220. main ()
  3221. {
  3222. ;
  3223. return 0;
  3224. }
  3225. _ACEOF
  3226. if ac_fn_c_try_compile "$LINENO"; then :
  3227. ac_cv_prog_cc_g=yes
  3228. fi
  3229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3230. fi
  3231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3232. fi
  3233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3234. ac_c_werror_flag=$ac_save_c_werror_flag
  3235. fi
  3236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3237. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3238. if test "$ac_test_CFLAGS" = set; then
  3239. CFLAGS=$ac_save_CFLAGS
  3240. elif test $ac_cv_prog_cc_g = yes; then
  3241. if test "$GCC" = yes; then
  3242. CFLAGS="-g -O2"
  3243. else
  3244. CFLAGS="-g"
  3245. fi
  3246. else
  3247. if test "$GCC" = yes; then
  3248. CFLAGS="-O2"
  3249. else
  3250. CFLAGS=
  3251. fi
  3252. fi
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3254. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3255. if ${ac_cv_prog_cc_c89+:} false; then :
  3256. $as_echo_n "(cached) " >&6
  3257. else
  3258. ac_cv_prog_cc_c89=no
  3259. ac_save_CC=$CC
  3260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3261. /* end confdefs.h. */
  3262. #include <stdarg.h>
  3263. #include <stdio.h>
  3264. struct stat;
  3265. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3266. struct buf { int x; };
  3267. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3268. static char *e (p, i)
  3269. char **p;
  3270. int i;
  3271. {
  3272. return p[i];
  3273. }
  3274. static char *f (char * (*g) (char **, int), char **p, ...)
  3275. {
  3276. char *s;
  3277. va_list v;
  3278. va_start (v,p);
  3279. s = g (p, va_arg (v,int));
  3280. va_end (v);
  3281. return s;
  3282. }
  3283. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3284. function prototypes and stuff, but not '\xHH' hex character constants.
  3285. These don't provoke an error unfortunately, instead are silently treated
  3286. as 'x'. The following induces an error, until -std is added to get
  3287. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3288. array size at least. It's necessary to write '\x00'==0 to get something
  3289. that's true only with -std. */
  3290. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3291. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3292. inside strings and character constants. */
  3293. #define FOO(x) 'x'
  3294. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3295. int test (int i, double x);
  3296. struct s1 {int (*f) (int a);};
  3297. struct s2 {int (*f) (double a);};
  3298. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3299. int argc;
  3300. char **argv;
  3301. int
  3302. main ()
  3303. {
  3304. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3305. ;
  3306. return 0;
  3307. }
  3308. _ACEOF
  3309. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3310. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3311. do
  3312. CC="$ac_save_CC $ac_arg"
  3313. if ac_fn_c_try_compile "$LINENO"; then :
  3314. ac_cv_prog_cc_c89=$ac_arg
  3315. fi
  3316. rm -f core conftest.err conftest.$ac_objext
  3317. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3318. done
  3319. rm -f conftest.$ac_ext
  3320. CC=$ac_save_CC
  3321. fi
  3322. # AC_CACHE_VAL
  3323. case "x$ac_cv_prog_cc_c89" in
  3324. x)
  3325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3326. $as_echo "none needed" >&6; } ;;
  3327. xno)
  3328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3329. $as_echo "unsupported" >&6; } ;;
  3330. *)
  3331. CC="$CC $ac_cv_prog_cc_c89"
  3332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3333. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3334. esac
  3335. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3336. fi
  3337. ac_ext=c
  3338. ac_cpp='$CPP $CPPFLAGS'
  3339. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3340. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3341. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3343. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3344. if ${ac_cv_path_SED+:} false; then :
  3345. $as_echo_n "(cached) " >&6
  3346. else
  3347. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3348. for ac_i in 1 2 3 4 5 6 7; do
  3349. ac_script="$ac_script$as_nl$ac_script"
  3350. done
  3351. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3352. { ac_script=; unset ac_script;}
  3353. if test -z "$SED"; then
  3354. ac_path_SED_found=false
  3355. # Loop through the user's path and test for each of PROGNAME-LIST
  3356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3357. for as_dir in $PATH
  3358. do
  3359. IFS=$as_save_IFS
  3360. test -z "$as_dir" && as_dir=.
  3361. for ac_prog in sed gsed; do
  3362. for ac_exec_ext in '' $ac_executable_extensions; do
  3363. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3364. as_fn_executable_p "$ac_path_SED" || continue
  3365. # Check for GNU ac_path_SED and select it if it is found.
  3366. # Check for GNU $ac_path_SED
  3367. case `"$ac_path_SED" --version 2>&1` in
  3368. *GNU*)
  3369. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3370. *)
  3371. ac_count=0
  3372. $as_echo_n 0123456789 >"conftest.in"
  3373. while :
  3374. do
  3375. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3376. mv "conftest.tmp" "conftest.in"
  3377. cp "conftest.in" "conftest.nl"
  3378. $as_echo '' >> "conftest.nl"
  3379. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3380. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3381. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3382. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3383. # Best one so far, save it but keep looking for a better one
  3384. ac_cv_path_SED="$ac_path_SED"
  3385. ac_path_SED_max=$ac_count
  3386. fi
  3387. # 10*(2^10) chars as input seems more than enough
  3388. test $ac_count -gt 10 && break
  3389. done
  3390. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3391. esac
  3392. $ac_path_SED_found && break 3
  3393. done
  3394. done
  3395. done
  3396. IFS=$as_save_IFS
  3397. if test -z "$ac_cv_path_SED"; then
  3398. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3399. fi
  3400. else
  3401. ac_cv_path_SED=$SED
  3402. fi
  3403. fi
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3405. $as_echo "$ac_cv_path_SED" >&6; }
  3406. SED="$ac_cv_path_SED"
  3407. rm -f conftest.sed
  3408. test -z "$SED" && SED=sed
  3409. Xsed="$SED -e 1s/^X//"
  3410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3411. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3412. if ${ac_cv_path_GREP+:} false; then :
  3413. $as_echo_n "(cached) " >&6
  3414. else
  3415. if test -z "$GREP"; then
  3416. ac_path_GREP_found=false
  3417. # Loop through the user's path and test for each of PROGNAME-LIST
  3418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3419. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3420. do
  3421. IFS=$as_save_IFS
  3422. test -z "$as_dir" && as_dir=.
  3423. for ac_prog in grep ggrep; do
  3424. for ac_exec_ext in '' $ac_executable_extensions; do
  3425. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3426. as_fn_executable_p "$ac_path_GREP" || continue
  3427. # Check for GNU ac_path_GREP and select it if it is found.
  3428. # Check for GNU $ac_path_GREP
  3429. case `"$ac_path_GREP" --version 2>&1` in
  3430. *GNU*)
  3431. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3432. *)
  3433. ac_count=0
  3434. $as_echo_n 0123456789 >"conftest.in"
  3435. while :
  3436. do
  3437. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3438. mv "conftest.tmp" "conftest.in"
  3439. cp "conftest.in" "conftest.nl"
  3440. $as_echo 'GREP' >> "conftest.nl"
  3441. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3442. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3443. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3444. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3445. # Best one so far, save it but keep looking for a better one
  3446. ac_cv_path_GREP="$ac_path_GREP"
  3447. ac_path_GREP_max=$ac_count
  3448. fi
  3449. # 10*(2^10) chars as input seems more than enough
  3450. test $ac_count -gt 10 && break
  3451. done
  3452. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3453. esac
  3454. $ac_path_GREP_found && break 3
  3455. done
  3456. done
  3457. done
  3458. IFS=$as_save_IFS
  3459. if test -z "$ac_cv_path_GREP"; then
  3460. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3461. fi
  3462. else
  3463. ac_cv_path_GREP=$GREP
  3464. fi
  3465. fi
  3466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3467. $as_echo "$ac_cv_path_GREP" >&6; }
  3468. GREP="$ac_cv_path_GREP"
  3469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3470. $as_echo_n "checking for egrep... " >&6; }
  3471. if ${ac_cv_path_EGREP+:} false; then :
  3472. $as_echo_n "(cached) " >&6
  3473. else
  3474. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3475. then ac_cv_path_EGREP="$GREP -E"
  3476. else
  3477. if test -z "$EGREP"; then
  3478. ac_path_EGREP_found=false
  3479. # Loop through the user's path and test for each of PROGNAME-LIST
  3480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3481. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3482. do
  3483. IFS=$as_save_IFS
  3484. test -z "$as_dir" && as_dir=.
  3485. for ac_prog in egrep; do
  3486. for ac_exec_ext in '' $ac_executable_extensions; do
  3487. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3488. as_fn_executable_p "$ac_path_EGREP" || continue
  3489. # Check for GNU ac_path_EGREP and select it if it is found.
  3490. # Check for GNU $ac_path_EGREP
  3491. case `"$ac_path_EGREP" --version 2>&1` in
  3492. *GNU*)
  3493. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3494. *)
  3495. ac_count=0
  3496. $as_echo_n 0123456789 >"conftest.in"
  3497. while :
  3498. do
  3499. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3500. mv "conftest.tmp" "conftest.in"
  3501. cp "conftest.in" "conftest.nl"
  3502. $as_echo 'EGREP' >> "conftest.nl"
  3503. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3504. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3505. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3506. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3507. # Best one so far, save it but keep looking for a better one
  3508. ac_cv_path_EGREP="$ac_path_EGREP"
  3509. ac_path_EGREP_max=$ac_count
  3510. fi
  3511. # 10*(2^10) chars as input seems more than enough
  3512. test $ac_count -gt 10 && break
  3513. done
  3514. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3515. esac
  3516. $ac_path_EGREP_found && break 3
  3517. done
  3518. done
  3519. done
  3520. IFS=$as_save_IFS
  3521. if test -z "$ac_cv_path_EGREP"; then
  3522. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3523. fi
  3524. else
  3525. ac_cv_path_EGREP=$EGREP
  3526. fi
  3527. fi
  3528. fi
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3530. $as_echo "$ac_cv_path_EGREP" >&6; }
  3531. EGREP="$ac_cv_path_EGREP"
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3533. $as_echo_n "checking for fgrep... " >&6; }
  3534. if ${ac_cv_path_FGREP+:} false; then :
  3535. $as_echo_n "(cached) " >&6
  3536. else
  3537. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3538. then ac_cv_path_FGREP="$GREP -F"
  3539. else
  3540. if test -z "$FGREP"; then
  3541. ac_path_FGREP_found=false
  3542. # Loop through the user's path and test for each of PROGNAME-LIST
  3543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3544. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3545. do
  3546. IFS=$as_save_IFS
  3547. test -z "$as_dir" && as_dir=.
  3548. for ac_prog in fgrep; do
  3549. for ac_exec_ext in '' $ac_executable_extensions; do
  3550. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3551. as_fn_executable_p "$ac_path_FGREP" || continue
  3552. # Check for GNU ac_path_FGREP and select it if it is found.
  3553. # Check for GNU $ac_path_FGREP
  3554. case `"$ac_path_FGREP" --version 2>&1` in
  3555. *GNU*)
  3556. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3557. *)
  3558. ac_count=0
  3559. $as_echo_n 0123456789 >"conftest.in"
  3560. while :
  3561. do
  3562. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3563. mv "conftest.tmp" "conftest.in"
  3564. cp "conftest.in" "conftest.nl"
  3565. $as_echo 'FGREP' >> "conftest.nl"
  3566. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3567. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3568. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3569. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3570. # Best one so far, save it but keep looking for a better one
  3571. ac_cv_path_FGREP="$ac_path_FGREP"
  3572. ac_path_FGREP_max=$ac_count
  3573. fi
  3574. # 10*(2^10) chars as input seems more than enough
  3575. test $ac_count -gt 10 && break
  3576. done
  3577. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3578. esac
  3579. $ac_path_FGREP_found && break 3
  3580. done
  3581. done
  3582. done
  3583. IFS=$as_save_IFS
  3584. if test -z "$ac_cv_path_FGREP"; then
  3585. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3586. fi
  3587. else
  3588. ac_cv_path_FGREP=$FGREP
  3589. fi
  3590. fi
  3591. fi
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3593. $as_echo "$ac_cv_path_FGREP" >&6; }
  3594. FGREP="$ac_cv_path_FGREP"
  3595. test -z "$GREP" && GREP=grep
  3596. # Check whether --with-gnu-ld was given.
  3597. if test "${with_gnu_ld+set}" = set; then :
  3598. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3599. else
  3600. with_gnu_ld=no
  3601. fi
  3602. ac_prog=ld
  3603. if test "$GCC" = yes; then
  3604. # Check if gcc -print-prog-name=ld gives a path.
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3606. $as_echo_n "checking for ld used by $CC... " >&6; }
  3607. case $host in
  3608. *-*-mingw*)
  3609. # gcc leaves a trailing carriage return which upsets mingw
  3610. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3611. *)
  3612. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3613. esac
  3614. case $ac_prog in
  3615. # Accept absolute paths.
  3616. [\\/]* | ?:[\\/]*)
  3617. re_direlt='/[^/][^/]*/\.\./'
  3618. # Canonicalize the pathname of ld
  3619. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3620. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3621. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3622. done
  3623. test -z "$LD" && LD="$ac_prog"
  3624. ;;
  3625. "")
  3626. # If it fails, then pretend we aren't using GCC.
  3627. ac_prog=ld
  3628. ;;
  3629. *)
  3630. # If it is relative, then search for the first ld in PATH.
  3631. with_gnu_ld=unknown
  3632. ;;
  3633. esac
  3634. elif test "$with_gnu_ld" = yes; then
  3635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3636. $as_echo_n "checking for GNU ld... " >&6; }
  3637. else
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3639. $as_echo_n "checking for non-GNU ld... " >&6; }
  3640. fi
  3641. if ${lt_cv_path_LD+:} false; then :
  3642. $as_echo_n "(cached) " >&6
  3643. else
  3644. if test -z "$LD"; then
  3645. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3646. for ac_dir in $PATH; do
  3647. IFS="$lt_save_ifs"
  3648. test -z "$ac_dir" && ac_dir=.
  3649. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3650. lt_cv_path_LD="$ac_dir/$ac_prog"
  3651. # Check to see if the program is GNU ld. I'd rather use --version,
  3652. # but apparently some variants of GNU ld only accept -v.
  3653. # Break only if it was the GNU/non-GNU ld that we prefer.
  3654. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3655. *GNU* | *'with BFD'*)
  3656. test "$with_gnu_ld" != no && break
  3657. ;;
  3658. *)
  3659. test "$with_gnu_ld" != yes && break
  3660. ;;
  3661. esac
  3662. fi
  3663. done
  3664. IFS="$lt_save_ifs"
  3665. else
  3666. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3667. fi
  3668. fi
  3669. LD="$lt_cv_path_LD"
  3670. if test -n "$LD"; then
  3671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3672. $as_echo "$LD" >&6; }
  3673. else
  3674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3675. $as_echo "no" >&6; }
  3676. fi
  3677. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3679. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3680. if ${lt_cv_prog_gnu_ld+:} false; then :
  3681. $as_echo_n "(cached) " >&6
  3682. else
  3683. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3684. case `$LD -v 2>&1 </dev/null` in
  3685. *GNU* | *'with BFD'*)
  3686. lt_cv_prog_gnu_ld=yes
  3687. ;;
  3688. *)
  3689. lt_cv_prog_gnu_ld=no
  3690. ;;
  3691. esac
  3692. fi
  3693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3694. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3695. with_gnu_ld=$lt_cv_prog_gnu_ld
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3697. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3698. if ${lt_cv_path_NM+:} false; then :
  3699. $as_echo_n "(cached) " >&6
  3700. else
  3701. if test -n "$NM"; then
  3702. # Let the user override the test.
  3703. lt_cv_path_NM="$NM"
  3704. else
  3705. lt_nm_to_check="${ac_tool_prefix}nm"
  3706. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3707. lt_nm_to_check="$lt_nm_to_check nm"
  3708. fi
  3709. for lt_tmp_nm in $lt_nm_to_check; do
  3710. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3711. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3712. IFS="$lt_save_ifs"
  3713. test -z "$ac_dir" && ac_dir=.
  3714. tmp_nm="$ac_dir/$lt_tmp_nm"
  3715. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3716. # Check to see if the nm accepts a BSD-compat flag.
  3717. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3718. # nm: unknown option "B" ignored
  3719. # Tru64's nm complains that /dev/null is an invalid object file
  3720. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3721. */dev/null* | *'Invalid file or object type'*)
  3722. lt_cv_path_NM="$tmp_nm -B"
  3723. break
  3724. ;;
  3725. *)
  3726. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3727. */dev/null*)
  3728. lt_cv_path_NM="$tmp_nm -p"
  3729. break
  3730. ;;
  3731. *)
  3732. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3733. continue # so that we can try to find one that supports BSD flags
  3734. ;;
  3735. esac
  3736. ;;
  3737. esac
  3738. fi
  3739. done
  3740. IFS="$lt_save_ifs"
  3741. done
  3742. : ${lt_cv_path_NM=no}
  3743. fi
  3744. fi
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3746. $as_echo "$lt_cv_path_NM" >&6; }
  3747. if test "$lt_cv_path_NM" != "no"; then
  3748. NM="$lt_cv_path_NM"
  3749. else
  3750. # Didn't find any BSD compatible name lister, look for dumpbin.
  3751. if test -n "$DUMPBIN"; then :
  3752. # Let the user override the test.
  3753. else
  3754. if test -n "$ac_tool_prefix"; then
  3755. for ac_prog in dumpbin "link -dump"
  3756. do
  3757. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3758. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3760. $as_echo_n "checking for $ac_word... " >&6; }
  3761. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3762. $as_echo_n "(cached) " >&6
  3763. else
  3764. if test -n "$DUMPBIN"; then
  3765. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3766. else
  3767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3768. for as_dir in $PATH
  3769. do
  3770. IFS=$as_save_IFS
  3771. test -z "$as_dir" && as_dir=.
  3772. for ac_exec_ext in '' $ac_executable_extensions; do
  3773. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3774. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3776. break 2
  3777. fi
  3778. done
  3779. done
  3780. IFS=$as_save_IFS
  3781. fi
  3782. fi
  3783. DUMPBIN=$ac_cv_prog_DUMPBIN
  3784. if test -n "$DUMPBIN"; then
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3786. $as_echo "$DUMPBIN" >&6; }
  3787. else
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3789. $as_echo "no" >&6; }
  3790. fi
  3791. test -n "$DUMPBIN" && break
  3792. done
  3793. fi
  3794. if test -z "$DUMPBIN"; then
  3795. ac_ct_DUMPBIN=$DUMPBIN
  3796. for ac_prog in dumpbin "link -dump"
  3797. do
  3798. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3799. set dummy $ac_prog; ac_word=$2
  3800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3801. $as_echo_n "checking for $ac_word... " >&6; }
  3802. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3803. $as_echo_n "(cached) " >&6
  3804. else
  3805. if test -n "$ac_ct_DUMPBIN"; then
  3806. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3807. else
  3808. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3809. for as_dir in $PATH
  3810. do
  3811. IFS=$as_save_IFS
  3812. test -z "$as_dir" && as_dir=.
  3813. for ac_exec_ext in '' $ac_executable_extensions; do
  3814. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3815. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3816. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3817. break 2
  3818. fi
  3819. done
  3820. done
  3821. IFS=$as_save_IFS
  3822. fi
  3823. fi
  3824. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3825. if test -n "$ac_ct_DUMPBIN"; then
  3826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3827. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3828. else
  3829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3830. $as_echo "no" >&6; }
  3831. fi
  3832. test -n "$ac_ct_DUMPBIN" && break
  3833. done
  3834. if test "x$ac_ct_DUMPBIN" = x; then
  3835. DUMPBIN=":"
  3836. else
  3837. case $cross_compiling:$ac_tool_warned in
  3838. yes:)
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3840. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3841. ac_tool_warned=yes ;;
  3842. esac
  3843. DUMPBIN=$ac_ct_DUMPBIN
  3844. fi
  3845. fi
  3846. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3847. *COFF*)
  3848. DUMPBIN="$DUMPBIN -symbols"
  3849. ;;
  3850. *)
  3851. DUMPBIN=:
  3852. ;;
  3853. esac
  3854. fi
  3855. if test "$DUMPBIN" != ":"; then
  3856. NM="$DUMPBIN"
  3857. fi
  3858. fi
  3859. test -z "$NM" && NM=nm
  3860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3861. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3862. if ${lt_cv_nm_interface+:} false; then :
  3863. $as_echo_n "(cached) " >&6
  3864. else
  3865. lt_cv_nm_interface="BSD nm"
  3866. echo "int some_variable = 0;" > conftest.$ac_ext
  3867. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3868. (eval "$ac_compile" 2>conftest.err)
  3869. cat conftest.err >&5
  3870. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3871. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3872. cat conftest.err >&5
  3873. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3874. cat conftest.out >&5
  3875. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3876. lt_cv_nm_interface="MS dumpbin"
  3877. fi
  3878. rm -f conftest*
  3879. fi
  3880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3881. $as_echo "$lt_cv_nm_interface" >&6; }
  3882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3883. $as_echo_n "checking whether ln -s works... " >&6; }
  3884. LN_S=$as_ln_s
  3885. if test "$LN_S" = "ln -s"; then
  3886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3887. $as_echo "yes" >&6; }
  3888. else
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3890. $as_echo "no, using $LN_S" >&6; }
  3891. fi
  3892. # find the maximum length of command line arguments
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3894. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3895. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3896. $as_echo_n "(cached) " >&6
  3897. else
  3898. i=0
  3899. teststring="ABCD"
  3900. case $build_os in
  3901. msdosdjgpp*)
  3902. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3903. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3904. # during glob expansion). Even if it were fixed, the result of this
  3905. # check would be larger than it should be.
  3906. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3907. ;;
  3908. gnu*)
  3909. # Under GNU Hurd, this test is not required because there is
  3910. # no limit to the length of command line arguments.
  3911. # Libtool will interpret -1 as no limit whatsoever
  3912. lt_cv_sys_max_cmd_len=-1;
  3913. ;;
  3914. cygwin* | mingw* | cegcc*)
  3915. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3916. # about 5 minutes as the teststring grows exponentially.
  3917. # Worse, since 9x/ME are not pre-emptively multitasking,
  3918. # you end up with a "frozen" computer, even though with patience
  3919. # the test eventually succeeds (with a max line length of 256k).
  3920. # Instead, let's just punt: use the minimum linelength reported by
  3921. # all of the supported platforms: 8192 (on NT/2K/XP).
  3922. lt_cv_sys_max_cmd_len=8192;
  3923. ;;
  3924. mint*)
  3925. # On MiNT this can take a long time and run out of memory.
  3926. lt_cv_sys_max_cmd_len=8192;
  3927. ;;
  3928. amigaos*)
  3929. # On AmigaOS with pdksh, this test takes hours, literally.
  3930. # So we just punt and use a minimum line length of 8192.
  3931. lt_cv_sys_max_cmd_len=8192;
  3932. ;;
  3933. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3934. # This has been around since 386BSD, at least. Likely further.
  3935. if test -x /sbin/sysctl; then
  3936. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3937. elif test -x /usr/sbin/sysctl; then
  3938. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3939. else
  3940. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3941. fi
  3942. # And add a safety zone
  3943. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3944. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3945. ;;
  3946. interix*)
  3947. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3948. lt_cv_sys_max_cmd_len=196608
  3949. ;;
  3950. os2*)
  3951. # The test takes a long time on OS/2.
  3952. lt_cv_sys_max_cmd_len=8192
  3953. ;;
  3954. osf*)
  3955. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3956. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3957. # nice to cause kernel panics so lets avoid the loop below.
  3958. # First set a reasonable default.
  3959. lt_cv_sys_max_cmd_len=16384
  3960. #
  3961. if test -x /sbin/sysconfig; then
  3962. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3963. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3964. esac
  3965. fi
  3966. ;;
  3967. sco3.2v5*)
  3968. lt_cv_sys_max_cmd_len=102400
  3969. ;;
  3970. sysv5* | sco5v6* | sysv4.2uw2*)
  3971. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3972. if test -n "$kargmax"; then
  3973. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3974. else
  3975. lt_cv_sys_max_cmd_len=32768
  3976. fi
  3977. ;;
  3978. *)
  3979. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3980. if test -n "$lt_cv_sys_max_cmd_len"; then
  3981. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3982. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3983. else
  3984. # Make teststring a little bigger before we do anything with it.
  3985. # a 1K string should be a reasonable start.
  3986. for i in 1 2 3 4 5 6 7 8 ; do
  3987. teststring=$teststring$teststring
  3988. done
  3989. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3990. # If test is not a shell built-in, we'll probably end up computing a
  3991. # maximum length that is only half of the actual maximum length, but
  3992. # we can't tell.
  3993. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3994. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3995. test $i != 17 # 1/2 MB should be enough
  3996. do
  3997. i=`expr $i + 1`
  3998. teststring=$teststring$teststring
  3999. done
  4000. # Only check the string length outside the loop.
  4001. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4002. teststring=
  4003. # Add a significant safety factor because C++ compilers can tack on
  4004. # massive amounts of additional arguments before passing them to the
  4005. # linker. It appears as though 1/2 is a usable value.
  4006. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4007. fi
  4008. ;;
  4009. esac
  4010. fi
  4011. if test -n $lt_cv_sys_max_cmd_len ; then
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4013. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4014. else
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4016. $as_echo "none" >&6; }
  4017. fi
  4018. max_cmd_len=$lt_cv_sys_max_cmd_len
  4019. : ${CP="cp -f"}
  4020. : ${MV="mv -f"}
  4021. : ${RM="rm -f"}
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4023. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4024. # Try some XSI features
  4025. xsi_shell=no
  4026. ( _lt_dummy="a/b/c"
  4027. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4028. = c,a/b,b/c, \
  4029. && eval 'test $(( 1 + 1 )) -eq 2 \
  4030. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4031. && xsi_shell=yes
  4032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4033. $as_echo "$xsi_shell" >&6; }
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4035. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4036. lt_shell_append=no
  4037. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4038. >/dev/null 2>&1 \
  4039. && lt_shell_append=yes
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4041. $as_echo "$lt_shell_append" >&6; }
  4042. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4043. lt_unset=unset
  4044. else
  4045. lt_unset=false
  4046. fi
  4047. # test EBCDIC or ASCII
  4048. case `echo X|tr X '\101'` in
  4049. A) # ASCII based system
  4050. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4051. lt_SP2NL='tr \040 \012'
  4052. lt_NL2SP='tr \015\012 \040\040'
  4053. ;;
  4054. *) # EBCDIC based system
  4055. lt_SP2NL='tr \100 \n'
  4056. lt_NL2SP='tr \r\n \100\100'
  4057. ;;
  4058. esac
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4060. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4061. if ${lt_cv_to_host_file_cmd+:} false; then :
  4062. $as_echo_n "(cached) " >&6
  4063. else
  4064. case $host in
  4065. *-*-mingw* )
  4066. case $build in
  4067. *-*-mingw* ) # actually msys
  4068. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4069. ;;
  4070. *-*-cygwin* )
  4071. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4072. ;;
  4073. * ) # otherwise, assume *nix
  4074. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4075. ;;
  4076. esac
  4077. ;;
  4078. *-*-cygwin* )
  4079. case $build in
  4080. *-*-mingw* ) # actually msys
  4081. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4082. ;;
  4083. *-*-cygwin* )
  4084. lt_cv_to_host_file_cmd=func_convert_file_noop
  4085. ;;
  4086. * ) # otherwise, assume *nix
  4087. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4088. ;;
  4089. esac
  4090. ;;
  4091. * ) # unhandled hosts (and "normal" native builds)
  4092. lt_cv_to_host_file_cmd=func_convert_file_noop
  4093. ;;
  4094. esac
  4095. fi
  4096. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4098. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4100. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4101. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4102. $as_echo_n "(cached) " >&6
  4103. else
  4104. #assume ordinary cross tools, or native build.
  4105. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4106. case $host in
  4107. *-*-mingw* )
  4108. case $build in
  4109. *-*-mingw* ) # actually msys
  4110. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4111. ;;
  4112. esac
  4113. ;;
  4114. esac
  4115. fi
  4116. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4118. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4120. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4121. if ${lt_cv_ld_reload_flag+:} false; then :
  4122. $as_echo_n "(cached) " >&6
  4123. else
  4124. lt_cv_ld_reload_flag='-r'
  4125. fi
  4126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4127. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4128. reload_flag=$lt_cv_ld_reload_flag
  4129. case $reload_flag in
  4130. "" | " "*) ;;
  4131. *) reload_flag=" $reload_flag" ;;
  4132. esac
  4133. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4134. case $host_os in
  4135. cygwin* | mingw* | pw32* | cegcc*)
  4136. if test "$GCC" != yes; then
  4137. reload_cmds=false
  4138. fi
  4139. ;;
  4140. darwin*)
  4141. if test "$GCC" = yes; then
  4142. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4143. else
  4144. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4145. fi
  4146. ;;
  4147. esac
  4148. if test -n "$ac_tool_prefix"; then
  4149. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4150. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4152. $as_echo_n "checking for $ac_word... " >&6; }
  4153. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4154. $as_echo_n "(cached) " >&6
  4155. else
  4156. if test -n "$OBJDUMP"; then
  4157. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4158. else
  4159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4160. for as_dir in $PATH
  4161. do
  4162. IFS=$as_save_IFS
  4163. test -z "$as_dir" && as_dir=.
  4164. for ac_exec_ext in '' $ac_executable_extensions; do
  4165. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4166. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4167. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4168. break 2
  4169. fi
  4170. done
  4171. done
  4172. IFS=$as_save_IFS
  4173. fi
  4174. fi
  4175. OBJDUMP=$ac_cv_prog_OBJDUMP
  4176. if test -n "$OBJDUMP"; then
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4178. $as_echo "$OBJDUMP" >&6; }
  4179. else
  4180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4181. $as_echo "no" >&6; }
  4182. fi
  4183. fi
  4184. if test -z "$ac_cv_prog_OBJDUMP"; then
  4185. ac_ct_OBJDUMP=$OBJDUMP
  4186. # Extract the first word of "objdump", so it can be a program name with args.
  4187. set dummy objdump; ac_word=$2
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4189. $as_echo_n "checking for $ac_word... " >&6; }
  4190. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4191. $as_echo_n "(cached) " >&6
  4192. else
  4193. if test -n "$ac_ct_OBJDUMP"; then
  4194. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4195. else
  4196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4197. for as_dir in $PATH
  4198. do
  4199. IFS=$as_save_IFS
  4200. test -z "$as_dir" && as_dir=.
  4201. for ac_exec_ext in '' $ac_executable_extensions; do
  4202. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4203. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4204. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4205. break 2
  4206. fi
  4207. done
  4208. done
  4209. IFS=$as_save_IFS
  4210. fi
  4211. fi
  4212. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4213. if test -n "$ac_ct_OBJDUMP"; then
  4214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4215. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4216. else
  4217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4218. $as_echo "no" >&6; }
  4219. fi
  4220. if test "x$ac_ct_OBJDUMP" = x; then
  4221. OBJDUMP="false"
  4222. else
  4223. case $cross_compiling:$ac_tool_warned in
  4224. yes:)
  4225. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4226. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4227. ac_tool_warned=yes ;;
  4228. esac
  4229. OBJDUMP=$ac_ct_OBJDUMP
  4230. fi
  4231. else
  4232. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4233. fi
  4234. test -z "$OBJDUMP" && OBJDUMP=objdump
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4236. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4237. if ${lt_cv_deplibs_check_method+:} false; then :
  4238. $as_echo_n "(cached) " >&6
  4239. else
  4240. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4241. lt_cv_file_magic_test_file=
  4242. lt_cv_deplibs_check_method='unknown'
  4243. # Need to set the preceding variable on all platforms that support
  4244. # interlibrary dependencies.
  4245. # 'none' -- dependencies not supported.
  4246. # `unknown' -- same as none, but documents that we really don't know.
  4247. # 'pass_all' -- all dependencies passed with no checks.
  4248. # 'test_compile' -- check by making test program.
  4249. # 'file_magic [[regex]]' -- check by looking for files in library path
  4250. # which responds to the $file_magic_cmd with a given extended regex.
  4251. # If you have `file' or equivalent on your system and you're not sure
  4252. # whether `pass_all' will *always* work, you probably want this one.
  4253. case $host_os in
  4254. aix[4-9]*)
  4255. lt_cv_deplibs_check_method=pass_all
  4256. ;;
  4257. beos*)
  4258. lt_cv_deplibs_check_method=pass_all
  4259. ;;
  4260. bsdi[45]*)
  4261. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4262. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4263. lt_cv_file_magic_test_file=/shlib/libc.so
  4264. ;;
  4265. cygwin*)
  4266. # func_win32_libid is a shell function defined in ltmain.sh
  4267. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4268. lt_cv_file_magic_cmd='func_win32_libid'
  4269. lt_cv_deplibs_check_method=pass_all
  4270. ;;
  4271. mingw* | pw32*)
  4272. # Base MSYS/MinGW do not provide the 'file' command needed by
  4273. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4274. # unless we find 'file', for example because we are cross-compiling.
  4275. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4276. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4277. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4278. lt_cv_file_magic_cmd='func_win32_libid'
  4279. else
  4280. # Keep this pattern in sync with the one in func_win32_libid.
  4281. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4282. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4283. fi
  4284. lt_cv_deplibs_check_method=pass_all
  4285. ;;
  4286. cegcc*)
  4287. # use the weaker test based on 'objdump'. See mingw*.
  4288. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4289. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4290. ;;
  4291. darwin* | rhapsody*)
  4292. lt_cv_deplibs_check_method=pass_all
  4293. ;;
  4294. freebsd* | dragonfly*)
  4295. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4296. case $host_cpu in
  4297. i*86 )
  4298. # Not sure whether the presence of OpenBSD here was a mistake.
  4299. # Let's accept both of them until this is cleared up.
  4300. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4301. lt_cv_file_magic_cmd=/usr/bin/file
  4302. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4303. ;;
  4304. esac
  4305. else
  4306. lt_cv_deplibs_check_method=pass_all
  4307. fi
  4308. ;;
  4309. gnu*)
  4310. lt_cv_deplibs_check_method=pass_all
  4311. ;;
  4312. haiku*)
  4313. lt_cv_deplibs_check_method=pass_all
  4314. ;;
  4315. hpux10.20* | hpux11*)
  4316. lt_cv_file_magic_cmd=/usr/bin/file
  4317. case $host_cpu in
  4318. ia64*)
  4319. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4320. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4321. ;;
  4322. hppa*64*)
  4323. 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]'
  4324. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4325. ;;
  4326. *)
  4327. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4328. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4329. ;;
  4330. esac
  4331. ;;
  4332. interix[3-9]*)
  4333. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4334. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4335. ;;
  4336. irix5* | irix6* | nonstopux*)
  4337. case $LD in
  4338. *-32|*"-32 ") libmagic=32-bit;;
  4339. *-n32|*"-n32 ") libmagic=N32;;
  4340. *-64|*"-64 ") libmagic=64-bit;;
  4341. *) libmagic=never-match;;
  4342. esac
  4343. lt_cv_deplibs_check_method=pass_all
  4344. ;;
  4345. # This must be glibc/ELF.
  4346. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4347. lt_cv_deplibs_check_method=pass_all
  4348. ;;
  4349. netbsd*)
  4350. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4351. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4352. else
  4353. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4354. fi
  4355. ;;
  4356. newos6*)
  4357. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4358. lt_cv_file_magic_cmd=/usr/bin/file
  4359. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4360. ;;
  4361. *nto* | *qnx*)
  4362. lt_cv_deplibs_check_method=pass_all
  4363. ;;
  4364. openbsd*)
  4365. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4366. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4367. else
  4368. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4369. fi
  4370. ;;
  4371. osf3* | osf4* | osf5*)
  4372. lt_cv_deplibs_check_method=pass_all
  4373. ;;
  4374. rdos*)
  4375. lt_cv_deplibs_check_method=pass_all
  4376. ;;
  4377. solaris*)
  4378. lt_cv_deplibs_check_method=pass_all
  4379. ;;
  4380. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4381. lt_cv_deplibs_check_method=pass_all
  4382. ;;
  4383. sysv4 | sysv4.3*)
  4384. case $host_vendor in
  4385. motorola)
  4386. 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]'
  4387. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4388. ;;
  4389. ncr)
  4390. lt_cv_deplibs_check_method=pass_all
  4391. ;;
  4392. sequent)
  4393. lt_cv_file_magic_cmd='/bin/file'
  4394. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4395. ;;
  4396. sni)
  4397. lt_cv_file_magic_cmd='/bin/file'
  4398. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4399. lt_cv_file_magic_test_file=/lib/libc.so
  4400. ;;
  4401. siemens)
  4402. lt_cv_deplibs_check_method=pass_all
  4403. ;;
  4404. pc)
  4405. lt_cv_deplibs_check_method=pass_all
  4406. ;;
  4407. esac
  4408. ;;
  4409. tpf*)
  4410. lt_cv_deplibs_check_method=pass_all
  4411. ;;
  4412. esac
  4413. fi
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4415. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4416. file_magic_glob=
  4417. want_nocaseglob=no
  4418. if test "$build" = "$host"; then
  4419. case $host_os in
  4420. mingw* | pw32*)
  4421. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4422. want_nocaseglob=yes
  4423. else
  4424. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4425. fi
  4426. ;;
  4427. esac
  4428. fi
  4429. file_magic_cmd=$lt_cv_file_magic_cmd
  4430. deplibs_check_method=$lt_cv_deplibs_check_method
  4431. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4432. if test -n "$ac_tool_prefix"; then
  4433. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4434. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4436. $as_echo_n "checking for $ac_word... " >&6; }
  4437. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4438. $as_echo_n "(cached) " >&6
  4439. else
  4440. if test -n "$DLLTOOL"; then
  4441. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4442. else
  4443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4444. for as_dir in $PATH
  4445. do
  4446. IFS=$as_save_IFS
  4447. test -z "$as_dir" && as_dir=.
  4448. for ac_exec_ext in '' $ac_executable_extensions; do
  4449. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4450. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4451. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4452. break 2
  4453. fi
  4454. done
  4455. done
  4456. IFS=$as_save_IFS
  4457. fi
  4458. fi
  4459. DLLTOOL=$ac_cv_prog_DLLTOOL
  4460. if test -n "$DLLTOOL"; then
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4462. $as_echo "$DLLTOOL" >&6; }
  4463. else
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4465. $as_echo "no" >&6; }
  4466. fi
  4467. fi
  4468. if test -z "$ac_cv_prog_DLLTOOL"; then
  4469. ac_ct_DLLTOOL=$DLLTOOL
  4470. # Extract the first word of "dlltool", so it can be a program name with args.
  4471. set dummy dlltool; ac_word=$2
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4473. $as_echo_n "checking for $ac_word... " >&6; }
  4474. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4475. $as_echo_n "(cached) " >&6
  4476. else
  4477. if test -n "$ac_ct_DLLTOOL"; then
  4478. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4479. else
  4480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4481. for as_dir in $PATH
  4482. do
  4483. IFS=$as_save_IFS
  4484. test -z "$as_dir" && as_dir=.
  4485. for ac_exec_ext in '' $ac_executable_extensions; do
  4486. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4487. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4488. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4489. break 2
  4490. fi
  4491. done
  4492. done
  4493. IFS=$as_save_IFS
  4494. fi
  4495. fi
  4496. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4497. if test -n "$ac_ct_DLLTOOL"; then
  4498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4499. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4500. else
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4502. $as_echo "no" >&6; }
  4503. fi
  4504. if test "x$ac_ct_DLLTOOL" = x; then
  4505. DLLTOOL="false"
  4506. else
  4507. case $cross_compiling:$ac_tool_warned in
  4508. yes:)
  4509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4510. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4511. ac_tool_warned=yes ;;
  4512. esac
  4513. DLLTOOL=$ac_ct_DLLTOOL
  4514. fi
  4515. else
  4516. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4517. fi
  4518. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4520. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4521. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4522. $as_echo_n "(cached) " >&6
  4523. else
  4524. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4525. case $host_os in
  4526. cygwin* | mingw* | pw32* | cegcc*)
  4527. # two different shell functions defined in ltmain.sh
  4528. # decide which to use based on capabilities of $DLLTOOL
  4529. case `$DLLTOOL --help 2>&1` in
  4530. *--identify-strict*)
  4531. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4532. ;;
  4533. *)
  4534. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4535. ;;
  4536. esac
  4537. ;;
  4538. *)
  4539. # fallback: assume linklib IS sharedlib
  4540. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4541. ;;
  4542. esac
  4543. fi
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4545. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4546. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4547. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4548. if test -n "$ac_tool_prefix"; then
  4549. for ac_prog in ar
  4550. do
  4551. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4552. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4554. $as_echo_n "checking for $ac_word... " >&6; }
  4555. if ${ac_cv_prog_AR+:} false; then :
  4556. $as_echo_n "(cached) " >&6
  4557. else
  4558. if test -n "$AR"; then
  4559. ac_cv_prog_AR="$AR" # Let the user override the test.
  4560. else
  4561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4562. for as_dir in $PATH
  4563. do
  4564. IFS=$as_save_IFS
  4565. test -z "$as_dir" && as_dir=.
  4566. for ac_exec_ext in '' $ac_executable_extensions; do
  4567. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4568. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4569. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4570. break 2
  4571. fi
  4572. done
  4573. done
  4574. IFS=$as_save_IFS
  4575. fi
  4576. fi
  4577. AR=$ac_cv_prog_AR
  4578. if test -n "$AR"; then
  4579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4580. $as_echo "$AR" >&6; }
  4581. else
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4583. $as_echo "no" >&6; }
  4584. fi
  4585. test -n "$AR" && break
  4586. done
  4587. fi
  4588. if test -z "$AR"; then
  4589. ac_ct_AR=$AR
  4590. for ac_prog in ar
  4591. do
  4592. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4593. set dummy $ac_prog; ac_word=$2
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4595. $as_echo_n "checking for $ac_word... " >&6; }
  4596. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4597. $as_echo_n "(cached) " >&6
  4598. else
  4599. if test -n "$ac_ct_AR"; then
  4600. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4601. else
  4602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4603. for as_dir in $PATH
  4604. do
  4605. IFS=$as_save_IFS
  4606. test -z "$as_dir" && as_dir=.
  4607. for ac_exec_ext in '' $ac_executable_extensions; do
  4608. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4609. ac_cv_prog_ac_ct_AR="$ac_prog"
  4610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4611. break 2
  4612. fi
  4613. done
  4614. done
  4615. IFS=$as_save_IFS
  4616. fi
  4617. fi
  4618. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4619. if test -n "$ac_ct_AR"; then
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4621. $as_echo "$ac_ct_AR" >&6; }
  4622. else
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4624. $as_echo "no" >&6; }
  4625. fi
  4626. test -n "$ac_ct_AR" && break
  4627. done
  4628. if test "x$ac_ct_AR" = x; then
  4629. AR="false"
  4630. else
  4631. case $cross_compiling:$ac_tool_warned in
  4632. yes:)
  4633. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4634. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4635. ac_tool_warned=yes ;;
  4636. esac
  4637. AR=$ac_ct_AR
  4638. fi
  4639. fi
  4640. : ${AR=ar}
  4641. : ${AR_FLAGS=cru}
  4642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4643. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4644. if ${lt_cv_ar_at_file+:} false; then :
  4645. $as_echo_n "(cached) " >&6
  4646. else
  4647. lt_cv_ar_at_file=no
  4648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4649. /* end confdefs.h. */
  4650. int
  4651. main ()
  4652. {
  4653. ;
  4654. return 0;
  4655. }
  4656. _ACEOF
  4657. if ac_fn_c_try_compile "$LINENO"; then :
  4658. echo conftest.$ac_objext > conftest.lst
  4659. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4660. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4661. (eval $lt_ar_try) 2>&5
  4662. ac_status=$?
  4663. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4664. test $ac_status = 0; }
  4665. if test "$ac_status" -eq 0; then
  4666. # Ensure the archiver fails upon bogus file names.
  4667. rm -f conftest.$ac_objext libconftest.a
  4668. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4669. (eval $lt_ar_try) 2>&5
  4670. ac_status=$?
  4671. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4672. test $ac_status = 0; }
  4673. if test "$ac_status" -ne 0; then
  4674. lt_cv_ar_at_file=@
  4675. fi
  4676. fi
  4677. rm -f conftest.* libconftest.a
  4678. fi
  4679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4680. fi
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4682. $as_echo "$lt_cv_ar_at_file" >&6; }
  4683. if test "x$lt_cv_ar_at_file" = xno; then
  4684. archiver_list_spec=
  4685. else
  4686. archiver_list_spec=$lt_cv_ar_at_file
  4687. fi
  4688. if test -n "$ac_tool_prefix"; then
  4689. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4690. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4692. $as_echo_n "checking for $ac_word... " >&6; }
  4693. if ${ac_cv_prog_STRIP+:} false; then :
  4694. $as_echo_n "(cached) " >&6
  4695. else
  4696. if test -n "$STRIP"; then
  4697. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4698. else
  4699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4700. for as_dir in $PATH
  4701. do
  4702. IFS=$as_save_IFS
  4703. test -z "$as_dir" && as_dir=.
  4704. for ac_exec_ext in '' $ac_executable_extensions; do
  4705. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4706. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4707. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4708. break 2
  4709. fi
  4710. done
  4711. done
  4712. IFS=$as_save_IFS
  4713. fi
  4714. fi
  4715. STRIP=$ac_cv_prog_STRIP
  4716. if test -n "$STRIP"; then
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4718. $as_echo "$STRIP" >&6; }
  4719. else
  4720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4721. $as_echo "no" >&6; }
  4722. fi
  4723. fi
  4724. if test -z "$ac_cv_prog_STRIP"; then
  4725. ac_ct_STRIP=$STRIP
  4726. # Extract the first word of "strip", so it can be a program name with args.
  4727. set dummy strip; ac_word=$2
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4729. $as_echo_n "checking for $ac_word... " >&6; }
  4730. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4731. $as_echo_n "(cached) " >&6
  4732. else
  4733. if test -n "$ac_ct_STRIP"; then
  4734. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4735. else
  4736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4737. for as_dir in $PATH
  4738. do
  4739. IFS=$as_save_IFS
  4740. test -z "$as_dir" && as_dir=.
  4741. for ac_exec_ext in '' $ac_executable_extensions; do
  4742. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4743. ac_cv_prog_ac_ct_STRIP="strip"
  4744. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4745. break 2
  4746. fi
  4747. done
  4748. done
  4749. IFS=$as_save_IFS
  4750. fi
  4751. fi
  4752. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4753. if test -n "$ac_ct_STRIP"; then
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4755. $as_echo "$ac_ct_STRIP" >&6; }
  4756. else
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4758. $as_echo "no" >&6; }
  4759. fi
  4760. if test "x$ac_ct_STRIP" = x; then
  4761. STRIP=":"
  4762. else
  4763. case $cross_compiling:$ac_tool_warned in
  4764. yes:)
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4766. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4767. ac_tool_warned=yes ;;
  4768. esac
  4769. STRIP=$ac_ct_STRIP
  4770. fi
  4771. else
  4772. STRIP="$ac_cv_prog_STRIP"
  4773. fi
  4774. test -z "$STRIP" && STRIP=:
  4775. if test -n "$ac_tool_prefix"; then
  4776. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4777. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4779. $as_echo_n "checking for $ac_word... " >&6; }
  4780. if ${ac_cv_prog_RANLIB+:} false; then :
  4781. $as_echo_n "(cached) " >&6
  4782. else
  4783. if test -n "$RANLIB"; then
  4784. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4785. else
  4786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4787. for as_dir in $PATH
  4788. do
  4789. IFS=$as_save_IFS
  4790. test -z "$as_dir" && as_dir=.
  4791. for ac_exec_ext in '' $ac_executable_extensions; do
  4792. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4793. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4794. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4795. break 2
  4796. fi
  4797. done
  4798. done
  4799. IFS=$as_save_IFS
  4800. fi
  4801. fi
  4802. RANLIB=$ac_cv_prog_RANLIB
  4803. if test -n "$RANLIB"; then
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4805. $as_echo "$RANLIB" >&6; }
  4806. else
  4807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4808. $as_echo "no" >&6; }
  4809. fi
  4810. fi
  4811. if test -z "$ac_cv_prog_RANLIB"; then
  4812. ac_ct_RANLIB=$RANLIB
  4813. # Extract the first word of "ranlib", so it can be a program name with args.
  4814. set dummy ranlib; ac_word=$2
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4816. $as_echo_n "checking for $ac_word... " >&6; }
  4817. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4818. $as_echo_n "(cached) " >&6
  4819. else
  4820. if test -n "$ac_ct_RANLIB"; then
  4821. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4822. else
  4823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4824. for as_dir in $PATH
  4825. do
  4826. IFS=$as_save_IFS
  4827. test -z "$as_dir" && as_dir=.
  4828. for ac_exec_ext in '' $ac_executable_extensions; do
  4829. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4830. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4831. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4832. break 2
  4833. fi
  4834. done
  4835. done
  4836. IFS=$as_save_IFS
  4837. fi
  4838. fi
  4839. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4840. if test -n "$ac_ct_RANLIB"; then
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4842. $as_echo "$ac_ct_RANLIB" >&6; }
  4843. else
  4844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4845. $as_echo "no" >&6; }
  4846. fi
  4847. if test "x$ac_ct_RANLIB" = x; then
  4848. RANLIB=":"
  4849. else
  4850. case $cross_compiling:$ac_tool_warned in
  4851. yes:)
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4853. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4854. ac_tool_warned=yes ;;
  4855. esac
  4856. RANLIB=$ac_ct_RANLIB
  4857. fi
  4858. else
  4859. RANLIB="$ac_cv_prog_RANLIB"
  4860. fi
  4861. test -z "$RANLIB" && RANLIB=:
  4862. # Determine commands to create old-style static archives.
  4863. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4864. old_postinstall_cmds='chmod 644 $oldlib'
  4865. old_postuninstall_cmds=
  4866. if test -n "$RANLIB"; then
  4867. case $host_os in
  4868. openbsd*)
  4869. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4870. ;;
  4871. *)
  4872. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4873. ;;
  4874. esac
  4875. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4876. fi
  4877. case $host_os in
  4878. darwin*)
  4879. lock_old_archive_extraction=yes ;;
  4880. *)
  4881. lock_old_archive_extraction=no ;;
  4882. esac
  4883. for ac_prog in gawk mawk nawk awk
  4884. do
  4885. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4886. set dummy $ac_prog; ac_word=$2
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4888. $as_echo_n "checking for $ac_word... " >&6; }
  4889. if ${ac_cv_prog_AWK+:} false; then :
  4890. $as_echo_n "(cached) " >&6
  4891. else
  4892. if test -n "$AWK"; then
  4893. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4894. else
  4895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4896. for as_dir in $PATH
  4897. do
  4898. IFS=$as_save_IFS
  4899. test -z "$as_dir" && as_dir=.
  4900. for ac_exec_ext in '' $ac_executable_extensions; do
  4901. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4902. ac_cv_prog_AWK="$ac_prog"
  4903. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4904. break 2
  4905. fi
  4906. done
  4907. done
  4908. IFS=$as_save_IFS
  4909. fi
  4910. fi
  4911. AWK=$ac_cv_prog_AWK
  4912. if test -n "$AWK"; then
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4914. $as_echo "$AWK" >&6; }
  4915. else
  4916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4917. $as_echo "no" >&6; }
  4918. fi
  4919. test -n "$AWK" && break
  4920. done
  4921. # If no C compiler was specified, use CC.
  4922. LTCC=${LTCC-"$CC"}
  4923. # If no C compiler flags were specified, use CFLAGS.
  4924. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4925. # Allow CC to be a program name with arguments.
  4926. compiler=$CC
  4927. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4929. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4930. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4931. $as_echo_n "(cached) " >&6
  4932. else
  4933. # These are sane defaults that work on at least a few old systems.
  4934. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4935. # Character class describing NM global symbol codes.
  4936. symcode='[BCDEGRST]'
  4937. # Regexp to match symbols that can be accessed directly from C.
  4938. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4939. # Define system-specific variables.
  4940. case $host_os in
  4941. aix*)
  4942. symcode='[BCDT]'
  4943. ;;
  4944. cygwin* | mingw* | pw32* | cegcc*)
  4945. symcode='[ABCDGISTW]'
  4946. ;;
  4947. hpux*)
  4948. if test "$host_cpu" = ia64; then
  4949. symcode='[ABCDEGRST]'
  4950. fi
  4951. ;;
  4952. irix* | nonstopux*)
  4953. symcode='[BCDEGRST]'
  4954. ;;
  4955. osf*)
  4956. symcode='[BCDEGQRST]'
  4957. ;;
  4958. solaris*)
  4959. symcode='[BDRT]'
  4960. ;;
  4961. sco3.2v5*)
  4962. symcode='[DT]'
  4963. ;;
  4964. sysv4.2uw2*)
  4965. symcode='[DT]'
  4966. ;;
  4967. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4968. symcode='[ABDT]'
  4969. ;;
  4970. sysv4)
  4971. symcode='[DFNSTU]'
  4972. ;;
  4973. esac
  4974. # If we're using GNU nm, then use its standard symbol codes.
  4975. case `$NM -V 2>&1` in
  4976. *GNU* | *'with BFD'*)
  4977. symcode='[ABCDGIRSTW]' ;;
  4978. esac
  4979. # Transform an extracted symbol line into a proper C declaration.
  4980. # Some systems (esp. on ia64) link data and code symbols differently,
  4981. # so use this general approach.
  4982. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4983. # Transform an extracted symbol line into symbol name and symbol address
  4984. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4985. 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'"
  4986. # Handle CRLF in mingw tool chain
  4987. opt_cr=
  4988. case $build_os in
  4989. mingw*)
  4990. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4991. ;;
  4992. esac
  4993. # Try without a prefix underscore, then with it.
  4994. for ac_symprfx in "" "_"; do
  4995. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4996. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4997. # Write the raw and C identifiers.
  4998. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4999. # Fake it for dumpbin and say T for any non-static function
  5000. # and D for any global variable.
  5001. # Also find C++ and __fastcall symbols from MSVC++,
  5002. # which start with @ or ?.
  5003. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5004. " {last_section=section; section=\$ 3};"\
  5005. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5006. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5007. " \$ 0!~/External *\|/{next};"\
  5008. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5009. " {if(hide[section]) next};"\
  5010. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5011. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5012. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5013. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5014. " ' prfx=^$ac_symprfx"
  5015. else
  5016. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5017. fi
  5018. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5019. # Check to see that the pipe works correctly.
  5020. pipe_works=no
  5021. rm -f conftest*
  5022. cat > conftest.$ac_ext <<_LT_EOF
  5023. #ifdef __cplusplus
  5024. extern "C" {
  5025. #endif
  5026. char nm_test_var;
  5027. void nm_test_func(void);
  5028. void nm_test_func(void){}
  5029. #ifdef __cplusplus
  5030. }
  5031. #endif
  5032. int main(){nm_test_var='a';nm_test_func();return(0);}
  5033. _LT_EOF
  5034. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5035. (eval $ac_compile) 2>&5
  5036. ac_status=$?
  5037. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5038. test $ac_status = 0; }; then
  5039. # Now try to grab the symbols.
  5040. nlist=conftest.nm
  5041. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5042. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5043. ac_status=$?
  5044. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5045. test $ac_status = 0; } && test -s "$nlist"; then
  5046. # Try sorting and uniquifying the output.
  5047. if sort "$nlist" | uniq > "$nlist"T; then
  5048. mv -f "$nlist"T "$nlist"
  5049. else
  5050. rm -f "$nlist"T
  5051. fi
  5052. # Make sure that we snagged all the symbols we need.
  5053. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5054. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5055. cat <<_LT_EOF > conftest.$ac_ext
  5056. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5057. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5058. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5059. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5060. # define LT_DLSYM_CONST
  5061. #elif defined(__osf__)
  5062. /* This system does not cope well with relocations in const data. */
  5063. # define LT_DLSYM_CONST
  5064. #else
  5065. # define LT_DLSYM_CONST const
  5066. #endif
  5067. #ifdef __cplusplus
  5068. extern "C" {
  5069. #endif
  5070. _LT_EOF
  5071. # Now generate the symbol file.
  5072. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5073. cat <<_LT_EOF >> conftest.$ac_ext
  5074. /* The mapping between symbol names and symbols. */
  5075. LT_DLSYM_CONST struct {
  5076. const char *name;
  5077. void *address;
  5078. }
  5079. lt__PROGRAM__LTX_preloaded_symbols[] =
  5080. {
  5081. { "@PROGRAM@", (void *) 0 },
  5082. _LT_EOF
  5083. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5084. cat <<\_LT_EOF >> conftest.$ac_ext
  5085. {0, (void *) 0}
  5086. };
  5087. /* This works around a problem in FreeBSD linker */
  5088. #ifdef FREEBSD_WORKAROUND
  5089. static const void *lt_preloaded_setup() {
  5090. return lt__PROGRAM__LTX_preloaded_symbols;
  5091. }
  5092. #endif
  5093. #ifdef __cplusplus
  5094. }
  5095. #endif
  5096. _LT_EOF
  5097. # Now try linking the two files.
  5098. mv conftest.$ac_objext conftstm.$ac_objext
  5099. lt_globsym_save_LIBS=$LIBS
  5100. lt_globsym_save_CFLAGS=$CFLAGS
  5101. LIBS="conftstm.$ac_objext"
  5102. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5103. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5104. (eval $ac_link) 2>&5
  5105. ac_status=$?
  5106. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5107. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5108. pipe_works=yes
  5109. fi
  5110. LIBS=$lt_globsym_save_LIBS
  5111. CFLAGS=$lt_globsym_save_CFLAGS
  5112. else
  5113. echo "cannot find nm_test_func in $nlist" >&5
  5114. fi
  5115. else
  5116. echo "cannot find nm_test_var in $nlist" >&5
  5117. fi
  5118. else
  5119. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5120. fi
  5121. else
  5122. echo "$progname: failed program was:" >&5
  5123. cat conftest.$ac_ext >&5
  5124. fi
  5125. rm -rf conftest* conftst*
  5126. # Do not use the global_symbol_pipe unless it works.
  5127. if test "$pipe_works" = yes; then
  5128. break
  5129. else
  5130. lt_cv_sys_global_symbol_pipe=
  5131. fi
  5132. done
  5133. fi
  5134. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5135. lt_cv_sys_global_symbol_to_cdecl=
  5136. fi
  5137. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5139. $as_echo "failed" >&6; }
  5140. else
  5141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5142. $as_echo "ok" >&6; }
  5143. fi
  5144. # Response file support.
  5145. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5146. nm_file_list_spec='@'
  5147. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5148. nm_file_list_spec='@'
  5149. fi
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5151. $as_echo_n "checking for sysroot... " >&6; }
  5152. # Check whether --with-sysroot was given.
  5153. if test "${with_sysroot+set}" = set; then :
  5154. withval=$with_sysroot;
  5155. else
  5156. with_sysroot=no
  5157. fi
  5158. lt_sysroot=
  5159. case ${with_sysroot} in #(
  5160. yes)
  5161. if test "$GCC" = yes; then
  5162. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5163. fi
  5164. ;; #(
  5165. /*)
  5166. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5167. ;; #(
  5168. no|'')
  5169. ;; #(
  5170. *)
  5171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5172. $as_echo "${with_sysroot}" >&6; }
  5173. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5174. ;;
  5175. esac
  5176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5177. $as_echo "${lt_sysroot:-no}" >&6; }
  5178. # Check whether --enable-libtool-lock was given.
  5179. if test "${enable_libtool_lock+set}" = set; then :
  5180. enableval=$enable_libtool_lock;
  5181. fi
  5182. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5183. # Some flags need to be propagated to the compiler or linker for good
  5184. # libtool support.
  5185. case $host in
  5186. ia64-*-hpux*)
  5187. # Find out which ABI we are using.
  5188. echo 'int i;' > conftest.$ac_ext
  5189. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5190. (eval $ac_compile) 2>&5
  5191. ac_status=$?
  5192. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5193. test $ac_status = 0; }; then
  5194. case `/usr/bin/file conftest.$ac_objext` in
  5195. *ELF-32*)
  5196. HPUX_IA64_MODE="32"
  5197. ;;
  5198. *ELF-64*)
  5199. HPUX_IA64_MODE="64"
  5200. ;;
  5201. esac
  5202. fi
  5203. rm -rf conftest*
  5204. ;;
  5205. *-*-irix6*)
  5206. # Find out which ABI we are using.
  5207. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5208. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5209. (eval $ac_compile) 2>&5
  5210. ac_status=$?
  5211. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5212. test $ac_status = 0; }; then
  5213. if test "$lt_cv_prog_gnu_ld" = yes; then
  5214. case `/usr/bin/file conftest.$ac_objext` in
  5215. *32-bit*)
  5216. LD="${LD-ld} -melf32bsmip"
  5217. ;;
  5218. *N32*)
  5219. LD="${LD-ld} -melf32bmipn32"
  5220. ;;
  5221. *64-bit*)
  5222. LD="${LD-ld} -melf64bmip"
  5223. ;;
  5224. esac
  5225. else
  5226. case `/usr/bin/file conftest.$ac_objext` in
  5227. *32-bit*)
  5228. LD="${LD-ld} -32"
  5229. ;;
  5230. *N32*)
  5231. LD="${LD-ld} -n32"
  5232. ;;
  5233. *64-bit*)
  5234. LD="${LD-ld} -64"
  5235. ;;
  5236. esac
  5237. fi
  5238. fi
  5239. rm -rf conftest*
  5240. ;;
  5241. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5242. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5243. # Find out which ABI we are using.
  5244. echo 'int i;' > conftest.$ac_ext
  5245. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5246. (eval $ac_compile) 2>&5
  5247. ac_status=$?
  5248. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5249. test $ac_status = 0; }; then
  5250. case `/usr/bin/file conftest.o` in
  5251. *32-bit*)
  5252. case $host in
  5253. x86_64-*kfreebsd*-gnu)
  5254. LD="${LD-ld} -m elf_i386_fbsd"
  5255. ;;
  5256. x86_64-*linux*)
  5257. LD="${LD-ld} -m elf_i386"
  5258. ;;
  5259. ppc64-*linux*|powerpc64-*linux*)
  5260. LD="${LD-ld} -m elf32ppclinux"
  5261. ;;
  5262. s390x-*linux*)
  5263. LD="${LD-ld} -m elf_s390"
  5264. ;;
  5265. sparc64-*linux*)
  5266. LD="${LD-ld} -m elf32_sparc"
  5267. ;;
  5268. esac
  5269. ;;
  5270. *64-bit*)
  5271. case $host in
  5272. x86_64-*kfreebsd*-gnu)
  5273. LD="${LD-ld} -m elf_x86_64_fbsd"
  5274. ;;
  5275. x86_64-*linux*)
  5276. LD="${LD-ld} -m elf_x86_64"
  5277. ;;
  5278. powerpc64le-*linux*)
  5279. LD="${LD-ld} -m elf64lppc"
  5280. ;;
  5281. powerpc64-*linux*)
  5282. LD="${LD-ld} -m elf64ppc"
  5283. ;;
  5284. s390*-*linux*|s390*-*tpf*)
  5285. LD="${LD-ld} -m elf64_s390"
  5286. ;;
  5287. sparc*-*linux*)
  5288. LD="${LD-ld} -m elf64_sparc"
  5289. ;;
  5290. esac
  5291. ;;
  5292. esac
  5293. fi
  5294. rm -rf conftest*
  5295. ;;
  5296. *-*-sco3.2v5*)
  5297. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5298. SAVE_CFLAGS="$CFLAGS"
  5299. CFLAGS="$CFLAGS -belf"
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5301. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5302. if ${lt_cv_cc_needs_belf+:} false; then :
  5303. $as_echo_n "(cached) " >&6
  5304. else
  5305. ac_ext=c
  5306. ac_cpp='$CPP $CPPFLAGS'
  5307. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5308. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5309. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5311. /* end confdefs.h. */
  5312. int
  5313. main ()
  5314. {
  5315. ;
  5316. return 0;
  5317. }
  5318. _ACEOF
  5319. if ac_fn_c_try_link "$LINENO"; then :
  5320. lt_cv_cc_needs_belf=yes
  5321. else
  5322. lt_cv_cc_needs_belf=no
  5323. fi
  5324. rm -f core conftest.err conftest.$ac_objext \
  5325. conftest$ac_exeext conftest.$ac_ext
  5326. ac_ext=c
  5327. ac_cpp='$CPP $CPPFLAGS'
  5328. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5329. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5330. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5331. fi
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5333. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5334. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5335. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5336. CFLAGS="$SAVE_CFLAGS"
  5337. fi
  5338. ;;
  5339. *-*solaris*)
  5340. # Find out which ABI we are using.
  5341. echo 'int i;' > conftest.$ac_ext
  5342. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5343. (eval $ac_compile) 2>&5
  5344. ac_status=$?
  5345. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5346. test $ac_status = 0; }; then
  5347. case `/usr/bin/file conftest.o` in
  5348. *64-bit*)
  5349. case $lt_cv_prog_gnu_ld in
  5350. yes*)
  5351. case $host in
  5352. i?86-*-solaris*)
  5353. LD="${LD-ld} -m elf_x86_64"
  5354. ;;
  5355. sparc*-*-solaris*)
  5356. LD="${LD-ld} -m elf64_sparc"
  5357. ;;
  5358. esac
  5359. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5360. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5361. LD="${LD-ld}_sol2"
  5362. fi
  5363. ;;
  5364. *)
  5365. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5366. LD="${LD-ld} -64"
  5367. fi
  5368. ;;
  5369. esac
  5370. ;;
  5371. esac
  5372. fi
  5373. rm -rf conftest*
  5374. ;;
  5375. esac
  5376. need_locks="$enable_libtool_lock"
  5377. if test -n "$ac_tool_prefix"; then
  5378. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5379. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5381. $as_echo_n "checking for $ac_word... " >&6; }
  5382. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5383. $as_echo_n "(cached) " >&6
  5384. else
  5385. if test -n "$MANIFEST_TOOL"; then
  5386. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5387. else
  5388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5389. for as_dir in $PATH
  5390. do
  5391. IFS=$as_save_IFS
  5392. test -z "$as_dir" && as_dir=.
  5393. for ac_exec_ext in '' $ac_executable_extensions; do
  5394. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5395. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5396. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5397. break 2
  5398. fi
  5399. done
  5400. done
  5401. IFS=$as_save_IFS
  5402. fi
  5403. fi
  5404. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5405. if test -n "$MANIFEST_TOOL"; then
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5407. $as_echo "$MANIFEST_TOOL" >&6; }
  5408. else
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5410. $as_echo "no" >&6; }
  5411. fi
  5412. fi
  5413. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5414. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5415. # Extract the first word of "mt", so it can be a program name with args.
  5416. set dummy mt; ac_word=$2
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5418. $as_echo_n "checking for $ac_word... " >&6; }
  5419. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5420. $as_echo_n "(cached) " >&6
  5421. else
  5422. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5423. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5424. else
  5425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5426. for as_dir in $PATH
  5427. do
  5428. IFS=$as_save_IFS
  5429. test -z "$as_dir" && as_dir=.
  5430. for ac_exec_ext in '' $ac_executable_extensions; do
  5431. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5432. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5433. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5434. break 2
  5435. fi
  5436. done
  5437. done
  5438. IFS=$as_save_IFS
  5439. fi
  5440. fi
  5441. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5442. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5444. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5445. else
  5446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5447. $as_echo "no" >&6; }
  5448. fi
  5449. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5450. MANIFEST_TOOL=":"
  5451. else
  5452. case $cross_compiling:$ac_tool_warned in
  5453. yes:)
  5454. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5455. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5456. ac_tool_warned=yes ;;
  5457. esac
  5458. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5459. fi
  5460. else
  5461. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5462. fi
  5463. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5465. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5466. if ${lt_cv_path_mainfest_tool+:} false; then :
  5467. $as_echo_n "(cached) " >&6
  5468. else
  5469. lt_cv_path_mainfest_tool=no
  5470. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5471. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5472. cat conftest.err >&5
  5473. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5474. lt_cv_path_mainfest_tool=yes
  5475. fi
  5476. rm -f conftest*
  5477. fi
  5478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5479. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5480. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5481. MANIFEST_TOOL=:
  5482. fi
  5483. case $host_os in
  5484. rhapsody* | darwin*)
  5485. if test -n "$ac_tool_prefix"; then
  5486. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5487. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5489. $as_echo_n "checking for $ac_word... " >&6; }
  5490. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5491. $as_echo_n "(cached) " >&6
  5492. else
  5493. if test -n "$DSYMUTIL"; then
  5494. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5495. else
  5496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5497. for as_dir in $PATH
  5498. do
  5499. IFS=$as_save_IFS
  5500. test -z "$as_dir" && as_dir=.
  5501. for ac_exec_ext in '' $ac_executable_extensions; do
  5502. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5503. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5504. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5505. break 2
  5506. fi
  5507. done
  5508. done
  5509. IFS=$as_save_IFS
  5510. fi
  5511. fi
  5512. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5513. if test -n "$DSYMUTIL"; then
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5515. $as_echo "$DSYMUTIL" >&6; }
  5516. else
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5518. $as_echo "no" >&6; }
  5519. fi
  5520. fi
  5521. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5522. ac_ct_DSYMUTIL=$DSYMUTIL
  5523. # Extract the first word of "dsymutil", so it can be a program name with args.
  5524. set dummy dsymutil; ac_word=$2
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5526. $as_echo_n "checking for $ac_word... " >&6; }
  5527. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5528. $as_echo_n "(cached) " >&6
  5529. else
  5530. if test -n "$ac_ct_DSYMUTIL"; then
  5531. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5532. else
  5533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5534. for as_dir in $PATH
  5535. do
  5536. IFS=$as_save_IFS
  5537. test -z "$as_dir" && as_dir=.
  5538. for ac_exec_ext in '' $ac_executable_extensions; do
  5539. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5540. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5541. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5542. break 2
  5543. fi
  5544. done
  5545. done
  5546. IFS=$as_save_IFS
  5547. fi
  5548. fi
  5549. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5550. if test -n "$ac_ct_DSYMUTIL"; then
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5552. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5553. else
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5555. $as_echo "no" >&6; }
  5556. fi
  5557. if test "x$ac_ct_DSYMUTIL" = x; then
  5558. DSYMUTIL=":"
  5559. else
  5560. case $cross_compiling:$ac_tool_warned in
  5561. yes:)
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5563. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5564. ac_tool_warned=yes ;;
  5565. esac
  5566. DSYMUTIL=$ac_ct_DSYMUTIL
  5567. fi
  5568. else
  5569. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5570. fi
  5571. if test -n "$ac_tool_prefix"; then
  5572. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5573. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5575. $as_echo_n "checking for $ac_word... " >&6; }
  5576. if ${ac_cv_prog_NMEDIT+:} false; then :
  5577. $as_echo_n "(cached) " >&6
  5578. else
  5579. if test -n "$NMEDIT"; then
  5580. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5581. else
  5582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5583. for as_dir in $PATH
  5584. do
  5585. IFS=$as_save_IFS
  5586. test -z "$as_dir" && as_dir=.
  5587. for ac_exec_ext in '' $ac_executable_extensions; do
  5588. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5589. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5590. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5591. break 2
  5592. fi
  5593. done
  5594. done
  5595. IFS=$as_save_IFS
  5596. fi
  5597. fi
  5598. NMEDIT=$ac_cv_prog_NMEDIT
  5599. if test -n "$NMEDIT"; then
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5601. $as_echo "$NMEDIT" >&6; }
  5602. else
  5603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5604. $as_echo "no" >&6; }
  5605. fi
  5606. fi
  5607. if test -z "$ac_cv_prog_NMEDIT"; then
  5608. ac_ct_NMEDIT=$NMEDIT
  5609. # Extract the first word of "nmedit", so it can be a program name with args.
  5610. set dummy nmedit; ac_word=$2
  5611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5612. $as_echo_n "checking for $ac_word... " >&6; }
  5613. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5614. $as_echo_n "(cached) " >&6
  5615. else
  5616. if test -n "$ac_ct_NMEDIT"; then
  5617. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5618. else
  5619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5620. for as_dir in $PATH
  5621. do
  5622. IFS=$as_save_IFS
  5623. test -z "$as_dir" && as_dir=.
  5624. for ac_exec_ext in '' $ac_executable_extensions; do
  5625. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5626. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5627. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5628. break 2
  5629. fi
  5630. done
  5631. done
  5632. IFS=$as_save_IFS
  5633. fi
  5634. fi
  5635. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5636. if test -n "$ac_ct_NMEDIT"; then
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5638. $as_echo "$ac_ct_NMEDIT" >&6; }
  5639. else
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5641. $as_echo "no" >&6; }
  5642. fi
  5643. if test "x$ac_ct_NMEDIT" = x; then
  5644. NMEDIT=":"
  5645. else
  5646. case $cross_compiling:$ac_tool_warned in
  5647. yes:)
  5648. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5649. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5650. ac_tool_warned=yes ;;
  5651. esac
  5652. NMEDIT=$ac_ct_NMEDIT
  5653. fi
  5654. else
  5655. NMEDIT="$ac_cv_prog_NMEDIT"
  5656. fi
  5657. if test -n "$ac_tool_prefix"; then
  5658. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5659. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5661. $as_echo_n "checking for $ac_word... " >&6; }
  5662. if ${ac_cv_prog_LIPO+:} false; then :
  5663. $as_echo_n "(cached) " >&6
  5664. else
  5665. if test -n "$LIPO"; then
  5666. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5667. else
  5668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5669. for as_dir in $PATH
  5670. do
  5671. IFS=$as_save_IFS
  5672. test -z "$as_dir" && as_dir=.
  5673. for ac_exec_ext in '' $ac_executable_extensions; do
  5674. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5675. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5676. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5677. break 2
  5678. fi
  5679. done
  5680. done
  5681. IFS=$as_save_IFS
  5682. fi
  5683. fi
  5684. LIPO=$ac_cv_prog_LIPO
  5685. if test -n "$LIPO"; then
  5686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5687. $as_echo "$LIPO" >&6; }
  5688. else
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5690. $as_echo "no" >&6; }
  5691. fi
  5692. fi
  5693. if test -z "$ac_cv_prog_LIPO"; then
  5694. ac_ct_LIPO=$LIPO
  5695. # Extract the first word of "lipo", so it can be a program name with args.
  5696. set dummy lipo; ac_word=$2
  5697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5698. $as_echo_n "checking for $ac_word... " >&6; }
  5699. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5700. $as_echo_n "(cached) " >&6
  5701. else
  5702. if test -n "$ac_ct_LIPO"; then
  5703. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5704. else
  5705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5706. for as_dir in $PATH
  5707. do
  5708. IFS=$as_save_IFS
  5709. test -z "$as_dir" && as_dir=.
  5710. for ac_exec_ext in '' $ac_executable_extensions; do
  5711. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5712. ac_cv_prog_ac_ct_LIPO="lipo"
  5713. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5714. break 2
  5715. fi
  5716. done
  5717. done
  5718. IFS=$as_save_IFS
  5719. fi
  5720. fi
  5721. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5722. if test -n "$ac_ct_LIPO"; then
  5723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5724. $as_echo "$ac_ct_LIPO" >&6; }
  5725. else
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5727. $as_echo "no" >&6; }
  5728. fi
  5729. if test "x$ac_ct_LIPO" = x; then
  5730. LIPO=":"
  5731. else
  5732. case $cross_compiling:$ac_tool_warned in
  5733. yes:)
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5735. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5736. ac_tool_warned=yes ;;
  5737. esac
  5738. LIPO=$ac_ct_LIPO
  5739. fi
  5740. else
  5741. LIPO="$ac_cv_prog_LIPO"
  5742. fi
  5743. if test -n "$ac_tool_prefix"; then
  5744. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5745. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5747. $as_echo_n "checking for $ac_word... " >&6; }
  5748. if ${ac_cv_prog_OTOOL+:} false; then :
  5749. $as_echo_n "(cached) " >&6
  5750. else
  5751. if test -n "$OTOOL"; then
  5752. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5753. else
  5754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5755. for as_dir in $PATH
  5756. do
  5757. IFS=$as_save_IFS
  5758. test -z "$as_dir" && as_dir=.
  5759. for ac_exec_ext in '' $ac_executable_extensions; do
  5760. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5761. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5762. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5763. break 2
  5764. fi
  5765. done
  5766. done
  5767. IFS=$as_save_IFS
  5768. fi
  5769. fi
  5770. OTOOL=$ac_cv_prog_OTOOL
  5771. if test -n "$OTOOL"; then
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5773. $as_echo "$OTOOL" >&6; }
  5774. else
  5775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5776. $as_echo "no" >&6; }
  5777. fi
  5778. fi
  5779. if test -z "$ac_cv_prog_OTOOL"; then
  5780. ac_ct_OTOOL=$OTOOL
  5781. # Extract the first word of "otool", so it can be a program name with args.
  5782. set dummy otool; ac_word=$2
  5783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5784. $as_echo_n "checking for $ac_word... " >&6; }
  5785. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5786. $as_echo_n "(cached) " >&6
  5787. else
  5788. if test -n "$ac_ct_OTOOL"; then
  5789. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5790. else
  5791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5792. for as_dir in $PATH
  5793. do
  5794. IFS=$as_save_IFS
  5795. test -z "$as_dir" && as_dir=.
  5796. for ac_exec_ext in '' $ac_executable_extensions; do
  5797. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5798. ac_cv_prog_ac_ct_OTOOL="otool"
  5799. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5800. break 2
  5801. fi
  5802. done
  5803. done
  5804. IFS=$as_save_IFS
  5805. fi
  5806. fi
  5807. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5808. if test -n "$ac_ct_OTOOL"; then
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5810. $as_echo "$ac_ct_OTOOL" >&6; }
  5811. else
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5813. $as_echo "no" >&6; }
  5814. fi
  5815. if test "x$ac_ct_OTOOL" = x; then
  5816. OTOOL=":"
  5817. else
  5818. case $cross_compiling:$ac_tool_warned in
  5819. yes:)
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5821. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5822. ac_tool_warned=yes ;;
  5823. esac
  5824. OTOOL=$ac_ct_OTOOL
  5825. fi
  5826. else
  5827. OTOOL="$ac_cv_prog_OTOOL"
  5828. fi
  5829. if test -n "$ac_tool_prefix"; then
  5830. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5831. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5833. $as_echo_n "checking for $ac_word... " >&6; }
  5834. if ${ac_cv_prog_OTOOL64+:} false; then :
  5835. $as_echo_n "(cached) " >&6
  5836. else
  5837. if test -n "$OTOOL64"; then
  5838. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5839. else
  5840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5841. for as_dir in $PATH
  5842. do
  5843. IFS=$as_save_IFS
  5844. test -z "$as_dir" && as_dir=.
  5845. for ac_exec_ext in '' $ac_executable_extensions; do
  5846. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5847. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5848. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5849. break 2
  5850. fi
  5851. done
  5852. done
  5853. IFS=$as_save_IFS
  5854. fi
  5855. fi
  5856. OTOOL64=$ac_cv_prog_OTOOL64
  5857. if test -n "$OTOOL64"; then
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5859. $as_echo "$OTOOL64" >&6; }
  5860. else
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5862. $as_echo "no" >&6; }
  5863. fi
  5864. fi
  5865. if test -z "$ac_cv_prog_OTOOL64"; then
  5866. ac_ct_OTOOL64=$OTOOL64
  5867. # Extract the first word of "otool64", so it can be a program name with args.
  5868. set dummy otool64; ac_word=$2
  5869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5870. $as_echo_n "checking for $ac_word... " >&6; }
  5871. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5872. $as_echo_n "(cached) " >&6
  5873. else
  5874. if test -n "$ac_ct_OTOOL64"; then
  5875. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5876. else
  5877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5878. for as_dir in $PATH
  5879. do
  5880. IFS=$as_save_IFS
  5881. test -z "$as_dir" && as_dir=.
  5882. for ac_exec_ext in '' $ac_executable_extensions; do
  5883. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5884. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5886. break 2
  5887. fi
  5888. done
  5889. done
  5890. IFS=$as_save_IFS
  5891. fi
  5892. fi
  5893. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5894. if test -n "$ac_ct_OTOOL64"; then
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5896. $as_echo "$ac_ct_OTOOL64" >&6; }
  5897. else
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5899. $as_echo "no" >&6; }
  5900. fi
  5901. if test "x$ac_ct_OTOOL64" = x; then
  5902. OTOOL64=":"
  5903. else
  5904. case $cross_compiling:$ac_tool_warned in
  5905. yes:)
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5907. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5908. ac_tool_warned=yes ;;
  5909. esac
  5910. OTOOL64=$ac_ct_OTOOL64
  5911. fi
  5912. else
  5913. OTOOL64="$ac_cv_prog_OTOOL64"
  5914. fi
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5916. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5917. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5918. $as_echo_n "(cached) " >&6
  5919. else
  5920. lt_cv_apple_cc_single_mod=no
  5921. if test -z "${LT_MULTI_MODULE}"; then
  5922. # By default we will add the -single_module flag. You can override
  5923. # by either setting the environment variable LT_MULTI_MODULE
  5924. # non-empty at configure time, or by adding -multi_module to the
  5925. # link flags.
  5926. rm -rf libconftest.dylib*
  5927. echo "int foo(void){return 1;}" > conftest.c
  5928. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5929. -dynamiclib -Wl,-single_module conftest.c" >&5
  5930. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5931. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5932. _lt_result=$?
  5933. # If there is a non-empty error log, and "single_module"
  5934. # appears in it, assume the flag caused a linker warning
  5935. if test -s conftest.err && $GREP single_module conftest.err; then
  5936. cat conftest.err >&5
  5937. # Otherwise, if the output was created with a 0 exit code from
  5938. # the compiler, it worked.
  5939. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5940. lt_cv_apple_cc_single_mod=yes
  5941. else
  5942. cat conftest.err >&5
  5943. fi
  5944. rm -rf libconftest.dylib*
  5945. rm -f conftest.*
  5946. fi
  5947. fi
  5948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5949. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5951. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5952. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5953. $as_echo_n "(cached) " >&6
  5954. else
  5955. lt_cv_ld_exported_symbols_list=no
  5956. save_LDFLAGS=$LDFLAGS
  5957. echo "_main" > conftest.sym
  5958. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5960. /* end confdefs.h. */
  5961. int
  5962. main ()
  5963. {
  5964. ;
  5965. return 0;
  5966. }
  5967. _ACEOF
  5968. if ac_fn_c_try_link "$LINENO"; then :
  5969. lt_cv_ld_exported_symbols_list=yes
  5970. else
  5971. lt_cv_ld_exported_symbols_list=no
  5972. fi
  5973. rm -f core conftest.err conftest.$ac_objext \
  5974. conftest$ac_exeext conftest.$ac_ext
  5975. LDFLAGS="$save_LDFLAGS"
  5976. fi
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5978. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5980. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5981. if ${lt_cv_ld_force_load+:} false; then :
  5982. $as_echo_n "(cached) " >&6
  5983. else
  5984. lt_cv_ld_force_load=no
  5985. cat > conftest.c << _LT_EOF
  5986. int forced_loaded() { return 2;}
  5987. _LT_EOF
  5988. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5989. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5990. echo "$AR cru libconftest.a conftest.o" >&5
  5991. $AR cru libconftest.a conftest.o 2>&5
  5992. echo "$RANLIB libconftest.a" >&5
  5993. $RANLIB libconftest.a 2>&5
  5994. cat > conftest.c << _LT_EOF
  5995. int main() { return 0;}
  5996. _LT_EOF
  5997. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5998. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5999. _lt_result=$?
  6000. if test -s conftest.err && $GREP force_load conftest.err; then
  6001. cat conftest.err >&5
  6002. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6003. lt_cv_ld_force_load=yes
  6004. else
  6005. cat conftest.err >&5
  6006. fi
  6007. rm -f conftest.err libconftest.a conftest conftest.c
  6008. rm -rf conftest.dSYM
  6009. fi
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6011. $as_echo "$lt_cv_ld_force_load" >&6; }
  6012. case $host_os in
  6013. rhapsody* | darwin1.[012])
  6014. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6015. darwin1.*)
  6016. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6017. darwin*) # darwin 5.x on
  6018. # if running on 10.5 or later, the deployment target defaults
  6019. # to the OS version, if on x86, and 10.4, the deployment
  6020. # target defaults to 10.4. Don't you love it?
  6021. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6022. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6023. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6024. 10.[012]*)
  6025. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6026. 10.*)
  6027. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6028. esac
  6029. ;;
  6030. esac
  6031. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6032. _lt_dar_single_mod='$single_module'
  6033. fi
  6034. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6035. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6036. else
  6037. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6038. fi
  6039. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6040. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6041. else
  6042. _lt_dsymutil=
  6043. fi
  6044. ;;
  6045. esac
  6046. ac_ext=c
  6047. ac_cpp='$CPP $CPPFLAGS'
  6048. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6049. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6050. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6052. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6053. # On Suns, sometimes $CPP names a directory.
  6054. if test -n "$CPP" && test -d "$CPP"; then
  6055. CPP=
  6056. fi
  6057. if test -z "$CPP"; then
  6058. if ${ac_cv_prog_CPP+:} false; then :
  6059. $as_echo_n "(cached) " >&6
  6060. else
  6061. # Double quotes because CPP needs to be expanded
  6062. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6063. do
  6064. ac_preproc_ok=false
  6065. for ac_c_preproc_warn_flag in '' yes
  6066. do
  6067. # Use a header file that comes with gcc, so configuring glibc
  6068. # with a fresh cross-compiler works.
  6069. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6070. # <limits.h> exists even on freestanding compilers.
  6071. # On the NeXT, cc -E runs the code through the compiler's parser,
  6072. # not just through cpp. "Syntax error" is here to catch this case.
  6073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6074. /* end confdefs.h. */
  6075. #ifdef __STDC__
  6076. # include <limits.h>
  6077. #else
  6078. # include <assert.h>
  6079. #endif
  6080. Syntax error
  6081. _ACEOF
  6082. if ac_fn_c_try_cpp "$LINENO"; then :
  6083. else
  6084. # Broken: fails on valid input.
  6085. continue
  6086. fi
  6087. rm -f conftest.err conftest.i conftest.$ac_ext
  6088. # OK, works on sane cases. Now check whether nonexistent headers
  6089. # can be detected and how.
  6090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6091. /* end confdefs.h. */
  6092. #include <ac_nonexistent.h>
  6093. _ACEOF
  6094. if ac_fn_c_try_cpp "$LINENO"; then :
  6095. # Broken: success on invalid input.
  6096. continue
  6097. else
  6098. # Passes both tests.
  6099. ac_preproc_ok=:
  6100. break
  6101. fi
  6102. rm -f conftest.err conftest.i conftest.$ac_ext
  6103. done
  6104. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6105. rm -f conftest.i conftest.err conftest.$ac_ext
  6106. if $ac_preproc_ok; then :
  6107. break
  6108. fi
  6109. done
  6110. ac_cv_prog_CPP=$CPP
  6111. fi
  6112. CPP=$ac_cv_prog_CPP
  6113. else
  6114. ac_cv_prog_CPP=$CPP
  6115. fi
  6116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6117. $as_echo "$CPP" >&6; }
  6118. ac_preproc_ok=false
  6119. for ac_c_preproc_warn_flag in '' yes
  6120. do
  6121. # Use a header file that comes with gcc, so configuring glibc
  6122. # with a fresh cross-compiler works.
  6123. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6124. # <limits.h> exists even on freestanding compilers.
  6125. # On the NeXT, cc -E runs the code through the compiler's parser,
  6126. # not just through cpp. "Syntax error" is here to catch this case.
  6127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6128. /* end confdefs.h. */
  6129. #ifdef __STDC__
  6130. # include <limits.h>
  6131. #else
  6132. # include <assert.h>
  6133. #endif
  6134. Syntax error
  6135. _ACEOF
  6136. if ac_fn_c_try_cpp "$LINENO"; then :
  6137. else
  6138. # Broken: fails on valid input.
  6139. continue
  6140. fi
  6141. rm -f conftest.err conftest.i conftest.$ac_ext
  6142. # OK, works on sane cases. Now check whether nonexistent headers
  6143. # can be detected and how.
  6144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6145. /* end confdefs.h. */
  6146. #include <ac_nonexistent.h>
  6147. _ACEOF
  6148. if ac_fn_c_try_cpp "$LINENO"; then :
  6149. # Broken: success on invalid input.
  6150. continue
  6151. else
  6152. # Passes both tests.
  6153. ac_preproc_ok=:
  6154. break
  6155. fi
  6156. rm -f conftest.err conftest.i conftest.$ac_ext
  6157. done
  6158. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6159. rm -f conftest.i conftest.err conftest.$ac_ext
  6160. if $ac_preproc_ok; then :
  6161. else
  6162. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6163. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6164. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6165. See \`config.log' for more details" "$LINENO" 5; }
  6166. fi
  6167. ac_ext=c
  6168. ac_cpp='$CPP $CPPFLAGS'
  6169. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6170. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6171. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6173. $as_echo_n "checking for ANSI C header files... " >&6; }
  6174. if ${ac_cv_header_stdc+:} false; then :
  6175. $as_echo_n "(cached) " >&6
  6176. else
  6177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6178. /* end confdefs.h. */
  6179. #include <stdlib.h>
  6180. #include <stdarg.h>
  6181. #include <string.h>
  6182. #include <float.h>
  6183. int
  6184. main ()
  6185. {
  6186. ;
  6187. return 0;
  6188. }
  6189. _ACEOF
  6190. if ac_fn_c_try_compile "$LINENO"; then :
  6191. ac_cv_header_stdc=yes
  6192. else
  6193. ac_cv_header_stdc=no
  6194. fi
  6195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6196. if test $ac_cv_header_stdc = yes; then
  6197. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6199. /* end confdefs.h. */
  6200. #include <string.h>
  6201. _ACEOF
  6202. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6203. $EGREP "memchr" >/dev/null 2>&1; then :
  6204. else
  6205. ac_cv_header_stdc=no
  6206. fi
  6207. rm -f conftest*
  6208. fi
  6209. if test $ac_cv_header_stdc = yes; then
  6210. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6212. /* end confdefs.h. */
  6213. #include <stdlib.h>
  6214. _ACEOF
  6215. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6216. $EGREP "free" >/dev/null 2>&1; then :
  6217. else
  6218. ac_cv_header_stdc=no
  6219. fi
  6220. rm -f conftest*
  6221. fi
  6222. if test $ac_cv_header_stdc = yes; then
  6223. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6224. if test "$cross_compiling" = yes; then :
  6225. :
  6226. else
  6227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6228. /* end confdefs.h. */
  6229. #include <ctype.h>
  6230. #include <stdlib.h>
  6231. #if ((' ' & 0x0FF) == 0x020)
  6232. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6233. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6234. #else
  6235. # define ISLOWER(c) \
  6236. (('a' <= (c) && (c) <= 'i') \
  6237. || ('j' <= (c) && (c) <= 'r') \
  6238. || ('s' <= (c) && (c) <= 'z'))
  6239. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6240. #endif
  6241. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6242. int
  6243. main ()
  6244. {
  6245. int i;
  6246. for (i = 0; i < 256; i++)
  6247. if (XOR (islower (i), ISLOWER (i))
  6248. || toupper (i) != TOUPPER (i))
  6249. return 2;
  6250. return 0;
  6251. }
  6252. _ACEOF
  6253. if ac_fn_c_try_run "$LINENO"; then :
  6254. else
  6255. ac_cv_header_stdc=no
  6256. fi
  6257. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6258. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6259. fi
  6260. fi
  6261. fi
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6263. $as_echo "$ac_cv_header_stdc" >&6; }
  6264. if test $ac_cv_header_stdc = yes; then
  6265. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6266. fi
  6267. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6268. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6269. inttypes.h stdint.h unistd.h
  6270. do :
  6271. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6272. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6273. "
  6274. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6275. cat >>confdefs.h <<_ACEOF
  6276. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6277. _ACEOF
  6278. fi
  6279. done
  6280. for ac_header in dlfcn.h
  6281. do :
  6282. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6283. "
  6284. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6285. cat >>confdefs.h <<_ACEOF
  6286. #define HAVE_DLFCN_H 1
  6287. _ACEOF
  6288. fi
  6289. done
  6290. # Set options
  6291. enable_win32_dll=yes
  6292. case $host in
  6293. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6294. if test -n "$ac_tool_prefix"; then
  6295. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6296. set dummy ${ac_tool_prefix}as; ac_word=$2
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6298. $as_echo_n "checking for $ac_word... " >&6; }
  6299. if ${ac_cv_prog_AS+:} false; then :
  6300. $as_echo_n "(cached) " >&6
  6301. else
  6302. if test -n "$AS"; then
  6303. ac_cv_prog_AS="$AS" # Let the user override the test.
  6304. else
  6305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6306. for as_dir in $PATH
  6307. do
  6308. IFS=$as_save_IFS
  6309. test -z "$as_dir" && as_dir=.
  6310. for ac_exec_ext in '' $ac_executable_extensions; do
  6311. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6312. ac_cv_prog_AS="${ac_tool_prefix}as"
  6313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6314. break 2
  6315. fi
  6316. done
  6317. done
  6318. IFS=$as_save_IFS
  6319. fi
  6320. fi
  6321. AS=$ac_cv_prog_AS
  6322. if test -n "$AS"; then
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6324. $as_echo "$AS" >&6; }
  6325. else
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6327. $as_echo "no" >&6; }
  6328. fi
  6329. fi
  6330. if test -z "$ac_cv_prog_AS"; then
  6331. ac_ct_AS=$AS
  6332. # Extract the first word of "as", so it can be a program name with args.
  6333. set dummy as; ac_word=$2
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6335. $as_echo_n "checking for $ac_word... " >&6; }
  6336. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6337. $as_echo_n "(cached) " >&6
  6338. else
  6339. if test -n "$ac_ct_AS"; then
  6340. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6341. else
  6342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6343. for as_dir in $PATH
  6344. do
  6345. IFS=$as_save_IFS
  6346. test -z "$as_dir" && as_dir=.
  6347. for ac_exec_ext in '' $ac_executable_extensions; do
  6348. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6349. ac_cv_prog_ac_ct_AS="as"
  6350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6351. break 2
  6352. fi
  6353. done
  6354. done
  6355. IFS=$as_save_IFS
  6356. fi
  6357. fi
  6358. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6359. if test -n "$ac_ct_AS"; then
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6361. $as_echo "$ac_ct_AS" >&6; }
  6362. else
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6364. $as_echo "no" >&6; }
  6365. fi
  6366. if test "x$ac_ct_AS" = x; then
  6367. AS="false"
  6368. else
  6369. case $cross_compiling:$ac_tool_warned in
  6370. yes:)
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6372. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6373. ac_tool_warned=yes ;;
  6374. esac
  6375. AS=$ac_ct_AS
  6376. fi
  6377. else
  6378. AS="$ac_cv_prog_AS"
  6379. fi
  6380. if test -n "$ac_tool_prefix"; then
  6381. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6382. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6384. $as_echo_n "checking for $ac_word... " >&6; }
  6385. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6386. $as_echo_n "(cached) " >&6
  6387. else
  6388. if test -n "$DLLTOOL"; then
  6389. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6390. else
  6391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6392. for as_dir in $PATH
  6393. do
  6394. IFS=$as_save_IFS
  6395. test -z "$as_dir" && as_dir=.
  6396. for ac_exec_ext in '' $ac_executable_extensions; do
  6397. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6398. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6399. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6400. break 2
  6401. fi
  6402. done
  6403. done
  6404. IFS=$as_save_IFS
  6405. fi
  6406. fi
  6407. DLLTOOL=$ac_cv_prog_DLLTOOL
  6408. if test -n "$DLLTOOL"; then
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6410. $as_echo "$DLLTOOL" >&6; }
  6411. else
  6412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6413. $as_echo "no" >&6; }
  6414. fi
  6415. fi
  6416. if test -z "$ac_cv_prog_DLLTOOL"; then
  6417. ac_ct_DLLTOOL=$DLLTOOL
  6418. # Extract the first word of "dlltool", so it can be a program name with args.
  6419. set dummy dlltool; ac_word=$2
  6420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6421. $as_echo_n "checking for $ac_word... " >&6; }
  6422. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6423. $as_echo_n "(cached) " >&6
  6424. else
  6425. if test -n "$ac_ct_DLLTOOL"; then
  6426. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6427. else
  6428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6429. for as_dir in $PATH
  6430. do
  6431. IFS=$as_save_IFS
  6432. test -z "$as_dir" && as_dir=.
  6433. for ac_exec_ext in '' $ac_executable_extensions; do
  6434. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6435. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6436. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6437. break 2
  6438. fi
  6439. done
  6440. done
  6441. IFS=$as_save_IFS
  6442. fi
  6443. fi
  6444. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6445. if test -n "$ac_ct_DLLTOOL"; then
  6446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6447. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6448. else
  6449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6450. $as_echo "no" >&6; }
  6451. fi
  6452. if test "x$ac_ct_DLLTOOL" = x; then
  6453. DLLTOOL="false"
  6454. else
  6455. case $cross_compiling:$ac_tool_warned in
  6456. yes:)
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6458. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6459. ac_tool_warned=yes ;;
  6460. esac
  6461. DLLTOOL=$ac_ct_DLLTOOL
  6462. fi
  6463. else
  6464. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6465. fi
  6466. if test -n "$ac_tool_prefix"; then
  6467. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6468. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6470. $as_echo_n "checking for $ac_word... " >&6; }
  6471. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6472. $as_echo_n "(cached) " >&6
  6473. else
  6474. if test -n "$OBJDUMP"; then
  6475. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6476. else
  6477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6478. for as_dir in $PATH
  6479. do
  6480. IFS=$as_save_IFS
  6481. test -z "$as_dir" && as_dir=.
  6482. for ac_exec_ext in '' $ac_executable_extensions; do
  6483. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6484. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6486. break 2
  6487. fi
  6488. done
  6489. done
  6490. IFS=$as_save_IFS
  6491. fi
  6492. fi
  6493. OBJDUMP=$ac_cv_prog_OBJDUMP
  6494. if test -n "$OBJDUMP"; then
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6496. $as_echo "$OBJDUMP" >&6; }
  6497. else
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6499. $as_echo "no" >&6; }
  6500. fi
  6501. fi
  6502. if test -z "$ac_cv_prog_OBJDUMP"; then
  6503. ac_ct_OBJDUMP=$OBJDUMP
  6504. # Extract the first word of "objdump", so it can be a program name with args.
  6505. set dummy objdump; ac_word=$2
  6506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6507. $as_echo_n "checking for $ac_word... " >&6; }
  6508. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6509. $as_echo_n "(cached) " >&6
  6510. else
  6511. if test -n "$ac_ct_OBJDUMP"; then
  6512. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6513. else
  6514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6515. for as_dir in $PATH
  6516. do
  6517. IFS=$as_save_IFS
  6518. test -z "$as_dir" && as_dir=.
  6519. for ac_exec_ext in '' $ac_executable_extensions; do
  6520. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6521. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6523. break 2
  6524. fi
  6525. done
  6526. done
  6527. IFS=$as_save_IFS
  6528. fi
  6529. fi
  6530. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6531. if test -n "$ac_ct_OBJDUMP"; then
  6532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6533. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6534. else
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6536. $as_echo "no" >&6; }
  6537. fi
  6538. if test "x$ac_ct_OBJDUMP" = x; then
  6539. OBJDUMP="false"
  6540. else
  6541. case $cross_compiling:$ac_tool_warned in
  6542. yes:)
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6544. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6545. ac_tool_warned=yes ;;
  6546. esac
  6547. OBJDUMP=$ac_ct_OBJDUMP
  6548. fi
  6549. else
  6550. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6551. fi
  6552. ;;
  6553. esac
  6554. test -z "$AS" && AS=as
  6555. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6556. test -z "$OBJDUMP" && OBJDUMP=objdump
  6557. enable_dlopen=no
  6558. # Check whether --enable-shared was given.
  6559. if test "${enable_shared+set}" = set; then :
  6560. enableval=$enable_shared; p=${PACKAGE-default}
  6561. case $enableval in
  6562. yes) enable_shared=yes ;;
  6563. no) enable_shared=no ;;
  6564. *)
  6565. enable_shared=no
  6566. # Look at the argument we got. We use all the common list separators.
  6567. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6568. for pkg in $enableval; do
  6569. IFS="$lt_save_ifs"
  6570. if test "X$pkg" = "X$p"; then
  6571. enable_shared=yes
  6572. fi
  6573. done
  6574. IFS="$lt_save_ifs"
  6575. ;;
  6576. esac
  6577. else
  6578. enable_shared=yes
  6579. fi
  6580. # Check whether --enable-static was given.
  6581. if test "${enable_static+set}" = set; then :
  6582. enableval=$enable_static; p=${PACKAGE-default}
  6583. case $enableval in
  6584. yes) enable_static=yes ;;
  6585. no) enable_static=no ;;
  6586. *)
  6587. enable_static=no
  6588. # Look at the argument we got. We use all the common list separators.
  6589. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6590. for pkg in $enableval; do
  6591. IFS="$lt_save_ifs"
  6592. if test "X$pkg" = "X$p"; then
  6593. enable_static=yes
  6594. fi
  6595. done
  6596. IFS="$lt_save_ifs"
  6597. ;;
  6598. esac
  6599. else
  6600. enable_static=yes
  6601. fi
  6602. # Check whether --with-pic was given.
  6603. if test "${with_pic+set}" = set; then :
  6604. withval=$with_pic; lt_p=${PACKAGE-default}
  6605. case $withval in
  6606. yes|no) pic_mode=$withval ;;
  6607. *)
  6608. pic_mode=default
  6609. # Look at the argument we got. We use all the common list separators.
  6610. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6611. for lt_pkg in $withval; do
  6612. IFS="$lt_save_ifs"
  6613. if test "X$lt_pkg" = "X$lt_p"; then
  6614. pic_mode=yes
  6615. fi
  6616. done
  6617. IFS="$lt_save_ifs"
  6618. ;;
  6619. esac
  6620. else
  6621. pic_mode=default
  6622. fi
  6623. test -z "$pic_mode" && pic_mode=default
  6624. # Check whether --enable-fast-install was given.
  6625. if test "${enable_fast_install+set}" = set; then :
  6626. enableval=$enable_fast_install; p=${PACKAGE-default}
  6627. case $enableval in
  6628. yes) enable_fast_install=yes ;;
  6629. no) enable_fast_install=no ;;
  6630. *)
  6631. enable_fast_install=no
  6632. # Look at the argument we got. We use all the common list separators.
  6633. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6634. for pkg in $enableval; do
  6635. IFS="$lt_save_ifs"
  6636. if test "X$pkg" = "X$p"; then
  6637. enable_fast_install=yes
  6638. fi
  6639. done
  6640. IFS="$lt_save_ifs"
  6641. ;;
  6642. esac
  6643. else
  6644. enable_fast_install=yes
  6645. fi
  6646. # This can be used to rebuild libtool when needed
  6647. LIBTOOL_DEPS="$ltmain"
  6648. # Always use our own libtool.
  6649. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6650. test -z "$LN_S" && LN_S="ln -s"
  6651. if test -n "${ZSH_VERSION+set}" ; then
  6652. setopt NO_GLOB_SUBST
  6653. fi
  6654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6655. $as_echo_n "checking for objdir... " >&6; }
  6656. if ${lt_cv_objdir+:} false; then :
  6657. $as_echo_n "(cached) " >&6
  6658. else
  6659. rm -f .libs 2>/dev/null
  6660. mkdir .libs 2>/dev/null
  6661. if test -d .libs; then
  6662. lt_cv_objdir=.libs
  6663. else
  6664. # MS-DOS does not allow filenames that begin with a dot.
  6665. lt_cv_objdir=_libs
  6666. fi
  6667. rmdir .libs 2>/dev/null
  6668. fi
  6669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6670. $as_echo "$lt_cv_objdir" >&6; }
  6671. objdir=$lt_cv_objdir
  6672. cat >>confdefs.h <<_ACEOF
  6673. #define LT_OBJDIR "$lt_cv_objdir/"
  6674. _ACEOF
  6675. case $host_os in
  6676. aix3*)
  6677. # AIX sometimes has problems with the GCC collect2 program. For some
  6678. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6679. # vanish in a puff of smoke.
  6680. if test "X${COLLECT_NAMES+set}" != Xset; then
  6681. COLLECT_NAMES=
  6682. export COLLECT_NAMES
  6683. fi
  6684. ;;
  6685. esac
  6686. # Global variables:
  6687. ofile=libtool
  6688. can_build_shared=yes
  6689. # All known linkers require a `.a' archive for static linking (except MSVC,
  6690. # which needs '.lib').
  6691. libext=a
  6692. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6693. old_CC="$CC"
  6694. old_CFLAGS="$CFLAGS"
  6695. # Set sane defaults for various variables
  6696. test -z "$CC" && CC=cc
  6697. test -z "$LTCC" && LTCC=$CC
  6698. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6699. test -z "$LD" && LD=ld
  6700. test -z "$ac_objext" && ac_objext=o
  6701. for cc_temp in $compiler""; do
  6702. case $cc_temp in
  6703. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6704. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6705. \-*) ;;
  6706. *) break;;
  6707. esac
  6708. done
  6709. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6710. # Only perform the check for file, if the check method requires it
  6711. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6712. case $deplibs_check_method in
  6713. file_magic*)
  6714. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6716. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6717. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6718. $as_echo_n "(cached) " >&6
  6719. else
  6720. case $MAGIC_CMD in
  6721. [\\/*] | ?:[\\/]*)
  6722. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6723. ;;
  6724. *)
  6725. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6726. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6727. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6728. for ac_dir in $ac_dummy; do
  6729. IFS="$lt_save_ifs"
  6730. test -z "$ac_dir" && ac_dir=.
  6731. if test -f $ac_dir/${ac_tool_prefix}file; then
  6732. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6733. if test -n "$file_magic_test_file"; then
  6734. case $deplibs_check_method in
  6735. "file_magic "*)
  6736. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6737. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6738. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6739. $EGREP "$file_magic_regex" > /dev/null; then
  6740. :
  6741. else
  6742. cat <<_LT_EOF 1>&2
  6743. *** Warning: the command libtool uses to detect shared libraries,
  6744. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6745. *** The result is that libtool may fail to recognize shared libraries
  6746. *** as such. This will affect the creation of libtool libraries that
  6747. *** depend on shared libraries, but programs linked with such libtool
  6748. *** libraries will work regardless of this problem. Nevertheless, you
  6749. *** may want to report the problem to your system manager and/or to
  6750. *** bug-libtool@gnu.org
  6751. _LT_EOF
  6752. fi ;;
  6753. esac
  6754. fi
  6755. break
  6756. fi
  6757. done
  6758. IFS="$lt_save_ifs"
  6759. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6760. ;;
  6761. esac
  6762. fi
  6763. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6764. if test -n "$MAGIC_CMD"; then
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6766. $as_echo "$MAGIC_CMD" >&6; }
  6767. else
  6768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6769. $as_echo "no" >&6; }
  6770. fi
  6771. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6772. if test -n "$ac_tool_prefix"; then
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6774. $as_echo_n "checking for file... " >&6; }
  6775. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6776. $as_echo_n "(cached) " >&6
  6777. else
  6778. case $MAGIC_CMD in
  6779. [\\/*] | ?:[\\/]*)
  6780. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6781. ;;
  6782. *)
  6783. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6784. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6785. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6786. for ac_dir in $ac_dummy; do
  6787. IFS="$lt_save_ifs"
  6788. test -z "$ac_dir" && ac_dir=.
  6789. if test -f $ac_dir/file; then
  6790. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6791. if test -n "$file_magic_test_file"; then
  6792. case $deplibs_check_method in
  6793. "file_magic "*)
  6794. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6795. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6796. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6797. $EGREP "$file_magic_regex" > /dev/null; then
  6798. :
  6799. else
  6800. cat <<_LT_EOF 1>&2
  6801. *** Warning: the command libtool uses to detect shared libraries,
  6802. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6803. *** The result is that libtool may fail to recognize shared libraries
  6804. *** as such. This will affect the creation of libtool libraries that
  6805. *** depend on shared libraries, but programs linked with such libtool
  6806. *** libraries will work regardless of this problem. Nevertheless, you
  6807. *** may want to report the problem to your system manager and/or to
  6808. *** bug-libtool@gnu.org
  6809. _LT_EOF
  6810. fi ;;
  6811. esac
  6812. fi
  6813. break
  6814. fi
  6815. done
  6816. IFS="$lt_save_ifs"
  6817. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6818. ;;
  6819. esac
  6820. fi
  6821. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6822. if test -n "$MAGIC_CMD"; then
  6823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6824. $as_echo "$MAGIC_CMD" >&6; }
  6825. else
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6827. $as_echo "no" >&6; }
  6828. fi
  6829. else
  6830. MAGIC_CMD=:
  6831. fi
  6832. fi
  6833. fi
  6834. ;;
  6835. esac
  6836. # Use C for the default configuration in the libtool script
  6837. lt_save_CC="$CC"
  6838. ac_ext=c
  6839. ac_cpp='$CPP $CPPFLAGS'
  6840. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6841. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6842. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6843. # Source file extension for C test sources.
  6844. ac_ext=c
  6845. # Object file extension for compiled C test sources.
  6846. objext=o
  6847. objext=$objext
  6848. # Code to be used in simple compile tests
  6849. lt_simple_compile_test_code="int some_variable = 0;"
  6850. # Code to be used in simple link tests
  6851. lt_simple_link_test_code='int main(){return(0);}'
  6852. # If no C compiler was specified, use CC.
  6853. LTCC=${LTCC-"$CC"}
  6854. # If no C compiler flags were specified, use CFLAGS.
  6855. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6856. # Allow CC to be a program name with arguments.
  6857. compiler=$CC
  6858. # Save the default compiler, since it gets overwritten when the other
  6859. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6860. compiler_DEFAULT=$CC
  6861. # save warnings/boilerplate of simple test code
  6862. ac_outfile=conftest.$ac_objext
  6863. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6864. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6865. _lt_compiler_boilerplate=`cat conftest.err`
  6866. $RM conftest*
  6867. ac_outfile=conftest.$ac_objext
  6868. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6869. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6870. _lt_linker_boilerplate=`cat conftest.err`
  6871. $RM -r conftest*
  6872. ## CAVEAT EMPTOR:
  6873. ## There is no encapsulation within the following macros, do not change
  6874. ## the running order or otherwise move them around unless you know exactly
  6875. ## what you are doing...
  6876. if test -n "$compiler"; then
  6877. lt_prog_compiler_no_builtin_flag=
  6878. if test "$GCC" = yes; then
  6879. case $cc_basename in
  6880. nvcc*)
  6881. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6882. *)
  6883. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6884. esac
  6885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6886. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6887. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6888. $as_echo_n "(cached) " >&6
  6889. else
  6890. lt_cv_prog_compiler_rtti_exceptions=no
  6891. ac_outfile=conftest.$ac_objext
  6892. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6893. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6894. # Insert the option either (1) after the last *FLAGS variable, or
  6895. # (2) before a word containing "conftest.", or (3) at the end.
  6896. # Note that $ac_compile itself does not contain backslashes and begins
  6897. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6898. # The option is referenced via a variable to avoid confusing sed.
  6899. lt_compile=`echo "$ac_compile" | $SED \
  6900. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6901. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6902. -e 's:$: $lt_compiler_flag:'`
  6903. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6904. (eval "$lt_compile" 2>conftest.err)
  6905. ac_status=$?
  6906. cat conftest.err >&5
  6907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6908. if (exit $ac_status) && test -s "$ac_outfile"; then
  6909. # The compiler can only warn and ignore the option if not recognized
  6910. # So say no if there are warnings other than the usual output.
  6911. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6912. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6913. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6914. lt_cv_prog_compiler_rtti_exceptions=yes
  6915. fi
  6916. fi
  6917. $RM conftest*
  6918. fi
  6919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6920. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6921. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6922. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6923. else
  6924. :
  6925. fi
  6926. fi
  6927. lt_prog_compiler_wl=
  6928. lt_prog_compiler_pic=
  6929. lt_prog_compiler_static=
  6930. if test "$GCC" = yes; then
  6931. lt_prog_compiler_wl='-Wl,'
  6932. lt_prog_compiler_static='-static'
  6933. case $host_os in
  6934. aix*)
  6935. # All AIX code is PIC.
  6936. if test "$host_cpu" = ia64; then
  6937. # AIX 5 now supports IA64 processor
  6938. lt_prog_compiler_static='-Bstatic'
  6939. fi
  6940. ;;
  6941. amigaos*)
  6942. case $host_cpu in
  6943. powerpc)
  6944. # see comment about AmigaOS4 .so support
  6945. lt_prog_compiler_pic='-fPIC'
  6946. ;;
  6947. m68k)
  6948. # FIXME: we need at least 68020 code to build shared libraries, but
  6949. # adding the `-m68020' flag to GCC prevents building anything better,
  6950. # like `-m68040'.
  6951. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6952. ;;
  6953. esac
  6954. ;;
  6955. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6956. # PIC is the default for these OSes.
  6957. ;;
  6958. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6959. # This hack is so that the source file can tell whether it is being
  6960. # built for inclusion in a dll (and should export symbols for example).
  6961. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6962. # (--disable-auto-import) libraries
  6963. lt_prog_compiler_pic='-DDLL_EXPORT'
  6964. ;;
  6965. darwin* | rhapsody*)
  6966. # PIC is the default on this platform
  6967. # Common symbols not allowed in MH_DYLIB files
  6968. lt_prog_compiler_pic='-fno-common'
  6969. ;;
  6970. haiku*)
  6971. # PIC is the default for Haiku.
  6972. # The "-static" flag exists, but is broken.
  6973. lt_prog_compiler_static=
  6974. ;;
  6975. hpux*)
  6976. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6977. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6978. # sets the default TLS model and affects inlining.
  6979. case $host_cpu in
  6980. hppa*64*)
  6981. # +Z the default
  6982. ;;
  6983. *)
  6984. lt_prog_compiler_pic='-fPIC'
  6985. ;;
  6986. esac
  6987. ;;
  6988. interix[3-9]*)
  6989. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6990. # Instead, we relocate shared libraries at runtime.
  6991. ;;
  6992. msdosdjgpp*)
  6993. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6994. # on systems that don't support them.
  6995. lt_prog_compiler_can_build_shared=no
  6996. enable_shared=no
  6997. ;;
  6998. *nto* | *qnx*)
  6999. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7000. # it will coredump.
  7001. lt_prog_compiler_pic='-fPIC -shared'
  7002. ;;
  7003. sysv4*MP*)
  7004. if test -d /usr/nec; then
  7005. lt_prog_compiler_pic=-Kconform_pic
  7006. fi
  7007. ;;
  7008. *)
  7009. lt_prog_compiler_pic='-fPIC'
  7010. ;;
  7011. esac
  7012. case $cc_basename in
  7013. nvcc*) # Cuda Compiler Driver 2.2
  7014. lt_prog_compiler_wl='-Xlinker '
  7015. if test -n "$lt_prog_compiler_pic"; then
  7016. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7017. fi
  7018. ;;
  7019. esac
  7020. else
  7021. # PORTME Check for flag to pass linker flags through the system compiler.
  7022. case $host_os in
  7023. aix*)
  7024. lt_prog_compiler_wl='-Wl,'
  7025. if test "$host_cpu" = ia64; then
  7026. # AIX 5 now supports IA64 processor
  7027. lt_prog_compiler_static='-Bstatic'
  7028. else
  7029. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7030. fi
  7031. ;;
  7032. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7033. # This hack is so that the source file can tell whether it is being
  7034. # built for inclusion in a dll (and should export symbols for example).
  7035. lt_prog_compiler_pic='-DDLL_EXPORT'
  7036. ;;
  7037. hpux9* | hpux10* | hpux11*)
  7038. lt_prog_compiler_wl='-Wl,'
  7039. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7040. # not for PA HP-UX.
  7041. case $host_cpu in
  7042. hppa*64*|ia64*)
  7043. # +Z the default
  7044. ;;
  7045. *)
  7046. lt_prog_compiler_pic='+Z'
  7047. ;;
  7048. esac
  7049. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7050. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7051. ;;
  7052. irix5* | irix6* | nonstopux*)
  7053. lt_prog_compiler_wl='-Wl,'
  7054. # PIC (with -KPIC) is the default.
  7055. lt_prog_compiler_static='-non_shared'
  7056. ;;
  7057. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7058. case $cc_basename in
  7059. # old Intel for x86_64 which still supported -KPIC.
  7060. ecc*)
  7061. lt_prog_compiler_wl='-Wl,'
  7062. lt_prog_compiler_pic='-KPIC'
  7063. lt_prog_compiler_static='-static'
  7064. ;;
  7065. # icc used to be incompatible with GCC.
  7066. # ICC 10 doesn't accept -KPIC any more.
  7067. icc* | ifort*)
  7068. lt_prog_compiler_wl='-Wl,'
  7069. lt_prog_compiler_pic='-fPIC'
  7070. lt_prog_compiler_static='-static'
  7071. ;;
  7072. # Lahey Fortran 8.1.
  7073. lf95*)
  7074. lt_prog_compiler_wl='-Wl,'
  7075. lt_prog_compiler_pic='--shared'
  7076. lt_prog_compiler_static='--static'
  7077. ;;
  7078. nagfor*)
  7079. # NAG Fortran compiler
  7080. lt_prog_compiler_wl='-Wl,-Wl,,'
  7081. lt_prog_compiler_pic='-PIC'
  7082. lt_prog_compiler_static='-Bstatic'
  7083. ;;
  7084. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7085. # Portland Group compilers (*not* the Pentium gcc compiler,
  7086. # which looks to be a dead project)
  7087. lt_prog_compiler_wl='-Wl,'
  7088. lt_prog_compiler_pic='-fpic'
  7089. lt_prog_compiler_static='-Bstatic'
  7090. ;;
  7091. ccc*)
  7092. lt_prog_compiler_wl='-Wl,'
  7093. # All Alpha code is PIC.
  7094. lt_prog_compiler_static='-non_shared'
  7095. ;;
  7096. xl* | bgxl* | bgf* | mpixl*)
  7097. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7098. lt_prog_compiler_wl='-Wl,'
  7099. lt_prog_compiler_pic='-qpic'
  7100. lt_prog_compiler_static='-qstaticlink'
  7101. ;;
  7102. *)
  7103. case `$CC -V 2>&1 | sed 5q` in
  7104. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7105. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7106. lt_prog_compiler_pic='-KPIC'
  7107. lt_prog_compiler_static='-Bstatic'
  7108. lt_prog_compiler_wl=''
  7109. ;;
  7110. *Sun\ F* | *Sun*Fortran*)
  7111. lt_prog_compiler_pic='-KPIC'
  7112. lt_prog_compiler_static='-Bstatic'
  7113. lt_prog_compiler_wl='-Qoption ld '
  7114. ;;
  7115. *Sun\ C*)
  7116. # Sun C 5.9
  7117. lt_prog_compiler_pic='-KPIC'
  7118. lt_prog_compiler_static='-Bstatic'
  7119. lt_prog_compiler_wl='-Wl,'
  7120. ;;
  7121. *Intel*\ [CF]*Compiler*)
  7122. lt_prog_compiler_wl='-Wl,'
  7123. lt_prog_compiler_pic='-fPIC'
  7124. lt_prog_compiler_static='-static'
  7125. ;;
  7126. *Portland\ Group*)
  7127. lt_prog_compiler_wl='-Wl,'
  7128. lt_prog_compiler_pic='-fpic'
  7129. lt_prog_compiler_static='-Bstatic'
  7130. ;;
  7131. esac
  7132. ;;
  7133. esac
  7134. ;;
  7135. newsos6)
  7136. lt_prog_compiler_pic='-KPIC'
  7137. lt_prog_compiler_static='-Bstatic'
  7138. ;;
  7139. *nto* | *qnx*)
  7140. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7141. # it will coredump.
  7142. lt_prog_compiler_pic='-fPIC -shared'
  7143. ;;
  7144. osf3* | osf4* | osf5*)
  7145. lt_prog_compiler_wl='-Wl,'
  7146. # All OSF/1 code is PIC.
  7147. lt_prog_compiler_static='-non_shared'
  7148. ;;
  7149. rdos*)
  7150. lt_prog_compiler_static='-non_shared'
  7151. ;;
  7152. solaris*)
  7153. lt_prog_compiler_pic='-KPIC'
  7154. lt_prog_compiler_static='-Bstatic'
  7155. case $cc_basename in
  7156. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7157. lt_prog_compiler_wl='-Qoption ld ';;
  7158. *)
  7159. lt_prog_compiler_wl='-Wl,';;
  7160. esac
  7161. ;;
  7162. sunos4*)
  7163. lt_prog_compiler_wl='-Qoption ld '
  7164. lt_prog_compiler_pic='-PIC'
  7165. lt_prog_compiler_static='-Bstatic'
  7166. ;;
  7167. sysv4 | sysv4.2uw2* | sysv4.3*)
  7168. lt_prog_compiler_wl='-Wl,'
  7169. lt_prog_compiler_pic='-KPIC'
  7170. lt_prog_compiler_static='-Bstatic'
  7171. ;;
  7172. sysv4*MP*)
  7173. if test -d /usr/nec ;then
  7174. lt_prog_compiler_pic='-Kconform_pic'
  7175. lt_prog_compiler_static='-Bstatic'
  7176. fi
  7177. ;;
  7178. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7179. lt_prog_compiler_wl='-Wl,'
  7180. lt_prog_compiler_pic='-KPIC'
  7181. lt_prog_compiler_static='-Bstatic'
  7182. ;;
  7183. unicos*)
  7184. lt_prog_compiler_wl='-Wl,'
  7185. lt_prog_compiler_can_build_shared=no
  7186. ;;
  7187. uts4*)
  7188. lt_prog_compiler_pic='-pic'
  7189. lt_prog_compiler_static='-Bstatic'
  7190. ;;
  7191. *)
  7192. lt_prog_compiler_can_build_shared=no
  7193. ;;
  7194. esac
  7195. fi
  7196. case $host_os in
  7197. # For platforms which do not support PIC, -DPIC is meaningless:
  7198. *djgpp*)
  7199. lt_prog_compiler_pic=
  7200. ;;
  7201. *)
  7202. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7203. ;;
  7204. esac
  7205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7206. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7207. if ${lt_cv_prog_compiler_pic+:} false; then :
  7208. $as_echo_n "(cached) " >&6
  7209. else
  7210. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7211. fi
  7212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7213. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7214. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7215. #
  7216. # Check to make sure the PIC flag actually works.
  7217. #
  7218. if test -n "$lt_prog_compiler_pic"; then
  7219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7220. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7221. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7222. $as_echo_n "(cached) " >&6
  7223. else
  7224. lt_cv_prog_compiler_pic_works=no
  7225. ac_outfile=conftest.$ac_objext
  7226. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7227. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7228. # Insert the option either (1) after the last *FLAGS variable, or
  7229. # (2) before a word containing "conftest.", or (3) at the end.
  7230. # Note that $ac_compile itself does not contain backslashes and begins
  7231. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7232. # The option is referenced via a variable to avoid confusing sed.
  7233. lt_compile=`echo "$ac_compile" | $SED \
  7234. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7235. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7236. -e 's:$: $lt_compiler_flag:'`
  7237. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7238. (eval "$lt_compile" 2>conftest.err)
  7239. ac_status=$?
  7240. cat conftest.err >&5
  7241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7242. if (exit $ac_status) && test -s "$ac_outfile"; then
  7243. # The compiler can only warn and ignore the option if not recognized
  7244. # So say no if there are warnings other than the usual output.
  7245. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7246. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7247. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7248. lt_cv_prog_compiler_pic_works=yes
  7249. fi
  7250. fi
  7251. $RM conftest*
  7252. fi
  7253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7254. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7255. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7256. case $lt_prog_compiler_pic in
  7257. "" | " "*) ;;
  7258. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7259. esac
  7260. else
  7261. lt_prog_compiler_pic=
  7262. lt_prog_compiler_can_build_shared=no
  7263. fi
  7264. fi
  7265. #
  7266. # Check to make sure the static flag actually works.
  7267. #
  7268. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7270. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7271. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7272. $as_echo_n "(cached) " >&6
  7273. else
  7274. lt_cv_prog_compiler_static_works=no
  7275. save_LDFLAGS="$LDFLAGS"
  7276. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7277. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7278. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7279. # The linker can only warn and ignore the option if not recognized
  7280. # So say no if there are warnings
  7281. if test -s conftest.err; then
  7282. # Append any errors to the config.log.
  7283. cat conftest.err 1>&5
  7284. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7285. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7286. if diff conftest.exp conftest.er2 >/dev/null; then
  7287. lt_cv_prog_compiler_static_works=yes
  7288. fi
  7289. else
  7290. lt_cv_prog_compiler_static_works=yes
  7291. fi
  7292. fi
  7293. $RM -r conftest*
  7294. LDFLAGS="$save_LDFLAGS"
  7295. fi
  7296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7297. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7298. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7299. :
  7300. else
  7301. lt_prog_compiler_static=
  7302. fi
  7303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7304. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7305. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7306. $as_echo_n "(cached) " >&6
  7307. else
  7308. lt_cv_prog_compiler_c_o=no
  7309. $RM -r conftest 2>/dev/null
  7310. mkdir conftest
  7311. cd conftest
  7312. mkdir out
  7313. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7314. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7315. # Insert the option either (1) after the last *FLAGS variable, or
  7316. # (2) before a word containing "conftest.", or (3) at the end.
  7317. # Note that $ac_compile itself does not contain backslashes and begins
  7318. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7319. lt_compile=`echo "$ac_compile" | $SED \
  7320. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7321. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7322. -e 's:$: $lt_compiler_flag:'`
  7323. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7324. (eval "$lt_compile" 2>out/conftest.err)
  7325. ac_status=$?
  7326. cat out/conftest.err >&5
  7327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7328. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7329. then
  7330. # The compiler can only warn and ignore the option if not recognized
  7331. # So say no if there are warnings
  7332. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7333. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7334. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7335. lt_cv_prog_compiler_c_o=yes
  7336. fi
  7337. fi
  7338. chmod u+w . 2>&5
  7339. $RM conftest*
  7340. # SGI C++ compiler will create directory out/ii_files/ for
  7341. # template instantiation
  7342. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7343. $RM out/* && rmdir out
  7344. cd ..
  7345. $RM -r conftest
  7346. $RM conftest*
  7347. fi
  7348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7349. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7351. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7352. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7353. $as_echo_n "(cached) " >&6
  7354. else
  7355. lt_cv_prog_compiler_c_o=no
  7356. $RM -r conftest 2>/dev/null
  7357. mkdir conftest
  7358. cd conftest
  7359. mkdir out
  7360. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7361. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7362. # Insert the option either (1) after the last *FLAGS variable, or
  7363. # (2) before a word containing "conftest.", or (3) at the end.
  7364. # Note that $ac_compile itself does not contain backslashes and begins
  7365. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7366. lt_compile=`echo "$ac_compile" | $SED \
  7367. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7368. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7369. -e 's:$: $lt_compiler_flag:'`
  7370. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7371. (eval "$lt_compile" 2>out/conftest.err)
  7372. ac_status=$?
  7373. cat out/conftest.err >&5
  7374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7375. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7376. then
  7377. # The compiler can only warn and ignore the option if not recognized
  7378. # So say no if there are warnings
  7379. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7380. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7381. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7382. lt_cv_prog_compiler_c_o=yes
  7383. fi
  7384. fi
  7385. chmod u+w . 2>&5
  7386. $RM conftest*
  7387. # SGI C++ compiler will create directory out/ii_files/ for
  7388. # template instantiation
  7389. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7390. $RM out/* && rmdir out
  7391. cd ..
  7392. $RM -r conftest
  7393. $RM conftest*
  7394. fi
  7395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7396. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7397. hard_links="nottested"
  7398. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7399. # do not overwrite the value of need_locks provided by the user
  7400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7401. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7402. hard_links=yes
  7403. $RM conftest*
  7404. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7405. touch conftest.a
  7406. ln conftest.a conftest.b 2>&5 || hard_links=no
  7407. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7409. $as_echo "$hard_links" >&6; }
  7410. if test "$hard_links" = no; then
  7411. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7412. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7413. need_locks=warn
  7414. fi
  7415. else
  7416. need_locks=no
  7417. fi
  7418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7419. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7420. runpath_var=
  7421. allow_undefined_flag=
  7422. always_export_symbols=no
  7423. archive_cmds=
  7424. archive_expsym_cmds=
  7425. compiler_needs_object=no
  7426. enable_shared_with_static_runtimes=no
  7427. export_dynamic_flag_spec=
  7428. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7429. hardcode_automatic=no
  7430. hardcode_direct=no
  7431. hardcode_direct_absolute=no
  7432. hardcode_libdir_flag_spec=
  7433. hardcode_libdir_separator=
  7434. hardcode_minus_L=no
  7435. hardcode_shlibpath_var=unsupported
  7436. inherit_rpath=no
  7437. link_all_deplibs=unknown
  7438. module_cmds=
  7439. module_expsym_cmds=
  7440. old_archive_from_new_cmds=
  7441. old_archive_from_expsyms_cmds=
  7442. thread_safe_flag_spec=
  7443. whole_archive_flag_spec=
  7444. # include_expsyms should be a list of space-separated symbols to be *always*
  7445. # included in the symbol list
  7446. include_expsyms=
  7447. # exclude_expsyms can be an extended regexp of symbols to exclude
  7448. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7449. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7450. # as well as any symbol that contains `d'.
  7451. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7452. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7453. # platforms (ab)use it in PIC code, but their linkers get confused if
  7454. # the symbol is explicitly referenced. Since portable code cannot
  7455. # rely on this symbol name, it's probably fine to never include it in
  7456. # preloaded symbol tables.
  7457. # Exclude shared library initialization/finalization symbols.
  7458. extract_expsyms_cmds=
  7459. case $host_os in
  7460. cygwin* | mingw* | pw32* | cegcc*)
  7461. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7462. # When not using gcc, we currently assume that we are using
  7463. # Microsoft Visual C++.
  7464. if test "$GCC" != yes; then
  7465. with_gnu_ld=no
  7466. fi
  7467. ;;
  7468. interix*)
  7469. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7470. with_gnu_ld=yes
  7471. ;;
  7472. openbsd*)
  7473. with_gnu_ld=no
  7474. ;;
  7475. esac
  7476. ld_shlibs=yes
  7477. # On some targets, GNU ld is compatible enough with the native linker
  7478. # that we're better off using the native interface for both.
  7479. lt_use_gnu_ld_interface=no
  7480. if test "$with_gnu_ld" = yes; then
  7481. case $host_os in
  7482. aix*)
  7483. # The AIX port of GNU ld has always aspired to compatibility
  7484. # with the native linker. However, as the warning in the GNU ld
  7485. # block says, versions before 2.19.5* couldn't really create working
  7486. # shared libraries, regardless of the interface used.
  7487. case `$LD -v 2>&1` in
  7488. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7489. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7490. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7491. *)
  7492. lt_use_gnu_ld_interface=yes
  7493. ;;
  7494. esac
  7495. ;;
  7496. *)
  7497. lt_use_gnu_ld_interface=yes
  7498. ;;
  7499. esac
  7500. fi
  7501. if test "$lt_use_gnu_ld_interface" = yes; then
  7502. # If archive_cmds runs LD, not CC, wlarc should be empty
  7503. wlarc='${wl}'
  7504. # Set some defaults for GNU ld with shared library support. These
  7505. # are reset later if shared libraries are not supported. Putting them
  7506. # here allows them to be overridden if necessary.
  7507. runpath_var=LD_RUN_PATH
  7508. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7509. export_dynamic_flag_spec='${wl}--export-dynamic'
  7510. # ancient GNU ld didn't support --whole-archive et. al.
  7511. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7512. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7513. else
  7514. whole_archive_flag_spec=
  7515. fi
  7516. supports_anon_versioning=no
  7517. case `$LD -v 2>&1` in
  7518. *GNU\ gold*) supports_anon_versioning=yes ;;
  7519. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7520. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7521. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7522. *\ 2.11.*) ;; # other 2.11 versions
  7523. *) supports_anon_versioning=yes ;;
  7524. esac
  7525. # See if GNU ld supports shared libraries.
  7526. case $host_os in
  7527. aix[3-9]*)
  7528. # On AIX/PPC, the GNU linker is very broken
  7529. if test "$host_cpu" != ia64; then
  7530. ld_shlibs=no
  7531. cat <<_LT_EOF 1>&2
  7532. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7533. *** to be unable to reliably create shared libraries on AIX.
  7534. *** Therefore, libtool is disabling shared libraries support. If you
  7535. *** really care for shared libraries, you may want to install binutils
  7536. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7537. *** You will then need to restart the configuration process.
  7538. _LT_EOF
  7539. fi
  7540. ;;
  7541. amigaos*)
  7542. case $host_cpu in
  7543. powerpc)
  7544. # see comment about AmigaOS4 .so support
  7545. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7546. archive_expsym_cmds=''
  7547. ;;
  7548. m68k)
  7549. 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)'
  7550. hardcode_libdir_flag_spec='-L$libdir'
  7551. hardcode_minus_L=yes
  7552. ;;
  7553. esac
  7554. ;;
  7555. beos*)
  7556. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7557. allow_undefined_flag=unsupported
  7558. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7559. # support --undefined. This deserves some investigation. FIXME
  7560. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7561. else
  7562. ld_shlibs=no
  7563. fi
  7564. ;;
  7565. cygwin* | mingw* | pw32* | cegcc*)
  7566. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7567. # as there is no search path for DLLs.
  7568. hardcode_libdir_flag_spec='-L$libdir'
  7569. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7570. allow_undefined_flag=unsupported
  7571. always_export_symbols=no
  7572. enable_shared_with_static_runtimes=yes
  7573. 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'
  7574. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7575. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7576. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7577. # If the export-symbols file already is a .def file (1st line
  7578. # is EXPORTS), use it as is; otherwise, prepend...
  7579. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7580. cp $export_symbols $output_objdir/$soname.def;
  7581. else
  7582. echo EXPORTS > $output_objdir/$soname.def;
  7583. cat $export_symbols >> $output_objdir/$soname.def;
  7584. fi~
  7585. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7586. else
  7587. ld_shlibs=no
  7588. fi
  7589. ;;
  7590. haiku*)
  7591. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7592. link_all_deplibs=yes
  7593. ;;
  7594. interix[3-9]*)
  7595. hardcode_direct=no
  7596. hardcode_shlibpath_var=no
  7597. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7598. export_dynamic_flag_spec='${wl}-E'
  7599. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7600. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7601. # default) and relocated if they conflict, which is a slow very memory
  7602. # consuming and fragmenting process. To avoid this, we pick a random,
  7603. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7604. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7605. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7606. 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'
  7607. ;;
  7608. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7609. tmp_diet=no
  7610. if test "$host_os" = linux-dietlibc; then
  7611. case $cc_basename in
  7612. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7613. esac
  7614. fi
  7615. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7616. && test "$tmp_diet" = no
  7617. then
  7618. tmp_addflag=' $pic_flag'
  7619. tmp_sharedflag='-shared'
  7620. case $cc_basename,$host_cpu in
  7621. pgcc*) # Portland Group C compiler
  7622. 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'
  7623. tmp_addflag=' $pic_flag'
  7624. ;;
  7625. pgf77* | pgf90* | pgf95* | pgfortran*)
  7626. # Portland Group f77 and f90 compilers
  7627. 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'
  7628. tmp_addflag=' $pic_flag -Mnomain' ;;
  7629. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7630. tmp_addflag=' -i_dynamic' ;;
  7631. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7632. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7633. ifc* | ifort*) # Intel Fortran compiler
  7634. tmp_addflag=' -nofor_main' ;;
  7635. lf95*) # Lahey Fortran 8.1
  7636. whole_archive_flag_spec=
  7637. tmp_sharedflag='--shared' ;;
  7638. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7639. tmp_sharedflag='-qmkshrobj'
  7640. tmp_addflag= ;;
  7641. nvcc*) # Cuda Compiler Driver 2.2
  7642. 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'
  7643. compiler_needs_object=yes
  7644. ;;
  7645. esac
  7646. case `$CC -V 2>&1 | sed 5q` in
  7647. *Sun\ C*) # Sun C 5.9
  7648. 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'
  7649. compiler_needs_object=yes
  7650. tmp_sharedflag='-G' ;;
  7651. *Sun\ F*) # Sun Fortran 8.3
  7652. tmp_sharedflag='-G' ;;
  7653. esac
  7654. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7655. if test "x$supports_anon_versioning" = xyes; then
  7656. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7657. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7658. echo "local: *; };" >> $output_objdir/$libname.ver~
  7659. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7660. fi
  7661. case $cc_basename in
  7662. xlf* | bgf* | bgxlf* | mpixlf*)
  7663. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7664. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7665. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7666. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7667. if test "x$supports_anon_versioning" = xyes; then
  7668. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7669. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7670. echo "local: *; };" >> $output_objdir/$libname.ver~
  7671. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7672. fi
  7673. ;;
  7674. esac
  7675. else
  7676. ld_shlibs=no
  7677. fi
  7678. ;;
  7679. netbsd*)
  7680. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7681. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7682. wlarc=
  7683. else
  7684. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7685. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7686. fi
  7687. ;;
  7688. solaris*)
  7689. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7690. ld_shlibs=no
  7691. cat <<_LT_EOF 1>&2
  7692. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7693. *** create shared libraries on Solaris systems. Therefore, libtool
  7694. *** is disabling shared libraries support. We urge you to upgrade GNU
  7695. *** binutils to release 2.9.1 or newer. Another option is to modify
  7696. *** your PATH or compiler configuration so that the native linker is
  7697. *** used, and then restart.
  7698. _LT_EOF
  7699. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7700. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7701. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7702. else
  7703. ld_shlibs=no
  7704. fi
  7705. ;;
  7706. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7707. case `$LD -v 2>&1` in
  7708. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7709. ld_shlibs=no
  7710. cat <<_LT_EOF 1>&2
  7711. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7712. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7713. *** is disabling shared libraries support. We urge you to upgrade GNU
  7714. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7715. *** your PATH or compiler configuration so that the native linker is
  7716. *** used, and then restart.
  7717. _LT_EOF
  7718. ;;
  7719. *)
  7720. # For security reasons, it is highly recommended that you always
  7721. # use absolute paths for naming shared libraries, and exclude the
  7722. # DT_RUNPATH tag from executables and libraries. But doing so
  7723. # requires that you compile everything twice, which is a pain.
  7724. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7725. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7726. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7727. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7728. else
  7729. ld_shlibs=no
  7730. fi
  7731. ;;
  7732. esac
  7733. ;;
  7734. sunos4*)
  7735. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7736. wlarc=
  7737. hardcode_direct=yes
  7738. hardcode_shlibpath_var=no
  7739. ;;
  7740. *)
  7741. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7742. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7743. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7744. else
  7745. ld_shlibs=no
  7746. fi
  7747. ;;
  7748. esac
  7749. if test "$ld_shlibs" = no; then
  7750. runpath_var=
  7751. hardcode_libdir_flag_spec=
  7752. export_dynamic_flag_spec=
  7753. whole_archive_flag_spec=
  7754. fi
  7755. else
  7756. # PORTME fill in a description of your system's linker (not GNU ld)
  7757. case $host_os in
  7758. aix3*)
  7759. allow_undefined_flag=unsupported
  7760. always_export_symbols=yes
  7761. 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'
  7762. # Note: this linker hardcodes the directories in LIBPATH if there
  7763. # are no directories specified by -L.
  7764. hardcode_minus_L=yes
  7765. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7766. # Neither direct hardcoding nor static linking is supported with a
  7767. # broken collect2.
  7768. hardcode_direct=unsupported
  7769. fi
  7770. ;;
  7771. aix[4-9]*)
  7772. if test "$host_cpu" = ia64; then
  7773. # On IA64, the linker does run time linking by default, so we don't
  7774. # have to do anything special.
  7775. aix_use_runtimelinking=no
  7776. exp_sym_flag='-Bexport'
  7777. no_entry_flag=""
  7778. else
  7779. # If we're using GNU nm, then we don't want the "-C" option.
  7780. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7781. # Also, AIX nm treats weak defined symbols like other global
  7782. # defined symbols, whereas GNU nm marks them as "W".
  7783. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7784. 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'
  7785. else
  7786. 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'
  7787. fi
  7788. aix_use_runtimelinking=no
  7789. # Test if we are trying to use run time linking or normal
  7790. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7791. # need to do runtime linking.
  7792. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7793. for ld_flag in $LDFLAGS; do
  7794. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7795. aix_use_runtimelinking=yes
  7796. break
  7797. fi
  7798. done
  7799. ;;
  7800. esac
  7801. exp_sym_flag='-bexport'
  7802. no_entry_flag='-bnoentry'
  7803. fi
  7804. # When large executables or shared objects are built, AIX ld can
  7805. # have problems creating the table of contents. If linking a library
  7806. # or program results in "error TOC overflow" add -mminimal-toc to
  7807. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7808. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7809. archive_cmds=''
  7810. hardcode_direct=yes
  7811. hardcode_direct_absolute=yes
  7812. hardcode_libdir_separator=':'
  7813. link_all_deplibs=yes
  7814. file_list_spec='${wl}-f,'
  7815. if test "$GCC" = yes; then
  7816. case $host_os in aix4.[012]|aix4.[012].*)
  7817. # We only want to do this on AIX 4.2 and lower, the check
  7818. # below for broken collect2 doesn't work under 4.3+
  7819. collect2name=`${CC} -print-prog-name=collect2`
  7820. if test -f "$collect2name" &&
  7821. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7822. then
  7823. # We have reworked collect2
  7824. :
  7825. else
  7826. # We have old collect2
  7827. hardcode_direct=unsupported
  7828. # It fails to find uninstalled libraries when the uninstalled
  7829. # path is not listed in the libpath. Setting hardcode_minus_L
  7830. # to unsupported forces relinking
  7831. hardcode_minus_L=yes
  7832. hardcode_libdir_flag_spec='-L$libdir'
  7833. hardcode_libdir_separator=
  7834. fi
  7835. ;;
  7836. esac
  7837. shared_flag='-shared'
  7838. if test "$aix_use_runtimelinking" = yes; then
  7839. shared_flag="$shared_flag "'${wl}-G'
  7840. fi
  7841. else
  7842. # not using gcc
  7843. if test "$host_cpu" = ia64; then
  7844. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7845. # chokes on -Wl,-G. The following line is correct:
  7846. shared_flag='-G'
  7847. else
  7848. if test "$aix_use_runtimelinking" = yes; then
  7849. shared_flag='${wl}-G'
  7850. else
  7851. shared_flag='${wl}-bM:SRE'
  7852. fi
  7853. fi
  7854. fi
  7855. export_dynamic_flag_spec='${wl}-bexpall'
  7856. # It seems that -bexpall does not export symbols beginning with
  7857. # underscore (_), so it is better to generate a list of symbols to export.
  7858. always_export_symbols=yes
  7859. if test "$aix_use_runtimelinking" = yes; then
  7860. # Warning - without using the other runtime loading flags (-brtl),
  7861. # -berok will link without error, but may produce a broken library.
  7862. allow_undefined_flag='-berok'
  7863. # Determine the default libpath from the value encoded in an
  7864. # empty executable.
  7865. if test "${lt_cv_aix_libpath+set}" = set; then
  7866. aix_libpath=$lt_cv_aix_libpath
  7867. else
  7868. if ${lt_cv_aix_libpath_+:} false; then :
  7869. $as_echo_n "(cached) " >&6
  7870. else
  7871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7872. /* end confdefs.h. */
  7873. int
  7874. main ()
  7875. {
  7876. ;
  7877. return 0;
  7878. }
  7879. _ACEOF
  7880. if ac_fn_c_try_link "$LINENO"; then :
  7881. lt_aix_libpath_sed='
  7882. /Import File Strings/,/^$/ {
  7883. /^0/ {
  7884. s/^0 *\([^ ]*\) *$/\1/
  7885. p
  7886. }
  7887. }'
  7888. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7889. # Check for a 64-bit object if we didn't find anything.
  7890. if test -z "$lt_cv_aix_libpath_"; then
  7891. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7892. fi
  7893. fi
  7894. rm -f core conftest.err conftest.$ac_objext \
  7895. conftest$ac_exeext conftest.$ac_ext
  7896. if test -z "$lt_cv_aix_libpath_"; then
  7897. lt_cv_aix_libpath_="/usr/lib:/lib"
  7898. fi
  7899. fi
  7900. aix_libpath=$lt_cv_aix_libpath_
  7901. fi
  7902. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7903. 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"
  7904. else
  7905. if test "$host_cpu" = ia64; then
  7906. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7907. allow_undefined_flag="-z nodefs"
  7908. 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"
  7909. else
  7910. # Determine the default libpath from the value encoded in an
  7911. # empty executable.
  7912. if test "${lt_cv_aix_libpath+set}" = set; then
  7913. aix_libpath=$lt_cv_aix_libpath
  7914. else
  7915. if ${lt_cv_aix_libpath_+:} false; then :
  7916. $as_echo_n "(cached) " >&6
  7917. else
  7918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7919. /* end confdefs.h. */
  7920. int
  7921. main ()
  7922. {
  7923. ;
  7924. return 0;
  7925. }
  7926. _ACEOF
  7927. if ac_fn_c_try_link "$LINENO"; then :
  7928. lt_aix_libpath_sed='
  7929. /Import File Strings/,/^$/ {
  7930. /^0/ {
  7931. s/^0 *\([^ ]*\) *$/\1/
  7932. p
  7933. }
  7934. }'
  7935. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7936. # Check for a 64-bit object if we didn't find anything.
  7937. if test -z "$lt_cv_aix_libpath_"; then
  7938. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7939. fi
  7940. fi
  7941. rm -f core conftest.err conftest.$ac_objext \
  7942. conftest$ac_exeext conftest.$ac_ext
  7943. if test -z "$lt_cv_aix_libpath_"; then
  7944. lt_cv_aix_libpath_="/usr/lib:/lib"
  7945. fi
  7946. fi
  7947. aix_libpath=$lt_cv_aix_libpath_
  7948. fi
  7949. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7950. # Warning - without using the other run time loading flags,
  7951. # -berok will link without error, but may produce a broken library.
  7952. no_undefined_flag=' ${wl}-bernotok'
  7953. allow_undefined_flag=' ${wl}-berok'
  7954. if test "$with_gnu_ld" = yes; then
  7955. # We only use this code for GNU lds that support --whole-archive.
  7956. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7957. else
  7958. # Exported symbols can be pulled into shared objects from archives
  7959. whole_archive_flag_spec='$convenience'
  7960. fi
  7961. archive_cmds_need_lc=yes
  7962. # This is similar to how AIX traditionally builds its shared libraries.
  7963. 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'
  7964. fi
  7965. fi
  7966. ;;
  7967. amigaos*)
  7968. case $host_cpu in
  7969. powerpc)
  7970. # see comment about AmigaOS4 .so support
  7971. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7972. archive_expsym_cmds=''
  7973. ;;
  7974. m68k)
  7975. 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)'
  7976. hardcode_libdir_flag_spec='-L$libdir'
  7977. hardcode_minus_L=yes
  7978. ;;
  7979. esac
  7980. ;;
  7981. bsdi[45]*)
  7982. export_dynamic_flag_spec=-rdynamic
  7983. ;;
  7984. cygwin* | mingw* | pw32* | cegcc*)
  7985. # When not using gcc, we currently assume that we are using
  7986. # Microsoft Visual C++.
  7987. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7988. # no search path for DLLs.
  7989. case $cc_basename in
  7990. cl*)
  7991. # Native MSVC
  7992. hardcode_libdir_flag_spec=' '
  7993. allow_undefined_flag=unsupported
  7994. always_export_symbols=yes
  7995. file_list_spec='@'
  7996. # Tell ltmain to make .lib files, not .a files.
  7997. libext=lib
  7998. # Tell ltmain to make .dll files, not .so files.
  7999. shrext_cmds=".dll"
  8000. # FIXME: Setting linknames here is a bad hack.
  8001. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8002. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8003. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8004. else
  8005. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8006. fi~
  8007. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8008. linknames='
  8009. # The linker will not automatically build a static lib if we build a DLL.
  8010. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8011. enable_shared_with_static_runtimes=yes
  8012. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8013. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8014. # Don't use ranlib
  8015. old_postinstall_cmds='chmod 644 $oldlib'
  8016. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8017. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8018. case $lt_outputfile in
  8019. *.exe|*.EXE) ;;
  8020. *)
  8021. lt_outputfile="$lt_outputfile.exe"
  8022. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8023. ;;
  8024. esac~
  8025. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8026. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8027. $RM "$lt_outputfile.manifest";
  8028. fi'
  8029. ;;
  8030. *)
  8031. # Assume MSVC wrapper
  8032. hardcode_libdir_flag_spec=' '
  8033. allow_undefined_flag=unsupported
  8034. # Tell ltmain to make .lib files, not .a files.
  8035. libext=lib
  8036. # Tell ltmain to make .dll files, not .so files.
  8037. shrext_cmds=".dll"
  8038. # FIXME: Setting linknames here is a bad hack.
  8039. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8040. # The linker will automatically build a .lib file if we build a DLL.
  8041. old_archive_from_new_cmds='true'
  8042. # FIXME: Should let the user specify the lib program.
  8043. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8044. enable_shared_with_static_runtimes=yes
  8045. ;;
  8046. esac
  8047. ;;
  8048. darwin* | rhapsody*)
  8049. archive_cmds_need_lc=no
  8050. hardcode_direct=no
  8051. hardcode_automatic=yes
  8052. hardcode_shlibpath_var=unsupported
  8053. if test "$lt_cv_ld_force_load" = "yes"; then
  8054. 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\"`'
  8055. else
  8056. whole_archive_flag_spec=''
  8057. fi
  8058. link_all_deplibs=yes
  8059. allow_undefined_flag="$_lt_dar_allow_undefined"
  8060. case $cc_basename in
  8061. ifort*) _lt_dar_can_shared=yes ;;
  8062. *) _lt_dar_can_shared=$GCC ;;
  8063. esac
  8064. if test "$_lt_dar_can_shared" = "yes"; then
  8065. output_verbose_link_cmd=func_echo_all
  8066. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8067. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8068. 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}"
  8069. 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}"
  8070. else
  8071. ld_shlibs=no
  8072. fi
  8073. ;;
  8074. dgux*)
  8075. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8076. hardcode_libdir_flag_spec='-L$libdir'
  8077. hardcode_shlibpath_var=no
  8078. ;;
  8079. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8080. # support. Future versions do this automatically, but an explicit c++rt0.o
  8081. # does not break anything, and helps significantly (at the cost of a little
  8082. # extra space).
  8083. freebsd2.2*)
  8084. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8085. hardcode_libdir_flag_spec='-R$libdir'
  8086. hardcode_direct=yes
  8087. hardcode_shlibpath_var=no
  8088. ;;
  8089. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8090. freebsd2.*)
  8091. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8092. hardcode_direct=yes
  8093. hardcode_minus_L=yes
  8094. hardcode_shlibpath_var=no
  8095. ;;
  8096. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8097. freebsd* | dragonfly*)
  8098. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8099. hardcode_libdir_flag_spec='-R$libdir'
  8100. hardcode_direct=yes
  8101. hardcode_shlibpath_var=no
  8102. ;;
  8103. hpux9*)
  8104. if test "$GCC" = yes; then
  8105. 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'
  8106. else
  8107. 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'
  8108. fi
  8109. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8110. hardcode_libdir_separator=:
  8111. hardcode_direct=yes
  8112. # hardcode_minus_L: Not really in the search PATH,
  8113. # but as the default location of the library.
  8114. hardcode_minus_L=yes
  8115. export_dynamic_flag_spec='${wl}-E'
  8116. ;;
  8117. hpux10*)
  8118. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8119. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8120. else
  8121. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8122. fi
  8123. if test "$with_gnu_ld" = no; then
  8124. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8125. hardcode_libdir_separator=:
  8126. hardcode_direct=yes
  8127. hardcode_direct_absolute=yes
  8128. export_dynamic_flag_spec='${wl}-E'
  8129. # hardcode_minus_L: Not really in the search PATH,
  8130. # but as the default location of the library.
  8131. hardcode_minus_L=yes
  8132. fi
  8133. ;;
  8134. hpux11*)
  8135. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8136. case $host_cpu in
  8137. hppa*64*)
  8138. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8139. ;;
  8140. ia64*)
  8141. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8142. ;;
  8143. *)
  8144. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8145. ;;
  8146. esac
  8147. else
  8148. case $host_cpu in
  8149. hppa*64*)
  8150. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8151. ;;
  8152. ia64*)
  8153. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8154. ;;
  8155. *)
  8156. # Older versions of the 11.00 compiler do not understand -b yet
  8157. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8159. $as_echo_n "checking if $CC understands -b... " >&6; }
  8160. if ${lt_cv_prog_compiler__b+:} false; then :
  8161. $as_echo_n "(cached) " >&6
  8162. else
  8163. lt_cv_prog_compiler__b=no
  8164. save_LDFLAGS="$LDFLAGS"
  8165. LDFLAGS="$LDFLAGS -b"
  8166. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8167. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8168. # The linker can only warn and ignore the option if not recognized
  8169. # So say no if there are warnings
  8170. if test -s conftest.err; then
  8171. # Append any errors to the config.log.
  8172. cat conftest.err 1>&5
  8173. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8174. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8175. if diff conftest.exp conftest.er2 >/dev/null; then
  8176. lt_cv_prog_compiler__b=yes
  8177. fi
  8178. else
  8179. lt_cv_prog_compiler__b=yes
  8180. fi
  8181. fi
  8182. $RM -r conftest*
  8183. LDFLAGS="$save_LDFLAGS"
  8184. fi
  8185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8186. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8187. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8188. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8189. else
  8190. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8191. fi
  8192. ;;
  8193. esac
  8194. fi
  8195. if test "$with_gnu_ld" = no; then
  8196. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8197. hardcode_libdir_separator=:
  8198. case $host_cpu in
  8199. hppa*64*|ia64*)
  8200. hardcode_direct=no
  8201. hardcode_shlibpath_var=no
  8202. ;;
  8203. *)
  8204. hardcode_direct=yes
  8205. hardcode_direct_absolute=yes
  8206. export_dynamic_flag_spec='${wl}-E'
  8207. # hardcode_minus_L: Not really in the search PATH,
  8208. # but as the default location of the library.
  8209. hardcode_minus_L=yes
  8210. ;;
  8211. esac
  8212. fi
  8213. ;;
  8214. irix5* | irix6* | nonstopux*)
  8215. if test "$GCC" = yes; then
  8216. 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'
  8217. # Try to use the -exported_symbol ld option, if it does not
  8218. # work, assume that -exports_file does not work either and
  8219. # implicitly export all symbols.
  8220. # This should be the same for all languages, so no per-tag cache variable.
  8221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8222. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8223. if ${lt_cv_irix_exported_symbol+:} false; then :
  8224. $as_echo_n "(cached) " >&6
  8225. else
  8226. save_LDFLAGS="$LDFLAGS"
  8227. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8229. /* end confdefs.h. */
  8230. int foo (void) { return 0; }
  8231. _ACEOF
  8232. if ac_fn_c_try_link "$LINENO"; then :
  8233. lt_cv_irix_exported_symbol=yes
  8234. else
  8235. lt_cv_irix_exported_symbol=no
  8236. fi
  8237. rm -f core conftest.err conftest.$ac_objext \
  8238. conftest$ac_exeext conftest.$ac_ext
  8239. LDFLAGS="$save_LDFLAGS"
  8240. fi
  8241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8242. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8243. if test "$lt_cv_irix_exported_symbol" = yes; then
  8244. 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'
  8245. fi
  8246. else
  8247. 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'
  8248. 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'
  8249. fi
  8250. archive_cmds_need_lc='no'
  8251. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8252. hardcode_libdir_separator=:
  8253. inherit_rpath=yes
  8254. link_all_deplibs=yes
  8255. ;;
  8256. netbsd*)
  8257. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8258. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8259. else
  8260. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8261. fi
  8262. hardcode_libdir_flag_spec='-R$libdir'
  8263. hardcode_direct=yes
  8264. hardcode_shlibpath_var=no
  8265. ;;
  8266. newsos6)
  8267. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8268. hardcode_direct=yes
  8269. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8270. hardcode_libdir_separator=:
  8271. hardcode_shlibpath_var=no
  8272. ;;
  8273. *nto* | *qnx*)
  8274. ;;
  8275. openbsd*)
  8276. if test -f /usr/libexec/ld.so; then
  8277. hardcode_direct=yes
  8278. hardcode_shlibpath_var=no
  8279. hardcode_direct_absolute=yes
  8280. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8281. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8282. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8283. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8284. export_dynamic_flag_spec='${wl}-E'
  8285. else
  8286. case $host_os in
  8287. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8288. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8289. hardcode_libdir_flag_spec='-R$libdir'
  8290. ;;
  8291. *)
  8292. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8293. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8294. ;;
  8295. esac
  8296. fi
  8297. else
  8298. ld_shlibs=no
  8299. fi
  8300. ;;
  8301. os2*)
  8302. hardcode_libdir_flag_spec='-L$libdir'
  8303. hardcode_minus_L=yes
  8304. allow_undefined_flag=unsupported
  8305. 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'
  8306. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8307. ;;
  8308. osf3*)
  8309. if test "$GCC" = yes; then
  8310. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8311. 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'
  8312. else
  8313. allow_undefined_flag=' -expect_unresolved \*'
  8314. 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'
  8315. fi
  8316. archive_cmds_need_lc='no'
  8317. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8318. hardcode_libdir_separator=:
  8319. ;;
  8320. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8321. if test "$GCC" = yes; then
  8322. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8323. 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'
  8324. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8325. else
  8326. allow_undefined_flag=' -expect_unresolved \*'
  8327. 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'
  8328. 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~
  8329. $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'
  8330. # Both c and cxx compiler support -rpath directly
  8331. hardcode_libdir_flag_spec='-rpath $libdir'
  8332. fi
  8333. archive_cmds_need_lc='no'
  8334. hardcode_libdir_separator=:
  8335. ;;
  8336. solaris*)
  8337. no_undefined_flag=' -z defs'
  8338. if test "$GCC" = yes; then
  8339. wlarc='${wl}'
  8340. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8341. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8342. $CC -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'
  8343. else
  8344. case `$CC -V 2>&1` in
  8345. *"Compilers 5.0"*)
  8346. wlarc=''
  8347. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8348. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8349. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8350. ;;
  8351. *)
  8352. wlarc='${wl}'
  8353. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8354. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8355. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8356. ;;
  8357. esac
  8358. fi
  8359. hardcode_libdir_flag_spec='-R$libdir'
  8360. hardcode_shlibpath_var=no
  8361. case $host_os in
  8362. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8363. *)
  8364. # The compiler driver will combine and reorder linker options,
  8365. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8366. # but is careful enough not to reorder.
  8367. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8368. if test "$GCC" = yes; then
  8369. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8370. else
  8371. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8372. fi
  8373. ;;
  8374. esac
  8375. link_all_deplibs=yes
  8376. ;;
  8377. sunos4*)
  8378. if test "x$host_vendor" = xsequent; then
  8379. # Use $CC to link under sequent, because it throws in some extra .o
  8380. # files that make .init and .fini sections work.
  8381. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8382. else
  8383. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8384. fi
  8385. hardcode_libdir_flag_spec='-L$libdir'
  8386. hardcode_direct=yes
  8387. hardcode_minus_L=yes
  8388. hardcode_shlibpath_var=no
  8389. ;;
  8390. sysv4)
  8391. case $host_vendor in
  8392. sni)
  8393. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8394. hardcode_direct=yes # is this really true???
  8395. ;;
  8396. siemens)
  8397. ## LD is ld it makes a PLAMLIB
  8398. ## CC just makes a GrossModule.
  8399. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8400. reload_cmds='$CC -r -o $output$reload_objs'
  8401. hardcode_direct=no
  8402. ;;
  8403. motorola)
  8404. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8405. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8406. ;;
  8407. esac
  8408. runpath_var='LD_RUN_PATH'
  8409. hardcode_shlibpath_var=no
  8410. ;;
  8411. sysv4.3*)
  8412. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8413. hardcode_shlibpath_var=no
  8414. export_dynamic_flag_spec='-Bexport'
  8415. ;;
  8416. sysv4*MP*)
  8417. if test -d /usr/nec; then
  8418. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8419. hardcode_shlibpath_var=no
  8420. runpath_var=LD_RUN_PATH
  8421. hardcode_runpath_var=yes
  8422. ld_shlibs=yes
  8423. fi
  8424. ;;
  8425. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8426. no_undefined_flag='${wl}-z,text'
  8427. archive_cmds_need_lc=no
  8428. hardcode_shlibpath_var=no
  8429. runpath_var='LD_RUN_PATH'
  8430. if test "$GCC" = yes; then
  8431. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8432. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8433. else
  8434. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8435. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8436. fi
  8437. ;;
  8438. sysv5* | sco3.2v5* | sco5v6*)
  8439. # Note: We can NOT use -z defs as we might desire, because we do not
  8440. # link with -lc, and that would cause any symbols used from libc to
  8441. # always be unresolved, which means just about no library would
  8442. # ever link correctly. If we're not using GNU ld we use -z text
  8443. # though, which does catch some bad symbols but isn't as heavy-handed
  8444. # as -z defs.
  8445. no_undefined_flag='${wl}-z,text'
  8446. allow_undefined_flag='${wl}-z,nodefs'
  8447. archive_cmds_need_lc=no
  8448. hardcode_shlibpath_var=no
  8449. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8450. hardcode_libdir_separator=':'
  8451. link_all_deplibs=yes
  8452. export_dynamic_flag_spec='${wl}-Bexport'
  8453. runpath_var='LD_RUN_PATH'
  8454. if test "$GCC" = yes; then
  8455. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8456. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8457. else
  8458. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8459. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8460. fi
  8461. ;;
  8462. uts4*)
  8463. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8464. hardcode_libdir_flag_spec='-L$libdir'
  8465. hardcode_shlibpath_var=no
  8466. ;;
  8467. *)
  8468. ld_shlibs=no
  8469. ;;
  8470. esac
  8471. if test x$host_vendor = xsni; then
  8472. case $host in
  8473. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8474. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8475. ;;
  8476. esac
  8477. fi
  8478. fi
  8479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8480. $as_echo "$ld_shlibs" >&6; }
  8481. test "$ld_shlibs" = no && can_build_shared=no
  8482. with_gnu_ld=$with_gnu_ld
  8483. #
  8484. # Do we need to explicitly link libc?
  8485. #
  8486. case "x$archive_cmds_need_lc" in
  8487. x|xyes)
  8488. # Assume -lc should be added
  8489. archive_cmds_need_lc=yes
  8490. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8491. case $archive_cmds in
  8492. *'~'*)
  8493. # FIXME: we may have to deal with multi-command sequences.
  8494. ;;
  8495. '$CC '*)
  8496. # Test whether the compiler implicitly links with -lc since on some
  8497. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8498. # to ld, don't add -lc before -lgcc.
  8499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8500. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8501. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8502. $as_echo_n "(cached) " >&6
  8503. else
  8504. $RM conftest*
  8505. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8506. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8507. (eval $ac_compile) 2>&5
  8508. ac_status=$?
  8509. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8510. test $ac_status = 0; } 2>conftest.err; then
  8511. soname=conftest
  8512. lib=conftest
  8513. libobjs=conftest.$ac_objext
  8514. deplibs=
  8515. wl=$lt_prog_compiler_wl
  8516. pic_flag=$lt_prog_compiler_pic
  8517. compiler_flags=-v
  8518. linker_flags=-v
  8519. verstring=
  8520. output_objdir=.
  8521. libname=conftest
  8522. lt_save_allow_undefined_flag=$allow_undefined_flag
  8523. allow_undefined_flag=
  8524. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8525. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8526. ac_status=$?
  8527. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8528. test $ac_status = 0; }
  8529. then
  8530. lt_cv_archive_cmds_need_lc=no
  8531. else
  8532. lt_cv_archive_cmds_need_lc=yes
  8533. fi
  8534. allow_undefined_flag=$lt_save_allow_undefined_flag
  8535. else
  8536. cat conftest.err 1>&5
  8537. fi
  8538. $RM conftest*
  8539. fi
  8540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8541. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8542. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8543. ;;
  8544. esac
  8545. fi
  8546. ;;
  8547. esac
  8548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8549. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8550. if test "$GCC" = yes; then
  8551. case $host_os in
  8552. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8553. *) lt_awk_arg="/^libraries:/" ;;
  8554. esac
  8555. case $host_os in
  8556. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8557. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8558. esac
  8559. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8560. case $lt_search_path_spec in
  8561. *\;*)
  8562. # if the path contains ";" then we assume it to be the separator
  8563. # otherwise default to the standard path separator (i.e. ":") - it is
  8564. # assumed that no part of a normal pathname contains ";" but that should
  8565. # okay in the real world where ";" in dirpaths is itself problematic.
  8566. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8567. ;;
  8568. *)
  8569. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8570. ;;
  8571. esac
  8572. # Ok, now we have the path, separated by spaces, we can step through it
  8573. # and add multilib dir if necessary...
  8574. lt_tmp_lt_search_path_spec=
  8575. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8576. # ...but if some path already ends with the multilib dir we assume
  8577. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8578. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8579. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8580. lt_multi_os_dir=
  8581. ;;
  8582. esac
  8583. for lt_sys_path in $lt_search_path_spec; do
  8584. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8585. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8586. elif test -n "$lt_multi_os_dir"; then
  8587. test -d "$lt_sys_path" && \
  8588. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8589. fi
  8590. done
  8591. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8592. BEGIN {RS=" "; FS="/|\n";} {
  8593. lt_foo="";
  8594. lt_count=0;
  8595. for (lt_i = NF; lt_i > 0; lt_i--) {
  8596. if ($lt_i != "" && $lt_i != ".") {
  8597. if ($lt_i == "..") {
  8598. lt_count++;
  8599. } else {
  8600. if (lt_count == 0) {
  8601. lt_foo="/" $lt_i lt_foo;
  8602. } else {
  8603. lt_count--;
  8604. }
  8605. }
  8606. }
  8607. }
  8608. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8609. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8610. }'`
  8611. # AWK program above erroneously prepends '/' to C:/dos/paths
  8612. # for these hosts.
  8613. case $host_os in
  8614. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8615. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8616. esac
  8617. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8618. else
  8619. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8620. fi
  8621. library_names_spec=
  8622. libname_spec='lib$name'
  8623. soname_spec=
  8624. shrext_cmds=".so"
  8625. postinstall_cmds=
  8626. postuninstall_cmds=
  8627. finish_cmds=
  8628. finish_eval=
  8629. shlibpath_var=
  8630. shlibpath_overrides_runpath=unknown
  8631. version_type=none
  8632. dynamic_linker="$host_os ld.so"
  8633. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8634. need_lib_prefix=unknown
  8635. hardcode_into_libs=no
  8636. # when you set need_version to no, make sure it does not cause -set_version
  8637. # flags to be left without arguments
  8638. need_version=unknown
  8639. case $host_os in
  8640. aix3*)
  8641. version_type=linux # correct to gnu/linux during the next big refactor
  8642. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8643. shlibpath_var=LIBPATH
  8644. # AIX 3 has no versioning support, so we append a major version to the name.
  8645. soname_spec='${libname}${release}${shared_ext}$major'
  8646. ;;
  8647. aix[4-9]*)
  8648. version_type=linux # correct to gnu/linux during the next big refactor
  8649. need_lib_prefix=no
  8650. need_version=no
  8651. hardcode_into_libs=yes
  8652. if test "$host_cpu" = ia64; then
  8653. # AIX 5 supports IA64
  8654. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8655. shlibpath_var=LD_LIBRARY_PATH
  8656. else
  8657. # With GCC up to 2.95.x, collect2 would create an import file
  8658. # for dependence libraries. The import file would start with
  8659. # the line `#! .'. This would cause the generated library to
  8660. # depend on `.', always an invalid library. This was fixed in
  8661. # development snapshots of GCC prior to 3.0.
  8662. case $host_os in
  8663. aix4 | aix4.[01] | aix4.[01].*)
  8664. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8665. echo ' yes '
  8666. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8667. :
  8668. else
  8669. can_build_shared=no
  8670. fi
  8671. ;;
  8672. esac
  8673. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8674. # soname into executable. Probably we can add versioning support to
  8675. # collect2, so additional links can be useful in future.
  8676. if test "$aix_use_runtimelinking" = yes; then
  8677. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8678. # instead of lib<name>.a to let people know that these are not
  8679. # typical AIX shared libraries.
  8680. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8681. else
  8682. # We preserve .a as extension for shared libraries through AIX4.2
  8683. # and later when we are not doing run time linking.
  8684. library_names_spec='${libname}${release}.a $libname.a'
  8685. soname_spec='${libname}${release}${shared_ext}$major'
  8686. fi
  8687. shlibpath_var=LIBPATH
  8688. fi
  8689. ;;
  8690. amigaos*)
  8691. case $host_cpu in
  8692. powerpc)
  8693. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8694. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8695. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8696. ;;
  8697. m68k)
  8698. library_names_spec='$libname.ixlibrary $libname.a'
  8699. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8700. 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'
  8701. ;;
  8702. esac
  8703. ;;
  8704. beos*)
  8705. library_names_spec='${libname}${shared_ext}'
  8706. dynamic_linker="$host_os ld.so"
  8707. shlibpath_var=LIBRARY_PATH
  8708. ;;
  8709. bsdi[45]*)
  8710. version_type=linux # correct to gnu/linux during the next big refactor
  8711. need_version=no
  8712. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8713. soname_spec='${libname}${release}${shared_ext}$major'
  8714. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8715. shlibpath_var=LD_LIBRARY_PATH
  8716. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8717. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8718. # the default ld.so.conf also contains /usr/contrib/lib and
  8719. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8720. # libtool to hard-code these into programs
  8721. ;;
  8722. cygwin* | mingw* | pw32* | cegcc*)
  8723. version_type=windows
  8724. shrext_cmds=".dll"
  8725. need_version=no
  8726. need_lib_prefix=no
  8727. case $GCC,$cc_basename in
  8728. yes,*)
  8729. # gcc
  8730. library_names_spec='$libname.dll.a'
  8731. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8732. postinstall_cmds='base_file=`basename \${file}`~
  8733. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8734. dldir=$destdir/`dirname \$dlpath`~
  8735. test -d \$dldir || mkdir -p \$dldir~
  8736. $install_prog $dir/$dlname \$dldir/$dlname~
  8737. chmod a+x \$dldir/$dlname~
  8738. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8739. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8740. fi'
  8741. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8742. dlpath=$dir/\$dldll~
  8743. $RM \$dlpath'
  8744. shlibpath_overrides_runpath=yes
  8745. case $host_os in
  8746. cygwin*)
  8747. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8748. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8749. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8750. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8751. ;;
  8752. mingw* | cegcc*)
  8753. # MinGW DLLs use traditional 'lib' prefix
  8754. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8755. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8756. ;;
  8757. pw32*)
  8758. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8759. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8760. ;;
  8761. esac
  8762. dynamic_linker='Win32 ld.exe'
  8763. ;;
  8764. *,cl*)
  8765. # Native MSVC
  8766. libname_spec='$name'
  8767. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8768. library_names_spec='${libname}.dll.lib'
  8769. case $build_os in
  8770. mingw*)
  8771. sys_lib_search_path_spec=
  8772. lt_save_ifs=$IFS
  8773. IFS=';'
  8774. for lt_path in $LIB
  8775. do
  8776. IFS=$lt_save_ifs
  8777. # Let DOS variable expansion print the short 8.3 style file name.
  8778. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8779. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8780. done
  8781. IFS=$lt_save_ifs
  8782. # Convert to MSYS style.
  8783. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8784. ;;
  8785. cygwin*)
  8786. # Convert to unix form, then to dos form, then back to unix form
  8787. # but this time dos style (no spaces!) so that the unix form looks
  8788. # like /cygdrive/c/PROGRA~1:/cygdr...
  8789. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8790. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8791. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8792. ;;
  8793. *)
  8794. sys_lib_search_path_spec="$LIB"
  8795. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8796. # It is most probably a Windows format PATH.
  8797. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8798. else
  8799. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8800. fi
  8801. # FIXME: find the short name or the path components, as spaces are
  8802. # common. (e.g. "Program Files" -> "PROGRA~1")
  8803. ;;
  8804. esac
  8805. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8806. postinstall_cmds='base_file=`basename \${file}`~
  8807. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8808. dldir=$destdir/`dirname \$dlpath`~
  8809. test -d \$dldir || mkdir -p \$dldir~
  8810. $install_prog $dir/$dlname \$dldir/$dlname'
  8811. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8812. dlpath=$dir/\$dldll~
  8813. $RM \$dlpath'
  8814. shlibpath_overrides_runpath=yes
  8815. dynamic_linker='Win32 link.exe'
  8816. ;;
  8817. *)
  8818. # Assume MSVC wrapper
  8819. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8820. dynamic_linker='Win32 ld.exe'
  8821. ;;
  8822. esac
  8823. # FIXME: first we should search . and the directory the executable is in
  8824. shlibpath_var=PATH
  8825. ;;
  8826. darwin* | rhapsody*)
  8827. dynamic_linker="$host_os dyld"
  8828. version_type=darwin
  8829. need_lib_prefix=no
  8830. need_version=no
  8831. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8832. soname_spec='${libname}${release}${major}$shared_ext'
  8833. shlibpath_overrides_runpath=yes
  8834. shlibpath_var=DYLD_LIBRARY_PATH
  8835. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8836. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8837. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8838. ;;
  8839. dgux*)
  8840. version_type=linux # correct to gnu/linux during the next big refactor
  8841. need_lib_prefix=no
  8842. need_version=no
  8843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8844. soname_spec='${libname}${release}${shared_ext}$major'
  8845. shlibpath_var=LD_LIBRARY_PATH
  8846. ;;
  8847. freebsd* | dragonfly*)
  8848. # DragonFly does not have aout. When/if they implement a new
  8849. # versioning mechanism, adjust this.
  8850. if test -x /usr/bin/objformat; then
  8851. objformat=`/usr/bin/objformat`
  8852. else
  8853. case $host_os in
  8854. freebsd[23].*) objformat=aout ;;
  8855. *) objformat=elf ;;
  8856. esac
  8857. fi
  8858. version_type=freebsd-$objformat
  8859. case $version_type in
  8860. freebsd-elf*)
  8861. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8862. need_version=no
  8863. need_lib_prefix=no
  8864. ;;
  8865. freebsd-*)
  8866. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8867. need_version=yes
  8868. ;;
  8869. esac
  8870. shlibpath_var=LD_LIBRARY_PATH
  8871. case $host_os in
  8872. freebsd2.*)
  8873. shlibpath_overrides_runpath=yes
  8874. ;;
  8875. freebsd3.[01]* | freebsdelf3.[01]*)
  8876. shlibpath_overrides_runpath=yes
  8877. hardcode_into_libs=yes
  8878. ;;
  8879. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8880. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8881. shlibpath_overrides_runpath=no
  8882. hardcode_into_libs=yes
  8883. ;;
  8884. *) # from 4.6 on, and DragonFly
  8885. shlibpath_overrides_runpath=yes
  8886. hardcode_into_libs=yes
  8887. ;;
  8888. esac
  8889. ;;
  8890. gnu*)
  8891. version_type=linux # correct to gnu/linux during the next big refactor
  8892. need_lib_prefix=no
  8893. need_version=no
  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. shlibpath_var=LD_LIBRARY_PATH
  8897. shlibpath_overrides_runpath=no
  8898. hardcode_into_libs=yes
  8899. ;;
  8900. haiku*)
  8901. version_type=linux # correct to gnu/linux during the next big refactor
  8902. need_lib_prefix=no
  8903. need_version=no
  8904. dynamic_linker="$host_os runtime_loader"
  8905. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8906. soname_spec='${libname}${release}${shared_ext}$major'
  8907. shlibpath_var=LIBRARY_PATH
  8908. shlibpath_overrides_runpath=yes
  8909. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8910. hardcode_into_libs=yes
  8911. ;;
  8912. hpux9* | hpux10* | hpux11*)
  8913. # Give a soname corresponding to the major version so that dld.sl refuses to
  8914. # link against other versions.
  8915. version_type=sunos
  8916. need_lib_prefix=no
  8917. need_version=no
  8918. case $host_cpu in
  8919. ia64*)
  8920. shrext_cmds='.so'
  8921. hardcode_into_libs=yes
  8922. dynamic_linker="$host_os dld.so"
  8923. shlibpath_var=LD_LIBRARY_PATH
  8924. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8925. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8926. soname_spec='${libname}${release}${shared_ext}$major'
  8927. if test "X$HPUX_IA64_MODE" = X32; then
  8928. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8929. else
  8930. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8931. fi
  8932. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8933. ;;
  8934. hppa*64*)
  8935. shrext_cmds='.sl'
  8936. hardcode_into_libs=yes
  8937. dynamic_linker="$host_os dld.sl"
  8938. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8939. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8940. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8941. soname_spec='${libname}${release}${shared_ext}$major'
  8942. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8943. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8944. ;;
  8945. *)
  8946. shrext_cmds='.sl'
  8947. dynamic_linker="$host_os dld.sl"
  8948. shlibpath_var=SHLIB_PATH
  8949. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8951. soname_spec='${libname}${release}${shared_ext}$major'
  8952. ;;
  8953. esac
  8954. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8955. postinstall_cmds='chmod 555 $lib'
  8956. # or fails outright, so override atomically:
  8957. install_override_mode=555
  8958. ;;
  8959. interix[3-9]*)
  8960. version_type=linux # correct to gnu/linux during the next big refactor
  8961. need_lib_prefix=no
  8962. need_version=no
  8963. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8964. soname_spec='${libname}${release}${shared_ext}$major'
  8965. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8966. shlibpath_var=LD_LIBRARY_PATH
  8967. shlibpath_overrides_runpath=no
  8968. hardcode_into_libs=yes
  8969. ;;
  8970. irix5* | irix6* | nonstopux*)
  8971. case $host_os in
  8972. nonstopux*) version_type=nonstopux ;;
  8973. *)
  8974. if test "$lt_cv_prog_gnu_ld" = yes; then
  8975. version_type=linux # correct to gnu/linux during the next big refactor
  8976. else
  8977. version_type=irix
  8978. fi ;;
  8979. esac
  8980. need_lib_prefix=no
  8981. need_version=no
  8982. soname_spec='${libname}${release}${shared_ext}$major'
  8983. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8984. case $host_os in
  8985. irix5* | nonstopux*)
  8986. libsuff= shlibsuff=
  8987. ;;
  8988. *)
  8989. case $LD in # libtool.m4 will add one of these switches to LD
  8990. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8991. libsuff= shlibsuff= libmagic=32-bit;;
  8992. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8993. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8994. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8995. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8996. *) libsuff= shlibsuff= libmagic=never-match;;
  8997. esac
  8998. ;;
  8999. esac
  9000. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9001. shlibpath_overrides_runpath=no
  9002. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9003. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9004. hardcode_into_libs=yes
  9005. ;;
  9006. # No shared lib support for Linux oldld, aout, or coff.
  9007. linux*oldld* | linux*aout* | linux*coff*)
  9008. dynamic_linker=no
  9009. ;;
  9010. # This must be glibc/ELF.
  9011. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9012. version_type=linux # correct to gnu/linux during the next big refactor
  9013. need_lib_prefix=no
  9014. need_version=no
  9015. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9016. soname_spec='${libname}${release}${shared_ext}$major'
  9017. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9018. shlibpath_var=LD_LIBRARY_PATH
  9019. shlibpath_overrides_runpath=no
  9020. # Some binutils ld are patched to set DT_RUNPATH
  9021. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9022. $as_echo_n "(cached) " >&6
  9023. else
  9024. lt_cv_shlibpath_overrides_runpath=no
  9025. save_LDFLAGS=$LDFLAGS
  9026. save_libdir=$libdir
  9027. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9028. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9030. /* end confdefs.h. */
  9031. int
  9032. main ()
  9033. {
  9034. ;
  9035. return 0;
  9036. }
  9037. _ACEOF
  9038. if ac_fn_c_try_link "$LINENO"; then :
  9039. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9040. lt_cv_shlibpath_overrides_runpath=yes
  9041. fi
  9042. fi
  9043. rm -f core conftest.err conftest.$ac_objext \
  9044. conftest$ac_exeext conftest.$ac_ext
  9045. LDFLAGS=$save_LDFLAGS
  9046. libdir=$save_libdir
  9047. fi
  9048. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9049. # This implies no fast_install, which is unacceptable.
  9050. # Some rework will be needed to allow for fast_install
  9051. # before this can be enabled.
  9052. hardcode_into_libs=yes
  9053. # Append ld.so.conf contents to the search path
  9054. if test -f /etc/ld.so.conf; then
  9055. 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' ' '`
  9056. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9057. fi
  9058. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9059. # powerpc, because MkLinux only supported shared libraries with the
  9060. # GNU dynamic linker. Since this was broken with cross compilers,
  9061. # most powerpc-linux boxes support dynamic linking these days and
  9062. # people can always --disable-shared, the test was removed, and we
  9063. # assume the GNU/Linux dynamic linker is in use.
  9064. dynamic_linker='GNU/Linux ld.so'
  9065. ;;
  9066. netbsd*)
  9067. version_type=sunos
  9068. need_lib_prefix=no
  9069. need_version=no
  9070. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9072. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9073. dynamic_linker='NetBSD (a.out) ld.so'
  9074. else
  9075. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9076. soname_spec='${libname}${release}${shared_ext}$major'
  9077. dynamic_linker='NetBSD ld.elf_so'
  9078. fi
  9079. shlibpath_var=LD_LIBRARY_PATH
  9080. shlibpath_overrides_runpath=yes
  9081. hardcode_into_libs=yes
  9082. ;;
  9083. newsos6)
  9084. version_type=linux # correct to gnu/linux during the next big refactor
  9085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9086. shlibpath_var=LD_LIBRARY_PATH
  9087. shlibpath_overrides_runpath=yes
  9088. ;;
  9089. *nto* | *qnx*)
  9090. version_type=qnx
  9091. need_lib_prefix=no
  9092. need_version=no
  9093. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9094. soname_spec='${libname}${release}${shared_ext}$major'
  9095. shlibpath_var=LD_LIBRARY_PATH
  9096. shlibpath_overrides_runpath=no
  9097. hardcode_into_libs=yes
  9098. dynamic_linker='ldqnx.so'
  9099. ;;
  9100. openbsd*)
  9101. version_type=sunos
  9102. sys_lib_dlsearch_path_spec="/usr/lib"
  9103. need_lib_prefix=no
  9104. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9105. case $host_os in
  9106. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9107. *) need_version=no ;;
  9108. esac
  9109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9110. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9111. shlibpath_var=LD_LIBRARY_PATH
  9112. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9113. case $host_os in
  9114. openbsd2.[89] | openbsd2.[89].*)
  9115. shlibpath_overrides_runpath=no
  9116. ;;
  9117. *)
  9118. shlibpath_overrides_runpath=yes
  9119. ;;
  9120. esac
  9121. else
  9122. shlibpath_overrides_runpath=yes
  9123. fi
  9124. ;;
  9125. os2*)
  9126. libname_spec='$name'
  9127. shrext_cmds=".dll"
  9128. need_lib_prefix=no
  9129. library_names_spec='$libname${shared_ext} $libname.a'
  9130. dynamic_linker='OS/2 ld.exe'
  9131. shlibpath_var=LIBPATH
  9132. ;;
  9133. osf3* | osf4* | osf5*)
  9134. version_type=osf
  9135. need_lib_prefix=no
  9136. need_version=no
  9137. soname_spec='${libname}${release}${shared_ext}$major'
  9138. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9139. shlibpath_var=LD_LIBRARY_PATH
  9140. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9141. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9142. ;;
  9143. rdos*)
  9144. dynamic_linker=no
  9145. ;;
  9146. solaris*)
  9147. version_type=linux # correct to gnu/linux during the next big refactor
  9148. need_lib_prefix=no
  9149. need_version=no
  9150. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9151. soname_spec='${libname}${release}${shared_ext}$major'
  9152. shlibpath_var=LD_LIBRARY_PATH
  9153. shlibpath_overrides_runpath=yes
  9154. hardcode_into_libs=yes
  9155. # ldd complains unless libraries are executable
  9156. postinstall_cmds='chmod +x $lib'
  9157. ;;
  9158. sunos4*)
  9159. version_type=sunos
  9160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9161. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9162. shlibpath_var=LD_LIBRARY_PATH
  9163. shlibpath_overrides_runpath=yes
  9164. if test "$with_gnu_ld" = yes; then
  9165. need_lib_prefix=no
  9166. fi
  9167. need_version=yes
  9168. ;;
  9169. sysv4 | sysv4.3*)
  9170. version_type=linux # correct to gnu/linux during the next big refactor
  9171. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9172. soname_spec='${libname}${release}${shared_ext}$major'
  9173. shlibpath_var=LD_LIBRARY_PATH
  9174. case $host_vendor in
  9175. sni)
  9176. shlibpath_overrides_runpath=no
  9177. need_lib_prefix=no
  9178. runpath_var=LD_RUN_PATH
  9179. ;;
  9180. siemens)
  9181. need_lib_prefix=no
  9182. ;;
  9183. motorola)
  9184. need_lib_prefix=no
  9185. need_version=no
  9186. shlibpath_overrides_runpath=no
  9187. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9188. ;;
  9189. esac
  9190. ;;
  9191. sysv4*MP*)
  9192. if test -d /usr/nec ;then
  9193. version_type=linux # correct to gnu/linux during the next big refactor
  9194. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9195. soname_spec='$libname${shared_ext}.$major'
  9196. shlibpath_var=LD_LIBRARY_PATH
  9197. fi
  9198. ;;
  9199. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9200. version_type=freebsd-elf
  9201. need_lib_prefix=no
  9202. need_version=no
  9203. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9204. soname_spec='${libname}${release}${shared_ext}$major'
  9205. shlibpath_var=LD_LIBRARY_PATH
  9206. shlibpath_overrides_runpath=yes
  9207. hardcode_into_libs=yes
  9208. if test "$with_gnu_ld" = yes; then
  9209. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9210. else
  9211. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9212. case $host_os in
  9213. sco3.2v5*)
  9214. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9215. ;;
  9216. esac
  9217. fi
  9218. sys_lib_dlsearch_path_spec='/usr/lib'
  9219. ;;
  9220. tpf*)
  9221. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9222. version_type=linux # correct to gnu/linux during the next big refactor
  9223. need_lib_prefix=no
  9224. need_version=no
  9225. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9226. shlibpath_var=LD_LIBRARY_PATH
  9227. shlibpath_overrides_runpath=no
  9228. hardcode_into_libs=yes
  9229. ;;
  9230. uts4*)
  9231. version_type=linux # correct to gnu/linux during the next big refactor
  9232. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9233. soname_spec='${libname}${release}${shared_ext}$major'
  9234. shlibpath_var=LD_LIBRARY_PATH
  9235. ;;
  9236. *)
  9237. dynamic_linker=no
  9238. ;;
  9239. esac
  9240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9241. $as_echo "$dynamic_linker" >&6; }
  9242. test "$dynamic_linker" = no && can_build_shared=no
  9243. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9244. if test "$GCC" = yes; then
  9245. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9246. fi
  9247. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9248. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9249. fi
  9250. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9251. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9252. fi
  9253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9254. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9255. hardcode_action=
  9256. if test -n "$hardcode_libdir_flag_spec" ||
  9257. test -n "$runpath_var" ||
  9258. test "X$hardcode_automatic" = "Xyes" ; then
  9259. # We can hardcode non-existent directories.
  9260. if test "$hardcode_direct" != no &&
  9261. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9262. # have to relink, otherwise we might link with an installed library
  9263. # when we should be linking with a yet-to-be-installed one
  9264. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9265. test "$hardcode_minus_L" != no; then
  9266. # Linking always hardcodes the temporary library directory.
  9267. hardcode_action=relink
  9268. else
  9269. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9270. hardcode_action=immediate
  9271. fi
  9272. else
  9273. # We cannot hardcode anything, or else we can only hardcode existing
  9274. # directories.
  9275. hardcode_action=unsupported
  9276. fi
  9277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9278. $as_echo "$hardcode_action" >&6; }
  9279. if test "$hardcode_action" = relink ||
  9280. test "$inherit_rpath" = yes; then
  9281. # Fast installation is not supported
  9282. enable_fast_install=no
  9283. elif test "$shlibpath_overrides_runpath" = yes ||
  9284. test "$enable_shared" = no; then
  9285. # Fast installation is not necessary
  9286. enable_fast_install=needless
  9287. fi
  9288. if test "x$enable_dlopen" != xyes; then
  9289. enable_dlopen=unknown
  9290. enable_dlopen_self=unknown
  9291. enable_dlopen_self_static=unknown
  9292. else
  9293. lt_cv_dlopen=no
  9294. lt_cv_dlopen_libs=
  9295. case $host_os in
  9296. beos*)
  9297. lt_cv_dlopen="load_add_on"
  9298. lt_cv_dlopen_libs=
  9299. lt_cv_dlopen_self=yes
  9300. ;;
  9301. mingw* | pw32* | cegcc*)
  9302. lt_cv_dlopen="LoadLibrary"
  9303. lt_cv_dlopen_libs=
  9304. ;;
  9305. cygwin*)
  9306. lt_cv_dlopen="dlopen"
  9307. lt_cv_dlopen_libs=
  9308. ;;
  9309. darwin*)
  9310. # if libdl is installed we need to link against it
  9311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9312. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9313. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9314. $as_echo_n "(cached) " >&6
  9315. else
  9316. ac_check_lib_save_LIBS=$LIBS
  9317. LIBS="-ldl $LIBS"
  9318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9319. /* end confdefs.h. */
  9320. /* Override any GCC internal prototype to avoid an error.
  9321. Use char because int might match the return type of a GCC
  9322. builtin and then its argument prototype would still apply. */
  9323. #ifdef __cplusplus
  9324. extern "C"
  9325. #endif
  9326. char dlopen ();
  9327. int
  9328. main ()
  9329. {
  9330. return dlopen ();
  9331. ;
  9332. return 0;
  9333. }
  9334. _ACEOF
  9335. if ac_fn_c_try_link "$LINENO"; then :
  9336. ac_cv_lib_dl_dlopen=yes
  9337. else
  9338. ac_cv_lib_dl_dlopen=no
  9339. fi
  9340. rm -f core conftest.err conftest.$ac_objext \
  9341. conftest$ac_exeext conftest.$ac_ext
  9342. LIBS=$ac_check_lib_save_LIBS
  9343. fi
  9344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9345. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9346. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9347. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9348. else
  9349. lt_cv_dlopen="dyld"
  9350. lt_cv_dlopen_libs=
  9351. lt_cv_dlopen_self=yes
  9352. fi
  9353. ;;
  9354. *)
  9355. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9356. if test "x$ac_cv_func_shl_load" = xyes; then :
  9357. lt_cv_dlopen="shl_load"
  9358. else
  9359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9360. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9361. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9362. $as_echo_n "(cached) " >&6
  9363. else
  9364. ac_check_lib_save_LIBS=$LIBS
  9365. LIBS="-ldld $LIBS"
  9366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9367. /* end confdefs.h. */
  9368. /* Override any GCC internal prototype to avoid an error.
  9369. Use char because int might match the return type of a GCC
  9370. builtin and then its argument prototype would still apply. */
  9371. #ifdef __cplusplus
  9372. extern "C"
  9373. #endif
  9374. char shl_load ();
  9375. int
  9376. main ()
  9377. {
  9378. return shl_load ();
  9379. ;
  9380. return 0;
  9381. }
  9382. _ACEOF
  9383. if ac_fn_c_try_link "$LINENO"; then :
  9384. ac_cv_lib_dld_shl_load=yes
  9385. else
  9386. ac_cv_lib_dld_shl_load=no
  9387. fi
  9388. rm -f core conftest.err conftest.$ac_objext \
  9389. conftest$ac_exeext conftest.$ac_ext
  9390. LIBS=$ac_check_lib_save_LIBS
  9391. fi
  9392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9393. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9394. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9395. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9396. else
  9397. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9398. if test "x$ac_cv_func_dlopen" = xyes; then :
  9399. lt_cv_dlopen="dlopen"
  9400. else
  9401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9402. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9403. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9404. $as_echo_n "(cached) " >&6
  9405. else
  9406. ac_check_lib_save_LIBS=$LIBS
  9407. LIBS="-ldl $LIBS"
  9408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9409. /* end confdefs.h. */
  9410. /* Override any GCC internal prototype to avoid an error.
  9411. Use char because int might match the return type of a GCC
  9412. builtin and then its argument prototype would still apply. */
  9413. #ifdef __cplusplus
  9414. extern "C"
  9415. #endif
  9416. char dlopen ();
  9417. int
  9418. main ()
  9419. {
  9420. return dlopen ();
  9421. ;
  9422. return 0;
  9423. }
  9424. _ACEOF
  9425. if ac_fn_c_try_link "$LINENO"; then :
  9426. ac_cv_lib_dl_dlopen=yes
  9427. else
  9428. ac_cv_lib_dl_dlopen=no
  9429. fi
  9430. rm -f core conftest.err conftest.$ac_objext \
  9431. conftest$ac_exeext conftest.$ac_ext
  9432. LIBS=$ac_check_lib_save_LIBS
  9433. fi
  9434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9435. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9436. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9437. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9438. else
  9439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9440. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9441. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9442. $as_echo_n "(cached) " >&6
  9443. else
  9444. ac_check_lib_save_LIBS=$LIBS
  9445. LIBS="-lsvld $LIBS"
  9446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9447. /* end confdefs.h. */
  9448. /* Override any GCC internal prototype to avoid an error.
  9449. Use char because int might match the return type of a GCC
  9450. builtin and then its argument prototype would still apply. */
  9451. #ifdef __cplusplus
  9452. extern "C"
  9453. #endif
  9454. char dlopen ();
  9455. int
  9456. main ()
  9457. {
  9458. return dlopen ();
  9459. ;
  9460. return 0;
  9461. }
  9462. _ACEOF
  9463. if ac_fn_c_try_link "$LINENO"; then :
  9464. ac_cv_lib_svld_dlopen=yes
  9465. else
  9466. ac_cv_lib_svld_dlopen=no
  9467. fi
  9468. rm -f core conftest.err conftest.$ac_objext \
  9469. conftest$ac_exeext conftest.$ac_ext
  9470. LIBS=$ac_check_lib_save_LIBS
  9471. fi
  9472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9473. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9474. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9475. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9476. else
  9477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9478. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9479. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9480. $as_echo_n "(cached) " >&6
  9481. else
  9482. ac_check_lib_save_LIBS=$LIBS
  9483. LIBS="-ldld $LIBS"
  9484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9485. /* end confdefs.h. */
  9486. /* Override any GCC internal prototype to avoid an error.
  9487. Use char because int might match the return type of a GCC
  9488. builtin and then its argument prototype would still apply. */
  9489. #ifdef __cplusplus
  9490. extern "C"
  9491. #endif
  9492. char dld_link ();
  9493. int
  9494. main ()
  9495. {
  9496. return dld_link ();
  9497. ;
  9498. return 0;
  9499. }
  9500. _ACEOF
  9501. if ac_fn_c_try_link "$LINENO"; then :
  9502. ac_cv_lib_dld_dld_link=yes
  9503. else
  9504. ac_cv_lib_dld_dld_link=no
  9505. fi
  9506. rm -f core conftest.err conftest.$ac_objext \
  9507. conftest$ac_exeext conftest.$ac_ext
  9508. LIBS=$ac_check_lib_save_LIBS
  9509. fi
  9510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9511. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9512. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9513. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9514. fi
  9515. fi
  9516. fi
  9517. fi
  9518. fi
  9519. fi
  9520. ;;
  9521. esac
  9522. if test "x$lt_cv_dlopen" != xno; then
  9523. enable_dlopen=yes
  9524. else
  9525. enable_dlopen=no
  9526. fi
  9527. case $lt_cv_dlopen in
  9528. dlopen)
  9529. save_CPPFLAGS="$CPPFLAGS"
  9530. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9531. save_LDFLAGS="$LDFLAGS"
  9532. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9533. save_LIBS="$LIBS"
  9534. LIBS="$lt_cv_dlopen_libs $LIBS"
  9535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9536. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9537. if ${lt_cv_dlopen_self+:} false; then :
  9538. $as_echo_n "(cached) " >&6
  9539. else
  9540. if test "$cross_compiling" = yes; then :
  9541. lt_cv_dlopen_self=cross
  9542. else
  9543. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9544. lt_status=$lt_dlunknown
  9545. cat > conftest.$ac_ext <<_LT_EOF
  9546. #line $LINENO "configure"
  9547. #include "confdefs.h"
  9548. #if HAVE_DLFCN_H
  9549. #include <dlfcn.h>
  9550. #endif
  9551. #include <stdio.h>
  9552. #ifdef RTLD_GLOBAL
  9553. # define LT_DLGLOBAL RTLD_GLOBAL
  9554. #else
  9555. # ifdef DL_GLOBAL
  9556. # define LT_DLGLOBAL DL_GLOBAL
  9557. # else
  9558. # define LT_DLGLOBAL 0
  9559. # endif
  9560. #endif
  9561. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9562. find out it does not work in some platform. */
  9563. #ifndef LT_DLLAZY_OR_NOW
  9564. # ifdef RTLD_LAZY
  9565. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9566. # else
  9567. # ifdef DL_LAZY
  9568. # define LT_DLLAZY_OR_NOW DL_LAZY
  9569. # else
  9570. # ifdef RTLD_NOW
  9571. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9572. # else
  9573. # ifdef DL_NOW
  9574. # define LT_DLLAZY_OR_NOW DL_NOW
  9575. # else
  9576. # define LT_DLLAZY_OR_NOW 0
  9577. # endif
  9578. # endif
  9579. # endif
  9580. # endif
  9581. #endif
  9582. /* When -fvisbility=hidden is used, assume the code has been annotated
  9583. correspondingly for the symbols needed. */
  9584. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9585. int fnord () __attribute__((visibility("default")));
  9586. #endif
  9587. int fnord () { return 42; }
  9588. int main ()
  9589. {
  9590. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9591. int status = $lt_dlunknown;
  9592. if (self)
  9593. {
  9594. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9595. else
  9596. {
  9597. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9598. else puts (dlerror ());
  9599. }
  9600. /* dlclose (self); */
  9601. }
  9602. else
  9603. puts (dlerror ());
  9604. return status;
  9605. }
  9606. _LT_EOF
  9607. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9608. (eval $ac_link) 2>&5
  9609. ac_status=$?
  9610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9611. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9612. (./conftest; exit; ) >&5 2>/dev/null
  9613. lt_status=$?
  9614. case x$lt_status in
  9615. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9616. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9617. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9618. esac
  9619. else :
  9620. # compilation failed
  9621. lt_cv_dlopen_self=no
  9622. fi
  9623. fi
  9624. rm -fr conftest*
  9625. fi
  9626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9627. $as_echo "$lt_cv_dlopen_self" >&6; }
  9628. if test "x$lt_cv_dlopen_self" = xyes; then
  9629. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9631. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9632. if ${lt_cv_dlopen_self_static+:} false; then :
  9633. $as_echo_n "(cached) " >&6
  9634. else
  9635. if test "$cross_compiling" = yes; then :
  9636. lt_cv_dlopen_self_static=cross
  9637. else
  9638. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9639. lt_status=$lt_dlunknown
  9640. cat > conftest.$ac_ext <<_LT_EOF
  9641. #line $LINENO "configure"
  9642. #include "confdefs.h"
  9643. #if HAVE_DLFCN_H
  9644. #include <dlfcn.h>
  9645. #endif
  9646. #include <stdio.h>
  9647. #ifdef RTLD_GLOBAL
  9648. # define LT_DLGLOBAL RTLD_GLOBAL
  9649. #else
  9650. # ifdef DL_GLOBAL
  9651. # define LT_DLGLOBAL DL_GLOBAL
  9652. # else
  9653. # define LT_DLGLOBAL 0
  9654. # endif
  9655. #endif
  9656. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9657. find out it does not work in some platform. */
  9658. #ifndef LT_DLLAZY_OR_NOW
  9659. # ifdef RTLD_LAZY
  9660. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9661. # else
  9662. # ifdef DL_LAZY
  9663. # define LT_DLLAZY_OR_NOW DL_LAZY
  9664. # else
  9665. # ifdef RTLD_NOW
  9666. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9667. # else
  9668. # ifdef DL_NOW
  9669. # define LT_DLLAZY_OR_NOW DL_NOW
  9670. # else
  9671. # define LT_DLLAZY_OR_NOW 0
  9672. # endif
  9673. # endif
  9674. # endif
  9675. # endif
  9676. #endif
  9677. /* When -fvisbility=hidden is used, assume the code has been annotated
  9678. correspondingly for the symbols needed. */
  9679. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9680. int fnord () __attribute__((visibility("default")));
  9681. #endif
  9682. int fnord () { return 42; }
  9683. int main ()
  9684. {
  9685. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9686. int status = $lt_dlunknown;
  9687. if (self)
  9688. {
  9689. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9690. else
  9691. {
  9692. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9693. else puts (dlerror ());
  9694. }
  9695. /* dlclose (self); */
  9696. }
  9697. else
  9698. puts (dlerror ());
  9699. return status;
  9700. }
  9701. _LT_EOF
  9702. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9703. (eval $ac_link) 2>&5
  9704. ac_status=$?
  9705. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9706. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9707. (./conftest; exit; ) >&5 2>/dev/null
  9708. lt_status=$?
  9709. case x$lt_status in
  9710. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9711. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9712. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9713. esac
  9714. else :
  9715. # compilation failed
  9716. lt_cv_dlopen_self_static=no
  9717. fi
  9718. fi
  9719. rm -fr conftest*
  9720. fi
  9721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9722. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9723. fi
  9724. CPPFLAGS="$save_CPPFLAGS"
  9725. LDFLAGS="$save_LDFLAGS"
  9726. LIBS="$save_LIBS"
  9727. ;;
  9728. esac
  9729. case $lt_cv_dlopen_self in
  9730. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9731. *) enable_dlopen_self=unknown ;;
  9732. esac
  9733. case $lt_cv_dlopen_self_static in
  9734. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9735. *) enable_dlopen_self_static=unknown ;;
  9736. esac
  9737. fi
  9738. striplib=
  9739. old_striplib=
  9740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9741. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9742. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9743. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9744. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9746. $as_echo "yes" >&6; }
  9747. else
  9748. # FIXME - insert some real tests, host_os isn't really good enough
  9749. case $host_os in
  9750. darwin*)
  9751. if test -n "$STRIP" ; then
  9752. striplib="$STRIP -x"
  9753. old_striplib="$STRIP -S"
  9754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9755. $as_echo "yes" >&6; }
  9756. else
  9757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9758. $as_echo "no" >&6; }
  9759. fi
  9760. ;;
  9761. *)
  9762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9763. $as_echo "no" >&6; }
  9764. ;;
  9765. esac
  9766. fi
  9767. # Report which library types will actually be built
  9768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9769. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9771. $as_echo "$can_build_shared" >&6; }
  9772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9773. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9774. test "$can_build_shared" = "no" && enable_shared=no
  9775. # On AIX, shared libraries and static libraries use the same namespace, and
  9776. # are all built from PIC.
  9777. case $host_os in
  9778. aix3*)
  9779. test "$enable_shared" = yes && enable_static=no
  9780. if test -n "$RANLIB"; then
  9781. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9782. postinstall_cmds='$RANLIB $lib'
  9783. fi
  9784. ;;
  9785. aix[4-9]*)
  9786. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9787. test "$enable_shared" = yes && enable_static=no
  9788. fi
  9789. ;;
  9790. esac
  9791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9792. $as_echo "$enable_shared" >&6; }
  9793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9794. $as_echo_n "checking whether to build static libraries... " >&6; }
  9795. # Make sure either enable_shared or enable_static is yes.
  9796. test "$enable_shared" = yes || enable_static=yes
  9797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9798. $as_echo "$enable_static" >&6; }
  9799. fi
  9800. ac_ext=c
  9801. ac_cpp='$CPP $CPPFLAGS'
  9802. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9803. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9804. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9805. CC="$lt_save_CC"
  9806. ac_config_commands="$ac_config_commands libtool"
  9807. # Only expand once:
  9808. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9809. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9810. LT_REVISION=$SDL_INTERFACE_AGE
  9811. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9812. ac_ext=c
  9813. ac_cpp='$CPP $CPPFLAGS'
  9814. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9815. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9816. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9817. if test -n "$ac_tool_prefix"; then
  9818. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9819. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9821. $as_echo_n "checking for $ac_word... " >&6; }
  9822. if ${ac_cv_prog_CC+:} false; then :
  9823. $as_echo_n "(cached) " >&6
  9824. else
  9825. if test -n "$CC"; then
  9826. ac_cv_prog_CC="$CC" # Let the user override the test.
  9827. else
  9828. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9829. for as_dir in $PATH
  9830. do
  9831. IFS=$as_save_IFS
  9832. test -z "$as_dir" && as_dir=.
  9833. for ac_exec_ext in '' $ac_executable_extensions; do
  9834. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9835. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9836. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9837. break 2
  9838. fi
  9839. done
  9840. done
  9841. IFS=$as_save_IFS
  9842. fi
  9843. fi
  9844. CC=$ac_cv_prog_CC
  9845. if test -n "$CC"; then
  9846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9847. $as_echo "$CC" >&6; }
  9848. else
  9849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9850. $as_echo "no" >&6; }
  9851. fi
  9852. fi
  9853. if test -z "$ac_cv_prog_CC"; then
  9854. ac_ct_CC=$CC
  9855. # Extract the first word of "gcc", so it can be a program name with args.
  9856. set dummy gcc; ac_word=$2
  9857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9858. $as_echo_n "checking for $ac_word... " >&6; }
  9859. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9860. $as_echo_n "(cached) " >&6
  9861. else
  9862. if test -n "$ac_ct_CC"; then
  9863. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9864. else
  9865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9866. for as_dir in $PATH
  9867. do
  9868. IFS=$as_save_IFS
  9869. test -z "$as_dir" && as_dir=.
  9870. for ac_exec_ext in '' $ac_executable_extensions; do
  9871. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9872. ac_cv_prog_ac_ct_CC="gcc"
  9873. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9874. break 2
  9875. fi
  9876. done
  9877. done
  9878. IFS=$as_save_IFS
  9879. fi
  9880. fi
  9881. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9882. if test -n "$ac_ct_CC"; then
  9883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9884. $as_echo "$ac_ct_CC" >&6; }
  9885. else
  9886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9887. $as_echo "no" >&6; }
  9888. fi
  9889. if test "x$ac_ct_CC" = x; then
  9890. CC=""
  9891. else
  9892. case $cross_compiling:$ac_tool_warned in
  9893. yes:)
  9894. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9895. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9896. ac_tool_warned=yes ;;
  9897. esac
  9898. CC=$ac_ct_CC
  9899. fi
  9900. else
  9901. CC="$ac_cv_prog_CC"
  9902. fi
  9903. if test -z "$CC"; then
  9904. if test -n "$ac_tool_prefix"; then
  9905. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9906. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9908. $as_echo_n "checking for $ac_word... " >&6; }
  9909. if ${ac_cv_prog_CC+:} false; then :
  9910. $as_echo_n "(cached) " >&6
  9911. else
  9912. if test -n "$CC"; then
  9913. ac_cv_prog_CC="$CC" # Let the user override the test.
  9914. else
  9915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9916. for as_dir in $PATH
  9917. do
  9918. IFS=$as_save_IFS
  9919. test -z "$as_dir" && as_dir=.
  9920. for ac_exec_ext in '' $ac_executable_extensions; do
  9921. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9922. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9923. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9924. break 2
  9925. fi
  9926. done
  9927. done
  9928. IFS=$as_save_IFS
  9929. fi
  9930. fi
  9931. CC=$ac_cv_prog_CC
  9932. if test -n "$CC"; then
  9933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9934. $as_echo "$CC" >&6; }
  9935. else
  9936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9937. $as_echo "no" >&6; }
  9938. fi
  9939. fi
  9940. fi
  9941. if test -z "$CC"; then
  9942. # Extract the first word of "cc", so it can be a program name with args.
  9943. set dummy cc; ac_word=$2
  9944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9945. $as_echo_n "checking for $ac_word... " >&6; }
  9946. if ${ac_cv_prog_CC+:} false; then :
  9947. $as_echo_n "(cached) " >&6
  9948. else
  9949. if test -n "$CC"; then
  9950. ac_cv_prog_CC="$CC" # Let the user override the test.
  9951. else
  9952. ac_prog_rejected=no
  9953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9954. for as_dir in $PATH
  9955. do
  9956. IFS=$as_save_IFS
  9957. test -z "$as_dir" && as_dir=.
  9958. for ac_exec_ext in '' $ac_executable_extensions; do
  9959. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9960. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9961. ac_prog_rejected=yes
  9962. continue
  9963. fi
  9964. ac_cv_prog_CC="cc"
  9965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9966. break 2
  9967. fi
  9968. done
  9969. done
  9970. IFS=$as_save_IFS
  9971. if test $ac_prog_rejected = yes; then
  9972. # We found a bogon in the path, so make sure we never use it.
  9973. set dummy $ac_cv_prog_CC
  9974. shift
  9975. if test $# != 0; then
  9976. # We chose a different compiler from the bogus one.
  9977. # However, it has the same basename, so the bogon will be chosen
  9978. # first if we set CC to just the basename; use the full file name.
  9979. shift
  9980. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9981. fi
  9982. fi
  9983. fi
  9984. fi
  9985. CC=$ac_cv_prog_CC
  9986. if test -n "$CC"; then
  9987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9988. $as_echo "$CC" >&6; }
  9989. else
  9990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9991. $as_echo "no" >&6; }
  9992. fi
  9993. fi
  9994. if test -z "$CC"; then
  9995. if test -n "$ac_tool_prefix"; then
  9996. for ac_prog in cl.exe
  9997. do
  9998. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9999. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10001. $as_echo_n "checking for $ac_word... " >&6; }
  10002. if ${ac_cv_prog_CC+:} false; then :
  10003. $as_echo_n "(cached) " >&6
  10004. else
  10005. if test -n "$CC"; then
  10006. ac_cv_prog_CC="$CC" # Let the user override the test.
  10007. else
  10008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10009. for as_dir in $PATH
  10010. do
  10011. IFS=$as_save_IFS
  10012. test -z "$as_dir" && as_dir=.
  10013. for ac_exec_ext in '' $ac_executable_extensions; do
  10014. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10015. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10016. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10017. break 2
  10018. fi
  10019. done
  10020. done
  10021. IFS=$as_save_IFS
  10022. fi
  10023. fi
  10024. CC=$ac_cv_prog_CC
  10025. if test -n "$CC"; then
  10026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10027. $as_echo "$CC" >&6; }
  10028. else
  10029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10030. $as_echo "no" >&6; }
  10031. fi
  10032. test -n "$CC" && break
  10033. done
  10034. fi
  10035. if test -z "$CC"; then
  10036. ac_ct_CC=$CC
  10037. for ac_prog in cl.exe
  10038. do
  10039. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10040. set dummy $ac_prog; ac_word=$2
  10041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10042. $as_echo_n "checking for $ac_word... " >&6; }
  10043. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10044. $as_echo_n "(cached) " >&6
  10045. else
  10046. if test -n "$ac_ct_CC"; then
  10047. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10048. else
  10049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10050. for as_dir in $PATH
  10051. do
  10052. IFS=$as_save_IFS
  10053. test -z "$as_dir" && as_dir=.
  10054. for ac_exec_ext in '' $ac_executable_extensions; do
  10055. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10056. ac_cv_prog_ac_ct_CC="$ac_prog"
  10057. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10058. break 2
  10059. fi
  10060. done
  10061. done
  10062. IFS=$as_save_IFS
  10063. fi
  10064. fi
  10065. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10066. if test -n "$ac_ct_CC"; then
  10067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10068. $as_echo "$ac_ct_CC" >&6; }
  10069. else
  10070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10071. $as_echo "no" >&6; }
  10072. fi
  10073. test -n "$ac_ct_CC" && break
  10074. done
  10075. if test "x$ac_ct_CC" = x; then
  10076. CC=""
  10077. else
  10078. case $cross_compiling:$ac_tool_warned in
  10079. yes:)
  10080. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10081. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10082. ac_tool_warned=yes ;;
  10083. esac
  10084. CC=$ac_ct_CC
  10085. fi
  10086. fi
  10087. fi
  10088. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10089. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10090. as_fn_error $? "no acceptable C compiler found in \$PATH
  10091. See \`config.log' for more details" "$LINENO" 5; }
  10092. # Provide some information about the compiler.
  10093. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10094. set X $ac_compile
  10095. ac_compiler=$2
  10096. for ac_option in --version -v -V -qversion; do
  10097. { { ac_try="$ac_compiler $ac_option >&5"
  10098. case "(($ac_try" in
  10099. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10100. *) ac_try_echo=$ac_try;;
  10101. esac
  10102. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10103. $as_echo "$ac_try_echo"; } >&5
  10104. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10105. ac_status=$?
  10106. if test -s conftest.err; then
  10107. sed '10a\
  10108. ... rest of stderr output deleted ...
  10109. 10q' conftest.err >conftest.er1
  10110. cat conftest.er1 >&5
  10111. fi
  10112. rm -f conftest.er1 conftest.err
  10113. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10114. test $ac_status = 0; }
  10115. done
  10116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10117. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10118. if ${ac_cv_c_compiler_gnu+:} false; then :
  10119. $as_echo_n "(cached) " >&6
  10120. else
  10121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10122. /* end confdefs.h. */
  10123. int
  10124. main ()
  10125. {
  10126. #ifndef __GNUC__
  10127. choke me
  10128. #endif
  10129. ;
  10130. return 0;
  10131. }
  10132. _ACEOF
  10133. if ac_fn_c_try_compile "$LINENO"; then :
  10134. ac_compiler_gnu=yes
  10135. else
  10136. ac_compiler_gnu=no
  10137. fi
  10138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10139. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10140. fi
  10141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10142. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10143. if test $ac_compiler_gnu = yes; then
  10144. GCC=yes
  10145. else
  10146. GCC=
  10147. fi
  10148. ac_test_CFLAGS=${CFLAGS+set}
  10149. ac_save_CFLAGS=$CFLAGS
  10150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10151. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10152. if ${ac_cv_prog_cc_g+:} false; then :
  10153. $as_echo_n "(cached) " >&6
  10154. else
  10155. ac_save_c_werror_flag=$ac_c_werror_flag
  10156. ac_c_werror_flag=yes
  10157. ac_cv_prog_cc_g=no
  10158. CFLAGS="-g"
  10159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10160. /* end confdefs.h. */
  10161. int
  10162. main ()
  10163. {
  10164. ;
  10165. return 0;
  10166. }
  10167. _ACEOF
  10168. if ac_fn_c_try_compile "$LINENO"; then :
  10169. ac_cv_prog_cc_g=yes
  10170. else
  10171. CFLAGS=""
  10172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10173. /* end confdefs.h. */
  10174. int
  10175. main ()
  10176. {
  10177. ;
  10178. return 0;
  10179. }
  10180. _ACEOF
  10181. if ac_fn_c_try_compile "$LINENO"; then :
  10182. else
  10183. ac_c_werror_flag=$ac_save_c_werror_flag
  10184. CFLAGS="-g"
  10185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10186. /* end confdefs.h. */
  10187. int
  10188. main ()
  10189. {
  10190. ;
  10191. return 0;
  10192. }
  10193. _ACEOF
  10194. if ac_fn_c_try_compile "$LINENO"; then :
  10195. ac_cv_prog_cc_g=yes
  10196. fi
  10197. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10198. fi
  10199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10200. fi
  10201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10202. ac_c_werror_flag=$ac_save_c_werror_flag
  10203. fi
  10204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10205. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10206. if test "$ac_test_CFLAGS" = set; then
  10207. CFLAGS=$ac_save_CFLAGS
  10208. elif test $ac_cv_prog_cc_g = yes; then
  10209. if test "$GCC" = yes; then
  10210. CFLAGS="-g -O2"
  10211. else
  10212. CFLAGS="-g"
  10213. fi
  10214. else
  10215. if test "$GCC" = yes; then
  10216. CFLAGS="-O2"
  10217. else
  10218. CFLAGS=
  10219. fi
  10220. fi
  10221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10222. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10223. if ${ac_cv_prog_cc_c89+:} false; then :
  10224. $as_echo_n "(cached) " >&6
  10225. else
  10226. ac_cv_prog_cc_c89=no
  10227. ac_save_CC=$CC
  10228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10229. /* end confdefs.h. */
  10230. #include <stdarg.h>
  10231. #include <stdio.h>
  10232. struct stat;
  10233. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10234. struct buf { int x; };
  10235. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10236. static char *e (p, i)
  10237. char **p;
  10238. int i;
  10239. {
  10240. return p[i];
  10241. }
  10242. static char *f (char * (*g) (char **, int), char **p, ...)
  10243. {
  10244. char *s;
  10245. va_list v;
  10246. va_start (v,p);
  10247. s = g (p, va_arg (v,int));
  10248. va_end (v);
  10249. return s;
  10250. }
  10251. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10252. function prototypes and stuff, but not '\xHH' hex character constants.
  10253. These don't provoke an error unfortunately, instead are silently treated
  10254. as 'x'. The following induces an error, until -std is added to get
  10255. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10256. array size at least. It's necessary to write '\x00'==0 to get something
  10257. that's true only with -std. */
  10258. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10259. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10260. inside strings and character constants. */
  10261. #define FOO(x) 'x'
  10262. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10263. int test (int i, double x);
  10264. struct s1 {int (*f) (int a);};
  10265. struct s2 {int (*f) (double a);};
  10266. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10267. int argc;
  10268. char **argv;
  10269. int
  10270. main ()
  10271. {
  10272. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10273. ;
  10274. return 0;
  10275. }
  10276. _ACEOF
  10277. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10278. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10279. do
  10280. CC="$ac_save_CC $ac_arg"
  10281. if ac_fn_c_try_compile "$LINENO"; then :
  10282. ac_cv_prog_cc_c89=$ac_arg
  10283. fi
  10284. rm -f core conftest.err conftest.$ac_objext
  10285. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10286. done
  10287. rm -f conftest.$ac_ext
  10288. CC=$ac_save_CC
  10289. fi
  10290. # AC_CACHE_VAL
  10291. case "x$ac_cv_prog_cc_c89" in
  10292. x)
  10293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10294. $as_echo "none needed" >&6; } ;;
  10295. xno)
  10296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10297. $as_echo "unsupported" >&6; } ;;
  10298. *)
  10299. CC="$CC $ac_cv_prog_cc_c89"
  10300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10301. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10302. esac
  10303. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10304. fi
  10305. ac_ext=c
  10306. ac_cpp='$CPP $CPPFLAGS'
  10307. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10308. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10309. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10310. ac_ext=cpp
  10311. ac_cpp='$CXXCPP $CPPFLAGS'
  10312. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10313. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10314. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10315. if test -z "$CXX"; then
  10316. if test -n "$CCC"; then
  10317. CXX=$CCC
  10318. else
  10319. if test -n "$ac_tool_prefix"; then
  10320. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10321. do
  10322. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10323. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10325. $as_echo_n "checking for $ac_word... " >&6; }
  10326. if ${ac_cv_prog_CXX+:} false; then :
  10327. $as_echo_n "(cached) " >&6
  10328. else
  10329. if test -n "$CXX"; then
  10330. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10331. else
  10332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10333. for as_dir in $PATH
  10334. do
  10335. IFS=$as_save_IFS
  10336. test -z "$as_dir" && as_dir=.
  10337. for ac_exec_ext in '' $ac_executable_extensions; do
  10338. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10339. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10340. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10341. break 2
  10342. fi
  10343. done
  10344. done
  10345. IFS=$as_save_IFS
  10346. fi
  10347. fi
  10348. CXX=$ac_cv_prog_CXX
  10349. if test -n "$CXX"; then
  10350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10351. $as_echo "$CXX" >&6; }
  10352. else
  10353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10354. $as_echo "no" >&6; }
  10355. fi
  10356. test -n "$CXX" && break
  10357. done
  10358. fi
  10359. if test -z "$CXX"; then
  10360. ac_ct_CXX=$CXX
  10361. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10362. do
  10363. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10364. set dummy $ac_prog; ac_word=$2
  10365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10366. $as_echo_n "checking for $ac_word... " >&6; }
  10367. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10368. $as_echo_n "(cached) " >&6
  10369. else
  10370. if test -n "$ac_ct_CXX"; then
  10371. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10372. else
  10373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10374. for as_dir in $PATH
  10375. do
  10376. IFS=$as_save_IFS
  10377. test -z "$as_dir" && as_dir=.
  10378. for ac_exec_ext in '' $ac_executable_extensions; do
  10379. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10380. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10381. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10382. break 2
  10383. fi
  10384. done
  10385. done
  10386. IFS=$as_save_IFS
  10387. fi
  10388. fi
  10389. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10390. if test -n "$ac_ct_CXX"; then
  10391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10392. $as_echo "$ac_ct_CXX" >&6; }
  10393. else
  10394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10395. $as_echo "no" >&6; }
  10396. fi
  10397. test -n "$ac_ct_CXX" && break
  10398. done
  10399. if test "x$ac_ct_CXX" = x; then
  10400. CXX="g++"
  10401. else
  10402. case $cross_compiling:$ac_tool_warned in
  10403. yes:)
  10404. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10405. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10406. ac_tool_warned=yes ;;
  10407. esac
  10408. CXX=$ac_ct_CXX
  10409. fi
  10410. fi
  10411. fi
  10412. fi
  10413. # Provide some information about the compiler.
  10414. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10415. set X $ac_compile
  10416. ac_compiler=$2
  10417. for ac_option in --version -v -V -qversion; do
  10418. { { ac_try="$ac_compiler $ac_option >&5"
  10419. case "(($ac_try" in
  10420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10421. *) ac_try_echo=$ac_try;;
  10422. esac
  10423. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10424. $as_echo "$ac_try_echo"; } >&5
  10425. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10426. ac_status=$?
  10427. if test -s conftest.err; then
  10428. sed '10a\
  10429. ... rest of stderr output deleted ...
  10430. 10q' conftest.err >conftest.er1
  10431. cat conftest.er1 >&5
  10432. fi
  10433. rm -f conftest.er1 conftest.err
  10434. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10435. test $ac_status = 0; }
  10436. done
  10437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10438. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10439. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10440. $as_echo_n "(cached) " >&6
  10441. else
  10442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10443. /* end confdefs.h. */
  10444. int
  10445. main ()
  10446. {
  10447. #ifndef __GNUC__
  10448. choke me
  10449. #endif
  10450. ;
  10451. return 0;
  10452. }
  10453. _ACEOF
  10454. if ac_fn_cxx_try_compile "$LINENO"; then :
  10455. ac_compiler_gnu=yes
  10456. else
  10457. ac_compiler_gnu=no
  10458. fi
  10459. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10460. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10461. fi
  10462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10463. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10464. if test $ac_compiler_gnu = yes; then
  10465. GXX=yes
  10466. else
  10467. GXX=
  10468. fi
  10469. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10470. ac_save_CXXFLAGS=$CXXFLAGS
  10471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10472. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10473. if ${ac_cv_prog_cxx_g+:} false; then :
  10474. $as_echo_n "(cached) " >&6
  10475. else
  10476. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10477. ac_cxx_werror_flag=yes
  10478. ac_cv_prog_cxx_g=no
  10479. CXXFLAGS="-g"
  10480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10481. /* end confdefs.h. */
  10482. int
  10483. main ()
  10484. {
  10485. ;
  10486. return 0;
  10487. }
  10488. _ACEOF
  10489. if ac_fn_cxx_try_compile "$LINENO"; then :
  10490. ac_cv_prog_cxx_g=yes
  10491. else
  10492. CXXFLAGS=""
  10493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10494. /* end confdefs.h. */
  10495. int
  10496. main ()
  10497. {
  10498. ;
  10499. return 0;
  10500. }
  10501. _ACEOF
  10502. if ac_fn_cxx_try_compile "$LINENO"; then :
  10503. else
  10504. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10505. CXXFLAGS="-g"
  10506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10507. /* end confdefs.h. */
  10508. int
  10509. main ()
  10510. {
  10511. ;
  10512. return 0;
  10513. }
  10514. _ACEOF
  10515. if ac_fn_cxx_try_compile "$LINENO"; then :
  10516. ac_cv_prog_cxx_g=yes
  10517. fi
  10518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10519. fi
  10520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10521. fi
  10522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10523. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10524. fi
  10525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10526. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10527. if test "$ac_test_CXXFLAGS" = set; then
  10528. CXXFLAGS=$ac_save_CXXFLAGS
  10529. elif test $ac_cv_prog_cxx_g = yes; then
  10530. if test "$GXX" = yes; then
  10531. CXXFLAGS="-g -O2"
  10532. else
  10533. CXXFLAGS="-g"
  10534. fi
  10535. else
  10536. if test "$GXX" = yes; then
  10537. CXXFLAGS="-O2"
  10538. else
  10539. CXXFLAGS=
  10540. fi
  10541. fi
  10542. ac_ext=c
  10543. ac_cpp='$CPP $CPPFLAGS'
  10544. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10545. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10546. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10547. func_stripname_cnf ()
  10548. {
  10549. case ${2} in
  10550. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10551. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10552. esac
  10553. } # func_stripname_cnf
  10554. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10555. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10556. (test "X$CXX" != "Xg++"))) ; then
  10557. ac_ext=cpp
  10558. ac_cpp='$CXXCPP $CPPFLAGS'
  10559. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10560. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10561. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10563. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10564. if test -z "$CXXCPP"; then
  10565. if ${ac_cv_prog_CXXCPP+:} false; then :
  10566. $as_echo_n "(cached) " >&6
  10567. else
  10568. # Double quotes because CXXCPP needs to be expanded
  10569. for CXXCPP in "$CXX -E" "/lib/cpp"
  10570. do
  10571. ac_preproc_ok=false
  10572. for ac_cxx_preproc_warn_flag in '' yes
  10573. do
  10574. # Use a header file that comes with gcc, so configuring glibc
  10575. # with a fresh cross-compiler works.
  10576. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10577. # <limits.h> exists even on freestanding compilers.
  10578. # On the NeXT, cc -E runs the code through the compiler's parser,
  10579. # not just through cpp. "Syntax error" is here to catch this case.
  10580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10581. /* end confdefs.h. */
  10582. #ifdef __STDC__
  10583. # include <limits.h>
  10584. #else
  10585. # include <assert.h>
  10586. #endif
  10587. Syntax error
  10588. _ACEOF
  10589. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10590. else
  10591. # Broken: fails on valid input.
  10592. continue
  10593. fi
  10594. rm -f conftest.err conftest.i conftest.$ac_ext
  10595. # OK, works on sane cases. Now check whether nonexistent headers
  10596. # can be detected and how.
  10597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10598. /* end confdefs.h. */
  10599. #include <ac_nonexistent.h>
  10600. _ACEOF
  10601. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10602. # Broken: success on invalid input.
  10603. continue
  10604. else
  10605. # Passes both tests.
  10606. ac_preproc_ok=:
  10607. break
  10608. fi
  10609. rm -f conftest.err conftest.i conftest.$ac_ext
  10610. done
  10611. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10612. rm -f conftest.i conftest.err conftest.$ac_ext
  10613. if $ac_preproc_ok; then :
  10614. break
  10615. fi
  10616. done
  10617. ac_cv_prog_CXXCPP=$CXXCPP
  10618. fi
  10619. CXXCPP=$ac_cv_prog_CXXCPP
  10620. else
  10621. ac_cv_prog_CXXCPP=$CXXCPP
  10622. fi
  10623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10624. $as_echo "$CXXCPP" >&6; }
  10625. ac_preproc_ok=false
  10626. for ac_cxx_preproc_warn_flag in '' yes
  10627. do
  10628. # Use a header file that comes with gcc, so configuring glibc
  10629. # with a fresh cross-compiler works.
  10630. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10631. # <limits.h> exists even on freestanding compilers.
  10632. # On the NeXT, cc -E runs the code through the compiler's parser,
  10633. # not just through cpp. "Syntax error" is here to catch this case.
  10634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10635. /* end confdefs.h. */
  10636. #ifdef __STDC__
  10637. # include <limits.h>
  10638. #else
  10639. # include <assert.h>
  10640. #endif
  10641. Syntax error
  10642. _ACEOF
  10643. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10644. else
  10645. # Broken: fails on valid input.
  10646. continue
  10647. fi
  10648. rm -f conftest.err conftest.i conftest.$ac_ext
  10649. # OK, works on sane cases. Now check whether nonexistent headers
  10650. # can be detected and how.
  10651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10652. /* end confdefs.h. */
  10653. #include <ac_nonexistent.h>
  10654. _ACEOF
  10655. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10656. # Broken: success on invalid input.
  10657. continue
  10658. else
  10659. # Passes both tests.
  10660. ac_preproc_ok=:
  10661. break
  10662. fi
  10663. rm -f conftest.err conftest.i conftest.$ac_ext
  10664. done
  10665. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10666. rm -f conftest.i conftest.err conftest.$ac_ext
  10667. if $ac_preproc_ok; then :
  10668. else
  10669. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10670. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10671. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10672. See \`config.log' for more details" "$LINENO" 5; }
  10673. fi
  10674. ac_ext=c
  10675. ac_cpp='$CPP $CPPFLAGS'
  10676. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10677. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10678. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10679. else
  10680. _lt_caught_CXX_error=yes
  10681. fi
  10682. ac_ext=cpp
  10683. ac_cpp='$CXXCPP $CPPFLAGS'
  10684. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10685. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10686. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10687. archive_cmds_need_lc_CXX=no
  10688. allow_undefined_flag_CXX=
  10689. always_export_symbols_CXX=no
  10690. archive_expsym_cmds_CXX=
  10691. compiler_needs_object_CXX=no
  10692. export_dynamic_flag_spec_CXX=
  10693. hardcode_direct_CXX=no
  10694. hardcode_direct_absolute_CXX=no
  10695. hardcode_libdir_flag_spec_CXX=
  10696. hardcode_libdir_separator_CXX=
  10697. hardcode_minus_L_CXX=no
  10698. hardcode_shlibpath_var_CXX=unsupported
  10699. hardcode_automatic_CXX=no
  10700. inherit_rpath_CXX=no
  10701. module_cmds_CXX=
  10702. module_expsym_cmds_CXX=
  10703. link_all_deplibs_CXX=unknown
  10704. old_archive_cmds_CXX=$old_archive_cmds
  10705. reload_flag_CXX=$reload_flag
  10706. reload_cmds_CXX=$reload_cmds
  10707. no_undefined_flag_CXX=
  10708. whole_archive_flag_spec_CXX=
  10709. enable_shared_with_static_runtimes_CXX=no
  10710. # Source file extension for C++ test sources.
  10711. ac_ext=cpp
  10712. # Object file extension for compiled C++ test sources.
  10713. objext=o
  10714. objext_CXX=$objext
  10715. # No sense in running all these tests if we already determined that
  10716. # the CXX compiler isn't working. Some variables (like enable_shared)
  10717. # are currently assumed to apply to all compilers on this platform,
  10718. # and will be corrupted by setting them based on a non-working compiler.
  10719. if test "$_lt_caught_CXX_error" != yes; then
  10720. # Code to be used in simple compile tests
  10721. lt_simple_compile_test_code="int some_variable = 0;"
  10722. # Code to be used in simple link tests
  10723. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10724. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10725. # If no C compiler was specified, use CC.
  10726. LTCC=${LTCC-"$CC"}
  10727. # If no C compiler flags were specified, use CFLAGS.
  10728. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10729. # Allow CC to be a program name with arguments.
  10730. compiler=$CC
  10731. # save warnings/boilerplate of simple test code
  10732. ac_outfile=conftest.$ac_objext
  10733. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10734. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10735. _lt_compiler_boilerplate=`cat conftest.err`
  10736. $RM conftest*
  10737. ac_outfile=conftest.$ac_objext
  10738. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10739. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10740. _lt_linker_boilerplate=`cat conftest.err`
  10741. $RM -r conftest*
  10742. # Allow CC to be a program name with arguments.
  10743. lt_save_CC=$CC
  10744. lt_save_CFLAGS=$CFLAGS
  10745. lt_save_LD=$LD
  10746. lt_save_GCC=$GCC
  10747. GCC=$GXX
  10748. lt_save_with_gnu_ld=$with_gnu_ld
  10749. lt_save_path_LD=$lt_cv_path_LD
  10750. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10751. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10752. else
  10753. $as_unset lt_cv_prog_gnu_ld
  10754. fi
  10755. if test -n "${lt_cv_path_LDCXX+set}"; then
  10756. lt_cv_path_LD=$lt_cv_path_LDCXX
  10757. else
  10758. $as_unset lt_cv_path_LD
  10759. fi
  10760. test -z "${LDCXX+set}" || LD=$LDCXX
  10761. CC=${CXX-"c++"}
  10762. CFLAGS=$CXXFLAGS
  10763. compiler=$CC
  10764. compiler_CXX=$CC
  10765. for cc_temp in $compiler""; do
  10766. case $cc_temp in
  10767. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10768. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10769. \-*) ;;
  10770. *) break;;
  10771. esac
  10772. done
  10773. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10774. if test -n "$compiler"; then
  10775. # We don't want -fno-exception when compiling C++ code, so set the
  10776. # no_builtin_flag separately
  10777. if test "$GXX" = yes; then
  10778. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10779. else
  10780. lt_prog_compiler_no_builtin_flag_CXX=
  10781. fi
  10782. if test "$GXX" = yes; then
  10783. # Set up default GNU C++ configuration
  10784. # Check whether --with-gnu-ld was given.
  10785. if test "${with_gnu_ld+set}" = set; then :
  10786. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10787. else
  10788. with_gnu_ld=no
  10789. fi
  10790. ac_prog=ld
  10791. if test "$GCC" = yes; then
  10792. # Check if gcc -print-prog-name=ld gives a path.
  10793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10794. $as_echo_n "checking for ld used by $CC... " >&6; }
  10795. case $host in
  10796. *-*-mingw*)
  10797. # gcc leaves a trailing carriage return which upsets mingw
  10798. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10799. *)
  10800. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10801. esac
  10802. case $ac_prog in
  10803. # Accept absolute paths.
  10804. [\\/]* | ?:[\\/]*)
  10805. re_direlt='/[^/][^/]*/\.\./'
  10806. # Canonicalize the pathname of ld
  10807. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10808. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10809. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10810. done
  10811. test -z "$LD" && LD="$ac_prog"
  10812. ;;
  10813. "")
  10814. # If it fails, then pretend we aren't using GCC.
  10815. ac_prog=ld
  10816. ;;
  10817. *)
  10818. # If it is relative, then search for the first ld in PATH.
  10819. with_gnu_ld=unknown
  10820. ;;
  10821. esac
  10822. elif test "$with_gnu_ld" = yes; then
  10823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10824. $as_echo_n "checking for GNU ld... " >&6; }
  10825. else
  10826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10827. $as_echo_n "checking for non-GNU ld... " >&6; }
  10828. fi
  10829. if ${lt_cv_path_LD+:} false; then :
  10830. $as_echo_n "(cached) " >&6
  10831. else
  10832. if test -z "$LD"; then
  10833. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10834. for ac_dir in $PATH; do
  10835. IFS="$lt_save_ifs"
  10836. test -z "$ac_dir" && ac_dir=.
  10837. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10838. lt_cv_path_LD="$ac_dir/$ac_prog"
  10839. # Check to see if the program is GNU ld. I'd rather use --version,
  10840. # but apparently some variants of GNU ld only accept -v.
  10841. # Break only if it was the GNU/non-GNU ld that we prefer.
  10842. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10843. *GNU* | *'with BFD'*)
  10844. test "$with_gnu_ld" != no && break
  10845. ;;
  10846. *)
  10847. test "$with_gnu_ld" != yes && break
  10848. ;;
  10849. esac
  10850. fi
  10851. done
  10852. IFS="$lt_save_ifs"
  10853. else
  10854. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10855. fi
  10856. fi
  10857. LD="$lt_cv_path_LD"
  10858. if test -n "$LD"; then
  10859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10860. $as_echo "$LD" >&6; }
  10861. else
  10862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10863. $as_echo "no" >&6; }
  10864. fi
  10865. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10867. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10868. if ${lt_cv_prog_gnu_ld+:} false; then :
  10869. $as_echo_n "(cached) " >&6
  10870. else
  10871. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10872. case `$LD -v 2>&1 </dev/null` in
  10873. *GNU* | *'with BFD'*)
  10874. lt_cv_prog_gnu_ld=yes
  10875. ;;
  10876. *)
  10877. lt_cv_prog_gnu_ld=no
  10878. ;;
  10879. esac
  10880. fi
  10881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10882. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10883. with_gnu_ld=$lt_cv_prog_gnu_ld
  10884. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10885. # archiving commands below assume that GNU ld is being used.
  10886. if test "$with_gnu_ld" = yes; then
  10887. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10888. 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'
  10889. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10890. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10891. # If archive_cmds runs LD, not CC, wlarc should be empty
  10892. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10893. # investigate it a little bit more. (MM)
  10894. wlarc='${wl}'
  10895. # ancient GNU ld didn't support --whole-archive et. al.
  10896. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10897. $GREP 'no-whole-archive' > /dev/null; then
  10898. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10899. else
  10900. whole_archive_flag_spec_CXX=
  10901. fi
  10902. else
  10903. with_gnu_ld=no
  10904. wlarc=
  10905. # A generic and very simple default shared library creation
  10906. # command for GNU C++ for the case where it uses the native
  10907. # linker, instead of GNU ld. If possible, this setting should
  10908. # overridden to take advantage of the native linker features on
  10909. # the platform it is being used on.
  10910. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10911. fi
  10912. # Commands to make compiler produce verbose output that lists
  10913. # what "hidden" libraries, object files and flags are used when
  10914. # linking a shared library.
  10915. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10916. else
  10917. GXX=no
  10918. with_gnu_ld=no
  10919. wlarc=
  10920. fi
  10921. # PORTME: fill in a description of your system's C++ link characteristics
  10922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10923. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10924. ld_shlibs_CXX=yes
  10925. case $host_os in
  10926. aix3*)
  10927. # FIXME: insert proper C++ library support
  10928. ld_shlibs_CXX=no
  10929. ;;
  10930. aix[4-9]*)
  10931. if test "$host_cpu" = ia64; then
  10932. # On IA64, the linker does run time linking by default, so we don't
  10933. # have to do anything special.
  10934. aix_use_runtimelinking=no
  10935. exp_sym_flag='-Bexport'
  10936. no_entry_flag=""
  10937. else
  10938. aix_use_runtimelinking=no
  10939. # Test if we are trying to use run time linking or normal
  10940. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10941. # need to do runtime linking.
  10942. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10943. for ld_flag in $LDFLAGS; do
  10944. case $ld_flag in
  10945. *-brtl*)
  10946. aix_use_runtimelinking=yes
  10947. break
  10948. ;;
  10949. esac
  10950. done
  10951. ;;
  10952. esac
  10953. exp_sym_flag='-bexport'
  10954. no_entry_flag='-bnoentry'
  10955. fi
  10956. # When large executables or shared objects are built, AIX ld can
  10957. # have problems creating the table of contents. If linking a library
  10958. # or program results in "error TOC overflow" add -mminimal-toc to
  10959. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10960. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10961. archive_cmds_CXX=''
  10962. hardcode_direct_CXX=yes
  10963. hardcode_direct_absolute_CXX=yes
  10964. hardcode_libdir_separator_CXX=':'
  10965. link_all_deplibs_CXX=yes
  10966. file_list_spec_CXX='${wl}-f,'
  10967. if test "$GXX" = yes; then
  10968. case $host_os in aix4.[012]|aix4.[012].*)
  10969. # We only want to do this on AIX 4.2 and lower, the check
  10970. # below for broken collect2 doesn't work under 4.3+
  10971. collect2name=`${CC} -print-prog-name=collect2`
  10972. if test -f "$collect2name" &&
  10973. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10974. then
  10975. # We have reworked collect2
  10976. :
  10977. else
  10978. # We have old collect2
  10979. hardcode_direct_CXX=unsupported
  10980. # It fails to find uninstalled libraries when the uninstalled
  10981. # path is not listed in the libpath. Setting hardcode_minus_L
  10982. # to unsupported forces relinking
  10983. hardcode_minus_L_CXX=yes
  10984. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10985. hardcode_libdir_separator_CXX=
  10986. fi
  10987. esac
  10988. shared_flag='-shared'
  10989. if test "$aix_use_runtimelinking" = yes; then
  10990. shared_flag="$shared_flag "'${wl}-G'
  10991. fi
  10992. else
  10993. # not using gcc
  10994. if test "$host_cpu" = ia64; then
  10995. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10996. # chokes on -Wl,-G. The following line is correct:
  10997. shared_flag='-G'
  10998. else
  10999. if test "$aix_use_runtimelinking" = yes; then
  11000. shared_flag='${wl}-G'
  11001. else
  11002. shared_flag='${wl}-bM:SRE'
  11003. fi
  11004. fi
  11005. fi
  11006. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11007. # It seems that -bexpall does not export symbols beginning with
  11008. # underscore (_), so it is better to generate a list of symbols to
  11009. # export.
  11010. always_export_symbols_CXX=yes
  11011. if test "$aix_use_runtimelinking" = yes; then
  11012. # Warning - without using the other runtime loading flags (-brtl),
  11013. # -berok will link without error, but may produce a broken library.
  11014. allow_undefined_flag_CXX='-berok'
  11015. # Determine the default libpath from the value encoded in an empty
  11016. # executable.
  11017. if test "${lt_cv_aix_libpath+set}" = set; then
  11018. aix_libpath=$lt_cv_aix_libpath
  11019. else
  11020. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11021. $as_echo_n "(cached) " >&6
  11022. else
  11023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11024. /* end confdefs.h. */
  11025. int
  11026. main ()
  11027. {
  11028. ;
  11029. return 0;
  11030. }
  11031. _ACEOF
  11032. if ac_fn_cxx_try_link "$LINENO"; then :
  11033. lt_aix_libpath_sed='
  11034. /Import File Strings/,/^$/ {
  11035. /^0/ {
  11036. s/^0 *\([^ ]*\) *$/\1/
  11037. p
  11038. }
  11039. }'
  11040. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11041. # Check for a 64-bit object if we didn't find anything.
  11042. if test -z "$lt_cv_aix_libpath__CXX"; then
  11043. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11044. fi
  11045. fi
  11046. rm -f core conftest.err conftest.$ac_objext \
  11047. conftest$ac_exeext conftest.$ac_ext
  11048. if test -z "$lt_cv_aix_libpath__CXX"; then
  11049. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11050. fi
  11051. fi
  11052. aix_libpath=$lt_cv_aix_libpath__CXX
  11053. fi
  11054. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11055. 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"
  11056. else
  11057. if test "$host_cpu" = ia64; then
  11058. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11059. allow_undefined_flag_CXX="-z nodefs"
  11060. 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"
  11061. else
  11062. # Determine the default libpath from the value encoded in an
  11063. # empty executable.
  11064. if test "${lt_cv_aix_libpath+set}" = set; then
  11065. aix_libpath=$lt_cv_aix_libpath
  11066. else
  11067. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11068. $as_echo_n "(cached) " >&6
  11069. else
  11070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11071. /* end confdefs.h. */
  11072. int
  11073. main ()
  11074. {
  11075. ;
  11076. return 0;
  11077. }
  11078. _ACEOF
  11079. if ac_fn_cxx_try_link "$LINENO"; then :
  11080. lt_aix_libpath_sed='
  11081. /Import File Strings/,/^$/ {
  11082. /^0/ {
  11083. s/^0 *\([^ ]*\) *$/\1/
  11084. p
  11085. }
  11086. }'
  11087. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11088. # Check for a 64-bit object if we didn't find anything.
  11089. if test -z "$lt_cv_aix_libpath__CXX"; then
  11090. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11091. fi
  11092. fi
  11093. rm -f core conftest.err conftest.$ac_objext \
  11094. conftest$ac_exeext conftest.$ac_ext
  11095. if test -z "$lt_cv_aix_libpath__CXX"; then
  11096. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11097. fi
  11098. fi
  11099. aix_libpath=$lt_cv_aix_libpath__CXX
  11100. fi
  11101. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11102. # Warning - without using the other run time loading flags,
  11103. # -berok will link without error, but may produce a broken library.
  11104. no_undefined_flag_CXX=' ${wl}-bernotok'
  11105. allow_undefined_flag_CXX=' ${wl}-berok'
  11106. if test "$with_gnu_ld" = yes; then
  11107. # We only use this code for GNU lds that support --whole-archive.
  11108. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11109. else
  11110. # Exported symbols can be pulled into shared objects from archives
  11111. whole_archive_flag_spec_CXX='$convenience'
  11112. fi
  11113. archive_cmds_need_lc_CXX=yes
  11114. # This is similar to how AIX traditionally builds its shared
  11115. # libraries.
  11116. 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'
  11117. fi
  11118. fi
  11119. ;;
  11120. beos*)
  11121. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11122. allow_undefined_flag_CXX=unsupported
  11123. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11124. # support --undefined. This deserves some investigation. FIXME
  11125. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11126. else
  11127. ld_shlibs_CXX=no
  11128. fi
  11129. ;;
  11130. chorus*)
  11131. case $cc_basename in
  11132. *)
  11133. # FIXME: insert proper C++ library support
  11134. ld_shlibs_CXX=no
  11135. ;;
  11136. esac
  11137. ;;
  11138. cygwin* | mingw* | pw32* | cegcc*)
  11139. case $GXX,$cc_basename in
  11140. ,cl* | no,cl*)
  11141. # Native MSVC
  11142. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11143. # no search path for DLLs.
  11144. hardcode_libdir_flag_spec_CXX=' '
  11145. allow_undefined_flag_CXX=unsupported
  11146. always_export_symbols_CXX=yes
  11147. file_list_spec_CXX='@'
  11148. # Tell ltmain to make .lib files, not .a files.
  11149. libext=lib
  11150. # Tell ltmain to make .dll files, not .so files.
  11151. shrext_cmds=".dll"
  11152. # FIXME: Setting linknames here is a bad hack.
  11153. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11154. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11155. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11156. else
  11157. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11158. fi~
  11159. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11160. linknames='
  11161. # The linker will not automatically build a static lib if we build a DLL.
  11162. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11163. enable_shared_with_static_runtimes_CXX=yes
  11164. # Don't use ranlib
  11165. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11166. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11167. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11168. case $lt_outputfile in
  11169. *.exe|*.EXE) ;;
  11170. *)
  11171. lt_outputfile="$lt_outputfile.exe"
  11172. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11173. ;;
  11174. esac~
  11175. func_to_tool_file "$lt_outputfile"~
  11176. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11177. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11178. $RM "$lt_outputfile.manifest";
  11179. fi'
  11180. ;;
  11181. *)
  11182. # g++
  11183. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11184. # as there is no search path for DLLs.
  11185. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11186. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11187. allow_undefined_flag_CXX=unsupported
  11188. always_export_symbols_CXX=no
  11189. enable_shared_with_static_runtimes_CXX=yes
  11190. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11191. 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'
  11192. # If the export-symbols file already is a .def file (1st line
  11193. # is EXPORTS), use it as is; otherwise, prepend...
  11194. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11195. cp $export_symbols $output_objdir/$soname.def;
  11196. else
  11197. echo EXPORTS > $output_objdir/$soname.def;
  11198. cat $export_symbols >> $output_objdir/$soname.def;
  11199. fi~
  11200. $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'
  11201. else
  11202. ld_shlibs_CXX=no
  11203. fi
  11204. ;;
  11205. esac
  11206. ;;
  11207. darwin* | rhapsody*)
  11208. archive_cmds_need_lc_CXX=no
  11209. hardcode_direct_CXX=no
  11210. hardcode_automatic_CXX=yes
  11211. hardcode_shlibpath_var_CXX=unsupported
  11212. if test "$lt_cv_ld_force_load" = "yes"; then
  11213. 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\"`'
  11214. else
  11215. whole_archive_flag_spec_CXX=''
  11216. fi
  11217. link_all_deplibs_CXX=yes
  11218. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11219. case $cc_basename in
  11220. ifort*) _lt_dar_can_shared=yes ;;
  11221. *) _lt_dar_can_shared=$GCC ;;
  11222. esac
  11223. if test "$_lt_dar_can_shared" = "yes"; then
  11224. output_verbose_link_cmd=func_echo_all
  11225. 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}"
  11226. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11227. 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}"
  11228. 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}"
  11229. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11230. 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}"
  11231. 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}"
  11232. fi
  11233. else
  11234. ld_shlibs_CXX=no
  11235. fi
  11236. ;;
  11237. dgux*)
  11238. case $cc_basename in
  11239. ec++*)
  11240. # FIXME: insert proper C++ library support
  11241. ld_shlibs_CXX=no
  11242. ;;
  11243. ghcx*)
  11244. # Green Hills C++ Compiler
  11245. # FIXME: insert proper C++ library support
  11246. ld_shlibs_CXX=no
  11247. ;;
  11248. *)
  11249. # FIXME: insert proper C++ library support
  11250. ld_shlibs_CXX=no
  11251. ;;
  11252. esac
  11253. ;;
  11254. freebsd2.*)
  11255. # C++ shared libraries reported to be fairly broken before
  11256. # switch to ELF
  11257. ld_shlibs_CXX=no
  11258. ;;
  11259. freebsd-elf*)
  11260. archive_cmds_need_lc_CXX=no
  11261. ;;
  11262. freebsd* | dragonfly*)
  11263. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11264. # conventions
  11265. ld_shlibs_CXX=yes
  11266. ;;
  11267. gnu*)
  11268. ;;
  11269. haiku*)
  11270. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11271. link_all_deplibs_CXX=yes
  11272. ;;
  11273. hpux9*)
  11274. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11275. hardcode_libdir_separator_CXX=:
  11276. export_dynamic_flag_spec_CXX='${wl}-E'
  11277. hardcode_direct_CXX=yes
  11278. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11279. # but as the default
  11280. # location of the library.
  11281. case $cc_basename in
  11282. CC*)
  11283. # FIXME: insert proper C++ library support
  11284. ld_shlibs_CXX=no
  11285. ;;
  11286. aCC*)
  11287. 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'
  11288. # Commands to make compiler produce verbose output that lists
  11289. # what "hidden" libraries, object files and flags are used when
  11290. # linking a shared library.
  11291. #
  11292. # There doesn't appear to be a way to prevent this compiler from
  11293. # explicitly linking system object files so we need to strip them
  11294. # from the output so that they don't get included in the library
  11295. # dependencies.
  11296. 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"'
  11297. ;;
  11298. *)
  11299. if test "$GXX" = yes; then
  11300. 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'
  11301. else
  11302. # FIXME: insert proper C++ library support
  11303. ld_shlibs_CXX=no
  11304. fi
  11305. ;;
  11306. esac
  11307. ;;
  11308. hpux10*|hpux11*)
  11309. if test $with_gnu_ld = no; then
  11310. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11311. hardcode_libdir_separator_CXX=:
  11312. case $host_cpu in
  11313. hppa*64*|ia64*)
  11314. ;;
  11315. *)
  11316. export_dynamic_flag_spec_CXX='${wl}-E'
  11317. ;;
  11318. esac
  11319. fi
  11320. case $host_cpu in
  11321. hppa*64*|ia64*)
  11322. hardcode_direct_CXX=no
  11323. hardcode_shlibpath_var_CXX=no
  11324. ;;
  11325. *)
  11326. hardcode_direct_CXX=yes
  11327. hardcode_direct_absolute_CXX=yes
  11328. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11329. # but as the default
  11330. # location of the library.
  11331. ;;
  11332. esac
  11333. case $cc_basename in
  11334. CC*)
  11335. # FIXME: insert proper C++ library support
  11336. ld_shlibs_CXX=no
  11337. ;;
  11338. aCC*)
  11339. case $host_cpu in
  11340. hppa*64*)
  11341. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11342. ;;
  11343. ia64*)
  11344. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11345. ;;
  11346. *)
  11347. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11348. ;;
  11349. esac
  11350. # Commands to make compiler produce verbose output that lists
  11351. # what "hidden" libraries, object files and flags are used when
  11352. # linking a shared library.
  11353. #
  11354. # There doesn't appear to be a way to prevent this compiler from
  11355. # explicitly linking system object files so we need to strip them
  11356. # from the output so that they don't get included in the library
  11357. # dependencies.
  11358. 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"'
  11359. ;;
  11360. *)
  11361. if test "$GXX" = yes; then
  11362. if test $with_gnu_ld = no; then
  11363. case $host_cpu in
  11364. hppa*64*)
  11365. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11366. ;;
  11367. ia64*)
  11368. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11369. ;;
  11370. *)
  11371. 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'
  11372. ;;
  11373. esac
  11374. fi
  11375. else
  11376. # FIXME: insert proper C++ library support
  11377. ld_shlibs_CXX=no
  11378. fi
  11379. ;;
  11380. esac
  11381. ;;
  11382. interix[3-9]*)
  11383. hardcode_direct_CXX=no
  11384. hardcode_shlibpath_var_CXX=no
  11385. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11386. export_dynamic_flag_spec_CXX='${wl}-E'
  11387. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11388. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11389. # default) and relocated if they conflict, which is a slow very memory
  11390. # consuming and fragmenting process. To avoid this, we pick a random,
  11391. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11392. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11393. 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'
  11394. 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'
  11395. ;;
  11396. irix5* | irix6*)
  11397. case $cc_basename in
  11398. CC*)
  11399. # SGI C++
  11400. 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'
  11401. # Archives containing C++ object files must be created using
  11402. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11403. # necessary to make sure instantiated templates are included
  11404. # in the archive.
  11405. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11406. ;;
  11407. *)
  11408. if test "$GXX" = yes; then
  11409. if test "$with_gnu_ld" = no; then
  11410. 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'
  11411. else
  11412. 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'
  11413. fi
  11414. fi
  11415. link_all_deplibs_CXX=yes
  11416. ;;
  11417. esac
  11418. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11419. hardcode_libdir_separator_CXX=:
  11420. inherit_rpath_CXX=yes
  11421. ;;
  11422. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11423. case $cc_basename in
  11424. KCC*)
  11425. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11426. # KCC will only create a shared library if the output file
  11427. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11428. # to its proper name (with version) after linking.
  11429. 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'
  11430. 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'
  11431. # Commands to make compiler produce verbose output that lists
  11432. # what "hidden" libraries, object files and flags are used when
  11433. # linking a shared library.
  11434. #
  11435. # There doesn't appear to be a way to prevent this compiler from
  11436. # explicitly linking system object files so we need to strip them
  11437. # from the output so that they don't get included in the library
  11438. # dependencies.
  11439. 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"'
  11440. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11441. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11442. # Archives containing C++ object files must be created using
  11443. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11444. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11445. ;;
  11446. icpc* | ecpc* )
  11447. # Intel C++
  11448. with_gnu_ld=yes
  11449. # version 8.0 and above of icpc choke on multiply defined symbols
  11450. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11451. # earlier do not add the objects themselves.
  11452. case `$CC -V 2>&1` in
  11453. *"Version 7."*)
  11454. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11455. 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'
  11456. ;;
  11457. *) # Version 8.0 or newer
  11458. tmp_idyn=
  11459. case $host_cpu in
  11460. ia64*) tmp_idyn=' -i_dynamic';;
  11461. esac
  11462. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11463. 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'
  11464. ;;
  11465. esac
  11466. archive_cmds_need_lc_CXX=no
  11467. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11468. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11469. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11470. ;;
  11471. pgCC* | pgcpp*)
  11472. # Portland Group C++ compiler
  11473. case `$CC -V` in
  11474. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11475. prelink_cmds_CXX='tpldir=Template.dir~
  11476. rm -rf $tpldir~
  11477. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11478. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11479. old_archive_cmds_CXX='tpldir=Template.dir~
  11480. rm -rf $tpldir~
  11481. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11482. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11483. $RANLIB $oldlib'
  11484. archive_cmds_CXX='tpldir=Template.dir~
  11485. rm -rf $tpldir~
  11486. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11487. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11488. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11489. rm -rf $tpldir~
  11490. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11491. $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'
  11492. ;;
  11493. *) # Version 6 and above use weak symbols
  11494. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11495. 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'
  11496. ;;
  11497. esac
  11498. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11499. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11500. 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'
  11501. ;;
  11502. cxx*)
  11503. # Compaq C++
  11504. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11505. 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'
  11506. runpath_var=LD_RUN_PATH
  11507. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11508. hardcode_libdir_separator_CXX=:
  11509. # Commands to make compiler produce verbose output that lists
  11510. # what "hidden" libraries, object files and flags are used when
  11511. # linking a shared library.
  11512. #
  11513. # There doesn't appear to be a way to prevent this compiler from
  11514. # explicitly linking system object files so we need to strip them
  11515. # from the output so that they don't get included in the library
  11516. # dependencies.
  11517. 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'
  11518. ;;
  11519. xl* | mpixl* | bgxl*)
  11520. # IBM XL 8.0 on PPC, with GNU ld
  11521. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11522. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11523. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11524. if test "x$supports_anon_versioning" = xyes; then
  11525. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11526. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11527. echo "local: *; };" >> $output_objdir/$libname.ver~
  11528. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11529. fi
  11530. ;;
  11531. *)
  11532. case `$CC -V 2>&1 | sed 5q` in
  11533. *Sun\ C*)
  11534. # Sun C++ 5.9
  11535. no_undefined_flag_CXX=' -zdefs'
  11536. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11537. 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'
  11538. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11539. 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'
  11540. compiler_needs_object_CXX=yes
  11541. # Not sure whether something based on
  11542. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11543. # would be better.
  11544. output_verbose_link_cmd='func_echo_all'
  11545. # Archives containing C++ object files must be created using
  11546. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11547. # necessary to make sure instantiated templates are included
  11548. # in the archive.
  11549. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11550. ;;
  11551. esac
  11552. ;;
  11553. esac
  11554. ;;
  11555. lynxos*)
  11556. # FIXME: insert proper C++ library support
  11557. ld_shlibs_CXX=no
  11558. ;;
  11559. m88k*)
  11560. # FIXME: insert proper C++ library support
  11561. ld_shlibs_CXX=no
  11562. ;;
  11563. mvs*)
  11564. case $cc_basename in
  11565. cxx*)
  11566. # FIXME: insert proper C++ library support
  11567. ld_shlibs_CXX=no
  11568. ;;
  11569. *)
  11570. # FIXME: insert proper C++ library support
  11571. ld_shlibs_CXX=no
  11572. ;;
  11573. esac
  11574. ;;
  11575. netbsd*)
  11576. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11577. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11578. wlarc=
  11579. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11580. hardcode_direct_CXX=yes
  11581. hardcode_shlibpath_var_CXX=no
  11582. fi
  11583. # Workaround some broken pre-1.5 toolchains
  11584. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11585. ;;
  11586. *nto* | *qnx*)
  11587. ld_shlibs_CXX=yes
  11588. ;;
  11589. openbsd2*)
  11590. # C++ shared libraries are fairly broken
  11591. ld_shlibs_CXX=no
  11592. ;;
  11593. openbsd*)
  11594. if test -f /usr/libexec/ld.so; then
  11595. hardcode_direct_CXX=yes
  11596. hardcode_shlibpath_var_CXX=no
  11597. hardcode_direct_absolute_CXX=yes
  11598. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11599. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11600. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11601. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11602. export_dynamic_flag_spec_CXX='${wl}-E'
  11603. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11604. fi
  11605. output_verbose_link_cmd=func_echo_all
  11606. else
  11607. ld_shlibs_CXX=no
  11608. fi
  11609. ;;
  11610. osf3* | osf4* | osf5*)
  11611. case $cc_basename in
  11612. KCC*)
  11613. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11614. # KCC will only create a shared library if the output file
  11615. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11616. # to its proper name (with version) after linking.
  11617. 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'
  11618. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11619. hardcode_libdir_separator_CXX=:
  11620. # Archives containing C++ object files must be created using
  11621. # the KAI C++ compiler.
  11622. case $host in
  11623. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11624. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11625. esac
  11626. ;;
  11627. RCC*)
  11628. # Rational C++ 2.4.1
  11629. # FIXME: insert proper C++ library support
  11630. ld_shlibs_CXX=no
  11631. ;;
  11632. cxx*)
  11633. case $host in
  11634. osf3*)
  11635. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11636. 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'
  11637. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11638. ;;
  11639. *)
  11640. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11641. 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'
  11642. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11643. echo "-hidden">> $lib.exp~
  11644. $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~
  11645. $RM $lib.exp'
  11646. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11647. ;;
  11648. esac
  11649. hardcode_libdir_separator_CXX=:
  11650. # Commands to make compiler produce verbose output that lists
  11651. # what "hidden" libraries, object files and flags are used when
  11652. # linking a shared library.
  11653. #
  11654. # There doesn't appear to be a way to prevent this compiler from
  11655. # explicitly linking system object files so we need to strip them
  11656. # from the output so that they don't get included in the library
  11657. # dependencies.
  11658. 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"'
  11659. ;;
  11660. *)
  11661. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11662. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11663. case $host in
  11664. osf3*)
  11665. 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'
  11666. ;;
  11667. *)
  11668. 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'
  11669. ;;
  11670. esac
  11671. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11672. hardcode_libdir_separator_CXX=:
  11673. # Commands to make compiler produce verbose output that lists
  11674. # what "hidden" libraries, object files and flags are used when
  11675. # linking a shared library.
  11676. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11677. else
  11678. # FIXME: insert proper C++ library support
  11679. ld_shlibs_CXX=no
  11680. fi
  11681. ;;
  11682. esac
  11683. ;;
  11684. psos*)
  11685. # FIXME: insert proper C++ library support
  11686. ld_shlibs_CXX=no
  11687. ;;
  11688. sunos4*)
  11689. case $cc_basename in
  11690. CC*)
  11691. # Sun C++ 4.x
  11692. # FIXME: insert proper C++ library support
  11693. ld_shlibs_CXX=no
  11694. ;;
  11695. lcc*)
  11696. # Lucid
  11697. # FIXME: insert proper C++ library support
  11698. ld_shlibs_CXX=no
  11699. ;;
  11700. *)
  11701. # FIXME: insert proper C++ library support
  11702. ld_shlibs_CXX=no
  11703. ;;
  11704. esac
  11705. ;;
  11706. solaris*)
  11707. case $cc_basename in
  11708. CC* | sunCC*)
  11709. # Sun C++ 4.2, 5.x and Centerline C++
  11710. archive_cmds_need_lc_CXX=yes
  11711. no_undefined_flag_CXX=' -zdefs'
  11712. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11713. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11714. $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'
  11715. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11716. hardcode_shlibpath_var_CXX=no
  11717. case $host_os in
  11718. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11719. *)
  11720. # The compiler driver will combine and reorder linker options,
  11721. # but understands `-z linker_flag'.
  11722. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11723. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11724. ;;
  11725. esac
  11726. link_all_deplibs_CXX=yes
  11727. output_verbose_link_cmd='func_echo_all'
  11728. # Archives containing C++ object files must be created using
  11729. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11730. # necessary to make sure instantiated templates are included
  11731. # in the archive.
  11732. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11733. ;;
  11734. gcx*)
  11735. # Green Hills C++ Compiler
  11736. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11737. # The C++ compiler must be used to create the archive.
  11738. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11739. ;;
  11740. *)
  11741. # GNU C++ compiler with Solaris linker
  11742. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11743. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11744. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11745. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11746. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11747. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11748. # Commands to make compiler produce verbose output that lists
  11749. # what "hidden" libraries, object files and flags are used when
  11750. # linking a shared library.
  11751. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11752. else
  11753. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11754. # platform.
  11755. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11756. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11757. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11758. # Commands to make compiler produce verbose output that lists
  11759. # what "hidden" libraries, object files and flags are used when
  11760. # linking a shared library.
  11761. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11762. fi
  11763. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11764. case $host_os in
  11765. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11766. *)
  11767. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11768. ;;
  11769. esac
  11770. fi
  11771. ;;
  11772. esac
  11773. ;;
  11774. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11775. no_undefined_flag_CXX='${wl}-z,text'
  11776. archive_cmds_need_lc_CXX=no
  11777. hardcode_shlibpath_var_CXX=no
  11778. runpath_var='LD_RUN_PATH'
  11779. case $cc_basename in
  11780. CC*)
  11781. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11782. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  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. sysv5* | sco3.2v5* | sco5v6*)
  11791. # Note: We can NOT use -z defs as we might desire, because we do not
  11792. # link with -lc, and that would cause any symbols used from libc to
  11793. # always be unresolved, which means just about no library would
  11794. # ever link correctly. If we're not using GNU ld we use -z text
  11795. # though, which does catch some bad symbols but isn't as heavy-handed
  11796. # as -z defs.
  11797. no_undefined_flag_CXX='${wl}-z,text'
  11798. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11799. archive_cmds_need_lc_CXX=no
  11800. hardcode_shlibpath_var_CXX=no
  11801. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11802. hardcode_libdir_separator_CXX=':'
  11803. link_all_deplibs_CXX=yes
  11804. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11805. runpath_var='LD_RUN_PATH'
  11806. case $cc_basename in
  11807. CC*)
  11808. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11809. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11810. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11811. '"$old_archive_cmds_CXX"
  11812. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11813. '"$reload_cmds_CXX"
  11814. ;;
  11815. *)
  11816. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11817. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11818. ;;
  11819. esac
  11820. ;;
  11821. tandem*)
  11822. case $cc_basename in
  11823. NCC*)
  11824. # NonStop-UX NCC 3.20
  11825. # FIXME: insert proper C++ library support
  11826. ld_shlibs_CXX=no
  11827. ;;
  11828. *)
  11829. # FIXME: insert proper C++ library support
  11830. ld_shlibs_CXX=no
  11831. ;;
  11832. esac
  11833. ;;
  11834. vxworks*)
  11835. # FIXME: insert proper C++ library support
  11836. ld_shlibs_CXX=no
  11837. ;;
  11838. *)
  11839. # FIXME: insert proper C++ library support
  11840. ld_shlibs_CXX=no
  11841. ;;
  11842. esac
  11843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11844. $as_echo "$ld_shlibs_CXX" >&6; }
  11845. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11846. GCC_CXX="$GXX"
  11847. LD_CXX="$LD"
  11848. ## CAVEAT EMPTOR:
  11849. ## There is no encapsulation within the following macros, do not change
  11850. ## the running order or otherwise move them around unless you know exactly
  11851. ## what you are doing...
  11852. # Dependencies to place before and after the object being linked:
  11853. predep_objects_CXX=
  11854. postdep_objects_CXX=
  11855. predeps_CXX=
  11856. postdeps_CXX=
  11857. compiler_lib_search_path_CXX=
  11858. cat > conftest.$ac_ext <<_LT_EOF
  11859. class Foo
  11860. {
  11861. public:
  11862. Foo (void) { a = 0; }
  11863. private:
  11864. int a;
  11865. };
  11866. _LT_EOF
  11867. _lt_libdeps_save_CFLAGS=$CFLAGS
  11868. case "$CC $CFLAGS " in #(
  11869. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11870. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11871. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11872. esac
  11873. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11874. (eval $ac_compile) 2>&5
  11875. ac_status=$?
  11876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11877. test $ac_status = 0; }; then
  11878. # Parse the compiler output and extract the necessary
  11879. # objects, libraries and library flags.
  11880. # Sentinel used to keep track of whether or not we are before
  11881. # the conftest object file.
  11882. pre_test_object_deps_done=no
  11883. for p in `eval "$output_verbose_link_cmd"`; do
  11884. case ${prev}${p} in
  11885. -L* | -R* | -l*)
  11886. # Some compilers place space between "-{L,R}" and the path.
  11887. # Remove the space.
  11888. if test $p = "-L" ||
  11889. test $p = "-R"; then
  11890. prev=$p
  11891. continue
  11892. fi
  11893. # Expand the sysroot to ease extracting the directories later.
  11894. if test -z "$prev"; then
  11895. case $p in
  11896. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11897. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11898. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11899. esac
  11900. fi
  11901. case $p in
  11902. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11903. esac
  11904. if test "$pre_test_object_deps_done" = no; then
  11905. case ${prev} in
  11906. -L | -R)
  11907. # Internal compiler library paths should come after those
  11908. # provided the user. The postdeps already come after the
  11909. # user supplied libs so there is no need to process them.
  11910. if test -z "$compiler_lib_search_path_CXX"; then
  11911. compiler_lib_search_path_CXX="${prev}${p}"
  11912. else
  11913. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11914. fi
  11915. ;;
  11916. # The "-l" case would never come before the object being
  11917. # linked, so don't bother handling this case.
  11918. esac
  11919. else
  11920. if test -z "$postdeps_CXX"; then
  11921. postdeps_CXX="${prev}${p}"
  11922. else
  11923. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11924. fi
  11925. fi
  11926. prev=
  11927. ;;
  11928. *.lto.$objext) ;; # Ignore GCC LTO objects
  11929. *.$objext)
  11930. # This assumes that the test object file only shows up
  11931. # once in the compiler output.
  11932. if test "$p" = "conftest.$objext"; then
  11933. pre_test_object_deps_done=yes
  11934. continue
  11935. fi
  11936. if test "$pre_test_object_deps_done" = no; then
  11937. if test -z "$predep_objects_CXX"; then
  11938. predep_objects_CXX="$p"
  11939. else
  11940. predep_objects_CXX="$predep_objects_CXX $p"
  11941. fi
  11942. else
  11943. if test -z "$postdep_objects_CXX"; then
  11944. postdep_objects_CXX="$p"
  11945. else
  11946. postdep_objects_CXX="$postdep_objects_CXX $p"
  11947. fi
  11948. fi
  11949. ;;
  11950. *) ;; # Ignore the rest.
  11951. esac
  11952. done
  11953. # Clean up.
  11954. rm -f a.out a.exe
  11955. else
  11956. echo "libtool.m4: error: problem compiling CXX test program"
  11957. fi
  11958. $RM -f confest.$objext
  11959. CFLAGS=$_lt_libdeps_save_CFLAGS
  11960. # PORTME: override above test on systems where it is broken
  11961. case $host_os in
  11962. interix[3-9]*)
  11963. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11964. # hack all around it, let's just trust "g++" to DTRT.
  11965. predep_objects_CXX=
  11966. postdep_objects_CXX=
  11967. postdeps_CXX=
  11968. ;;
  11969. linux*)
  11970. case `$CC -V 2>&1 | sed 5q` in
  11971. *Sun\ C*)
  11972. # Sun C++ 5.9
  11973. # The more standards-conforming stlport4 library is
  11974. # incompatible with the Cstd library. Avoid specifying
  11975. # it if it's in CXXFLAGS. Ignore libCrun as
  11976. # -library=stlport4 depends on it.
  11977. case " $CXX $CXXFLAGS " in
  11978. *" -library=stlport4 "*)
  11979. solaris_use_stlport4=yes
  11980. ;;
  11981. esac
  11982. if test "$solaris_use_stlport4" != yes; then
  11983. postdeps_CXX='-library=Cstd -library=Crun'
  11984. fi
  11985. ;;
  11986. esac
  11987. ;;
  11988. solaris*)
  11989. case $cc_basename in
  11990. CC* | sunCC*)
  11991. # The more standards-conforming stlport4 library is
  11992. # incompatible with the Cstd library. Avoid specifying
  11993. # it if it's in CXXFLAGS. Ignore libCrun as
  11994. # -library=stlport4 depends on it.
  11995. case " $CXX $CXXFLAGS " in
  11996. *" -library=stlport4 "*)
  11997. solaris_use_stlport4=yes
  11998. ;;
  11999. esac
  12000. # Adding this requires a known-good setup of shared libraries for
  12001. # Sun compiler versions before 5.6, else PIC objects from an old
  12002. # archive will be linked into the output, leading to subtle bugs.
  12003. if test "$solaris_use_stlport4" != yes; then
  12004. postdeps_CXX='-library=Cstd -library=Crun'
  12005. fi
  12006. ;;
  12007. esac
  12008. ;;
  12009. esac
  12010. case " $postdeps_CXX " in
  12011. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12012. esac
  12013. compiler_lib_search_dirs_CXX=
  12014. if test -n "${compiler_lib_search_path_CXX}"; then
  12015. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12016. fi
  12017. lt_prog_compiler_wl_CXX=
  12018. lt_prog_compiler_pic_CXX=
  12019. lt_prog_compiler_static_CXX=
  12020. # C++ specific cases for pic, static, wl, etc.
  12021. if test "$GXX" = yes; then
  12022. lt_prog_compiler_wl_CXX='-Wl,'
  12023. lt_prog_compiler_static_CXX='-static'
  12024. case $host_os in
  12025. aix*)
  12026. # All AIX code is PIC.
  12027. if test "$host_cpu" = ia64; then
  12028. # AIX 5 now supports IA64 processor
  12029. lt_prog_compiler_static_CXX='-Bstatic'
  12030. fi
  12031. ;;
  12032. amigaos*)
  12033. case $host_cpu in
  12034. powerpc)
  12035. # see comment about AmigaOS4 .so support
  12036. lt_prog_compiler_pic_CXX='-fPIC'
  12037. ;;
  12038. m68k)
  12039. # FIXME: we need at least 68020 code to build shared libraries, but
  12040. # adding the `-m68020' flag to GCC prevents building anything better,
  12041. # like `-m68040'.
  12042. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12043. ;;
  12044. esac
  12045. ;;
  12046. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12047. # PIC is the default for these OSes.
  12048. ;;
  12049. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12050. # This hack is so that the source file can tell whether it is being
  12051. # built for inclusion in a dll (and should export symbols for example).
  12052. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12053. # (--disable-auto-import) libraries
  12054. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12055. ;;
  12056. darwin* | rhapsody*)
  12057. # PIC is the default on this platform
  12058. # Common symbols not allowed in MH_DYLIB files
  12059. lt_prog_compiler_pic_CXX='-fno-common'
  12060. ;;
  12061. *djgpp*)
  12062. # DJGPP does not support shared libraries at all
  12063. lt_prog_compiler_pic_CXX=
  12064. ;;
  12065. haiku*)
  12066. # PIC is the default for Haiku.
  12067. # The "-static" flag exists, but is broken.
  12068. lt_prog_compiler_static_CXX=
  12069. ;;
  12070. interix[3-9]*)
  12071. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12072. # Instead, we relocate shared libraries at runtime.
  12073. ;;
  12074. sysv4*MP*)
  12075. if test -d /usr/nec; then
  12076. lt_prog_compiler_pic_CXX=-Kconform_pic
  12077. fi
  12078. ;;
  12079. hpux*)
  12080. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12081. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12082. # sets the default TLS model and affects inlining.
  12083. case $host_cpu in
  12084. hppa*64*)
  12085. ;;
  12086. *)
  12087. lt_prog_compiler_pic_CXX='-fPIC'
  12088. ;;
  12089. esac
  12090. ;;
  12091. *qnx* | *nto*)
  12092. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12093. # it will coredump.
  12094. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12095. ;;
  12096. *)
  12097. lt_prog_compiler_pic_CXX='-fPIC'
  12098. ;;
  12099. esac
  12100. else
  12101. case $host_os in
  12102. aix[4-9]*)
  12103. # All AIX code is PIC.
  12104. if test "$host_cpu" = ia64; then
  12105. # AIX 5 now supports IA64 processor
  12106. lt_prog_compiler_static_CXX='-Bstatic'
  12107. else
  12108. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12109. fi
  12110. ;;
  12111. chorus*)
  12112. case $cc_basename in
  12113. cxch68*)
  12114. # Green Hills C++ Compiler
  12115. # _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"
  12116. ;;
  12117. esac
  12118. ;;
  12119. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12120. # This hack is so that the source file can tell whether it is being
  12121. # built for inclusion in a dll (and should export symbols for example).
  12122. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12123. ;;
  12124. dgux*)
  12125. case $cc_basename in
  12126. ec++*)
  12127. lt_prog_compiler_pic_CXX='-KPIC'
  12128. ;;
  12129. ghcx*)
  12130. # Green Hills C++ Compiler
  12131. lt_prog_compiler_pic_CXX='-pic'
  12132. ;;
  12133. *)
  12134. ;;
  12135. esac
  12136. ;;
  12137. freebsd* | dragonfly*)
  12138. # FreeBSD uses GNU C++
  12139. ;;
  12140. hpux9* | hpux10* | hpux11*)
  12141. case $cc_basename in
  12142. CC*)
  12143. lt_prog_compiler_wl_CXX='-Wl,'
  12144. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12145. if test "$host_cpu" != ia64; then
  12146. lt_prog_compiler_pic_CXX='+Z'
  12147. fi
  12148. ;;
  12149. aCC*)
  12150. lt_prog_compiler_wl_CXX='-Wl,'
  12151. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12152. case $host_cpu in
  12153. hppa*64*|ia64*)
  12154. # +Z the default
  12155. ;;
  12156. *)
  12157. lt_prog_compiler_pic_CXX='+Z'
  12158. ;;
  12159. esac
  12160. ;;
  12161. *)
  12162. ;;
  12163. esac
  12164. ;;
  12165. interix*)
  12166. # This is c89, which is MS Visual C++ (no shared libs)
  12167. # Anyone wants to do a port?
  12168. ;;
  12169. irix5* | irix6* | nonstopux*)
  12170. case $cc_basename in
  12171. CC*)
  12172. lt_prog_compiler_wl_CXX='-Wl,'
  12173. lt_prog_compiler_static_CXX='-non_shared'
  12174. # CC pic flag -KPIC is the default.
  12175. ;;
  12176. *)
  12177. ;;
  12178. esac
  12179. ;;
  12180. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12181. case $cc_basename in
  12182. KCC*)
  12183. # KAI C++ Compiler
  12184. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12185. lt_prog_compiler_pic_CXX='-fPIC'
  12186. ;;
  12187. ecpc* )
  12188. # old Intel C++ for x86_64 which still supported -KPIC.
  12189. lt_prog_compiler_wl_CXX='-Wl,'
  12190. lt_prog_compiler_pic_CXX='-KPIC'
  12191. lt_prog_compiler_static_CXX='-static'
  12192. ;;
  12193. icpc* )
  12194. # Intel C++, used to be incompatible with GCC.
  12195. # ICC 10 doesn't accept -KPIC any more.
  12196. lt_prog_compiler_wl_CXX='-Wl,'
  12197. lt_prog_compiler_pic_CXX='-fPIC'
  12198. lt_prog_compiler_static_CXX='-static'
  12199. ;;
  12200. pgCC* | pgcpp*)
  12201. # Portland Group C++ compiler
  12202. lt_prog_compiler_wl_CXX='-Wl,'
  12203. lt_prog_compiler_pic_CXX='-fpic'
  12204. lt_prog_compiler_static_CXX='-Bstatic'
  12205. ;;
  12206. cxx*)
  12207. # Compaq C++
  12208. # Make sure the PIC flag is empty. It appears that all Alpha
  12209. # Linux and Compaq Tru64 Unix objects are PIC.
  12210. lt_prog_compiler_pic_CXX=
  12211. lt_prog_compiler_static_CXX='-non_shared'
  12212. ;;
  12213. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12214. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12215. lt_prog_compiler_wl_CXX='-Wl,'
  12216. lt_prog_compiler_pic_CXX='-qpic'
  12217. lt_prog_compiler_static_CXX='-qstaticlink'
  12218. ;;
  12219. *)
  12220. case `$CC -V 2>&1 | sed 5q` in
  12221. *Sun\ C*)
  12222. # Sun C++ 5.9
  12223. lt_prog_compiler_pic_CXX='-KPIC'
  12224. lt_prog_compiler_static_CXX='-Bstatic'
  12225. lt_prog_compiler_wl_CXX='-Qoption ld '
  12226. ;;
  12227. esac
  12228. ;;
  12229. esac
  12230. ;;
  12231. lynxos*)
  12232. ;;
  12233. m88k*)
  12234. ;;
  12235. mvs*)
  12236. case $cc_basename in
  12237. cxx*)
  12238. lt_prog_compiler_pic_CXX='-W c,exportall'
  12239. ;;
  12240. *)
  12241. ;;
  12242. esac
  12243. ;;
  12244. netbsd*)
  12245. ;;
  12246. *qnx* | *nto*)
  12247. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12248. # it will coredump.
  12249. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12250. ;;
  12251. osf3* | osf4* | osf5*)
  12252. case $cc_basename in
  12253. KCC*)
  12254. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12255. ;;
  12256. RCC*)
  12257. # Rational C++ 2.4.1
  12258. lt_prog_compiler_pic_CXX='-pic'
  12259. ;;
  12260. cxx*)
  12261. # Digital/Compaq C++
  12262. lt_prog_compiler_wl_CXX='-Wl,'
  12263. # Make sure the PIC flag is empty. It appears that all Alpha
  12264. # Linux and Compaq Tru64 Unix objects are PIC.
  12265. lt_prog_compiler_pic_CXX=
  12266. lt_prog_compiler_static_CXX='-non_shared'
  12267. ;;
  12268. *)
  12269. ;;
  12270. esac
  12271. ;;
  12272. psos*)
  12273. ;;
  12274. solaris*)
  12275. case $cc_basename in
  12276. CC* | sunCC*)
  12277. # Sun C++ 4.2, 5.x and Centerline C++
  12278. lt_prog_compiler_pic_CXX='-KPIC'
  12279. lt_prog_compiler_static_CXX='-Bstatic'
  12280. lt_prog_compiler_wl_CXX='-Qoption ld '
  12281. ;;
  12282. gcx*)
  12283. # Green Hills C++ Compiler
  12284. lt_prog_compiler_pic_CXX='-PIC'
  12285. ;;
  12286. *)
  12287. ;;
  12288. esac
  12289. ;;
  12290. sunos4*)
  12291. case $cc_basename in
  12292. CC*)
  12293. # Sun C++ 4.x
  12294. lt_prog_compiler_pic_CXX='-pic'
  12295. lt_prog_compiler_static_CXX='-Bstatic'
  12296. ;;
  12297. lcc*)
  12298. # Lucid
  12299. lt_prog_compiler_pic_CXX='-pic'
  12300. ;;
  12301. *)
  12302. ;;
  12303. esac
  12304. ;;
  12305. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12306. case $cc_basename in
  12307. CC*)
  12308. lt_prog_compiler_wl_CXX='-Wl,'
  12309. lt_prog_compiler_pic_CXX='-KPIC'
  12310. lt_prog_compiler_static_CXX='-Bstatic'
  12311. ;;
  12312. esac
  12313. ;;
  12314. tandem*)
  12315. case $cc_basename in
  12316. NCC*)
  12317. # NonStop-UX NCC 3.20
  12318. lt_prog_compiler_pic_CXX='-KPIC'
  12319. ;;
  12320. *)
  12321. ;;
  12322. esac
  12323. ;;
  12324. vxworks*)
  12325. ;;
  12326. *)
  12327. lt_prog_compiler_can_build_shared_CXX=no
  12328. ;;
  12329. esac
  12330. fi
  12331. case $host_os in
  12332. # For platforms which do not support PIC, -DPIC is meaningless:
  12333. *djgpp*)
  12334. lt_prog_compiler_pic_CXX=
  12335. ;;
  12336. *)
  12337. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12338. ;;
  12339. esac
  12340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12341. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12342. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12343. $as_echo_n "(cached) " >&6
  12344. else
  12345. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12346. fi
  12347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12348. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12349. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12350. #
  12351. # Check to make sure the PIC flag actually works.
  12352. #
  12353. if test -n "$lt_prog_compiler_pic_CXX"; then
  12354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12355. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12356. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12357. $as_echo_n "(cached) " >&6
  12358. else
  12359. lt_cv_prog_compiler_pic_works_CXX=no
  12360. ac_outfile=conftest.$ac_objext
  12361. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12362. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12363. # Insert the option either (1) after the last *FLAGS variable, or
  12364. # (2) before a word containing "conftest.", or (3) at the end.
  12365. # Note that $ac_compile itself does not contain backslashes and begins
  12366. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12367. # The option is referenced via a variable to avoid confusing sed.
  12368. lt_compile=`echo "$ac_compile" | $SED \
  12369. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12370. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12371. -e 's:$: $lt_compiler_flag:'`
  12372. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12373. (eval "$lt_compile" 2>conftest.err)
  12374. ac_status=$?
  12375. cat conftest.err >&5
  12376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12377. if (exit $ac_status) && test -s "$ac_outfile"; then
  12378. # The compiler can only warn and ignore the option if not recognized
  12379. # So say no if there are warnings other than the usual output.
  12380. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12381. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12382. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12383. lt_cv_prog_compiler_pic_works_CXX=yes
  12384. fi
  12385. fi
  12386. $RM conftest*
  12387. fi
  12388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12389. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12390. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12391. case $lt_prog_compiler_pic_CXX in
  12392. "" | " "*) ;;
  12393. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12394. esac
  12395. else
  12396. lt_prog_compiler_pic_CXX=
  12397. lt_prog_compiler_can_build_shared_CXX=no
  12398. fi
  12399. fi
  12400. #
  12401. # Check to make sure the static flag actually works.
  12402. #
  12403. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12405. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12406. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12407. $as_echo_n "(cached) " >&6
  12408. else
  12409. lt_cv_prog_compiler_static_works_CXX=no
  12410. save_LDFLAGS="$LDFLAGS"
  12411. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12412. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12413. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12414. # The linker can only warn and ignore the option if not recognized
  12415. # So say no if there are warnings
  12416. if test -s conftest.err; then
  12417. # Append any errors to the config.log.
  12418. cat conftest.err 1>&5
  12419. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12420. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12421. if diff conftest.exp conftest.er2 >/dev/null; then
  12422. lt_cv_prog_compiler_static_works_CXX=yes
  12423. fi
  12424. else
  12425. lt_cv_prog_compiler_static_works_CXX=yes
  12426. fi
  12427. fi
  12428. $RM -r conftest*
  12429. LDFLAGS="$save_LDFLAGS"
  12430. fi
  12431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12432. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12433. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12434. :
  12435. else
  12436. lt_prog_compiler_static_CXX=
  12437. fi
  12438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12439. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12440. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12441. $as_echo_n "(cached) " >&6
  12442. else
  12443. lt_cv_prog_compiler_c_o_CXX=no
  12444. $RM -r conftest 2>/dev/null
  12445. mkdir conftest
  12446. cd conftest
  12447. mkdir out
  12448. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12449. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12450. # Insert the option either (1) after the last *FLAGS variable, or
  12451. # (2) before a word containing "conftest.", or (3) at the end.
  12452. # Note that $ac_compile itself does not contain backslashes and begins
  12453. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12454. lt_compile=`echo "$ac_compile" | $SED \
  12455. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12456. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12457. -e 's:$: $lt_compiler_flag:'`
  12458. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12459. (eval "$lt_compile" 2>out/conftest.err)
  12460. ac_status=$?
  12461. cat out/conftest.err >&5
  12462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12463. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12464. then
  12465. # The compiler can only warn and ignore the option if not recognized
  12466. # So say no if there are warnings
  12467. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12468. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12469. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12470. lt_cv_prog_compiler_c_o_CXX=yes
  12471. fi
  12472. fi
  12473. chmod u+w . 2>&5
  12474. $RM conftest*
  12475. # SGI C++ compiler will create directory out/ii_files/ for
  12476. # template instantiation
  12477. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12478. $RM out/* && rmdir out
  12479. cd ..
  12480. $RM -r conftest
  12481. $RM conftest*
  12482. fi
  12483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12484. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12486. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12487. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12488. $as_echo_n "(cached) " >&6
  12489. else
  12490. lt_cv_prog_compiler_c_o_CXX=no
  12491. $RM -r conftest 2>/dev/null
  12492. mkdir conftest
  12493. cd conftest
  12494. mkdir out
  12495. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12496. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12497. # Insert the option either (1) after the last *FLAGS variable, or
  12498. # (2) before a word containing "conftest.", or (3) at the end.
  12499. # Note that $ac_compile itself does not contain backslashes and begins
  12500. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12501. lt_compile=`echo "$ac_compile" | $SED \
  12502. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12503. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12504. -e 's:$: $lt_compiler_flag:'`
  12505. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12506. (eval "$lt_compile" 2>out/conftest.err)
  12507. ac_status=$?
  12508. cat out/conftest.err >&5
  12509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12510. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12511. then
  12512. # The compiler can only warn and ignore the option if not recognized
  12513. # So say no if there are warnings
  12514. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12515. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12516. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12517. lt_cv_prog_compiler_c_o_CXX=yes
  12518. fi
  12519. fi
  12520. chmod u+w . 2>&5
  12521. $RM conftest*
  12522. # SGI C++ compiler will create directory out/ii_files/ for
  12523. # template instantiation
  12524. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12525. $RM out/* && rmdir out
  12526. cd ..
  12527. $RM -r conftest
  12528. $RM conftest*
  12529. fi
  12530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12531. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12532. hard_links="nottested"
  12533. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12534. # do not overwrite the value of need_locks provided by the user
  12535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12536. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12537. hard_links=yes
  12538. $RM conftest*
  12539. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12540. touch conftest.a
  12541. ln conftest.a conftest.b 2>&5 || hard_links=no
  12542. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12544. $as_echo "$hard_links" >&6; }
  12545. if test "$hard_links" = no; then
  12546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12547. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12548. need_locks=warn
  12549. fi
  12550. else
  12551. need_locks=no
  12552. fi
  12553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12554. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12555. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12556. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12557. case $host_os in
  12558. aix[4-9]*)
  12559. # If we're using GNU nm, then we don't want the "-C" option.
  12560. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12561. # Also, AIX nm treats weak defined symbols like other global defined
  12562. # symbols, whereas GNU nm marks them as "W".
  12563. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12564. 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'
  12565. else
  12566. 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'
  12567. fi
  12568. ;;
  12569. pw32*)
  12570. export_symbols_cmds_CXX="$ltdll_cmds"
  12571. ;;
  12572. cygwin* | mingw* | cegcc*)
  12573. case $cc_basename in
  12574. cl*)
  12575. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12576. ;;
  12577. *)
  12578. 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'
  12579. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12580. ;;
  12581. esac
  12582. ;;
  12583. *)
  12584. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12585. ;;
  12586. esac
  12587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12588. $as_echo "$ld_shlibs_CXX" >&6; }
  12589. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12590. with_gnu_ld_CXX=$with_gnu_ld
  12591. #
  12592. # Do we need to explicitly link libc?
  12593. #
  12594. case "x$archive_cmds_need_lc_CXX" in
  12595. x|xyes)
  12596. # Assume -lc should be added
  12597. archive_cmds_need_lc_CXX=yes
  12598. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12599. case $archive_cmds_CXX in
  12600. *'~'*)
  12601. # FIXME: we may have to deal with multi-command sequences.
  12602. ;;
  12603. '$CC '*)
  12604. # Test whether the compiler implicitly links with -lc since on some
  12605. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12606. # to ld, don't add -lc before -lgcc.
  12607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12608. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12609. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12610. $as_echo_n "(cached) " >&6
  12611. else
  12612. $RM conftest*
  12613. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12614. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12615. (eval $ac_compile) 2>&5
  12616. ac_status=$?
  12617. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12618. test $ac_status = 0; } 2>conftest.err; then
  12619. soname=conftest
  12620. lib=conftest
  12621. libobjs=conftest.$ac_objext
  12622. deplibs=
  12623. wl=$lt_prog_compiler_wl_CXX
  12624. pic_flag=$lt_prog_compiler_pic_CXX
  12625. compiler_flags=-v
  12626. linker_flags=-v
  12627. verstring=
  12628. output_objdir=.
  12629. libname=conftest
  12630. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12631. allow_undefined_flag_CXX=
  12632. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12633. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12634. ac_status=$?
  12635. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12636. test $ac_status = 0; }
  12637. then
  12638. lt_cv_archive_cmds_need_lc_CXX=no
  12639. else
  12640. lt_cv_archive_cmds_need_lc_CXX=yes
  12641. fi
  12642. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12643. else
  12644. cat conftest.err 1>&5
  12645. fi
  12646. $RM conftest*
  12647. fi
  12648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12649. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12650. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12651. ;;
  12652. esac
  12653. fi
  12654. ;;
  12655. esac
  12656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12657. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12658. library_names_spec=
  12659. libname_spec='lib$name'
  12660. soname_spec=
  12661. shrext_cmds=".so"
  12662. postinstall_cmds=
  12663. postuninstall_cmds=
  12664. finish_cmds=
  12665. finish_eval=
  12666. shlibpath_var=
  12667. shlibpath_overrides_runpath=unknown
  12668. version_type=none
  12669. dynamic_linker="$host_os ld.so"
  12670. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12671. need_lib_prefix=unknown
  12672. hardcode_into_libs=no
  12673. # when you set need_version to no, make sure it does not cause -set_version
  12674. # flags to be left without arguments
  12675. need_version=unknown
  12676. case $host_os in
  12677. aix3*)
  12678. version_type=linux # correct to gnu/linux during the next big refactor
  12679. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12680. shlibpath_var=LIBPATH
  12681. # AIX 3 has no versioning support, so we append a major version to the name.
  12682. soname_spec='${libname}${release}${shared_ext}$major'
  12683. ;;
  12684. aix[4-9]*)
  12685. version_type=linux # correct to gnu/linux during the next big refactor
  12686. need_lib_prefix=no
  12687. need_version=no
  12688. hardcode_into_libs=yes
  12689. if test "$host_cpu" = ia64; then
  12690. # AIX 5 supports IA64
  12691. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12692. shlibpath_var=LD_LIBRARY_PATH
  12693. else
  12694. # With GCC up to 2.95.x, collect2 would create an import file
  12695. # for dependence libraries. The import file would start with
  12696. # the line `#! .'. This would cause the generated library to
  12697. # depend on `.', always an invalid library. This was fixed in
  12698. # development snapshots of GCC prior to 3.0.
  12699. case $host_os in
  12700. aix4 | aix4.[01] | aix4.[01].*)
  12701. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12702. echo ' yes '
  12703. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12704. :
  12705. else
  12706. can_build_shared=no
  12707. fi
  12708. ;;
  12709. esac
  12710. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12711. # soname into executable. Probably we can add versioning support to
  12712. # collect2, so additional links can be useful in future.
  12713. if test "$aix_use_runtimelinking" = yes; then
  12714. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12715. # instead of lib<name>.a to let people know that these are not
  12716. # typical AIX shared libraries.
  12717. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12718. else
  12719. # We preserve .a as extension for shared libraries through AIX4.2
  12720. # and later when we are not doing run time linking.
  12721. library_names_spec='${libname}${release}.a $libname.a'
  12722. soname_spec='${libname}${release}${shared_ext}$major'
  12723. fi
  12724. shlibpath_var=LIBPATH
  12725. fi
  12726. ;;
  12727. amigaos*)
  12728. case $host_cpu in
  12729. powerpc)
  12730. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12731. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12732. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12733. ;;
  12734. m68k)
  12735. library_names_spec='$libname.ixlibrary $libname.a'
  12736. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12737. 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'
  12738. ;;
  12739. esac
  12740. ;;
  12741. beos*)
  12742. library_names_spec='${libname}${shared_ext}'
  12743. dynamic_linker="$host_os ld.so"
  12744. shlibpath_var=LIBRARY_PATH
  12745. ;;
  12746. bsdi[45]*)
  12747. version_type=linux # correct to gnu/linux during the next big refactor
  12748. need_version=no
  12749. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12750. soname_spec='${libname}${release}${shared_ext}$major'
  12751. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12752. shlibpath_var=LD_LIBRARY_PATH
  12753. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12754. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12755. # the default ld.so.conf also contains /usr/contrib/lib and
  12756. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12757. # libtool to hard-code these into programs
  12758. ;;
  12759. cygwin* | mingw* | pw32* | cegcc*)
  12760. version_type=windows
  12761. shrext_cmds=".dll"
  12762. need_version=no
  12763. need_lib_prefix=no
  12764. case $GCC,$cc_basename in
  12765. yes,*)
  12766. # gcc
  12767. library_names_spec='$libname.dll.a'
  12768. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12769. postinstall_cmds='base_file=`basename \${file}`~
  12770. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12771. dldir=$destdir/`dirname \$dlpath`~
  12772. test -d \$dldir || mkdir -p \$dldir~
  12773. $install_prog $dir/$dlname \$dldir/$dlname~
  12774. chmod a+x \$dldir/$dlname~
  12775. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12776. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12777. fi'
  12778. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12779. dlpath=$dir/\$dldll~
  12780. $RM \$dlpath'
  12781. shlibpath_overrides_runpath=yes
  12782. case $host_os in
  12783. cygwin*)
  12784. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12785. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12786. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12787. ;;
  12788. mingw* | cegcc*)
  12789. # MinGW DLLs use traditional 'lib' prefix
  12790. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12791. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12792. ;;
  12793. pw32*)
  12794. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12795. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12796. ;;
  12797. esac
  12798. dynamic_linker='Win32 ld.exe'
  12799. ;;
  12800. *,cl*)
  12801. # Native MSVC
  12802. libname_spec='$name'
  12803. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12804. library_names_spec='${libname}.dll.lib'
  12805. case $build_os in
  12806. mingw*)
  12807. sys_lib_search_path_spec=
  12808. lt_save_ifs=$IFS
  12809. IFS=';'
  12810. for lt_path in $LIB
  12811. do
  12812. IFS=$lt_save_ifs
  12813. # Let DOS variable expansion print the short 8.3 style file name.
  12814. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12815. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12816. done
  12817. IFS=$lt_save_ifs
  12818. # Convert to MSYS style.
  12819. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12820. ;;
  12821. cygwin*)
  12822. # Convert to unix form, then to dos form, then back to unix form
  12823. # but this time dos style (no spaces!) so that the unix form looks
  12824. # like /cygdrive/c/PROGRA~1:/cygdr...
  12825. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12826. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12827. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12828. ;;
  12829. *)
  12830. sys_lib_search_path_spec="$LIB"
  12831. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12832. # It is most probably a Windows format PATH.
  12833. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12834. else
  12835. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12836. fi
  12837. # FIXME: find the short name or the path components, as spaces are
  12838. # common. (e.g. "Program Files" -> "PROGRA~1")
  12839. ;;
  12840. esac
  12841. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12842. postinstall_cmds='base_file=`basename \${file}`~
  12843. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12844. dldir=$destdir/`dirname \$dlpath`~
  12845. test -d \$dldir || mkdir -p \$dldir~
  12846. $install_prog $dir/$dlname \$dldir/$dlname'
  12847. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12848. dlpath=$dir/\$dldll~
  12849. $RM \$dlpath'
  12850. shlibpath_overrides_runpath=yes
  12851. dynamic_linker='Win32 link.exe'
  12852. ;;
  12853. *)
  12854. # Assume MSVC wrapper
  12855. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12856. dynamic_linker='Win32 ld.exe'
  12857. ;;
  12858. esac
  12859. # FIXME: first we should search . and the directory the executable is in
  12860. shlibpath_var=PATH
  12861. ;;
  12862. darwin* | rhapsody*)
  12863. dynamic_linker="$host_os dyld"
  12864. version_type=darwin
  12865. need_lib_prefix=no
  12866. need_version=no
  12867. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12868. soname_spec='${libname}${release}${major}$shared_ext'
  12869. shlibpath_overrides_runpath=yes
  12870. shlibpath_var=DYLD_LIBRARY_PATH
  12871. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12872. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12873. ;;
  12874. dgux*)
  12875. version_type=linux # correct to gnu/linux during the next big refactor
  12876. need_lib_prefix=no
  12877. need_version=no
  12878. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12879. soname_spec='${libname}${release}${shared_ext}$major'
  12880. shlibpath_var=LD_LIBRARY_PATH
  12881. ;;
  12882. freebsd* | dragonfly*)
  12883. # DragonFly does not have aout. When/if they implement a new
  12884. # versioning mechanism, adjust this.
  12885. if test -x /usr/bin/objformat; then
  12886. objformat=`/usr/bin/objformat`
  12887. else
  12888. case $host_os in
  12889. freebsd[23].*) objformat=aout ;;
  12890. *) objformat=elf ;;
  12891. esac
  12892. fi
  12893. version_type=freebsd-$objformat
  12894. case $version_type in
  12895. freebsd-elf*)
  12896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12897. need_version=no
  12898. need_lib_prefix=no
  12899. ;;
  12900. freebsd-*)
  12901. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12902. need_version=yes
  12903. ;;
  12904. esac
  12905. shlibpath_var=LD_LIBRARY_PATH
  12906. case $host_os in
  12907. freebsd2.*)
  12908. shlibpath_overrides_runpath=yes
  12909. ;;
  12910. freebsd3.[01]* | freebsdelf3.[01]*)
  12911. shlibpath_overrides_runpath=yes
  12912. hardcode_into_libs=yes
  12913. ;;
  12914. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12915. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12916. shlibpath_overrides_runpath=no
  12917. hardcode_into_libs=yes
  12918. ;;
  12919. *) # from 4.6 on, and DragonFly
  12920. shlibpath_overrides_runpath=yes
  12921. hardcode_into_libs=yes
  12922. ;;
  12923. esac
  12924. ;;
  12925. gnu*)
  12926. version_type=linux # correct to gnu/linux during the next big refactor
  12927. need_lib_prefix=no
  12928. need_version=no
  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. shlibpath_var=LD_LIBRARY_PATH
  12932. shlibpath_overrides_runpath=no
  12933. hardcode_into_libs=yes
  12934. ;;
  12935. haiku*)
  12936. version_type=linux # correct to gnu/linux during the next big refactor
  12937. need_lib_prefix=no
  12938. need_version=no
  12939. dynamic_linker="$host_os runtime_loader"
  12940. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12941. soname_spec='${libname}${release}${shared_ext}$major'
  12942. shlibpath_var=LIBRARY_PATH
  12943. shlibpath_overrides_runpath=yes
  12944. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12945. hardcode_into_libs=yes
  12946. ;;
  12947. hpux9* | hpux10* | hpux11*)
  12948. # Give a soname corresponding to the major version so that dld.sl refuses to
  12949. # link against other versions.
  12950. version_type=sunos
  12951. need_lib_prefix=no
  12952. need_version=no
  12953. case $host_cpu in
  12954. ia64*)
  12955. shrext_cmds='.so'
  12956. hardcode_into_libs=yes
  12957. dynamic_linker="$host_os dld.so"
  12958. shlibpath_var=LD_LIBRARY_PATH
  12959. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12960. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12961. soname_spec='${libname}${release}${shared_ext}$major'
  12962. if test "X$HPUX_IA64_MODE" = X32; then
  12963. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12964. else
  12965. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12966. fi
  12967. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12968. ;;
  12969. hppa*64*)
  12970. shrext_cmds='.sl'
  12971. hardcode_into_libs=yes
  12972. dynamic_linker="$host_os dld.sl"
  12973. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12974. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12975. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12976. soname_spec='${libname}${release}${shared_ext}$major'
  12977. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12978. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12979. ;;
  12980. *)
  12981. shrext_cmds='.sl'
  12982. dynamic_linker="$host_os dld.sl"
  12983. shlibpath_var=SHLIB_PATH
  12984. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12985. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12986. soname_spec='${libname}${release}${shared_ext}$major'
  12987. ;;
  12988. esac
  12989. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12990. postinstall_cmds='chmod 555 $lib'
  12991. # or fails outright, so override atomically:
  12992. install_override_mode=555
  12993. ;;
  12994. interix[3-9]*)
  12995. version_type=linux # correct to gnu/linux during the next big refactor
  12996. need_lib_prefix=no
  12997. need_version=no
  12998. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12999. soname_spec='${libname}${release}${shared_ext}$major'
  13000. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13001. shlibpath_var=LD_LIBRARY_PATH
  13002. shlibpath_overrides_runpath=no
  13003. hardcode_into_libs=yes
  13004. ;;
  13005. irix5* | irix6* | nonstopux*)
  13006. case $host_os in
  13007. nonstopux*) version_type=nonstopux ;;
  13008. *)
  13009. if test "$lt_cv_prog_gnu_ld" = yes; then
  13010. version_type=linux # correct to gnu/linux during the next big refactor
  13011. else
  13012. version_type=irix
  13013. fi ;;
  13014. esac
  13015. need_lib_prefix=no
  13016. need_version=no
  13017. soname_spec='${libname}${release}${shared_ext}$major'
  13018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13019. case $host_os in
  13020. irix5* | nonstopux*)
  13021. libsuff= shlibsuff=
  13022. ;;
  13023. *)
  13024. case $LD in # libtool.m4 will add one of these switches to LD
  13025. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13026. libsuff= shlibsuff= libmagic=32-bit;;
  13027. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13028. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13029. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13030. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13031. *) libsuff= shlibsuff= libmagic=never-match;;
  13032. esac
  13033. ;;
  13034. esac
  13035. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13036. shlibpath_overrides_runpath=no
  13037. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13038. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13039. hardcode_into_libs=yes
  13040. ;;
  13041. # No shared lib support for Linux oldld, aout, or coff.
  13042. linux*oldld* | linux*aout* | linux*coff*)
  13043. dynamic_linker=no
  13044. ;;
  13045. # This must be glibc/ELF.
  13046. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13047. version_type=linux # correct to gnu/linux during the next big refactor
  13048. need_lib_prefix=no
  13049. need_version=no
  13050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13051. soname_spec='${libname}${release}${shared_ext}$major'
  13052. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13053. shlibpath_var=LD_LIBRARY_PATH
  13054. shlibpath_overrides_runpath=no
  13055. # Some binutils ld are patched to set DT_RUNPATH
  13056. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13057. $as_echo_n "(cached) " >&6
  13058. else
  13059. lt_cv_shlibpath_overrides_runpath=no
  13060. save_LDFLAGS=$LDFLAGS
  13061. save_libdir=$libdir
  13062. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13063. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13065. /* end confdefs.h. */
  13066. int
  13067. main ()
  13068. {
  13069. ;
  13070. return 0;
  13071. }
  13072. _ACEOF
  13073. if ac_fn_cxx_try_link "$LINENO"; then :
  13074. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13075. lt_cv_shlibpath_overrides_runpath=yes
  13076. fi
  13077. fi
  13078. rm -f core conftest.err conftest.$ac_objext \
  13079. conftest$ac_exeext conftest.$ac_ext
  13080. LDFLAGS=$save_LDFLAGS
  13081. libdir=$save_libdir
  13082. fi
  13083. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13084. # This implies no fast_install, which is unacceptable.
  13085. # Some rework will be needed to allow for fast_install
  13086. # before this can be enabled.
  13087. hardcode_into_libs=yes
  13088. # Append ld.so.conf contents to the search path
  13089. if test -f /etc/ld.so.conf; then
  13090. 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' ' '`
  13091. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13092. fi
  13093. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13094. # powerpc, because MkLinux only supported shared libraries with the
  13095. # GNU dynamic linker. Since this was broken with cross compilers,
  13096. # most powerpc-linux boxes support dynamic linking these days and
  13097. # people can always --disable-shared, the test was removed, and we
  13098. # assume the GNU/Linux dynamic linker is in use.
  13099. dynamic_linker='GNU/Linux ld.so'
  13100. ;;
  13101. netbsd*)
  13102. version_type=sunos
  13103. need_lib_prefix=no
  13104. need_version=no
  13105. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13107. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13108. dynamic_linker='NetBSD (a.out) ld.so'
  13109. else
  13110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13111. soname_spec='${libname}${release}${shared_ext}$major'
  13112. dynamic_linker='NetBSD ld.elf_so'
  13113. fi
  13114. shlibpath_var=LD_LIBRARY_PATH
  13115. shlibpath_overrides_runpath=yes
  13116. hardcode_into_libs=yes
  13117. ;;
  13118. newsos6)
  13119. version_type=linux # correct to gnu/linux during the next big refactor
  13120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13121. shlibpath_var=LD_LIBRARY_PATH
  13122. shlibpath_overrides_runpath=yes
  13123. ;;
  13124. *nto* | *qnx*)
  13125. version_type=qnx
  13126. need_lib_prefix=no
  13127. need_version=no
  13128. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13129. soname_spec='${libname}${release}${shared_ext}$major'
  13130. shlibpath_var=LD_LIBRARY_PATH
  13131. shlibpath_overrides_runpath=no
  13132. hardcode_into_libs=yes
  13133. dynamic_linker='ldqnx.so'
  13134. ;;
  13135. openbsd*)
  13136. version_type=sunos
  13137. sys_lib_dlsearch_path_spec="/usr/lib"
  13138. need_lib_prefix=no
  13139. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13140. case $host_os in
  13141. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13142. *) need_version=no ;;
  13143. esac
  13144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13145. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13146. shlibpath_var=LD_LIBRARY_PATH
  13147. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13148. case $host_os in
  13149. openbsd2.[89] | openbsd2.[89].*)
  13150. shlibpath_overrides_runpath=no
  13151. ;;
  13152. *)
  13153. shlibpath_overrides_runpath=yes
  13154. ;;
  13155. esac
  13156. else
  13157. shlibpath_overrides_runpath=yes
  13158. fi
  13159. ;;
  13160. os2*)
  13161. libname_spec='$name'
  13162. shrext_cmds=".dll"
  13163. need_lib_prefix=no
  13164. library_names_spec='$libname${shared_ext} $libname.a'
  13165. dynamic_linker='OS/2 ld.exe'
  13166. shlibpath_var=LIBPATH
  13167. ;;
  13168. osf3* | osf4* | osf5*)
  13169. version_type=osf
  13170. need_lib_prefix=no
  13171. need_version=no
  13172. soname_spec='${libname}${release}${shared_ext}$major'
  13173. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13174. shlibpath_var=LD_LIBRARY_PATH
  13175. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13176. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13177. ;;
  13178. rdos*)
  13179. dynamic_linker=no
  13180. ;;
  13181. solaris*)
  13182. version_type=linux # correct to gnu/linux during the next big refactor
  13183. need_lib_prefix=no
  13184. need_version=no
  13185. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13186. soname_spec='${libname}${release}${shared_ext}$major'
  13187. shlibpath_var=LD_LIBRARY_PATH
  13188. shlibpath_overrides_runpath=yes
  13189. hardcode_into_libs=yes
  13190. # ldd complains unless libraries are executable
  13191. postinstall_cmds='chmod +x $lib'
  13192. ;;
  13193. sunos4*)
  13194. version_type=sunos
  13195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13196. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13197. shlibpath_var=LD_LIBRARY_PATH
  13198. shlibpath_overrides_runpath=yes
  13199. if test "$with_gnu_ld" = yes; then
  13200. need_lib_prefix=no
  13201. fi
  13202. need_version=yes
  13203. ;;
  13204. sysv4 | sysv4.3*)
  13205. version_type=linux # correct to gnu/linux during the next big refactor
  13206. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13207. soname_spec='${libname}${release}${shared_ext}$major'
  13208. shlibpath_var=LD_LIBRARY_PATH
  13209. case $host_vendor in
  13210. sni)
  13211. shlibpath_overrides_runpath=no
  13212. need_lib_prefix=no
  13213. runpath_var=LD_RUN_PATH
  13214. ;;
  13215. siemens)
  13216. need_lib_prefix=no
  13217. ;;
  13218. motorola)
  13219. need_lib_prefix=no
  13220. need_version=no
  13221. shlibpath_overrides_runpath=no
  13222. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13223. ;;
  13224. esac
  13225. ;;
  13226. sysv4*MP*)
  13227. if test -d /usr/nec ;then
  13228. version_type=linux # correct to gnu/linux during the next big refactor
  13229. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13230. soname_spec='$libname${shared_ext}.$major'
  13231. shlibpath_var=LD_LIBRARY_PATH
  13232. fi
  13233. ;;
  13234. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13235. version_type=freebsd-elf
  13236. need_lib_prefix=no
  13237. need_version=no
  13238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13239. soname_spec='${libname}${release}${shared_ext}$major'
  13240. shlibpath_var=LD_LIBRARY_PATH
  13241. shlibpath_overrides_runpath=yes
  13242. hardcode_into_libs=yes
  13243. if test "$with_gnu_ld" = yes; then
  13244. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13245. else
  13246. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13247. case $host_os in
  13248. sco3.2v5*)
  13249. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13250. ;;
  13251. esac
  13252. fi
  13253. sys_lib_dlsearch_path_spec='/usr/lib'
  13254. ;;
  13255. tpf*)
  13256. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13257. version_type=linux # correct to gnu/linux during the next big refactor
  13258. need_lib_prefix=no
  13259. need_version=no
  13260. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13261. shlibpath_var=LD_LIBRARY_PATH
  13262. shlibpath_overrides_runpath=no
  13263. hardcode_into_libs=yes
  13264. ;;
  13265. uts4*)
  13266. version_type=linux # correct to gnu/linux during the next big refactor
  13267. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13268. soname_spec='${libname}${release}${shared_ext}$major'
  13269. shlibpath_var=LD_LIBRARY_PATH
  13270. ;;
  13271. *)
  13272. dynamic_linker=no
  13273. ;;
  13274. esac
  13275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13276. $as_echo "$dynamic_linker" >&6; }
  13277. test "$dynamic_linker" = no && can_build_shared=no
  13278. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13279. if test "$GCC" = yes; then
  13280. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13281. fi
  13282. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13283. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13284. fi
  13285. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13286. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13287. fi
  13288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13289. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13290. hardcode_action_CXX=
  13291. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13292. test -n "$runpath_var_CXX" ||
  13293. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13294. # We can hardcode non-existent directories.
  13295. if test "$hardcode_direct_CXX" != no &&
  13296. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13297. # have to relink, otherwise we might link with an installed library
  13298. # when we should be linking with a yet-to-be-installed one
  13299. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13300. test "$hardcode_minus_L_CXX" != no; then
  13301. # Linking always hardcodes the temporary library directory.
  13302. hardcode_action_CXX=relink
  13303. else
  13304. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13305. hardcode_action_CXX=immediate
  13306. fi
  13307. else
  13308. # We cannot hardcode anything, or else we can only hardcode existing
  13309. # directories.
  13310. hardcode_action_CXX=unsupported
  13311. fi
  13312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13313. $as_echo "$hardcode_action_CXX" >&6; }
  13314. if test "$hardcode_action_CXX" = relink ||
  13315. test "$inherit_rpath_CXX" = yes; then
  13316. # Fast installation is not supported
  13317. enable_fast_install=no
  13318. elif test "$shlibpath_overrides_runpath" = yes ||
  13319. test "$enable_shared" = no; then
  13320. # Fast installation is not necessary
  13321. enable_fast_install=needless
  13322. fi
  13323. fi # test -n "$compiler"
  13324. CC=$lt_save_CC
  13325. CFLAGS=$lt_save_CFLAGS
  13326. LDCXX=$LD
  13327. LD=$lt_save_LD
  13328. GCC=$lt_save_GCC
  13329. with_gnu_ld=$lt_save_with_gnu_ld
  13330. lt_cv_path_LDCXX=$lt_cv_path_LD
  13331. lt_cv_path_LD=$lt_save_path_LD
  13332. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13333. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13334. fi # test "$_lt_caught_CXX_error" != yes
  13335. ac_ext=c
  13336. ac_cpp='$CPP $CPPFLAGS'
  13337. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13338. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13339. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13340. # Find a good install program. We prefer a C program (faster),
  13341. # so one script is as good as another. But avoid the broken or
  13342. # incompatible versions:
  13343. # SysV /etc/install, /usr/sbin/install
  13344. # SunOS /usr/etc/install
  13345. # IRIX /sbin/install
  13346. # AIX /bin/install
  13347. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13348. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13349. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13350. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13351. # OS/2's system install, which has a completely different semantic
  13352. # ./install, which can be erroneously created by make from ./install.sh.
  13353. # Reject install programs that cannot install multiple files.
  13354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13355. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13356. if test -z "$INSTALL"; then
  13357. if ${ac_cv_path_install+:} false; then :
  13358. $as_echo_n "(cached) " >&6
  13359. else
  13360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13361. for as_dir in $PATH
  13362. do
  13363. IFS=$as_save_IFS
  13364. test -z "$as_dir" && as_dir=.
  13365. # Account for people who put trailing slashes in PATH elements.
  13366. case $as_dir/ in #((
  13367. ./ | .// | /[cC]/* | \
  13368. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13369. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13370. /usr/ucb/* ) ;;
  13371. *)
  13372. # OSF1 and SCO ODT 3.0 have their own names for install.
  13373. # Don't use installbsd from OSF since it installs stuff as root
  13374. # by default.
  13375. for ac_prog in ginstall scoinst install; do
  13376. for ac_exec_ext in '' $ac_executable_extensions; do
  13377. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13378. if test $ac_prog = install &&
  13379. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13380. # AIX install. It has an incompatible calling convention.
  13381. :
  13382. elif test $ac_prog = install &&
  13383. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13384. # program-specific install script used by HP pwplus--don't use.
  13385. :
  13386. else
  13387. rm -rf conftest.one conftest.two conftest.dir
  13388. echo one > conftest.one
  13389. echo two > conftest.two
  13390. mkdir conftest.dir
  13391. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13392. test -s conftest.one && test -s conftest.two &&
  13393. test -s conftest.dir/conftest.one &&
  13394. test -s conftest.dir/conftest.two
  13395. then
  13396. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13397. break 3
  13398. fi
  13399. fi
  13400. fi
  13401. done
  13402. done
  13403. ;;
  13404. esac
  13405. done
  13406. IFS=$as_save_IFS
  13407. rm -rf conftest.one conftest.two conftest.dir
  13408. fi
  13409. if test "${ac_cv_path_install+set}" = set; then
  13410. INSTALL=$ac_cv_path_install
  13411. else
  13412. # As a last resort, use the slow shell script. Don't cache a
  13413. # value for INSTALL within a source directory, because that will
  13414. # break other packages using the cache if that directory is
  13415. # removed, or if the value is a relative name.
  13416. INSTALL=$ac_install_sh
  13417. fi
  13418. fi
  13419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13420. $as_echo "$INSTALL" >&6; }
  13421. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13422. # It thinks the first close brace ends the variable substitution.
  13423. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13424. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13425. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13427. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13428. set x ${MAKE-make}
  13429. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13430. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13431. $as_echo_n "(cached) " >&6
  13432. else
  13433. cat >conftest.make <<\_ACEOF
  13434. SHELL = /bin/sh
  13435. all:
  13436. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13437. _ACEOF
  13438. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13439. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13440. *@@@%%%=?*=@@@%%%*)
  13441. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13442. *)
  13443. eval ac_cv_prog_make_${ac_make}_set=no;;
  13444. esac
  13445. rm -f conftest.make
  13446. fi
  13447. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13449. $as_echo "yes" >&6; }
  13450. SET_MAKE=
  13451. else
  13452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13453. $as_echo "no" >&6; }
  13454. SET_MAKE="MAKE=${MAKE-make}"
  13455. fi
  13456. if test -n "$ac_tool_prefix"; then
  13457. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13458. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13460. $as_echo_n "checking for $ac_word... " >&6; }
  13461. if ${ac_cv_prog_WINDRES+:} false; then :
  13462. $as_echo_n "(cached) " >&6
  13463. else
  13464. if test -n "$WINDRES"; then
  13465. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13466. else
  13467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13468. for as_dir in $PATH
  13469. do
  13470. IFS=$as_save_IFS
  13471. test -z "$as_dir" && as_dir=.
  13472. for ac_exec_ext in '' $ac_executable_extensions; do
  13473. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13474. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13475. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13476. break 2
  13477. fi
  13478. done
  13479. done
  13480. IFS=$as_save_IFS
  13481. fi
  13482. fi
  13483. WINDRES=$ac_cv_prog_WINDRES
  13484. if test -n "$WINDRES"; then
  13485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13486. $as_echo "$WINDRES" >&6; }
  13487. else
  13488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13489. $as_echo "no" >&6; }
  13490. fi
  13491. fi
  13492. if test -z "$ac_cv_prog_WINDRES"; then
  13493. ac_ct_WINDRES=$WINDRES
  13494. # Extract the first word of "windres", so it can be a program name with args.
  13495. set dummy windres; ac_word=$2
  13496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13497. $as_echo_n "checking for $ac_word... " >&6; }
  13498. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13499. $as_echo_n "(cached) " >&6
  13500. else
  13501. if test -n "$ac_ct_WINDRES"; then
  13502. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13503. else
  13504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13505. for as_dir in $PATH
  13506. do
  13507. IFS=$as_save_IFS
  13508. test -z "$as_dir" && as_dir=.
  13509. for ac_exec_ext in '' $ac_executable_extensions; do
  13510. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13511. ac_cv_prog_ac_ct_WINDRES="windres"
  13512. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13513. break 2
  13514. fi
  13515. done
  13516. done
  13517. IFS=$as_save_IFS
  13518. fi
  13519. fi
  13520. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13521. if test -n "$ac_ct_WINDRES"; then
  13522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13523. $as_echo "$ac_ct_WINDRES" >&6; }
  13524. else
  13525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13526. $as_echo "no" >&6; }
  13527. fi
  13528. if test "x$ac_ct_WINDRES" = x; then
  13529. WINDRES=":"
  13530. else
  13531. case $cross_compiling:$ac_tool_warned in
  13532. yes:)
  13533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13534. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13535. ac_tool_warned=yes ;;
  13536. esac
  13537. WINDRES=$ac_ct_WINDRES
  13538. fi
  13539. else
  13540. WINDRES="$ac_cv_prog_WINDRES"
  13541. fi
  13542. case "$host" in
  13543. *-*-mingw32*)
  13544. # Except on msys, where make can't handle full pathnames (bug 1972)
  13545. ;;
  13546. *)
  13547. srcdir=`cd $srcdir && pwd`
  13548. ;;
  13549. esac
  13550. INCLUDE="-I$srcdir/include"
  13551. if test x$srcdir != x.; then
  13552. INCLUDE="-Iinclude $INCLUDE"
  13553. elif test -d .hg; then
  13554. as_fn_error $? "
  13555. *** When building from Mercurial you should configure and build in a
  13556. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13557. " "$LINENO" 5
  13558. fi
  13559. BASE_CFLAGS=""
  13560. BASE_LDFLAGS=""
  13561. case "$host" in
  13562. *-*-cygwin*)
  13563. # We build SDL on cygwin without the UNIX emulation layer
  13564. save_CFLAGS="$CFLAGS"
  13565. have_no_cygwin=no
  13566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13567. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13568. CFLAGS="$save_CFLAGS -mno-cygwin"
  13569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13570. /* end confdefs.h. */
  13571. int
  13572. main ()
  13573. {
  13574. ;
  13575. return 0;
  13576. }
  13577. _ACEOF
  13578. if ac_fn_c_try_compile "$LINENO"; then :
  13579. have_no_cygwin=yes
  13580. fi
  13581. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13583. $as_echo "$have_no_cygwin" >&6; }
  13584. CFLAGS="$save_CFLAGS"
  13585. if test x$have_no_cygwin = xyes; then
  13586. BASE_CFLAGS="-mno-cygwin"
  13587. BASE_LDFLAGS="-mno-cygwin"
  13588. fi
  13589. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13590. ;;
  13591. esac
  13592. # Uncomment the following line if you want to force SDL and applications
  13593. # built with it to be compiled for a particular architecture.
  13594. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13595. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13596. # The default optimization for SDL is -O3 (Bug #31)
  13597. if test "x$orig_CFLAGS" = x; then
  13598. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13599. fi
  13600. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13601. BUILD_LDFLAGS="$LDFLAGS"
  13602. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13603. ## These are common directories to find software packages
  13604. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13605. # if test -d $path/include; then
  13606. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13607. # fi
  13608. # if test -d $path/lib; then
  13609. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13610. # fi
  13611. #done
  13612. SDL_CFLAGS="$BASE_CFLAGS"
  13613. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13614. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13615. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13616. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13617. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13618. find_lib()
  13619. {
  13620. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13621. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13622. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13623. if test "$cross_compiling" = yes; then
  13624. host_lib_path=""
  13625. else
  13626. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13627. fi
  13628. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13629. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13630. if test x$lib != x; then
  13631. echo $lib
  13632. return
  13633. fi
  13634. done
  13635. }
  13636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13637. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13638. if ${ac_cv_c_const+:} false; then :
  13639. $as_echo_n "(cached) " >&6
  13640. else
  13641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13642. /* end confdefs.h. */
  13643. int
  13644. main ()
  13645. {
  13646. #ifndef __cplusplus
  13647. /* Ultrix mips cc rejects this sort of thing. */
  13648. typedef int charset[2];
  13649. const charset cs = { 0, 0 };
  13650. /* SunOS 4.1.1 cc rejects this. */
  13651. char const *const *pcpcc;
  13652. char **ppc;
  13653. /* NEC SVR4.0.2 mips cc rejects this. */
  13654. struct point {int x, y;};
  13655. static struct point const zero = {0,0};
  13656. /* AIX XL C 1.02.0.0 rejects this.
  13657. It does not let you subtract one const X* pointer from another in
  13658. an arm of an if-expression whose if-part is not a constant
  13659. expression */
  13660. const char *g = "string";
  13661. pcpcc = &g + (g ? g-g : 0);
  13662. /* HPUX 7.0 cc rejects these. */
  13663. ++pcpcc;
  13664. ppc = (char**) pcpcc;
  13665. pcpcc = (char const *const *) ppc;
  13666. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13667. char tx;
  13668. char *t = &tx;
  13669. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13670. *t++ = 0;
  13671. if (s) return 0;
  13672. }
  13673. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13674. int x[] = {25, 17};
  13675. const int *foo = &x[0];
  13676. ++foo;
  13677. }
  13678. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13679. typedef const int *iptr;
  13680. iptr p = 0;
  13681. ++p;
  13682. }
  13683. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13684. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13685. struct s { int j; const int *ap[3]; } bx;
  13686. struct s *b = &bx; b->j = 5;
  13687. }
  13688. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13689. const int foo = 10;
  13690. if (!foo) return 0;
  13691. }
  13692. return !cs[0] && !zero.x;
  13693. #endif
  13694. ;
  13695. return 0;
  13696. }
  13697. _ACEOF
  13698. if ac_fn_c_try_compile "$LINENO"; then :
  13699. ac_cv_c_const=yes
  13700. else
  13701. ac_cv_c_const=no
  13702. fi
  13703. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13704. fi
  13705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13706. $as_echo "$ac_cv_c_const" >&6; }
  13707. if test $ac_cv_c_const = no; then
  13708. $as_echo "#define const /**/" >>confdefs.h
  13709. fi
  13710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13711. $as_echo_n "checking for inline... " >&6; }
  13712. if ${ac_cv_c_inline+:} false; then :
  13713. $as_echo_n "(cached) " >&6
  13714. else
  13715. ac_cv_c_inline=no
  13716. for ac_kw in inline __inline__ __inline; do
  13717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13718. /* end confdefs.h. */
  13719. #ifndef __cplusplus
  13720. typedef int foo_t;
  13721. static $ac_kw foo_t static_foo () {return 0; }
  13722. $ac_kw foo_t foo () {return 0; }
  13723. #endif
  13724. _ACEOF
  13725. if ac_fn_c_try_compile "$LINENO"; then :
  13726. ac_cv_c_inline=$ac_kw
  13727. fi
  13728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13729. test "$ac_cv_c_inline" != no && break
  13730. done
  13731. fi
  13732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13733. $as_echo "$ac_cv_c_inline" >&6; }
  13734. case $ac_cv_c_inline in
  13735. inline | yes) ;;
  13736. *)
  13737. case $ac_cv_c_inline in
  13738. no) ac_val=;;
  13739. *) ac_val=$ac_cv_c_inline;;
  13740. esac
  13741. cat >>confdefs.h <<_ACEOF
  13742. #ifndef __cplusplus
  13743. #define inline $ac_val
  13744. #endif
  13745. _ACEOF
  13746. ;;
  13747. esac
  13748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13749. $as_echo_n "checking for working volatile... " >&6; }
  13750. if ${ac_cv_c_volatile+:} false; then :
  13751. $as_echo_n "(cached) " >&6
  13752. else
  13753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13754. /* end confdefs.h. */
  13755. int
  13756. main ()
  13757. {
  13758. volatile int x;
  13759. int * volatile y = (int *) 0;
  13760. return !x && !y;
  13761. ;
  13762. return 0;
  13763. }
  13764. _ACEOF
  13765. if ac_fn_c_try_compile "$LINENO"; then :
  13766. ac_cv_c_volatile=yes
  13767. else
  13768. ac_cv_c_volatile=no
  13769. fi
  13770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13771. fi
  13772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13773. $as_echo "$ac_cv_c_volatile" >&6; }
  13774. if test $ac_cv_c_volatile = no; then
  13775. $as_echo "#define volatile /**/" >>confdefs.h
  13776. fi
  13777. # Check whether --enable-assertions was given.
  13778. if test "${enable_assertions+set}" = set; then :
  13779. enableval=$enable_assertions;
  13780. else
  13781. enable_assertions=auto
  13782. fi
  13783. case "$enable_assertions" in
  13784. auto) # Use optimization settings to determine assertion level
  13785. ;;
  13786. disabled)
  13787. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13788. ;;
  13789. release)
  13790. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13791. ;;
  13792. enabled)
  13793. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13794. ;;
  13795. paranoid)
  13796. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13797. ;;
  13798. *)
  13799. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13800. ;;
  13801. esac
  13802. # Check whether --enable-dependency-tracking was given.
  13803. if test "${enable_dependency_tracking+set}" = set; then :
  13804. enableval=$enable_dependency_tracking;
  13805. else
  13806. enable_dependency_tracking=yes
  13807. fi
  13808. if test x$enable_dependency_tracking = xyes; then
  13809. have_gcc_mmd_mt=no
  13810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13811. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13813. /* end confdefs.h. */
  13814. #if !defined(__GNUC__) || __GNUC__ < 3
  13815. #error Dependency tracking requires GCC 3.0 or newer
  13816. #endif
  13817. int
  13818. main ()
  13819. {
  13820. ;
  13821. return 0;
  13822. }
  13823. _ACEOF
  13824. if ac_fn_c_try_compile "$LINENO"; then :
  13825. have_gcc_mmd_mt=yes
  13826. fi
  13827. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13829. $as_echo "$have_gcc_mmd_mt" >&6; }
  13830. if test x$have_gcc_mmd_mt = xyes; then
  13831. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13832. fi
  13833. fi
  13834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13835. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13836. have_no_undefined=no
  13837. case "$host" in
  13838. *-*-openbsd*)
  13839. ;;
  13840. *)
  13841. save_LDFLAGS="$LDFLAGS"
  13842. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13844. /* end confdefs.h. */
  13845. int
  13846. main ()
  13847. {
  13848. ;
  13849. return 0;
  13850. }
  13851. _ACEOF
  13852. if ac_fn_c_try_link "$LINENO"; then :
  13853. have_no_undefined=yes
  13854. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13855. fi
  13856. rm -f core conftest.err conftest.$ac_objext \
  13857. conftest$ac_exeext conftest.$ac_ext
  13858. LDFLAGS="$save_LDFLAGS"
  13859. ;;
  13860. esac
  13861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13862. $as_echo "$have_no_undefined" >&6; }
  13863. # Check whether --enable-libc was given.
  13864. if test "${enable_libc+set}" = set; then :
  13865. enableval=$enable_libc;
  13866. else
  13867. enable_libc=yes
  13868. fi
  13869. if test x$enable_libc = xyes; then
  13870. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13872. $as_echo_n "checking for ANSI C header files... " >&6; }
  13873. if ${ac_cv_header_stdc+:} false; then :
  13874. $as_echo_n "(cached) " >&6
  13875. else
  13876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13877. /* end confdefs.h. */
  13878. #include <stdlib.h>
  13879. #include <stdarg.h>
  13880. #include <string.h>
  13881. #include <float.h>
  13882. int
  13883. main ()
  13884. {
  13885. ;
  13886. return 0;
  13887. }
  13888. _ACEOF
  13889. if ac_fn_c_try_compile "$LINENO"; then :
  13890. ac_cv_header_stdc=yes
  13891. else
  13892. ac_cv_header_stdc=no
  13893. fi
  13894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13895. if test $ac_cv_header_stdc = yes; then
  13896. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13898. /* end confdefs.h. */
  13899. #include <string.h>
  13900. _ACEOF
  13901. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13902. $EGREP "memchr" >/dev/null 2>&1; then :
  13903. else
  13904. ac_cv_header_stdc=no
  13905. fi
  13906. rm -f conftest*
  13907. fi
  13908. if test $ac_cv_header_stdc = yes; then
  13909. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13911. /* end confdefs.h. */
  13912. #include <stdlib.h>
  13913. _ACEOF
  13914. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13915. $EGREP "free" >/dev/null 2>&1; then :
  13916. else
  13917. ac_cv_header_stdc=no
  13918. fi
  13919. rm -f conftest*
  13920. fi
  13921. if test $ac_cv_header_stdc = yes; then
  13922. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13923. if test "$cross_compiling" = yes; then :
  13924. :
  13925. else
  13926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13927. /* end confdefs.h. */
  13928. #include <ctype.h>
  13929. #include <stdlib.h>
  13930. #if ((' ' & 0x0FF) == 0x020)
  13931. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13932. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13933. #else
  13934. # define ISLOWER(c) \
  13935. (('a' <= (c) && (c) <= 'i') \
  13936. || ('j' <= (c) && (c) <= 'r') \
  13937. || ('s' <= (c) && (c) <= 'z'))
  13938. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13939. #endif
  13940. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13941. int
  13942. main ()
  13943. {
  13944. int i;
  13945. for (i = 0; i < 256; i++)
  13946. if (XOR (islower (i), ISLOWER (i))
  13947. || toupper (i) != TOUPPER (i))
  13948. return 2;
  13949. return 0;
  13950. }
  13951. _ACEOF
  13952. if ac_fn_c_try_run "$LINENO"; then :
  13953. else
  13954. ac_cv_header_stdc=no
  13955. fi
  13956. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13957. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13958. fi
  13959. fi
  13960. fi
  13961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13962. $as_echo "$ac_cv_header_stdc" >&6; }
  13963. if test $ac_cv_header_stdc = yes; then
  13964. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13965. fi
  13966. 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
  13967. do :
  13968. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13969. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13970. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13971. cat >>confdefs.h <<_ACEOF
  13972. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13973. _ACEOF
  13974. fi
  13975. done
  13976. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13977. if test "x$ac_cv_type_size_t" = xyes; then :
  13978. else
  13979. cat >>confdefs.h <<_ACEOF
  13980. #define size_t unsigned int
  13981. _ACEOF
  13982. fi
  13983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13984. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13985. if ${ac_cv_define_M_PI+:} false; then :
  13986. $as_echo_n "(cached) " >&6
  13987. else
  13988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13989. /* end confdefs.h. */
  13990. #include <math.h>
  13991. #ifdef M_PI
  13992. YES_IS_DEFINED
  13993. #endif
  13994. _ACEOF
  13995. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13996. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13997. ac_cv_define_M_PI=yes
  13998. else
  13999. ac_cv_define_M_PI=no
  14000. fi
  14001. rm -f conftest*
  14002. fi
  14003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14004. $as_echo "$ac_cv_define_M_PI" >&6; }
  14005. if test "$ac_cv_define_M_PI" = "yes" ; then
  14006. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14007. fi
  14008. case "$host" in
  14009. *-*-cygwin* | *-*-mingw32*)
  14010. ;;
  14011. *)
  14012. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14013. # for constant arguments. Useless!
  14014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14015. $as_echo_n "checking for working alloca.h... " >&6; }
  14016. if ${ac_cv_working_alloca_h+:} false; then :
  14017. $as_echo_n "(cached) " >&6
  14018. else
  14019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14020. /* end confdefs.h. */
  14021. #include <alloca.h>
  14022. int
  14023. main ()
  14024. {
  14025. char *p = (char *) alloca (2 * sizeof (int));
  14026. if (p) return 0;
  14027. ;
  14028. return 0;
  14029. }
  14030. _ACEOF
  14031. if ac_fn_c_try_link "$LINENO"; then :
  14032. ac_cv_working_alloca_h=yes
  14033. else
  14034. ac_cv_working_alloca_h=no
  14035. fi
  14036. rm -f core conftest.err conftest.$ac_objext \
  14037. conftest$ac_exeext conftest.$ac_ext
  14038. fi
  14039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14040. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14041. if test $ac_cv_working_alloca_h = yes; then
  14042. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14043. fi
  14044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14045. $as_echo_n "checking for alloca... " >&6; }
  14046. if ${ac_cv_func_alloca_works+:} false; then :
  14047. $as_echo_n "(cached) " >&6
  14048. else
  14049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14050. /* end confdefs.h. */
  14051. #ifdef __GNUC__
  14052. # define alloca __builtin_alloca
  14053. #else
  14054. # ifdef _MSC_VER
  14055. # include <malloc.h>
  14056. # define alloca _alloca
  14057. # else
  14058. # ifdef HAVE_ALLOCA_H
  14059. # include <alloca.h>
  14060. # else
  14061. # ifdef _AIX
  14062. #pragma alloca
  14063. # else
  14064. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14065. void *alloca (size_t);
  14066. # endif
  14067. # endif
  14068. # endif
  14069. # endif
  14070. #endif
  14071. int
  14072. main ()
  14073. {
  14074. char *p = (char *) alloca (1);
  14075. if (p) return 0;
  14076. ;
  14077. return 0;
  14078. }
  14079. _ACEOF
  14080. if ac_fn_c_try_link "$LINENO"; then :
  14081. ac_cv_func_alloca_works=yes
  14082. else
  14083. ac_cv_func_alloca_works=no
  14084. fi
  14085. rm -f core conftest.err conftest.$ac_objext \
  14086. conftest$ac_exeext conftest.$ac_ext
  14087. fi
  14088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14089. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14090. if test $ac_cv_func_alloca_works = yes; then
  14091. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14092. else
  14093. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14094. # that cause trouble. Some versions do not even contain alloca or
  14095. # contain a buggy version. If you still want to use their alloca,
  14096. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14097. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14098. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14100. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14101. if ${ac_cv_os_cray+:} false; then :
  14102. $as_echo_n "(cached) " >&6
  14103. else
  14104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14105. /* end confdefs.h. */
  14106. #if defined CRAY && ! defined CRAY2
  14107. webecray
  14108. #else
  14109. wenotbecray
  14110. #endif
  14111. _ACEOF
  14112. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14113. $EGREP "webecray" >/dev/null 2>&1; then :
  14114. ac_cv_os_cray=yes
  14115. else
  14116. ac_cv_os_cray=no
  14117. fi
  14118. rm -f conftest*
  14119. fi
  14120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14121. $as_echo "$ac_cv_os_cray" >&6; }
  14122. if test $ac_cv_os_cray = yes; then
  14123. for ac_func in _getb67 GETB67 getb67; do
  14124. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14125. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14126. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14127. cat >>confdefs.h <<_ACEOF
  14128. #define CRAY_STACKSEG_END $ac_func
  14129. _ACEOF
  14130. break
  14131. fi
  14132. done
  14133. fi
  14134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14135. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14136. if ${ac_cv_c_stack_direction+:} false; then :
  14137. $as_echo_n "(cached) " >&6
  14138. else
  14139. if test "$cross_compiling" = yes; then :
  14140. ac_cv_c_stack_direction=0
  14141. else
  14142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14143. /* end confdefs.h. */
  14144. $ac_includes_default
  14145. int
  14146. find_stack_direction (int *addr, int depth)
  14147. {
  14148. int dir, dummy = 0;
  14149. if (! addr)
  14150. addr = &dummy;
  14151. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14152. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14153. return dir + dummy;
  14154. }
  14155. int
  14156. main (int argc, char **argv)
  14157. {
  14158. return find_stack_direction (0, argc + !argv + 20) < 0;
  14159. }
  14160. _ACEOF
  14161. if ac_fn_c_try_run "$LINENO"; then :
  14162. ac_cv_c_stack_direction=1
  14163. else
  14164. ac_cv_c_stack_direction=-1
  14165. fi
  14166. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14167. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14168. fi
  14169. fi
  14170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14171. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14172. cat >>confdefs.h <<_ACEOF
  14173. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14174. _ACEOF
  14175. fi
  14176. ;;
  14177. esac
  14178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14179. $as_echo_n "checking for working memcmp... " >&6; }
  14180. if ${ac_cv_func_memcmp_working+:} false; then :
  14181. $as_echo_n "(cached) " >&6
  14182. else
  14183. if test "$cross_compiling" = yes; then :
  14184. ac_cv_func_memcmp_working=no
  14185. else
  14186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14187. /* end confdefs.h. */
  14188. $ac_includes_default
  14189. int
  14190. main ()
  14191. {
  14192. /* Some versions of memcmp are not 8-bit clean. */
  14193. char c0 = '\100', c1 = '\200', c2 = '\201';
  14194. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14195. return 1;
  14196. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14197. or more and with at least one buffer not starting on a 4-byte boundary.
  14198. William Lewis provided this test program. */
  14199. {
  14200. char foo[21];
  14201. char bar[21];
  14202. int i;
  14203. for (i = 0; i < 4; i++)
  14204. {
  14205. char *a = foo + i;
  14206. char *b = bar + i;
  14207. strcpy (a, "--------01111111");
  14208. strcpy (b, "--------10000000");
  14209. if (memcmp (a, b, 16) >= 0)
  14210. return 1;
  14211. }
  14212. return 0;
  14213. }
  14214. ;
  14215. return 0;
  14216. }
  14217. _ACEOF
  14218. if ac_fn_c_try_run "$LINENO"; then :
  14219. ac_cv_func_memcmp_working=yes
  14220. else
  14221. ac_cv_func_memcmp_working=no
  14222. fi
  14223. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14224. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14225. fi
  14226. fi
  14227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14228. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14229. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14230. *" memcmp.$ac_objext "* ) ;;
  14231. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14232. ;;
  14233. esac
  14234. if test x$ac_cv_func_memcmp_working = xyes; then
  14235. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14236. fi
  14237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14238. $as_echo_n "checking for working strtod... " >&6; }
  14239. if ${ac_cv_func_strtod+:} false; then :
  14240. $as_echo_n "(cached) " >&6
  14241. else
  14242. if test "$cross_compiling" = yes; then :
  14243. ac_cv_func_strtod=no
  14244. else
  14245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14246. /* end confdefs.h. */
  14247. $ac_includes_default
  14248. #ifndef strtod
  14249. double strtod ();
  14250. #endif
  14251. int
  14252. main()
  14253. {
  14254. {
  14255. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14256. char *string = " +69";
  14257. char *term;
  14258. double value;
  14259. value = strtod (string, &term);
  14260. if (value != 69 || term != (string + 4))
  14261. return 1;
  14262. }
  14263. {
  14264. /* Under Solaris 2.4, strtod returns the wrong value for the
  14265. terminating character under some conditions. */
  14266. char *string = "NaN";
  14267. char *term;
  14268. strtod (string, &term);
  14269. if (term != string && *(term - 1) == 0)
  14270. return 1;
  14271. }
  14272. return 0;
  14273. }
  14274. _ACEOF
  14275. if ac_fn_c_try_run "$LINENO"; then :
  14276. ac_cv_func_strtod=yes
  14277. else
  14278. ac_cv_func_strtod=no
  14279. fi
  14280. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14281. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14282. fi
  14283. fi
  14284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14285. $as_echo "$ac_cv_func_strtod" >&6; }
  14286. if test $ac_cv_func_strtod = no; then
  14287. case " $LIBOBJS " in
  14288. *" strtod.$ac_objext "* ) ;;
  14289. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14290. ;;
  14291. esac
  14292. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14293. if test "x$ac_cv_func_pow" = xyes; then :
  14294. fi
  14295. if test $ac_cv_func_pow = no; then
  14296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14297. $as_echo_n "checking for pow in -lm... " >&6; }
  14298. if ${ac_cv_lib_m_pow+:} false; then :
  14299. $as_echo_n "(cached) " >&6
  14300. else
  14301. ac_check_lib_save_LIBS=$LIBS
  14302. LIBS="-lm $LIBS"
  14303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14304. /* end confdefs.h. */
  14305. /* Override any GCC internal prototype to avoid an error.
  14306. Use char because int might match the return type of a GCC
  14307. builtin and then its argument prototype would still apply. */
  14308. #ifdef __cplusplus
  14309. extern "C"
  14310. #endif
  14311. char pow ();
  14312. int
  14313. main ()
  14314. {
  14315. return pow ();
  14316. ;
  14317. return 0;
  14318. }
  14319. _ACEOF
  14320. if ac_fn_c_try_link "$LINENO"; then :
  14321. ac_cv_lib_m_pow=yes
  14322. else
  14323. ac_cv_lib_m_pow=no
  14324. fi
  14325. rm -f core conftest.err conftest.$ac_objext \
  14326. conftest$ac_exeext conftest.$ac_ext
  14327. LIBS=$ac_check_lib_save_LIBS
  14328. fi
  14329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14330. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14331. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14332. POW_LIB=-lm
  14333. else
  14334. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14335. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14336. fi
  14337. fi
  14338. fi
  14339. if test x$ac_cv_func_strtod = xyes; then
  14340. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14341. fi
  14342. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14343. if test "x$ac_cv_func_mprotect" = xyes; then :
  14344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14345. /* end confdefs.h. */
  14346. #include <sys/types.h>
  14347. #include <sys/mman.h>
  14348. int
  14349. main ()
  14350. {
  14351. ;
  14352. return 0;
  14353. }
  14354. _ACEOF
  14355. if ac_fn_c_try_compile "$LINENO"; then :
  14356. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14357. fi
  14358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14359. fi
  14360. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval
  14361. do :
  14362. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14363. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14364. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14365. cat >>confdefs.h <<_ACEOF
  14366. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14367. _ACEOF
  14368. fi
  14369. done
  14370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14371. $as_echo_n "checking for pow in -lm... " >&6; }
  14372. if ${ac_cv_lib_m_pow+:} false; then :
  14373. $as_echo_n "(cached) " >&6
  14374. else
  14375. ac_check_lib_save_LIBS=$LIBS
  14376. LIBS="-lm $LIBS"
  14377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14378. /* end confdefs.h. */
  14379. /* Override any GCC internal prototype to avoid an error.
  14380. Use char because int might match the return type of a GCC
  14381. builtin and then its argument prototype would still apply. */
  14382. #ifdef __cplusplus
  14383. extern "C"
  14384. #endif
  14385. char pow ();
  14386. int
  14387. main ()
  14388. {
  14389. return pow ();
  14390. ;
  14391. return 0;
  14392. }
  14393. _ACEOF
  14394. if ac_fn_c_try_link "$LINENO"; then :
  14395. ac_cv_lib_m_pow=yes
  14396. else
  14397. ac_cv_lib_m_pow=no
  14398. fi
  14399. rm -f core conftest.err conftest.$ac_objext \
  14400. conftest$ac_exeext conftest.$ac_ext
  14401. LIBS=$ac_check_lib_save_LIBS
  14402. fi
  14403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14404. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14405. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14406. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14407. fi
  14408. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
  14409. do :
  14410. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14411. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14412. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14413. cat >>confdefs.h <<_ACEOF
  14414. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14415. _ACEOF
  14416. fi
  14417. done
  14418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14419. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14420. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14421. $as_echo_n "(cached) " >&6
  14422. else
  14423. ac_check_lib_save_LIBS=$LIBS
  14424. LIBS="-liconv $LIBS"
  14425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14426. /* end confdefs.h. */
  14427. /* Override any GCC internal prototype to avoid an error.
  14428. Use char because int might match the return type of a GCC
  14429. builtin and then its argument prototype would still apply. */
  14430. #ifdef __cplusplus
  14431. extern "C"
  14432. #endif
  14433. char iconv_open ();
  14434. int
  14435. main ()
  14436. {
  14437. return iconv_open ();
  14438. ;
  14439. return 0;
  14440. }
  14441. _ACEOF
  14442. if ac_fn_c_try_link "$LINENO"; then :
  14443. ac_cv_lib_iconv_iconv_open=yes
  14444. else
  14445. ac_cv_lib_iconv_iconv_open=no
  14446. fi
  14447. rm -f core conftest.err conftest.$ac_objext \
  14448. conftest$ac_exeext conftest.$ac_ext
  14449. LIBS=$ac_check_lib_save_LIBS
  14450. fi
  14451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14452. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14453. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14454. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14455. fi
  14456. for ac_func in iconv
  14457. do :
  14458. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14459. if test "x$ac_cv_func_iconv" = xyes; then :
  14460. cat >>confdefs.h <<_ACEOF
  14461. #define HAVE_ICONV 1
  14462. _ACEOF
  14463. fi
  14464. done
  14465. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14466. "
  14467. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14468. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14469. fi
  14470. fi
  14471. # Check whether --enable-gcc-atomics was given.
  14472. if test "${enable_gcc_atomics+set}" = set; then :
  14473. enableval=$enable_gcc_atomics;
  14474. else
  14475. enable_gcc_atomics=yes
  14476. fi
  14477. if test x$enable_gcc_atomics = xyes; then
  14478. have_gcc_atomics=no
  14479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14480. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14482. /* end confdefs.h. */
  14483. int
  14484. main ()
  14485. {
  14486. int a;
  14487. void *x, *y, *z;
  14488. __sync_lock_test_and_set(&a, 4);
  14489. __sync_lock_test_and_set(&x, y);
  14490. __sync_fetch_and_add(&a, 1);
  14491. __sync_bool_compare_and_swap(&a, 5, 10);
  14492. __sync_bool_compare_and_swap(&x, y, z);
  14493. ;
  14494. return 0;
  14495. }
  14496. _ACEOF
  14497. if ac_fn_c_try_link "$LINENO"; then :
  14498. have_gcc_atomics=yes
  14499. fi
  14500. rm -f core conftest.err conftest.$ac_objext \
  14501. conftest$ac_exeext conftest.$ac_ext
  14502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14503. $as_echo "$have_gcc_atomics" >&6; }
  14504. if test x$have_gcc_atomics = xyes; then
  14505. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14506. else
  14507. # See if we have the minimum operation needed for GCC atomics
  14508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14509. /* end confdefs.h. */
  14510. int
  14511. main ()
  14512. {
  14513. int a;
  14514. __sync_lock_test_and_set(&a, 1);
  14515. __sync_lock_release(&a);
  14516. ;
  14517. return 0;
  14518. }
  14519. _ACEOF
  14520. if ac_fn_c_try_link "$LINENO"; then :
  14521. have_gcc_sync_lock_test_and_set=yes
  14522. fi
  14523. rm -f core conftest.err conftest.$ac_objext \
  14524. conftest$ac_exeext conftest.$ac_ext
  14525. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14526. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14527. fi
  14528. fi
  14529. fi
  14530. # Standard C sources
  14531. SOURCES="$SOURCES $srcdir/src/*.c"
  14532. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14533. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14534. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14535. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14536. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14537. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14538. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14539. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14540. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14541. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14542. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14543. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14544. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14545. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14546. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14547. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14548. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14549. # Check whether --enable-atomic was given.
  14550. if test "${enable_atomic+set}" = set; then :
  14551. enableval=$enable_atomic;
  14552. else
  14553. enable_atomic=yes
  14554. fi
  14555. if test x$enable_atomic != xyes; then
  14556. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14557. else
  14558. SUMMARY_modules="${SUMMARY_modules} atomic"
  14559. fi
  14560. # Check whether --enable-audio was given.
  14561. if test "${enable_audio+set}" = set; then :
  14562. enableval=$enable_audio;
  14563. else
  14564. enable_audio=yes
  14565. fi
  14566. if test x$enable_audio != xyes; then
  14567. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14568. else
  14569. SUMMARY_modules="${SUMMARY_modules} audio"
  14570. fi
  14571. # Check whether --enable-video was given.
  14572. if test "${enable_video+set}" = set; then :
  14573. enableval=$enable_video;
  14574. else
  14575. enable_video=yes
  14576. fi
  14577. if test x$enable_video != xyes; then
  14578. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14579. else
  14580. SUMMARY_modules="${SUMMARY_modules} video"
  14581. fi
  14582. # Check whether --enable-render was given.
  14583. if test "${enable_render+set}" = set; then :
  14584. enableval=$enable_render;
  14585. else
  14586. enable_render=yes
  14587. fi
  14588. if test x$enable_render != xyes; then
  14589. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14590. else
  14591. SUMMARY_modules="${SUMMARY_modules} render"
  14592. fi
  14593. # Check whether --enable-events was given.
  14594. if test "${enable_events+set}" = set; then :
  14595. enableval=$enable_events;
  14596. else
  14597. enable_events=yes
  14598. fi
  14599. if test x$enable_events != xyes; then
  14600. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14601. else
  14602. SUMMARY_modules="${SUMMARY_modules} events"
  14603. fi
  14604. # Check whether --enable-joystick was given.
  14605. if test "${enable_joystick+set}" = set; then :
  14606. enableval=$enable_joystick;
  14607. else
  14608. enable_joystick=yes
  14609. fi
  14610. if test x$enable_joystick != xyes; then
  14611. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14612. else
  14613. SUMMARY_modules="${SUMMARY_modules} joystick"
  14614. fi
  14615. # Check whether --enable-haptic was given.
  14616. if test "${enable_haptic+set}" = set; then :
  14617. enableval=$enable_haptic;
  14618. else
  14619. enable_haptic=yes
  14620. fi
  14621. if test x$enable_haptic != xyes; then
  14622. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14623. else
  14624. SUMMARY_modules="${SUMMARY_modules} haptic"
  14625. fi
  14626. # Check whether --enable-power was given.
  14627. if test "${enable_power+set}" = set; then :
  14628. enableval=$enable_power;
  14629. else
  14630. enable_power=yes
  14631. fi
  14632. if test x$enable_power != xyes; then
  14633. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14634. else
  14635. SUMMARY_modules="${SUMMARY_modules} power"
  14636. fi
  14637. # Check whether --enable-filesystem was given.
  14638. if test "${enable_filesystem+set}" = set; then :
  14639. enableval=$enable_filesystem;
  14640. else
  14641. enable_filesystem=yes
  14642. fi
  14643. if test x$enable_filesystem != xyes; then
  14644. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14645. else
  14646. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14647. fi
  14648. # Check whether --enable-threads was given.
  14649. if test "${enable_threads+set}" = set; then :
  14650. enableval=$enable_threads;
  14651. else
  14652. enable_threads=yes
  14653. fi
  14654. if test x$enable_threads != xyes; then
  14655. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14656. else
  14657. SUMMARY_modules="${SUMMARY_modules} threads"
  14658. fi
  14659. # Check whether --enable-timers was given.
  14660. if test "${enable_timers+set}" = set; then :
  14661. enableval=$enable_timers;
  14662. else
  14663. enable_timers=yes
  14664. fi
  14665. if test x$enable_timers != xyes; then
  14666. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14667. else
  14668. SUMMARY_modules="${SUMMARY_modules} timers"
  14669. fi
  14670. # Check whether --enable-file was given.
  14671. if test "${enable_file+set}" = set; then :
  14672. enableval=$enable_file;
  14673. else
  14674. enable_file=yes
  14675. fi
  14676. if test x$enable_file != xyes; then
  14677. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14678. else
  14679. SUMMARY_modules="${SUMMARY_modules} file"
  14680. fi
  14681. # Check whether --enable-loadso was given.
  14682. if test "${enable_loadso+set}" = set; then :
  14683. enableval=$enable_loadso;
  14684. else
  14685. enable_loadso=yes
  14686. fi
  14687. if test x$enable_loadso != xyes; then
  14688. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14689. else
  14690. SUMMARY_modules="${SUMMARY_modules} loadso"
  14691. fi
  14692. # Check whether --enable-cpuinfo was given.
  14693. if test "${enable_cpuinfo+set}" = set; then :
  14694. enableval=$enable_cpuinfo;
  14695. else
  14696. enable_cpuinfo=yes
  14697. fi
  14698. if test x$enable_cpuinfo != xyes; then
  14699. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14700. else
  14701. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14702. fi
  14703. # Check whether --enable-assembly was given.
  14704. if test "${enable_assembly+set}" = set; then :
  14705. enableval=$enable_assembly;
  14706. else
  14707. enable_assembly=yes
  14708. fi
  14709. if test x$enable_assembly = xyes; then
  14710. SUMMARY_modules="${SUMMARY_modules} assembly"
  14711. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14712. # Make sure that we don't generate floating point code that would
  14713. # cause illegal instruction exceptions on older processors
  14714. case "$host" in
  14715. *-*-darwin*)
  14716. # Don't need to worry about Apple hardware, it's all SSE capable
  14717. default_ssemath=yes
  14718. ;;
  14719. *64-*-*)
  14720. # x86 64-bit architectures all have SSE instructions
  14721. default_ssemath=yes
  14722. ;;
  14723. *)
  14724. default_ssemath=no
  14725. ;;
  14726. esac
  14727. # Check whether --enable-ssemath was given.
  14728. if test "${enable_ssemath+set}" = set; then :
  14729. enableval=$enable_ssemath;
  14730. else
  14731. enable_ssemath=$default_ssemath
  14732. fi
  14733. if test x$enable_ssemath = xno; then
  14734. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  14735. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14736. fi
  14737. fi
  14738. # Check whether --enable-mmx was given.
  14739. if test "${enable_mmx+set}" = set; then :
  14740. enableval=$enable_mmx;
  14741. else
  14742. enable_mmx=yes
  14743. fi
  14744. if test x$enable_mmx = xyes; then
  14745. save_CFLAGS="$CFLAGS"
  14746. have_gcc_mmx=no
  14747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14748. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14749. mmx_CFLAGS="-mmmx"
  14750. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14752. /* end confdefs.h. */
  14753. #ifdef __MINGW32__
  14754. #include <_mingw.h>
  14755. #ifdef __MINGW64_VERSION_MAJOR
  14756. #include <intrin.h>
  14757. #else
  14758. #include <mmintrin.h>
  14759. #endif
  14760. #else
  14761. #include <mmintrin.h>
  14762. #endif
  14763. #ifndef __MMX__
  14764. #error Assembler CPP flag not enabled
  14765. #endif
  14766. int
  14767. main ()
  14768. {
  14769. ;
  14770. return 0;
  14771. }
  14772. _ACEOF
  14773. if ac_fn_c_try_compile "$LINENO"; then :
  14774. have_gcc_mmx=yes
  14775. fi
  14776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14778. $as_echo "$have_gcc_mmx" >&6; }
  14779. CFLAGS="$save_CFLAGS"
  14780. if test x$have_gcc_mmx = xyes; then
  14781. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14782. SUMMARY_math="${SUMMARY_math} mmx"
  14783. fi
  14784. fi
  14785. # Check whether --enable-3dnow was given.
  14786. if test "${enable_3dnow+set}" = set; then :
  14787. enableval=$enable_3dnow;
  14788. else
  14789. enable_3dnow=yes
  14790. fi
  14791. if test x$enable_3dnow = xyes; then
  14792. save_CFLAGS="$CFLAGS"
  14793. have_gcc_3dnow=no
  14794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14795. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14796. amd3dnow_CFLAGS="-m3dnow"
  14797. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14799. /* end confdefs.h. */
  14800. #include <mm3dnow.h>
  14801. #ifndef __3dNOW__
  14802. #error Assembler CPP flag not enabled
  14803. #endif
  14804. int
  14805. main ()
  14806. {
  14807. void *p = 0;
  14808. _m_prefetch(p);
  14809. ;
  14810. return 0;
  14811. }
  14812. _ACEOF
  14813. if ac_fn_c_try_link "$LINENO"; then :
  14814. have_gcc_3dnow=yes
  14815. fi
  14816. rm -f core conftest.err conftest.$ac_objext \
  14817. conftest$ac_exeext conftest.$ac_ext
  14818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14819. $as_echo "$have_gcc_3dnow" >&6; }
  14820. CFLAGS="$save_CFLAGS"
  14821. if test x$have_gcc_3dnow = xyes; then
  14822. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14823. SUMMARY_math="${SUMMARY_math} 3dnow"
  14824. fi
  14825. fi
  14826. # Check whether --enable-sse was given.
  14827. if test "${enable_sse+set}" = set; then :
  14828. enableval=$enable_sse;
  14829. else
  14830. enable_sse=yes
  14831. fi
  14832. if test x$enable_sse = xyes; then
  14833. save_CFLAGS="$CFLAGS"
  14834. have_gcc_sse=no
  14835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14836. $as_echo_n "checking for GCC -msse option... " >&6; }
  14837. sse_CFLAGS="-msse"
  14838. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14840. /* end confdefs.h. */
  14841. #ifdef __MINGW32__
  14842. #include <_mingw.h>
  14843. #ifdef __MINGW64_VERSION_MAJOR
  14844. #include <intrin.h>
  14845. #else
  14846. #include <xmmintrin.h>
  14847. #endif
  14848. #else
  14849. #include <xmmintrin.h>
  14850. #endif
  14851. #ifndef __SSE__
  14852. #error Assembler CPP flag not enabled
  14853. #endif
  14854. int
  14855. main ()
  14856. {
  14857. ;
  14858. return 0;
  14859. }
  14860. _ACEOF
  14861. if ac_fn_c_try_compile "$LINENO"; then :
  14862. have_gcc_sse=yes
  14863. fi
  14864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14866. $as_echo "$have_gcc_sse" >&6; }
  14867. CFLAGS="$save_CFLAGS"
  14868. if test x$have_gcc_sse = xyes; then
  14869. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14870. SUMMARY_math="${SUMMARY_math} sse"
  14871. fi
  14872. fi
  14873. # Check whether --enable-sse2 was given.
  14874. if test "${enable_sse2+set}" = set; then :
  14875. enableval=$enable_sse2;
  14876. else
  14877. enable_sse2=$default_ssemath
  14878. fi
  14879. if test x$enable_sse2 = xyes; then
  14880. save_CFLAGS="$CFLAGS"
  14881. have_gcc_sse2=no
  14882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14883. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14884. sse2_CFLAGS="-msse2"
  14885. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14887. /* end confdefs.h. */
  14888. #ifdef __MINGW32__
  14889. #include <_mingw.h>
  14890. #ifdef __MINGW64_VERSION_MAJOR
  14891. #include <intrin.h>
  14892. #else
  14893. #include <emmintrin.h>
  14894. #endif
  14895. #else
  14896. #include <emmintrin.h>
  14897. #endif
  14898. #ifndef __SSE2__
  14899. #error Assembler CPP flag not enabled
  14900. #endif
  14901. int
  14902. main ()
  14903. {
  14904. ;
  14905. return 0;
  14906. }
  14907. _ACEOF
  14908. if ac_fn_c_try_compile "$LINENO"; then :
  14909. have_gcc_sse2=yes
  14910. fi
  14911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14913. $as_echo "$have_gcc_sse2" >&6; }
  14914. CFLAGS="$save_CFLAGS"
  14915. if test x$have_gcc_sse2 = xyes; then
  14916. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14917. SUMMARY_math="${SUMMARY_math} sse2"
  14918. fi
  14919. fi
  14920. # Check whether --enable-sse3 was given.
  14921. if test "${enable_sse3+set}" = set; then :
  14922. enableval=$enable_sse3;
  14923. else
  14924. enable_sse3=$default_ssemath
  14925. fi
  14926. if test x$enable_sse3 = xyes; then
  14927. save_CFLAGS="$CFLAGS"
  14928. have_gcc_sse3=no
  14929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  14930. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  14931. sse3_CFLAGS="-msse3"
  14932. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  14933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14934. /* end confdefs.h. */
  14935. #ifdef __MINGW32__
  14936. #include <_mingw.h>
  14937. #ifdef __MINGW64_VERSION_MAJOR
  14938. #include <intrin.h>
  14939. #else
  14940. #include <pmmintrin.h>
  14941. #endif
  14942. #else
  14943. #include <pmmintrin.h>
  14944. #endif
  14945. #ifndef __SSE2__
  14946. #error Assembler CPP flag not enabled
  14947. #endif
  14948. int
  14949. main ()
  14950. {
  14951. ;
  14952. return 0;
  14953. }
  14954. _ACEOF
  14955. if ac_fn_c_try_compile "$LINENO"; then :
  14956. have_gcc_sse3=yes
  14957. fi
  14958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  14960. $as_echo "$have_gcc_sse3" >&6; }
  14961. CFLAGS="$save_CFLAGS"
  14962. if test x$have_gcc_sse3 = xyes; then
  14963. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  14964. SUMMARY_math="${SUMMARY_math} sse3"
  14965. fi
  14966. fi
  14967. # Check whether --enable-altivec was given.
  14968. if test "${enable_altivec+set}" = set; then :
  14969. enableval=$enable_altivec;
  14970. else
  14971. enable_altivec=yes
  14972. fi
  14973. if test x$enable_altivec = xyes; then
  14974. save_CFLAGS="$CFLAGS"
  14975. have_gcc_altivec=no
  14976. have_altivec_h_hdr=no
  14977. altivec_CFLAGS="-maltivec"
  14978. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14980. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14982. /* end confdefs.h. */
  14983. #include <altivec.h>
  14984. vector unsigned int vzero() {
  14985. return vec_splat_u32(0);
  14986. }
  14987. int
  14988. main ()
  14989. {
  14990. ;
  14991. return 0;
  14992. }
  14993. _ACEOF
  14994. if ac_fn_c_try_compile "$LINENO"; then :
  14995. have_gcc_altivec=yes
  14996. have_altivec_h_hdr=yes
  14997. fi
  14998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15000. $as_echo "$have_gcc_altivec" >&6; }
  15001. if test x$have_gcc_altivec = xno; then
  15002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15003. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15005. /* end confdefs.h. */
  15006. vector unsigned int vzero() {
  15007. return vec_splat_u32(0);
  15008. }
  15009. int
  15010. main ()
  15011. {
  15012. ;
  15013. return 0;
  15014. }
  15015. _ACEOF
  15016. if ac_fn_c_try_compile "$LINENO"; then :
  15017. have_gcc_altivec=yes
  15018. fi
  15019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15021. $as_echo "$have_gcc_altivec" >&6; }
  15022. fi
  15023. if test x$have_gcc_altivec = xno; then
  15024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15025. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15026. altivec_CFLAGS="-faltivec"
  15027. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15029. /* end confdefs.h. */
  15030. #include <altivec.h>
  15031. vector unsigned int vzero() {
  15032. return vec_splat_u32(0);
  15033. }
  15034. int
  15035. main ()
  15036. {
  15037. ;
  15038. return 0;
  15039. }
  15040. _ACEOF
  15041. if ac_fn_c_try_compile "$LINENO"; then :
  15042. have_gcc_altivec=yes
  15043. have_altivec_h_hdr=yes
  15044. fi
  15045. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15047. $as_echo "$have_gcc_altivec" >&6; }
  15048. fi
  15049. if test x$have_gcc_altivec = xno; then
  15050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15051. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15053. /* end confdefs.h. */
  15054. vector unsigned int vzero() {
  15055. return vec_splat_u32(0);
  15056. }
  15057. int
  15058. main ()
  15059. {
  15060. ;
  15061. return 0;
  15062. }
  15063. _ACEOF
  15064. if ac_fn_c_try_compile "$LINENO"; then :
  15065. have_gcc_altivec=yes
  15066. fi
  15067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15069. $as_echo "$have_gcc_altivec" >&6; }
  15070. fi
  15071. CFLAGS="$save_CFLAGS"
  15072. if test x$have_gcc_altivec = xyes; then
  15073. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15074. if test x$have_altivec_h_hdr = xyes; then
  15075. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15076. fi
  15077. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15078. SUMMARY_math="${SUMMARY_math} altivec"
  15079. fi
  15080. fi
  15081. fi
  15082. CheckOSS()
  15083. {
  15084. # Check whether --enable-oss was given.
  15085. if test "${enable_oss+set}" = set; then :
  15086. enableval=$enable_oss;
  15087. else
  15088. enable_oss=maybe
  15089. fi
  15090. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15091. # use sndio instead. So on there, we default to disabled. You can force
  15092. # it on if you really want, though.
  15093. if test x$enable_oss = xmaybe; then
  15094. enable_oss=yes
  15095. case "$host" in
  15096. *-*-openbsd*)
  15097. enable_oss=no;;
  15098. esac
  15099. fi
  15100. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15102. $as_echo_n "checking for OSS audio support... " >&6; }
  15103. have_oss=no
  15104. if test x$have_oss != xyes; then
  15105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15106. /* end confdefs.h. */
  15107. #include <sys/soundcard.h>
  15108. int
  15109. main ()
  15110. {
  15111. int arg = SNDCTL_DSP_SETFRAGMENT;
  15112. ;
  15113. return 0;
  15114. }
  15115. _ACEOF
  15116. if ac_fn_c_try_compile "$LINENO"; then :
  15117. have_oss=yes
  15118. fi
  15119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15120. fi
  15121. if test x$have_oss != xyes; then
  15122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15123. /* end confdefs.h. */
  15124. #include <soundcard.h>
  15125. int
  15126. main ()
  15127. {
  15128. int arg = SNDCTL_DSP_SETFRAGMENT;
  15129. ;
  15130. return 0;
  15131. }
  15132. _ACEOF
  15133. if ac_fn_c_try_compile "$LINENO"; then :
  15134. have_oss=yes
  15135. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15136. fi
  15137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15138. fi
  15139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15140. $as_echo "$have_oss" >&6; }
  15141. if test x$have_oss = xyes; then
  15142. SUMMARY_audio="${SUMMARY_audio} oss"
  15143. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15144. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15145. have_audio=yes
  15146. # We may need to link with ossaudio emulation library
  15147. case "$host" in
  15148. *-*-openbsd*|*-*-netbsd*)
  15149. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15150. esac
  15151. fi
  15152. fi
  15153. }
  15154. CheckALSA()
  15155. {
  15156. # Check whether --enable-alsa was given.
  15157. if test "${enable_alsa+set}" = set; then :
  15158. enableval=$enable_alsa;
  15159. else
  15160. enable_alsa=yes
  15161. fi
  15162. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15163. alsa_save_CFLAGS="$CFLAGS"
  15164. alsa_save_LDFLAGS="$LDFLAGS"
  15165. alsa_save_LIBS="$LIBS"
  15166. alsa_found=yes
  15167. # Check whether --with-alsa-prefix was given.
  15168. if test "${with_alsa_prefix+set}" = set; then :
  15169. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15170. else
  15171. alsa_prefix=""
  15172. fi
  15173. # Check whether --with-alsa-inc-prefix was given.
  15174. if test "${with_alsa_inc_prefix+set}" = set; then :
  15175. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15176. else
  15177. alsa_inc_prefix=""
  15178. fi
  15179. # Check whether --enable-alsatest was given.
  15180. if test "${enable_alsatest+set}" = set; then :
  15181. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15182. else
  15183. enable_alsatest=yes
  15184. fi
  15185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15186. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15187. if test "$alsa_inc_prefix" != "" ; then
  15188. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15189. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15190. fi
  15191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15192. $as_echo "$ALSA_CFLAGS" >&6; }
  15193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15194. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15195. if test "$alsa_prefix" != "" ; then
  15196. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15197. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15198. fi
  15199. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15200. LIBS=`echo $LIBS | sed 's/-lm//'`
  15201. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15202. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15203. LIBS=`echo $LIBS | sed 's/ //'`
  15204. LIBS="$ALSA_LIBS $LIBS"
  15205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15206. $as_echo "$ALSA_LIBS" >&6; }
  15207. min_alsa_version=1.0.11
  15208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15209. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15210. no_alsa=""
  15211. alsa_min_major_version=`echo $min_alsa_version | \
  15212. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15213. alsa_min_minor_version=`echo $min_alsa_version | \
  15214. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15215. alsa_min_micro_version=`echo $min_alsa_version | \
  15216. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15217. ac_ext=c
  15218. ac_cpp='$CPP $CPPFLAGS'
  15219. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15220. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15221. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15223. /* end confdefs.h. */
  15224. #include <alsa/asoundlib.h>
  15225. int
  15226. main ()
  15227. {
  15228. /* ensure backward compatibility */
  15229. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15230. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15231. #endif
  15232. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15233. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15234. #endif
  15235. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15236. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15237. #endif
  15238. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15239. exit(0);
  15240. # else
  15241. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15242. # error not present
  15243. # endif
  15244. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15245. exit(0);
  15246. # else
  15247. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15248. # error not present
  15249. # endif
  15250. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15251. # error not present
  15252. # endif
  15253. # endif
  15254. # endif
  15255. exit(0);
  15256. ;
  15257. return 0;
  15258. }
  15259. _ACEOF
  15260. if ac_fn_c_try_compile "$LINENO"; then :
  15261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15262. $as_echo "found." >&6; }
  15263. else
  15264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15265. $as_echo "not present." >&6; }
  15266. alsa_found=no
  15267. fi
  15268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15269. ac_ext=c
  15270. ac_cpp='$CPP $CPPFLAGS'
  15271. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15272. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15273. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15274. if test "x$enable_alsatest" = "xyes"; then
  15275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15276. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15277. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15278. $as_echo_n "(cached) " >&6
  15279. else
  15280. ac_check_lib_save_LIBS=$LIBS
  15281. LIBS="-lasound $LIBS"
  15282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15283. /* end confdefs.h. */
  15284. /* Override any GCC internal prototype to avoid an error.
  15285. Use char because int might match the return type of a GCC
  15286. builtin and then its argument prototype would still apply. */
  15287. #ifdef __cplusplus
  15288. extern "C"
  15289. #endif
  15290. char snd_ctl_open ();
  15291. int
  15292. main ()
  15293. {
  15294. return snd_ctl_open ();
  15295. ;
  15296. return 0;
  15297. }
  15298. _ACEOF
  15299. if ac_fn_c_try_link "$LINENO"; then :
  15300. ac_cv_lib_asound_snd_ctl_open=yes
  15301. else
  15302. ac_cv_lib_asound_snd_ctl_open=no
  15303. fi
  15304. rm -f core conftest.err conftest.$ac_objext \
  15305. conftest$ac_exeext conftest.$ac_ext
  15306. LIBS=$ac_check_lib_save_LIBS
  15307. fi
  15308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15309. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15310. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15311. cat >>confdefs.h <<_ACEOF
  15312. #define HAVE_LIBASOUND 1
  15313. _ACEOF
  15314. LIBS="-lasound $LIBS"
  15315. else
  15316. alsa_found=no
  15317. fi
  15318. fi
  15319. if test "x$alsa_found" = "xyes" ; then
  15320. have_alsa=yes
  15321. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15322. LIBS=`echo $LIBS | sed 's/ //'`
  15323. LIBS="-lasound $LIBS"
  15324. fi
  15325. if test "x$alsa_found" = "xno" ; then
  15326. have_alsa=no
  15327. CFLAGS="$alsa_save_CFLAGS"
  15328. LDFLAGS="$alsa_save_LDFLAGS"
  15329. LIBS="$alsa_save_LIBS"
  15330. ALSA_CFLAGS=""
  15331. ALSA_LIBS=""
  15332. fi
  15333. # Restore all flags from before the ALSA detection runs
  15334. CFLAGS="$alsa_save_CFLAGS"
  15335. LDFLAGS="$alsa_save_LDFLAGS"
  15336. LIBS="$alsa_save_LIBS"
  15337. if test x$have_alsa = xyes; then
  15338. # Check whether --enable-alsa-shared was given.
  15339. if test "${enable_alsa_shared+set}" = set; then :
  15340. enableval=$enable_alsa_shared;
  15341. else
  15342. enable_alsa_shared=yes
  15343. fi
  15344. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15345. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15346. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15347. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15348. if test x$have_loadso != xyes && \
  15349. test x$enable_alsa_shared = xyes; then
  15350. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15351. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15352. fi
  15353. if test x$have_loadso = xyes && \
  15354. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15355. echo "-- dynamic libasound -> $alsa_lib"
  15356. cat >>confdefs.h <<_ACEOF
  15357. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15358. _ACEOF
  15359. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15360. else
  15361. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15362. SUMMARY_audio="${SUMMARY_audio} alsa"
  15363. fi
  15364. have_audio=yes
  15365. fi
  15366. fi
  15367. }
  15368. CheckESD()
  15369. {
  15370. # Check whether --enable-esd was given.
  15371. if test "${enable_esd+set}" = set; then :
  15372. enableval=$enable_esd;
  15373. else
  15374. enable_esd=yes
  15375. fi
  15376. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15377. # Check whether --with-esd-prefix was given.
  15378. if test "${with_esd_prefix+set}" = set; then :
  15379. withval=$with_esd_prefix; esd_prefix="$withval"
  15380. else
  15381. esd_prefix=""
  15382. fi
  15383. # Check whether --with-esd-exec-prefix was given.
  15384. if test "${with_esd_exec_prefix+set}" = set; then :
  15385. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15386. else
  15387. esd_exec_prefix=""
  15388. fi
  15389. # Check whether --enable-esdtest was given.
  15390. if test "${enable_esdtest+set}" = set; then :
  15391. enableval=$enable_esdtest;
  15392. else
  15393. enable_esdtest=yes
  15394. fi
  15395. if test x$esd_exec_prefix != x ; then
  15396. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15397. if test x${ESD_CONFIG+set} != xset ; then
  15398. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15399. fi
  15400. fi
  15401. if test x$esd_prefix != x ; then
  15402. esd_args="$esd_args --prefix=$esd_prefix"
  15403. if test x${ESD_CONFIG+set} != xset ; then
  15404. ESD_CONFIG=$esd_prefix/bin/esd-config
  15405. fi
  15406. fi
  15407. # Extract the first word of "esd-config", so it can be a program name with args.
  15408. set dummy esd-config; ac_word=$2
  15409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15410. $as_echo_n "checking for $ac_word... " >&6; }
  15411. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15412. $as_echo_n "(cached) " >&6
  15413. else
  15414. case $ESD_CONFIG in
  15415. [\\/]* | ?:[\\/]*)
  15416. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15417. ;;
  15418. *)
  15419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15420. for as_dir in $PATH
  15421. do
  15422. IFS=$as_save_IFS
  15423. test -z "$as_dir" && as_dir=.
  15424. for ac_exec_ext in '' $ac_executable_extensions; do
  15425. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15426. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15427. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15428. break 2
  15429. fi
  15430. done
  15431. done
  15432. IFS=$as_save_IFS
  15433. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15434. ;;
  15435. esac
  15436. fi
  15437. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15438. if test -n "$ESD_CONFIG"; then
  15439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15440. $as_echo "$ESD_CONFIG" >&6; }
  15441. else
  15442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15443. $as_echo "no" >&6; }
  15444. fi
  15445. min_esd_version=0.2.8
  15446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15447. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15448. no_esd=""
  15449. if test "$ESD_CONFIG" = "no" ; then
  15450. no_esd=yes
  15451. else
  15452. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15453. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15454. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15455. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15456. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15457. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15458. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15459. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15460. if test "x$enable_esdtest" = "xyes" ; then
  15461. ac_save_CFLAGS="$CFLAGS"
  15462. ac_save_LIBS="$LIBS"
  15463. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15464. LIBS="$LIBS $ESD_LIBS"
  15465. rm -f conf.esdtest
  15466. if test "$cross_compiling" = yes; then :
  15467. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15468. else
  15469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15470. /* end confdefs.h. */
  15471. #include <stdio.h>
  15472. #include <stdlib.h>
  15473. #include <string.h>
  15474. #include <esd.h>
  15475. char*
  15476. my_strdup (char *str)
  15477. {
  15478. char *new_str;
  15479. if (str)
  15480. {
  15481. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15482. strcpy (new_str, str);
  15483. }
  15484. else
  15485. new_str = NULL;
  15486. return new_str;
  15487. }
  15488. int main ()
  15489. {
  15490. int major, minor, micro;
  15491. char *tmp_version;
  15492. system ("touch conf.esdtest");
  15493. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15494. tmp_version = my_strdup("$min_esd_version");
  15495. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15496. printf("%s, bad version string\n", "$min_esd_version");
  15497. exit(1);
  15498. }
  15499. if (($esd_major_version > major) ||
  15500. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15501. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15502. {
  15503. return 0;
  15504. }
  15505. else
  15506. {
  15507. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15508. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15509. printf("*** best to upgrade to the required version.\n");
  15510. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15511. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15512. printf("*** config.cache before re-running configure\n");
  15513. return 1;
  15514. }
  15515. }
  15516. _ACEOF
  15517. if ac_fn_c_try_run "$LINENO"; then :
  15518. else
  15519. no_esd=yes
  15520. fi
  15521. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15522. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15523. fi
  15524. CFLAGS="$ac_save_CFLAGS"
  15525. LIBS="$ac_save_LIBS"
  15526. fi
  15527. fi
  15528. if test "x$no_esd" = x ; then
  15529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15530. $as_echo "yes" >&6; }
  15531. have_esd=yes
  15532. else
  15533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15534. $as_echo "no" >&6; }
  15535. if test "$ESD_CONFIG" = "no" ; then
  15536. echo "*** The esd-config script installed by ESD could not be found"
  15537. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15538. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15539. echo "*** full path to esd-config."
  15540. else
  15541. if test -f conf.esdtest ; then
  15542. :
  15543. else
  15544. echo "*** Could not run ESD test program, checking why..."
  15545. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15546. LIBS="$LIBS $ESD_LIBS"
  15547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15548. /* end confdefs.h. */
  15549. #include <stdio.h>
  15550. #include <esd.h>
  15551. int
  15552. main ()
  15553. {
  15554. return 0;
  15555. ;
  15556. return 0;
  15557. }
  15558. _ACEOF
  15559. if ac_fn_c_try_link "$LINENO"; then :
  15560. echo "*** The test program compiled, but did not run. This usually means"
  15561. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15562. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15563. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15564. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15565. echo "*** is required on your system"
  15566. echo "***"
  15567. echo "*** If you have an old version installed, it is best to remove it, although"
  15568. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15569. else
  15570. echo "*** The test program failed to compile or link. See the file config.log for the"
  15571. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15572. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15573. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15574. fi
  15575. rm -f core conftest.err conftest.$ac_objext \
  15576. conftest$ac_exeext conftest.$ac_ext
  15577. CFLAGS="$ac_save_CFLAGS"
  15578. LIBS="$ac_save_LIBS"
  15579. fi
  15580. fi
  15581. ESD_CFLAGS=""
  15582. ESD_LIBS=""
  15583. have_esd=no
  15584. fi
  15585. rm -f conf.esdtest
  15586. if test x$have_esd = xyes; then
  15587. # Check whether --enable-esd-shared was given.
  15588. if test "${enable_esd_shared+set}" = set; then :
  15589. enableval=$enable_esd_shared;
  15590. else
  15591. enable_esd_shared=yes
  15592. fi
  15593. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15594. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15595. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15596. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15597. if test x$have_loadso != xyes && \
  15598. test x$enable_esd_shared = xyes; then
  15599. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15600. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15601. fi
  15602. if test x$have_loadso = xyes && \
  15603. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15604. echo "-- dynamic libesd -> $esd_lib"
  15605. cat >>confdefs.h <<_ACEOF
  15606. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15607. _ACEOF
  15608. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15609. else
  15610. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15611. SUMMARY_audio="${SUMMARY_audio} esd"
  15612. fi
  15613. have_audio=yes
  15614. fi
  15615. fi
  15616. }
  15617. CheckPulseAudio()
  15618. {
  15619. # Check whether --enable-pulseaudio was given.
  15620. if test "${enable_pulseaudio+set}" = set; then :
  15621. enableval=$enable_pulseaudio;
  15622. else
  15623. enable_pulseaudio=yes
  15624. fi
  15625. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15626. audio_pulseaudio=no
  15627. PULSEAUDIO_REQUIRED_VERSION=0.9
  15628. # Extract the first word of "pkg-config", so it can be a program name with args.
  15629. set dummy pkg-config; ac_word=$2
  15630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15631. $as_echo_n "checking for $ac_word... " >&6; }
  15632. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15633. $as_echo_n "(cached) " >&6
  15634. else
  15635. case $PKG_CONFIG in
  15636. [\\/]* | ?:[\\/]*)
  15637. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15638. ;;
  15639. *)
  15640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15641. for as_dir in $PATH
  15642. do
  15643. IFS=$as_save_IFS
  15644. test -z "$as_dir" && as_dir=.
  15645. for ac_exec_ext in '' $ac_executable_extensions; do
  15646. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15647. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15648. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15649. break 2
  15650. fi
  15651. done
  15652. done
  15653. IFS=$as_save_IFS
  15654. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15655. ;;
  15656. esac
  15657. fi
  15658. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15659. if test -n "$PKG_CONFIG"; then
  15660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15661. $as_echo "$PKG_CONFIG" >&6; }
  15662. else
  15663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15664. $as_echo "no" >&6; }
  15665. fi
  15666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15667. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15668. if test x$PKG_CONFIG != xno; then
  15669. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15670. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15671. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15672. audio_pulseaudio=yes
  15673. fi
  15674. fi
  15675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15676. $as_echo "$audio_pulseaudio" >&6; }
  15677. if test x$audio_pulseaudio = xyes; then
  15678. # Check whether --enable-pulseaudio-shared was given.
  15679. if test "${enable_pulseaudio_shared+set}" = set; then :
  15680. enableval=$enable_pulseaudio_shared;
  15681. else
  15682. enable_pulseaudio_shared=yes
  15683. fi
  15684. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15685. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15686. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15687. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15688. if test x$have_loadso != xyes && \
  15689. test x$enable_pulseaudio_shared = xyes; then
  15690. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15691. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15692. fi
  15693. if test x$have_loadso = xyes && \
  15694. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15695. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15696. cat >>confdefs.h <<_ACEOF
  15697. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15698. _ACEOF
  15699. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15700. case "$host" in
  15701. # On Solaris, pulseaudio must be linked deferred explicitly
  15702. # to prevent undefined symbol failures.
  15703. *-*-solaris*)
  15704. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15705. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15706. esac
  15707. else
  15708. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15709. SUMMARY_audio="${SUMMARY_audio} pulse"
  15710. fi
  15711. have_audio=yes
  15712. fi
  15713. fi
  15714. }
  15715. CheckARTSC()
  15716. {
  15717. # Check whether --enable-arts was given.
  15718. if test "${enable_arts+set}" = set; then :
  15719. enableval=$enable_arts;
  15720. else
  15721. enable_arts=yes
  15722. fi
  15723. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15724. # Extract the first word of "artsc-config", so it can be a program name with args.
  15725. set dummy artsc-config; ac_word=$2
  15726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15727. $as_echo_n "checking for $ac_word... " >&6; }
  15728. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15729. $as_echo_n "(cached) " >&6
  15730. else
  15731. case $ARTSCONFIG in
  15732. [\\/]* | ?:[\\/]*)
  15733. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15734. ;;
  15735. *)
  15736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15737. for as_dir in $PATH
  15738. do
  15739. IFS=$as_save_IFS
  15740. test -z "$as_dir" && as_dir=.
  15741. for ac_exec_ext in '' $ac_executable_extensions; do
  15742. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15743. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15744. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15745. break 2
  15746. fi
  15747. done
  15748. done
  15749. IFS=$as_save_IFS
  15750. ;;
  15751. esac
  15752. fi
  15753. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15754. if test -n "$ARTSCONFIG"; then
  15755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15756. $as_echo "$ARTSCONFIG" >&6; }
  15757. else
  15758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15759. $as_echo "no" >&6; }
  15760. fi
  15761. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15762. : # arts isn't installed
  15763. else
  15764. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15765. ARTS_LIBS=`$ARTSCONFIG --libs`
  15766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15767. $as_echo_n "checking for aRts development environment... " >&6; }
  15768. audio_arts=no
  15769. save_CFLAGS="$CFLAGS"
  15770. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15772. /* end confdefs.h. */
  15773. #include <artsc.h>
  15774. int
  15775. main ()
  15776. {
  15777. arts_stream_t stream;
  15778. ;
  15779. return 0;
  15780. }
  15781. _ACEOF
  15782. if ac_fn_c_try_compile "$LINENO"; then :
  15783. audio_arts=yes
  15784. fi
  15785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15786. CFLAGS="$save_CFLAGS"
  15787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15788. $as_echo "$audio_arts" >&6; }
  15789. if test x$audio_arts = xyes; then
  15790. # Check whether --enable-arts-shared was given.
  15791. if test "${enable_arts_shared+set}" = set; then :
  15792. enableval=$enable_arts_shared;
  15793. else
  15794. enable_arts_shared=yes
  15795. fi
  15796. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15797. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15798. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15799. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15800. if test x$have_loadso != xyes && \
  15801. test x$enable_arts_shared = xyes; then
  15802. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15803. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15804. fi
  15805. if test x$have_loadso = xyes && \
  15806. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15807. echo "-- dynamic libartsc -> $arts_lib"
  15808. cat >>confdefs.h <<_ACEOF
  15809. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15810. _ACEOF
  15811. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15812. else
  15813. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15814. SUMMARY_audio="${SUMMARY_audio} arts"
  15815. fi
  15816. have_audio=yes
  15817. fi
  15818. fi
  15819. fi
  15820. }
  15821. CheckNAS()
  15822. {
  15823. # Check whether --enable-nas was given.
  15824. if test "${enable_nas+set}" = set; then :
  15825. enableval=$enable_nas;
  15826. else
  15827. enable_nas=yes
  15828. fi
  15829. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15830. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15831. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15832. have_nas_hdr=yes
  15833. fi
  15834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15835. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15836. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15837. $as_echo_n "(cached) " >&6
  15838. else
  15839. ac_check_lib_save_LIBS=$LIBS
  15840. LIBS="-laudio $LIBS"
  15841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15842. /* end confdefs.h. */
  15843. /* Override any GCC internal prototype to avoid an error.
  15844. Use char because int might match the return type of a GCC
  15845. builtin and then its argument prototype would still apply. */
  15846. #ifdef __cplusplus
  15847. extern "C"
  15848. #endif
  15849. char AuOpenServer ();
  15850. int
  15851. main ()
  15852. {
  15853. return AuOpenServer ();
  15854. ;
  15855. return 0;
  15856. }
  15857. _ACEOF
  15858. if ac_fn_c_try_link "$LINENO"; then :
  15859. ac_cv_lib_audio_AuOpenServer=yes
  15860. else
  15861. ac_cv_lib_audio_AuOpenServer=no
  15862. fi
  15863. rm -f core conftest.err conftest.$ac_objext \
  15864. conftest$ac_exeext conftest.$ac_ext
  15865. LIBS=$ac_check_lib_save_LIBS
  15866. fi
  15867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15868. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15869. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15870. have_nas_lib=yes
  15871. fi
  15872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15873. $as_echo_n "checking for NAS audio support... " >&6; }
  15874. have_nas=no
  15875. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15876. have_nas=yes
  15877. NAS_LIBS="-laudio"
  15878. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15879. have_nas=yes
  15880. NAS_CFLAGS="-I/usr/X11R6/include/"
  15881. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15882. fi
  15883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15884. $as_echo "$have_nas" >&6; }
  15885. if test x$have_nas = xyes; then
  15886. # Check whether --enable-nas-shared was given.
  15887. if test "${enable_nas_shared+set}" = set; then :
  15888. enableval=$enable_nas_shared;
  15889. else
  15890. enable_nas_shared=yes
  15891. fi
  15892. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15893. if test x$have_loadso != xyes && \
  15894. test x$enable_nas_shared = xyes; then
  15895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15896. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15897. fi
  15898. if test x$have_loadso = xyes && \
  15899. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15900. echo "-- dynamic libaudio -> $nas_lib"
  15901. cat >>confdefs.h <<_ACEOF
  15902. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  15903. _ACEOF
  15904. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  15905. else
  15906. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  15907. SUMMARY_audio="${SUMMARY_audio} nas"
  15908. fi
  15909. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  15910. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  15911. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  15912. have_audio=yes
  15913. fi
  15914. fi
  15915. }
  15916. CheckSNDIO()
  15917. {
  15918. # Check whether --enable-sndio was given.
  15919. if test "${enable_sndio+set}" = set; then :
  15920. enableval=$enable_sndio;
  15921. else
  15922. enable_sndio=yes
  15923. fi
  15924. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  15925. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  15926. if test "x$ac_cv_header_sndio_h" = xyes; then :
  15927. have_sndio_hdr=yes
  15928. fi
  15929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  15930. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  15931. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  15932. $as_echo_n "(cached) " >&6
  15933. else
  15934. ac_check_lib_save_LIBS=$LIBS
  15935. LIBS="-lsndio $LIBS"
  15936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15937. /* end confdefs.h. */
  15938. /* Override any GCC internal prototype to avoid an error.
  15939. Use char because int might match the return type of a GCC
  15940. builtin and then its argument prototype would still apply. */
  15941. #ifdef __cplusplus
  15942. extern "C"
  15943. #endif
  15944. char sio_open ();
  15945. int
  15946. main ()
  15947. {
  15948. return sio_open ();
  15949. ;
  15950. return 0;
  15951. }
  15952. _ACEOF
  15953. if ac_fn_c_try_link "$LINENO"; then :
  15954. ac_cv_lib_sndio_sio_open=yes
  15955. else
  15956. ac_cv_lib_sndio_sio_open=no
  15957. fi
  15958. rm -f core conftest.err conftest.$ac_objext \
  15959. conftest$ac_exeext conftest.$ac_ext
  15960. LIBS=$ac_check_lib_save_LIBS
  15961. fi
  15962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  15963. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  15964. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  15965. have_sndio_lib=yes
  15966. fi
  15967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  15968. $as_echo_n "checking for sndio audio support... " >&6; }
  15969. have_sndio=no
  15970. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  15971. have_sndio=yes
  15972. SNDIO_LIBS="-lsndio"
  15973. fi
  15974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  15975. $as_echo "$have_sndio" >&6; }
  15976. if test x$have_sndio = xyes; then
  15977. # Check whether --enable-sndio-shared was given.
  15978. if test "${enable_sndio_shared+set}" = set; then :
  15979. enableval=$enable_sndio_shared;
  15980. else
  15981. enable_sndio_shared=yes
  15982. fi
  15983. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15984. if test x$have_loadso != xyes && \
  15985. test x$enable_sndio_shared = xyes; then
  15986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  15987. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  15988. fi
  15989. if test x$have_loadso = xyes && \
  15990. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  15991. echo "-- dynamic libsndio -> $sndio_lib"
  15992. cat >>confdefs.h <<_ACEOF
  15993. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  15994. _ACEOF
  15995. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  15996. else
  15997. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  15998. SUMMARY_audio="${SUMMARY_audio} sndio"
  15999. fi
  16000. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16001. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16002. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16003. have_audio=yes
  16004. fi
  16005. fi
  16006. }
  16007. CheckFusionSound()
  16008. {
  16009. # Check whether --enable-fusionsound was given.
  16010. if test "${enable_fusionsound+set}" = set; then :
  16011. enableval=$enable_fusionsound;
  16012. else
  16013. enable_fusionsound=no
  16014. fi
  16015. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16016. fusionsound=no
  16017. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  16018. # Extract the first word of "pkg-config", so it can be a program name with args.
  16019. set dummy pkg-config; ac_word=$2
  16020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16021. $as_echo_n "checking for $ac_word... " >&6; }
  16022. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16023. $as_echo_n "(cached) " >&6
  16024. else
  16025. case $PKG_CONFIG in
  16026. [\\/]* | ?:[\\/]*)
  16027. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16028. ;;
  16029. *)
  16030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16031. for as_dir in $PATH
  16032. do
  16033. IFS=$as_save_IFS
  16034. test -z "$as_dir" && as_dir=.
  16035. for ac_exec_ext in '' $ac_executable_extensions; do
  16036. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16037. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16038. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16039. break 2
  16040. fi
  16041. done
  16042. done
  16043. IFS=$as_save_IFS
  16044. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16045. ;;
  16046. esac
  16047. fi
  16048. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16049. if test -n "$PKG_CONFIG"; then
  16050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16051. $as_echo "$PKG_CONFIG" >&6; }
  16052. else
  16053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16054. $as_echo "no" >&6; }
  16055. fi
  16056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  16057. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  16058. if test x$PKG_CONFIG != xno; then
  16059. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  16060. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  16061. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  16062. fusionsound=yes
  16063. fi
  16064. fi
  16065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  16066. $as_echo "$fusionsound" >&6; }
  16067. if test x$fusionsound = xyes; then
  16068. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16069. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16070. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16071. # Check whether --enable-fusionsound-shared was given.
  16072. if test "${enable_fusionsound_shared+set}" = set; then :
  16073. enableval=$enable_fusionsound_shared;
  16074. else
  16075. enable_fusionsound_shared=yes
  16076. fi
  16077. fusionsound_shared=no
  16078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16079. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16080. if test x$have_loadso != xyes && \
  16081. test x$enable_fusionsound_shared = xyes; then
  16082. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16083. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16084. fi
  16085. if test x$have_loadso = xyes && \
  16086. test x$enable_fusionsound_shared = xyes; then
  16087. cat >>confdefs.h <<_ACEOF
  16088. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16089. _ACEOF
  16090. fusionsound_shared=yes
  16091. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16092. else
  16093. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16094. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16095. fi
  16096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16097. $as_echo "$fusionsound_shared" >&6; }
  16098. have_audio=yes
  16099. fi
  16100. fi
  16101. }
  16102. CheckDiskAudio()
  16103. {
  16104. # Check whether --enable-diskaudio was given.
  16105. if test "${enable_diskaudio+set}" = set; then :
  16106. enableval=$enable_diskaudio;
  16107. else
  16108. enable_diskaudio=yes
  16109. fi
  16110. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16111. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16112. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16113. SUMMARY_audio="${SUMMARY_audio} disk"
  16114. fi
  16115. }
  16116. CheckDummyAudio()
  16117. {
  16118. # Check whether --enable-dummyaudio was given.
  16119. if test "${enable_dummyaudio+set}" = set; then :
  16120. enableval=$enable_dummyaudio;
  16121. else
  16122. enable_dummyaudio=yes
  16123. fi
  16124. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16125. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16126. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16127. SUMMARY_audio="${SUMMARY_audio} dummy"
  16128. fi
  16129. }
  16130. CheckLibSampleRate()
  16131. {
  16132. # Check whether --enable-libsamplerate was given.
  16133. if test "${enable_libsamplerate+set}" = set; then :
  16134. enableval=$enable_libsamplerate;
  16135. else
  16136. enable_libsamplerate=yes
  16137. fi
  16138. if test x$enable_libsamplerate = xyes; then
  16139. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16140. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16141. have_samplerate_h_hdr=yes
  16142. else
  16143. have_samplerate_h_hdr=no
  16144. fi
  16145. if test x$have_samplerate_h_hdr = xyes; then
  16146. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16147. # Check whether --enable-libsamplerate-shared was given.
  16148. if test "${enable_libsamplerate_shared+set}" = set; then :
  16149. enableval=$enable_libsamplerate_shared;
  16150. else
  16151. enable_libsamplerate_shared=yes
  16152. fi
  16153. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16154. if test x$have_loadso != xyes && \
  16155. test x$enable_libsamplerate_shared = xyes; then
  16156. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16157. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16158. fi
  16159. if test x$have_loadso = xyes && \
  16160. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16161. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16162. cat >>confdefs.h <<_ACEOF
  16163. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16164. _ACEOF
  16165. else
  16166. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16167. fi
  16168. fi
  16169. fi
  16170. }
  16171. CheckVisibilityHidden()
  16172. {
  16173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16174. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16175. have_gcc_fvisibility=no
  16176. visibility_CFLAGS="-fvisibility=hidden"
  16177. save_CFLAGS="$CFLAGS"
  16178. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16180. /* end confdefs.h. */
  16181. #if !defined(__GNUC__) || __GNUC__ < 4
  16182. #error SDL only uses visibility attributes in GCC 4 or newer
  16183. #endif
  16184. int
  16185. main ()
  16186. {
  16187. ;
  16188. return 0;
  16189. }
  16190. _ACEOF
  16191. if ac_fn_c_try_compile "$LINENO"; then :
  16192. have_gcc_fvisibility=yes
  16193. fi
  16194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16196. $as_echo "$have_gcc_fvisibility" >&6; }
  16197. CFLAGS="$save_CFLAGS"
  16198. if test x$have_gcc_fvisibility = xyes; then
  16199. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16200. fi
  16201. }
  16202. CheckStackBoundary()
  16203. {
  16204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16205. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16206. have_gcc_preferred_stack_boundary=no
  16207. save_CFLAGS="$CFLAGS"
  16208. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16210. /* end confdefs.h. */
  16211. int x = 0;
  16212. int
  16213. main ()
  16214. {
  16215. ;
  16216. return 0;
  16217. }
  16218. _ACEOF
  16219. if ac_fn_c_try_compile "$LINENO"; then :
  16220. have_gcc_preferred_stack_boundary=yes
  16221. fi
  16222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16224. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16225. CFLAGS="$save_CFLAGS"
  16226. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16227. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16228. fi
  16229. }
  16230. CheckDeclarationAfterStatement()
  16231. {
  16232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16233. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16234. have_gcc_declaration_after_statement=no
  16235. save_CFLAGS="$CFLAGS"
  16236. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16238. /* end confdefs.h. */
  16239. int x = 0;
  16240. int
  16241. main ()
  16242. {
  16243. ;
  16244. return 0;
  16245. }
  16246. _ACEOF
  16247. if ac_fn_c_try_compile "$LINENO"; then :
  16248. have_gcc_declaration_after_statement=yes
  16249. fi
  16250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16252. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16253. CFLAGS="$save_CFLAGS"
  16254. if test x$have_gcc_declaration_after_statement = xyes; then
  16255. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16256. fi
  16257. }
  16258. CheckWarnAll()
  16259. {
  16260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16261. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16262. have_gcc_Wall=no
  16263. save_CFLAGS="$CFLAGS"
  16264. CFLAGS="$save_CFLAGS -Wall"
  16265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16266. /* end confdefs.h. */
  16267. int x = 0;
  16268. int
  16269. main ()
  16270. {
  16271. ;
  16272. return 0;
  16273. }
  16274. _ACEOF
  16275. if ac_fn_c_try_compile "$LINENO"; then :
  16276. have_gcc_Wall=yes
  16277. fi
  16278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16280. $as_echo "$have_gcc_Wall" >&6; }
  16281. CFLAGS="$save_CFLAGS"
  16282. if test x$have_gcc_Wall = xyes; then
  16283. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16285. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16286. need_gcc_Wno_multichar=no
  16287. case "$host" in
  16288. *-*-haiku*)
  16289. need_gcc_Wno_multichar=yes
  16290. ;;
  16291. esac
  16292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16293. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16294. if test x$need_gcc_Wno_multichar = xyes; then
  16295. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16296. fi
  16297. fi
  16298. }
  16299. CheckWayland()
  16300. {
  16301. # Check whether --enable-video-wayland was given.
  16302. if test "${enable_video_wayland+set}" = set; then :
  16303. enableval=$enable_video_wayland;
  16304. else
  16305. enable_video_wayland=yes
  16306. fi
  16307. # Check whether --enable-video-wayland-qt-touch was given.
  16308. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16309. enableval=$enable_video_wayland_qt_touch;
  16310. else
  16311. enable_video_wayland_qt_touch=yes
  16312. fi
  16313. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16314. # Extract the first word of "pkg-config", so it can be a program name with args.
  16315. set dummy pkg-config; ac_word=$2
  16316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16317. $as_echo_n "checking for $ac_word... " >&6; }
  16318. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16319. $as_echo_n "(cached) " >&6
  16320. else
  16321. case $PKG_CONFIG in
  16322. [\\/]* | ?:[\\/]*)
  16323. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16324. ;;
  16325. *)
  16326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16327. for as_dir in $PATH
  16328. do
  16329. IFS=$as_save_IFS
  16330. test -z "$as_dir" && as_dir=.
  16331. for ac_exec_ext in '' $ac_executable_extensions; do
  16332. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16333. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16334. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16335. break 2
  16336. fi
  16337. done
  16338. done
  16339. IFS=$as_save_IFS
  16340. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16341. ;;
  16342. esac
  16343. fi
  16344. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16345. if test -n "$PKG_CONFIG"; then
  16346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16347. $as_echo "$PKG_CONFIG" >&6; }
  16348. else
  16349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16350. $as_echo "no" >&6; }
  16351. fi
  16352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16353. $as_echo_n "checking for Wayland support... " >&6; }
  16354. video_wayland=no
  16355. if test x$PKG_CONFIG != xno && \
  16356. test x$video_opengl_egl = xyes && \
  16357. test x$video_opengles_v2 = xyes; then
  16358. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16359. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16360. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16361. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16362. WAYLAND_CORE_PROTOCOL_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-client`
  16363. WAYLAND_PROTOCOLS_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
  16364. video_wayland=yes
  16365. fi
  16366. fi
  16367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16368. $as_echo "$video_wayland" >&6; }
  16369. if test x$video_wayland = xyes; then
  16370. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16371. if test x$enable_video_wayland_qt_touch = xyes; then
  16372. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16373. fi
  16374. WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1"
  16375. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16376. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16377. # Check whether --enable-wayland-shared was given.
  16378. if test "${enable_wayland_shared+set}" = set; then :
  16379. enableval=$enable_wayland_shared;
  16380. else
  16381. enable_wayland_shared=maybe
  16382. fi
  16383. case "$host" in
  16384. *)
  16385. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16386. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16387. if test x$wayland_egl_lib = x; then
  16388. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16389. fi
  16390. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16391. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16392. ;;
  16393. esac
  16394. if test x$enable_wayland_shared = xmaybe; then
  16395. enable_wayland_shared=yes
  16396. fi
  16397. if test x$have_loadso != xyes && \
  16398. test x$enable_wayland_shared = xyes; then
  16399. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16400. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16401. enable_wayland_shared=no
  16402. fi
  16403. if test x$have_loadso = xyes && \
  16404. test x$enable_wayland_shared = xyes && \
  16405. test x$wayland_client_lib != x && \
  16406. test x$wayland_egl_lib != x && \
  16407. test x$wayland_cursor_lib != x && \
  16408. test x$xkbcommon_lib != x; then
  16409. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16410. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16411. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16412. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16413. cat >>confdefs.h <<_ACEOF
  16414. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16415. _ACEOF
  16416. cat >>confdefs.h <<_ACEOF
  16417. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16418. _ACEOF
  16419. cat >>confdefs.h <<_ACEOF
  16420. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16421. _ACEOF
  16422. cat >>confdefs.h <<_ACEOF
  16423. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16424. _ACEOF
  16425. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16426. else
  16427. enable_wayland_shared=no
  16428. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16429. SUMMARY_video="${SUMMARY_video} wayland"
  16430. fi
  16431. have_video=yes
  16432. fi
  16433. fi
  16434. }
  16435. CheckMir()
  16436. {
  16437. # Check whether --enable-video-mir was given.
  16438. if test "${enable_video_mir+set}" = set; then :
  16439. enableval=$enable_video_mir;
  16440. else
  16441. enable_video_mir=yes
  16442. fi
  16443. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16444. # Extract the first word of "pkg-config", so it can be a program name with args.
  16445. set dummy pkg-config; ac_word=$2
  16446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16447. $as_echo_n "checking for $ac_word... " >&6; }
  16448. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16449. $as_echo_n "(cached) " >&6
  16450. else
  16451. case $PKG_CONFIG in
  16452. [\\/]* | ?:[\\/]*)
  16453. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16454. ;;
  16455. *)
  16456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16457. for as_dir in $PATH
  16458. do
  16459. IFS=$as_save_IFS
  16460. test -z "$as_dir" && as_dir=.
  16461. for ac_exec_ext in '' $ac_executable_extensions; do
  16462. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16463. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16464. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16465. break 2
  16466. fi
  16467. done
  16468. done
  16469. IFS=$as_save_IFS
  16470. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16471. ;;
  16472. esac
  16473. fi
  16474. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16475. if test -n "$PKG_CONFIG"; then
  16476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16477. $as_echo "$PKG_CONFIG" >&6; }
  16478. else
  16479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16480. $as_echo "no" >&6; }
  16481. fi
  16482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16483. $as_echo_n "checking for Mir support... " >&6; }
  16484. video_mir=no
  16485. if test x$PKG_CONFIG != xno; then
  16486. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16487. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16488. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16489. save_CFLAGS="$CFLAGS"
  16490. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16492. /* end confdefs.h. */
  16493. #include <mir_toolkit/mir_client_library.h>
  16494. int
  16495. main ()
  16496. {
  16497. MirWindowAttrib attrib = mir_window_attrib_state
  16498. ;
  16499. return 0;
  16500. }
  16501. _ACEOF
  16502. if ac_fn_c_try_compile "$LINENO"; then :
  16503. video_mir=yes
  16504. fi
  16505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16506. CFLAGS="$save_CFLAGS"
  16507. fi
  16508. fi
  16509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16510. $as_echo "$video_mir" >&6; }
  16511. if test x$video_mir = xyes; then
  16512. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16513. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16514. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16515. # Check whether --enable-mir-shared was given.
  16516. if test "${enable_mir_shared+set}" = set; then :
  16517. enableval=$enable_mir_shared;
  16518. else
  16519. enable_mir_shared=maybe
  16520. fi
  16521. case "$host" in
  16522. *)
  16523. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16524. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16525. ;;
  16526. esac
  16527. if test x$enable_mir_shared = xmaybe; then
  16528. enable_mir_shared=yes
  16529. fi
  16530. if test x$have_loadso != xyes && \
  16531. test x$enable_mir_shared = xyes; then
  16532. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16533. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16534. enable_mir_shared=no
  16535. fi
  16536. if test x$have_loadso = xyes && \
  16537. test x$enable_mir_shared = xyes && \
  16538. test x$mirclient_lib != x && \
  16539. test x$xkbcommon_lib != x; then
  16540. echo "-- dynamic libmirclient -> $mirclient_lib"
  16541. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16542. cat >>confdefs.h <<_ACEOF
  16543. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16544. _ACEOF
  16545. cat >>confdefs.h <<_ACEOF
  16546. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16547. _ACEOF
  16548. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16549. else
  16550. enable_mir_shared=no
  16551. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16552. SUMMARY_video="${SUMMARY_video} mir"
  16553. fi
  16554. have_video=yes
  16555. fi
  16556. fi
  16557. }
  16558. CheckNativeClient()
  16559. {
  16560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16561. /* end confdefs.h. */
  16562. #if !defined(__native_client__)
  16563. #error "NO NACL"
  16564. #endif
  16565. int
  16566. main ()
  16567. {
  16568. ;
  16569. return 0;
  16570. }
  16571. _ACEOF
  16572. if ac_fn_c_try_compile "$LINENO"; then :
  16573. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16574. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16575. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16576. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16577. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16578. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16579. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16580. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16581. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16582. SUMMARY_audio="${SUMMARY_audio} nacl"
  16583. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16584. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16585. fi
  16586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16587. }
  16588. CheckX11()
  16589. {
  16590. # Check whether --enable-video-x11 was given.
  16591. if test "${enable_video_x11+set}" = set; then :
  16592. enableval=$enable_video_x11;
  16593. else
  16594. enable_video_x11=yes
  16595. fi
  16596. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16597. case "$host" in
  16598. *-*-darwin*)
  16599. # This isn't necessary for X11, but fixes GLX detection
  16600. if test "x$x_includes" = xNONE && \
  16601. test "x$x_libraries" = xNONE && \
  16602. test -d /usr/X11R6/include && \
  16603. test -d /usr/X11R6/lib; then
  16604. x_includes="/usr/X11R6/include"
  16605. x_libraries="/usr/X11R6/lib"
  16606. fi
  16607. ;;
  16608. esac
  16609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16610. $as_echo_n "checking for X... " >&6; }
  16611. # Check whether --with-x was given.
  16612. if test "${with_x+set}" = set; then :
  16613. withval=$with_x;
  16614. fi
  16615. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16616. if test "x$with_x" = xno; then
  16617. # The user explicitly disabled X.
  16618. have_x=disabled
  16619. else
  16620. case $x_includes,$x_libraries in #(
  16621. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16622. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16623. $as_echo_n "(cached) " >&6
  16624. else
  16625. # One or both of the vars are not set, and there is no cached value.
  16626. ac_x_includes=no ac_x_libraries=no
  16627. rm -f -r conftest.dir
  16628. if mkdir conftest.dir; then
  16629. cd conftest.dir
  16630. cat >Imakefile <<'_ACEOF'
  16631. incroot:
  16632. @echo incroot='${INCROOT}'
  16633. usrlibdir:
  16634. @echo usrlibdir='${USRLIBDIR}'
  16635. libdir:
  16636. @echo libdir='${LIBDIR}'
  16637. _ACEOF
  16638. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16639. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16640. for ac_var in incroot usrlibdir libdir; do
  16641. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16642. done
  16643. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16644. for ac_extension in a so sl dylib la dll; do
  16645. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16646. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16647. ac_im_usrlibdir=$ac_im_libdir; break
  16648. fi
  16649. done
  16650. # Screen out bogus values from the imake configuration. They are
  16651. # bogus both because they are the default anyway, and because
  16652. # using them would break gcc on systems where it needs fixed includes.
  16653. case $ac_im_incroot in
  16654. /usr/include) ac_x_includes= ;;
  16655. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16656. esac
  16657. case $ac_im_usrlibdir in
  16658. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16659. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16660. esac
  16661. fi
  16662. cd ..
  16663. rm -f -r conftest.dir
  16664. fi
  16665. # Standard set of common directories for X headers.
  16666. # Check X11 before X11Rn because it is often a symlink to the current release.
  16667. ac_x_header_dirs='
  16668. /usr/X11/include
  16669. /usr/X11R7/include
  16670. /usr/X11R6/include
  16671. /usr/X11R5/include
  16672. /usr/X11R4/include
  16673. /usr/include/X11
  16674. /usr/include/X11R7
  16675. /usr/include/X11R6
  16676. /usr/include/X11R5
  16677. /usr/include/X11R4
  16678. /usr/local/X11/include
  16679. /usr/local/X11R7/include
  16680. /usr/local/X11R6/include
  16681. /usr/local/X11R5/include
  16682. /usr/local/X11R4/include
  16683. /usr/local/include/X11
  16684. /usr/local/include/X11R7
  16685. /usr/local/include/X11R6
  16686. /usr/local/include/X11R5
  16687. /usr/local/include/X11R4
  16688. /usr/X386/include
  16689. /usr/x386/include
  16690. /usr/XFree86/include/X11
  16691. /usr/include
  16692. /usr/local/include
  16693. /usr/unsupported/include
  16694. /usr/athena/include
  16695. /usr/local/x11r5/include
  16696. /usr/lpp/Xamples/include
  16697. /usr/openwin/include
  16698. /usr/openwin/share/include'
  16699. if test "$ac_x_includes" = no; then
  16700. # Guess where to find include files, by looking for Xlib.h.
  16701. # First, try using that file with no special directory specified.
  16702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16703. /* end confdefs.h. */
  16704. #include <X11/Xlib.h>
  16705. _ACEOF
  16706. if ac_fn_c_try_cpp "$LINENO"; then :
  16707. # We can compile using X headers with no special include directory.
  16708. ac_x_includes=
  16709. else
  16710. for ac_dir in $ac_x_header_dirs; do
  16711. if test -r "$ac_dir/X11/Xlib.h"; then
  16712. ac_x_includes=$ac_dir
  16713. break
  16714. fi
  16715. done
  16716. fi
  16717. rm -f conftest.err conftest.i conftest.$ac_ext
  16718. fi # $ac_x_includes = no
  16719. if test "$ac_x_libraries" = no; then
  16720. # Check for the libraries.
  16721. # See if we find them without any special options.
  16722. # Don't add to $LIBS permanently.
  16723. ac_save_LIBS=$LIBS
  16724. LIBS="-lX11 $LIBS"
  16725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16726. /* end confdefs.h. */
  16727. #include <X11/Xlib.h>
  16728. int
  16729. main ()
  16730. {
  16731. XrmInitialize ()
  16732. ;
  16733. return 0;
  16734. }
  16735. _ACEOF
  16736. if ac_fn_c_try_link "$LINENO"; then :
  16737. LIBS=$ac_save_LIBS
  16738. # We can link X programs with no special library path.
  16739. ac_x_libraries=
  16740. else
  16741. LIBS=$ac_save_LIBS
  16742. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16743. do
  16744. # Don't even attempt the hair of trying to link an X program!
  16745. for ac_extension in a so sl dylib la dll; do
  16746. if test -r "$ac_dir/libX11.$ac_extension"; then
  16747. ac_x_libraries=$ac_dir
  16748. break 2
  16749. fi
  16750. done
  16751. done
  16752. fi
  16753. rm -f core conftest.err conftest.$ac_objext \
  16754. conftest$ac_exeext conftest.$ac_ext
  16755. fi # $ac_x_libraries = no
  16756. case $ac_x_includes,$ac_x_libraries in #(
  16757. no,* | *,no | *\'*)
  16758. # Didn't find X, or a directory has "'" in its name.
  16759. ac_cv_have_x="have_x=no";; #(
  16760. *)
  16761. # Record where we found X for the cache.
  16762. ac_cv_have_x="have_x=yes\
  16763. ac_x_includes='$ac_x_includes'\
  16764. ac_x_libraries='$ac_x_libraries'"
  16765. esac
  16766. fi
  16767. ;; #(
  16768. *) have_x=yes;;
  16769. esac
  16770. eval "$ac_cv_have_x"
  16771. fi # $with_x != no
  16772. if test "$have_x" != yes; then
  16773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16774. $as_echo "$have_x" >&6; }
  16775. no_x=yes
  16776. else
  16777. # If each of the values was on the command line, it overrides each guess.
  16778. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16779. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16780. # Update the cache value to reflect the command line values.
  16781. ac_cv_have_x="have_x=yes\
  16782. ac_x_includes='$x_includes'\
  16783. ac_x_libraries='$x_libraries'"
  16784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16785. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16786. fi
  16787. if test "$no_x" = yes; then
  16788. # Not all programs may use this symbol, but it does not hurt to define it.
  16789. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16790. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16791. else
  16792. if test -n "$x_includes"; then
  16793. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16794. fi
  16795. # It would also be nice to do this for all -L options, not just this one.
  16796. if test -n "$x_libraries"; then
  16797. X_LIBS="$X_LIBS -L$x_libraries"
  16798. # For Solaris; some versions of Sun CC require a space after -R and
  16799. # others require no space. Words are not sufficient . . . .
  16800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16801. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16802. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16803. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16804. ac_c_werror_flag=yes
  16805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16806. /* end confdefs.h. */
  16807. int
  16808. main ()
  16809. {
  16810. ;
  16811. return 0;
  16812. }
  16813. _ACEOF
  16814. if ac_fn_c_try_link "$LINENO"; then :
  16815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16816. $as_echo "no" >&6; }
  16817. X_LIBS="$X_LIBS -R$x_libraries"
  16818. else
  16819. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16821. /* end confdefs.h. */
  16822. int
  16823. main ()
  16824. {
  16825. ;
  16826. return 0;
  16827. }
  16828. _ACEOF
  16829. if ac_fn_c_try_link "$LINENO"; then :
  16830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16831. $as_echo "yes" >&6; }
  16832. X_LIBS="$X_LIBS -R $x_libraries"
  16833. else
  16834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16835. $as_echo "neither works" >&6; }
  16836. fi
  16837. rm -f core conftest.err conftest.$ac_objext \
  16838. conftest$ac_exeext conftest.$ac_ext
  16839. fi
  16840. rm -f core conftest.err conftest.$ac_objext \
  16841. conftest$ac_exeext conftest.$ac_ext
  16842. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16843. LIBS=$ac_xsave_LIBS
  16844. fi
  16845. # Check for system-dependent libraries X programs must link with.
  16846. # Do this before checking for the system-independent R6 libraries
  16847. # (-lICE), since we may need -lsocket or whatever for X linking.
  16848. if test "$ISC" = yes; then
  16849. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16850. else
  16851. # Martyn Johnson says this is needed for Ultrix, if the X
  16852. # libraries were built with DECnet support. And Karl Berry says
  16853. # the Alpha needs dnet_stub (dnet does not exist).
  16854. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16856. /* end confdefs.h. */
  16857. /* Override any GCC internal prototype to avoid an error.
  16858. Use char because int might match the return type of a GCC
  16859. builtin and then its argument prototype would still apply. */
  16860. #ifdef __cplusplus
  16861. extern "C"
  16862. #endif
  16863. char XOpenDisplay ();
  16864. int
  16865. main ()
  16866. {
  16867. return XOpenDisplay ();
  16868. ;
  16869. return 0;
  16870. }
  16871. _ACEOF
  16872. if ac_fn_c_try_link "$LINENO"; then :
  16873. else
  16874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16875. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16876. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16877. $as_echo_n "(cached) " >&6
  16878. else
  16879. ac_check_lib_save_LIBS=$LIBS
  16880. LIBS="-ldnet $LIBS"
  16881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16882. /* end confdefs.h. */
  16883. /* Override any GCC internal prototype to avoid an error.
  16884. Use char because int might match the return type of a GCC
  16885. builtin and then its argument prototype would still apply. */
  16886. #ifdef __cplusplus
  16887. extern "C"
  16888. #endif
  16889. char dnet_ntoa ();
  16890. int
  16891. main ()
  16892. {
  16893. return dnet_ntoa ();
  16894. ;
  16895. return 0;
  16896. }
  16897. _ACEOF
  16898. if ac_fn_c_try_link "$LINENO"; then :
  16899. ac_cv_lib_dnet_dnet_ntoa=yes
  16900. else
  16901. ac_cv_lib_dnet_dnet_ntoa=no
  16902. fi
  16903. rm -f core conftest.err conftest.$ac_objext \
  16904. conftest$ac_exeext conftest.$ac_ext
  16905. LIBS=$ac_check_lib_save_LIBS
  16906. fi
  16907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  16908. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  16909. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  16910. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  16911. fi
  16912. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  16913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  16914. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  16915. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  16916. $as_echo_n "(cached) " >&6
  16917. else
  16918. ac_check_lib_save_LIBS=$LIBS
  16919. LIBS="-ldnet_stub $LIBS"
  16920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16921. /* end confdefs.h. */
  16922. /* Override any GCC internal prototype to avoid an error.
  16923. Use char because int might match the return type of a GCC
  16924. builtin and then its argument prototype would still apply. */
  16925. #ifdef __cplusplus
  16926. extern "C"
  16927. #endif
  16928. char dnet_ntoa ();
  16929. int
  16930. main ()
  16931. {
  16932. return dnet_ntoa ();
  16933. ;
  16934. return 0;
  16935. }
  16936. _ACEOF
  16937. if ac_fn_c_try_link "$LINENO"; then :
  16938. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  16939. else
  16940. ac_cv_lib_dnet_stub_dnet_ntoa=no
  16941. fi
  16942. rm -f core conftest.err conftest.$ac_objext \
  16943. conftest$ac_exeext conftest.$ac_ext
  16944. LIBS=$ac_check_lib_save_LIBS
  16945. fi
  16946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  16947. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  16948. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  16949. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  16950. fi
  16951. fi
  16952. fi
  16953. rm -f core conftest.err conftest.$ac_objext \
  16954. conftest$ac_exeext conftest.$ac_ext
  16955. LIBS="$ac_xsave_LIBS"
  16956. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  16957. # to get the SysV transport functions.
  16958. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  16959. # needs -lnsl.
  16960. # The nsl library prevents programs from opening the X display
  16961. # on Irix 5.2, according to T.E. Dickey.
  16962. # The functions gethostbyname, getservbyname, and inet_addr are
  16963. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  16964. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16965. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16966. fi
  16967. if test $ac_cv_func_gethostbyname = no; then
  16968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16969. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16970. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16971. $as_echo_n "(cached) " >&6
  16972. else
  16973. ac_check_lib_save_LIBS=$LIBS
  16974. LIBS="-lnsl $LIBS"
  16975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16976. /* end confdefs.h. */
  16977. /* Override any GCC internal prototype to avoid an error.
  16978. Use char because int might match the return type of a GCC
  16979. builtin and then its argument prototype would still apply. */
  16980. #ifdef __cplusplus
  16981. extern "C"
  16982. #endif
  16983. char gethostbyname ();
  16984. int
  16985. main ()
  16986. {
  16987. return gethostbyname ();
  16988. ;
  16989. return 0;
  16990. }
  16991. _ACEOF
  16992. if ac_fn_c_try_link "$LINENO"; then :
  16993. ac_cv_lib_nsl_gethostbyname=yes
  16994. else
  16995. ac_cv_lib_nsl_gethostbyname=no
  16996. fi
  16997. rm -f core conftest.err conftest.$ac_objext \
  16998. conftest$ac_exeext conftest.$ac_ext
  16999. LIBS=$ac_check_lib_save_LIBS
  17000. fi
  17001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17002. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17003. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17004. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17005. fi
  17006. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17008. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17009. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17010. $as_echo_n "(cached) " >&6
  17011. else
  17012. ac_check_lib_save_LIBS=$LIBS
  17013. LIBS="-lbsd $LIBS"
  17014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17015. /* end confdefs.h. */
  17016. /* Override any GCC internal prototype to avoid an error.
  17017. Use char because int might match the return type of a GCC
  17018. builtin and then its argument prototype would still apply. */
  17019. #ifdef __cplusplus
  17020. extern "C"
  17021. #endif
  17022. char gethostbyname ();
  17023. int
  17024. main ()
  17025. {
  17026. return gethostbyname ();
  17027. ;
  17028. return 0;
  17029. }
  17030. _ACEOF
  17031. if ac_fn_c_try_link "$LINENO"; then :
  17032. ac_cv_lib_bsd_gethostbyname=yes
  17033. else
  17034. ac_cv_lib_bsd_gethostbyname=no
  17035. fi
  17036. rm -f core conftest.err conftest.$ac_objext \
  17037. conftest$ac_exeext conftest.$ac_ext
  17038. LIBS=$ac_check_lib_save_LIBS
  17039. fi
  17040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17041. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17042. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17043. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17044. fi
  17045. fi
  17046. fi
  17047. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17048. # socket/setsockopt and other routines are undefined under SCO ODT
  17049. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17050. # on later versions), says Simon Leinen: it contains gethostby*
  17051. # variants that don't use the name server (or something). -lsocket
  17052. # must be given before -lnsl if both are needed. We assume that
  17053. # if connect needs -lnsl, so does gethostbyname.
  17054. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17055. if test "x$ac_cv_func_connect" = xyes; then :
  17056. fi
  17057. if test $ac_cv_func_connect = no; then
  17058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17059. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17060. if ${ac_cv_lib_socket_connect+:} false; then :
  17061. $as_echo_n "(cached) " >&6
  17062. else
  17063. ac_check_lib_save_LIBS=$LIBS
  17064. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17066. /* end confdefs.h. */
  17067. /* Override any GCC internal prototype to avoid an error.
  17068. Use char because int might match the return type of a GCC
  17069. builtin and then its argument prototype would still apply. */
  17070. #ifdef __cplusplus
  17071. extern "C"
  17072. #endif
  17073. char connect ();
  17074. int
  17075. main ()
  17076. {
  17077. return connect ();
  17078. ;
  17079. return 0;
  17080. }
  17081. _ACEOF
  17082. if ac_fn_c_try_link "$LINENO"; then :
  17083. ac_cv_lib_socket_connect=yes
  17084. else
  17085. ac_cv_lib_socket_connect=no
  17086. fi
  17087. rm -f core conftest.err conftest.$ac_objext \
  17088. conftest$ac_exeext conftest.$ac_ext
  17089. LIBS=$ac_check_lib_save_LIBS
  17090. fi
  17091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17092. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17093. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17094. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17095. fi
  17096. fi
  17097. # Guillermo Gomez says -lposix is necessary on A/UX.
  17098. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17099. if test "x$ac_cv_func_remove" = xyes; then :
  17100. fi
  17101. if test $ac_cv_func_remove = no; then
  17102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17103. $as_echo_n "checking for remove in -lposix... " >&6; }
  17104. if ${ac_cv_lib_posix_remove+:} false; then :
  17105. $as_echo_n "(cached) " >&6
  17106. else
  17107. ac_check_lib_save_LIBS=$LIBS
  17108. LIBS="-lposix $LIBS"
  17109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17110. /* end confdefs.h. */
  17111. /* Override any GCC internal prototype to avoid an error.
  17112. Use char because int might match the return type of a GCC
  17113. builtin and then its argument prototype would still apply. */
  17114. #ifdef __cplusplus
  17115. extern "C"
  17116. #endif
  17117. char remove ();
  17118. int
  17119. main ()
  17120. {
  17121. return remove ();
  17122. ;
  17123. return 0;
  17124. }
  17125. _ACEOF
  17126. if ac_fn_c_try_link "$LINENO"; then :
  17127. ac_cv_lib_posix_remove=yes
  17128. else
  17129. ac_cv_lib_posix_remove=no
  17130. fi
  17131. rm -f core conftest.err conftest.$ac_objext \
  17132. conftest$ac_exeext conftest.$ac_ext
  17133. LIBS=$ac_check_lib_save_LIBS
  17134. fi
  17135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17136. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17137. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17138. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17139. fi
  17140. fi
  17141. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17142. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17143. if test "x$ac_cv_func_shmat" = xyes; then :
  17144. fi
  17145. if test $ac_cv_func_shmat = no; then
  17146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17147. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17148. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17149. $as_echo_n "(cached) " >&6
  17150. else
  17151. ac_check_lib_save_LIBS=$LIBS
  17152. LIBS="-lipc $LIBS"
  17153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17154. /* end confdefs.h. */
  17155. /* Override any GCC internal prototype to avoid an error.
  17156. Use char because int might match the return type of a GCC
  17157. builtin and then its argument prototype would still apply. */
  17158. #ifdef __cplusplus
  17159. extern "C"
  17160. #endif
  17161. char shmat ();
  17162. int
  17163. main ()
  17164. {
  17165. return shmat ();
  17166. ;
  17167. return 0;
  17168. }
  17169. _ACEOF
  17170. if ac_fn_c_try_link "$LINENO"; then :
  17171. ac_cv_lib_ipc_shmat=yes
  17172. else
  17173. ac_cv_lib_ipc_shmat=no
  17174. fi
  17175. rm -f core conftest.err conftest.$ac_objext \
  17176. conftest$ac_exeext conftest.$ac_ext
  17177. LIBS=$ac_check_lib_save_LIBS
  17178. fi
  17179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17180. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17181. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17182. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17183. fi
  17184. fi
  17185. fi
  17186. # Check for libraries that X11R6 Xt/Xaw programs need.
  17187. ac_save_LDFLAGS=$LDFLAGS
  17188. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17189. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17190. # check for ICE first), but we must link in the order -lSM -lICE or
  17191. # we get undefined symbols. So assume we have SM if we have ICE.
  17192. # These have to be linked with before -lX11, unlike the other
  17193. # libraries we check for below, so use a different variable.
  17194. # John Interrante, Karl Berry
  17195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17196. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17197. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17198. $as_echo_n "(cached) " >&6
  17199. else
  17200. ac_check_lib_save_LIBS=$LIBS
  17201. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17203. /* end confdefs.h. */
  17204. /* Override any GCC internal prototype to avoid an error.
  17205. Use char because int might match the return type of a GCC
  17206. builtin and then its argument prototype would still apply. */
  17207. #ifdef __cplusplus
  17208. extern "C"
  17209. #endif
  17210. char IceConnectionNumber ();
  17211. int
  17212. main ()
  17213. {
  17214. return IceConnectionNumber ();
  17215. ;
  17216. return 0;
  17217. }
  17218. _ACEOF
  17219. if ac_fn_c_try_link "$LINENO"; then :
  17220. ac_cv_lib_ICE_IceConnectionNumber=yes
  17221. else
  17222. ac_cv_lib_ICE_IceConnectionNumber=no
  17223. fi
  17224. rm -f core conftest.err conftest.$ac_objext \
  17225. conftest$ac_exeext conftest.$ac_ext
  17226. LIBS=$ac_check_lib_save_LIBS
  17227. fi
  17228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17229. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17230. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17231. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17232. fi
  17233. LDFLAGS=$ac_save_LDFLAGS
  17234. fi
  17235. if test x$have_x = xyes; then
  17236. # Check whether --enable-x11-shared was given.
  17237. if test "${enable_x11_shared+set}" = set; then :
  17238. enableval=$enable_x11_shared;
  17239. else
  17240. enable_x11_shared=maybe
  17241. fi
  17242. case "$host" in
  17243. *-*-darwin*)
  17244. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17245. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17246. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17247. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17248. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17249. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17250. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17251. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17252. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17253. ;;
  17254. *-*-openbsd*)
  17255. x11_lib='libX11.so'
  17256. x11ext_lib='libXext.so'
  17257. xcursor_lib='libXcursor.so'
  17258. xinerama_lib='libXinerama.so'
  17259. xinput_lib='libXi.so'
  17260. xrandr_lib='libXrandr.so'
  17261. xrender_lib='libXrender.so'
  17262. xss_lib='libXss.so'
  17263. xvidmode_lib='libXxf86vm.so'
  17264. ;;
  17265. *)
  17266. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17267. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17268. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17269. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17270. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17271. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17272. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17273. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17274. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17275. ;;
  17276. esac
  17277. if test x$ac_cv_func_shmat != xyes; then
  17278. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17279. fi
  17280. CFLAGS="$CFLAGS $X_CFLAGS"
  17281. LDFLAGS="$LDFLAGS $X_LIBS"
  17282. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17283. #include <X11/Xproto.h>
  17284. "
  17285. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17286. have_xext_h_hdr=yes
  17287. else
  17288. have_xext_h_hdr=no
  17289. fi
  17290. if test x$have_xext_h_hdr != xyes; then
  17291. as_fn_error $? "
  17292. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17293. " "$LINENO" 5
  17294. fi
  17295. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17296. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17297. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17298. # Needed so SDL applications can include SDL_syswm.h
  17299. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17300. if test x$enable_x11_shared = xmaybe; then
  17301. enable_x11_shared=yes
  17302. fi
  17303. if test x$have_loadso != xyes && \
  17304. test x$enable_x11_shared = xyes; then
  17305. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17306. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17307. enable_x11_shared=no
  17308. fi
  17309. if test x$have_loadso = xyes && \
  17310. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17311. echo "-- dynamic libX11 -> $x11_lib"
  17312. echo "-- dynamic libX11ext -> $x11ext_lib"
  17313. cat >>confdefs.h <<_ACEOF
  17314. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17315. _ACEOF
  17316. cat >>confdefs.h <<_ACEOF
  17317. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17318. _ACEOF
  17319. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17320. else
  17321. enable_x11_shared=no
  17322. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17323. SUMMARY_video="${SUMMARY_video} x11"
  17324. fi
  17325. have_video=yes
  17326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17327. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17328. have_const_param_XextAddDisplay=no
  17329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17330. /* end confdefs.h. */
  17331. #include <X11/Xlib.h>
  17332. #include <X11/Xproto.h>
  17333. #include <X11/extensions/Xext.h>
  17334. #include <X11/extensions/extutil.h>
  17335. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17336. int
  17337. main ()
  17338. {
  17339. ;
  17340. return 0;
  17341. }
  17342. _ACEOF
  17343. if ac_fn_c_try_compile "$LINENO"; then :
  17344. have_const_param_XextAddDisplay=yes
  17345. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17346. fi
  17347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17349. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17351. $as_echo_n "checking for XGenericEvent... " >&6; }
  17352. have_XGenericEvent=no
  17353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17354. /* end confdefs.h. */
  17355. #include <X11/Xlib.h>
  17356. int
  17357. main ()
  17358. {
  17359. Display *display;
  17360. XEvent event;
  17361. XGenericEventCookie *cookie = &event.xcookie;
  17362. XNextEvent(display, &event);
  17363. XGetEventData(display, cookie);
  17364. XFreeEventData(display, cookie);
  17365. ;
  17366. return 0;
  17367. }
  17368. _ACEOF
  17369. if ac_fn_c_try_compile "$LINENO"; then :
  17370. have_XGenericEvent=yes
  17371. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17372. fi
  17373. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17375. $as_echo "$have_XGenericEvent" >&6; }
  17376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17377. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17378. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17379. $as_echo_n "(cached) " >&6
  17380. else
  17381. ac_check_lib_save_LIBS=$LIBS
  17382. LIBS="-lX11 $LIBS"
  17383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17384. /* end confdefs.h. */
  17385. /* Override any GCC internal prototype to avoid an error.
  17386. Use char because int might match the return type of a GCC
  17387. builtin and then its argument prototype would still apply. */
  17388. #ifdef __cplusplus
  17389. extern "C"
  17390. #endif
  17391. char XkbKeycodeToKeysym ();
  17392. int
  17393. main ()
  17394. {
  17395. return XkbKeycodeToKeysym ();
  17396. ;
  17397. return 0;
  17398. }
  17399. _ACEOF
  17400. if ac_fn_c_try_link "$LINENO"; then :
  17401. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17402. else
  17403. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17404. fi
  17405. rm -f core conftest.err conftest.$ac_objext \
  17406. conftest$ac_exeext conftest.$ac_ext
  17407. LIBS=$ac_check_lib_save_LIBS
  17408. fi
  17409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17410. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17411. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17412. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17413. fi
  17414. # Check whether --enable-video-x11-xcursor was given.
  17415. if test "${enable_video_x11_xcursor+set}" = set; then :
  17416. enableval=$enable_video_x11_xcursor;
  17417. else
  17418. enable_video_x11_xcursor=yes
  17419. fi
  17420. if test x$enable_video_x11_xcursor = xyes; then
  17421. definitely_enable_video_x11_xcursor=no
  17422. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17423. "
  17424. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17425. have_xcursor_h_hdr=yes
  17426. else
  17427. have_xcursor_h_hdr=no
  17428. fi
  17429. if test x$have_xcursor_h_hdr = xyes; then
  17430. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17431. echo "-- dynamic libXcursor -> $xcursor_lib"
  17432. cat >>confdefs.h <<_ACEOF
  17433. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17434. _ACEOF
  17435. definitely_enable_video_x11_xcursor=yes
  17436. else
  17437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17438. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17439. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17440. $as_echo_n "(cached) " >&6
  17441. else
  17442. ac_check_lib_save_LIBS=$LIBS
  17443. LIBS="-lXcursor $LIBS"
  17444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17445. /* end confdefs.h. */
  17446. /* Override any GCC internal prototype to avoid an error.
  17447. Use char because int might match the return type of a GCC
  17448. builtin and then its argument prototype would still apply. */
  17449. #ifdef __cplusplus
  17450. extern "C"
  17451. #endif
  17452. char XcursorImageCreate ();
  17453. int
  17454. main ()
  17455. {
  17456. return XcursorImageCreate ();
  17457. ;
  17458. return 0;
  17459. }
  17460. _ACEOF
  17461. if ac_fn_c_try_link "$LINENO"; then :
  17462. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17463. else
  17464. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17465. fi
  17466. rm -f core conftest.err conftest.$ac_objext \
  17467. conftest$ac_exeext conftest.$ac_ext
  17468. LIBS=$ac_check_lib_save_LIBS
  17469. fi
  17470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17471. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17472. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17473. have_xcursor_lib=yes
  17474. fi
  17475. if test x$have_xcursor_lib = xyes ; then
  17476. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17477. definitely_enable_video_x11_xcursor=yes
  17478. fi
  17479. fi
  17480. fi
  17481. fi
  17482. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17483. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17484. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17485. fi
  17486. # Check whether --enable-video-x11-xdbe was given.
  17487. if test "${enable_video_x11_xdbe+set}" = set; then :
  17488. enableval=$enable_video_x11_xdbe;
  17489. else
  17490. enable_video_x11_xdbe=yes
  17491. fi
  17492. if test x$enable_video_x11_xdbe = xyes; then
  17493. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17494. "
  17495. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17496. have_dbe_h_hdr=yes
  17497. else
  17498. have_dbe_h_hdr=no
  17499. fi
  17500. if test x$have_dbe_h_hdr = xyes; then
  17501. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17502. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17503. fi
  17504. fi
  17505. # Check whether --enable-video-x11-xinerama was given.
  17506. if test "${enable_video_x11_xinerama+set}" = set; then :
  17507. enableval=$enable_video_x11_xinerama;
  17508. else
  17509. enable_video_x11_xinerama=yes
  17510. fi
  17511. if test x$enable_video_x11_xinerama = xyes; then
  17512. definitely_enable_video_x11_xinerama=no
  17513. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17514. "
  17515. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17516. have_xinerama_h_hdr=yes
  17517. else
  17518. have_xinerama_h_hdr=no
  17519. fi
  17520. if test x$have_xinerama_h_hdr = xyes; then
  17521. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17522. echo "-- dynamic libXinerama -> $xinerama_lib"
  17523. cat >>confdefs.h <<_ACEOF
  17524. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17525. _ACEOF
  17526. definitely_enable_video_x11_xinerama=yes
  17527. else
  17528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17529. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17530. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17531. $as_echo_n "(cached) " >&6
  17532. else
  17533. ac_check_lib_save_LIBS=$LIBS
  17534. LIBS="-lXinerama $LIBS"
  17535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17536. /* end confdefs.h. */
  17537. /* Override any GCC internal prototype to avoid an error.
  17538. Use char because int might match the return type of a GCC
  17539. builtin and then its argument prototype would still apply. */
  17540. #ifdef __cplusplus
  17541. extern "C"
  17542. #endif
  17543. char XineramaQueryExtension ();
  17544. int
  17545. main ()
  17546. {
  17547. return XineramaQueryExtension ();
  17548. ;
  17549. return 0;
  17550. }
  17551. _ACEOF
  17552. if ac_fn_c_try_link "$LINENO"; then :
  17553. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17554. else
  17555. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17556. fi
  17557. rm -f core conftest.err conftest.$ac_objext \
  17558. conftest$ac_exeext conftest.$ac_ext
  17559. LIBS=$ac_check_lib_save_LIBS
  17560. fi
  17561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17562. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17563. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17564. have_xinerama_lib=yes
  17565. fi
  17566. if test x$have_xinerama_lib = xyes ; then
  17567. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17568. definitely_enable_video_x11_xinerama=yes
  17569. fi
  17570. fi
  17571. fi
  17572. fi
  17573. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17574. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17575. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17576. fi
  17577. # Check whether --enable-video-x11-xinput was given.
  17578. if test "${enable_video_x11_xinput+set}" = set; then :
  17579. enableval=$enable_video_x11_xinput;
  17580. else
  17581. enable_video_x11_xinput=yes
  17582. fi
  17583. if test x$enable_video_x11_xinput = xyes; then
  17584. definitely_enable_video_x11_xinput=no
  17585. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17586. "
  17587. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17588. have_xinput_h_hdr=yes
  17589. else
  17590. have_xinput_h_hdr=no
  17591. fi
  17592. if test x$have_xinput_h_hdr = xyes; then
  17593. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17594. echo "-- dynamic libXi -> $xinput_lib"
  17595. cat >>confdefs.h <<_ACEOF
  17596. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17597. _ACEOF
  17598. definitely_enable_video_x11_xinput=yes
  17599. else
  17600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17601. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17602. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17603. $as_echo_n "(cached) " >&6
  17604. else
  17605. ac_check_lib_save_LIBS=$LIBS
  17606. LIBS="-lXi $LIBS"
  17607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17608. /* end confdefs.h. */
  17609. /* Override any GCC internal prototype to avoid an error.
  17610. Use char because int might match the return type of a GCC
  17611. builtin and then its argument prototype would still apply. */
  17612. #ifdef __cplusplus
  17613. extern "C"
  17614. #endif
  17615. char XOpenDevice ();
  17616. int
  17617. main ()
  17618. {
  17619. return XOpenDevice ();
  17620. ;
  17621. return 0;
  17622. }
  17623. _ACEOF
  17624. if ac_fn_c_try_link "$LINENO"; then :
  17625. ac_cv_lib_Xi_XOpenDevice=yes
  17626. else
  17627. ac_cv_lib_Xi_XOpenDevice=no
  17628. fi
  17629. rm -f core conftest.err conftest.$ac_objext \
  17630. conftest$ac_exeext conftest.$ac_ext
  17631. LIBS=$ac_check_lib_save_LIBS
  17632. fi
  17633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17634. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17635. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17636. have_xinput_lib=yes
  17637. fi
  17638. if test x$have_xinput_lib = xyes ; then
  17639. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17640. definitely_enable_video_x11_xinput=yes
  17641. fi
  17642. fi
  17643. fi
  17644. fi
  17645. if test x$definitely_enable_video_x11_xinput = xyes; then
  17646. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17647. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17649. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17650. have_xinput2_multitouch=no
  17651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17652. /* end confdefs.h. */
  17653. #include <X11/Xlib.h>
  17654. #include <X11/Xproto.h>
  17655. #include <X11/extensions/XInput2.h>
  17656. int
  17657. main ()
  17658. {
  17659. int event_type = XI_TouchBegin;
  17660. XITouchClassInfo *t;
  17661. ;
  17662. return 0;
  17663. }
  17664. _ACEOF
  17665. if ac_fn_c_try_compile "$LINENO"; then :
  17666. have_xinput2_multitouch=yes
  17667. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17668. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17669. fi
  17670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17672. $as_echo "$have_xinput2_multitouch" >&6; }
  17673. fi
  17674. # Check whether --enable-video-x11-xrandr was given.
  17675. if test "${enable_video_x11_xrandr+set}" = set; then :
  17676. enableval=$enable_video_x11_xrandr;
  17677. else
  17678. enable_video_x11_xrandr=yes
  17679. fi
  17680. if test x$enable_video_x11_xrandr = xyes; then
  17681. definitely_enable_video_x11_xrandr=no
  17682. have_xrandr_h_hdr=no
  17683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17684. /* end confdefs.h. */
  17685. #include <X11/Xlib.h>
  17686. #include <X11/extensions/Xrandr.h>
  17687. int
  17688. main ()
  17689. {
  17690. XRRScreenResources *res = NULL;
  17691. ;
  17692. return 0;
  17693. }
  17694. _ACEOF
  17695. if ac_fn_c_try_compile "$LINENO"; then :
  17696. have_xrandr_h_hdr=yes
  17697. fi
  17698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17699. if test x$have_xrandr_h_hdr = xyes; then
  17700. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17701. echo "-- dynamic libXrandr -> $xrandr_lib"
  17702. cat >>confdefs.h <<_ACEOF
  17703. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17704. _ACEOF
  17705. definitely_enable_video_x11_xrandr=yes
  17706. else
  17707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17708. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17709. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17710. $as_echo_n "(cached) " >&6
  17711. else
  17712. ac_check_lib_save_LIBS=$LIBS
  17713. LIBS="-lXrandr $LIBS"
  17714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17715. /* end confdefs.h. */
  17716. /* Override any GCC internal prototype to avoid an error.
  17717. Use char because int might match the return type of a GCC
  17718. builtin and then its argument prototype would still apply. */
  17719. #ifdef __cplusplus
  17720. extern "C"
  17721. #endif
  17722. char XRRQueryExtension ();
  17723. int
  17724. main ()
  17725. {
  17726. return XRRQueryExtension ();
  17727. ;
  17728. return 0;
  17729. }
  17730. _ACEOF
  17731. if ac_fn_c_try_link "$LINENO"; then :
  17732. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17733. else
  17734. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17735. fi
  17736. rm -f core conftest.err conftest.$ac_objext \
  17737. conftest$ac_exeext conftest.$ac_ext
  17738. LIBS=$ac_check_lib_save_LIBS
  17739. fi
  17740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17741. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17742. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17743. have_xrandr_lib=yes
  17744. fi
  17745. if test x$have_xrandr_lib = xyes ; then
  17746. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17747. definitely_enable_video_x11_xrandr=yes
  17748. fi
  17749. fi
  17750. fi
  17751. fi
  17752. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17753. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17754. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17755. fi
  17756. # Check whether --enable-video-x11-scrnsaver was given.
  17757. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17758. enableval=$enable_video_x11_scrnsaver;
  17759. else
  17760. enable_video_x11_scrnsaver=yes
  17761. fi
  17762. if test x$enable_video_x11_scrnsaver = xyes; then
  17763. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17764. "
  17765. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17766. have_scrnsaver_h_hdr=yes
  17767. else
  17768. have_scrnsaver_h_hdr=no
  17769. fi
  17770. if test x$have_scrnsaver_h_hdr = xyes; then
  17771. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17772. echo "-- dynamic libXss -> $xss_lib"
  17773. cat >>confdefs.h <<_ACEOF
  17774. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17775. _ACEOF
  17776. definitely_enable_video_x11_scrnsaver=yes
  17777. else
  17778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17779. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17780. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17781. $as_echo_n "(cached) " >&6
  17782. else
  17783. ac_check_lib_save_LIBS=$LIBS
  17784. LIBS="-lXss $LIBS"
  17785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17786. /* end confdefs.h. */
  17787. /* Override any GCC internal prototype to avoid an error.
  17788. Use char because int might match the return type of a GCC
  17789. builtin and then its argument prototype would still apply. */
  17790. #ifdef __cplusplus
  17791. extern "C"
  17792. #endif
  17793. char XScreenSaverSuspend ();
  17794. int
  17795. main ()
  17796. {
  17797. return XScreenSaverSuspend ();
  17798. ;
  17799. return 0;
  17800. }
  17801. _ACEOF
  17802. if ac_fn_c_try_link "$LINENO"; then :
  17803. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17804. else
  17805. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17806. fi
  17807. rm -f core conftest.err conftest.$ac_objext \
  17808. conftest$ac_exeext conftest.$ac_ext
  17809. LIBS=$ac_check_lib_save_LIBS
  17810. fi
  17811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17812. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17813. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17814. have_xss_lib=yes
  17815. fi
  17816. if test x$have_xss_lib = xyes ; then
  17817. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17818. definitely_enable_video_x11_scrnsaver=yes
  17819. fi
  17820. fi
  17821. fi
  17822. fi
  17823. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17824. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17825. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17826. fi
  17827. # Check whether --enable-video-x11-xshape was given.
  17828. if test "${enable_video_x11_xshape+set}" = set; then :
  17829. enableval=$enable_video_x11_xshape;
  17830. else
  17831. enable_video_x11_xshape=yes
  17832. fi
  17833. if test x$enable_video_x11_xshape = xyes; then
  17834. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17835. "
  17836. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17837. have_shape_h_hdr=yes
  17838. else
  17839. have_shape_h_hdr=no
  17840. fi
  17841. if test x$have_shape_h_hdr = xyes; then
  17842. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17843. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  17844. fi
  17845. fi
  17846. # Check whether --enable-video-x11-vm was given.
  17847. if test "${enable_video_x11_vm+set}" = set; then :
  17848. enableval=$enable_video_x11_vm;
  17849. else
  17850. enable_video_x11_vm=yes
  17851. fi
  17852. if test x$enable_video_x11_vm = xyes; then
  17853. definitely_enable_video_x11_vm=no
  17854. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17855. "
  17856. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17857. have_vm_h_hdr=yes
  17858. else
  17859. have_vm_h_hdr=no
  17860. fi
  17861. if test x$have_vm_h_hdr = xyes; then
  17862. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17863. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17864. cat >>confdefs.h <<_ACEOF
  17865. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17866. _ACEOF
  17867. definitely_enable_video_x11_vm=yes
  17868. else
  17869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17870. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17871. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17872. $as_echo_n "(cached) " >&6
  17873. else
  17874. ac_check_lib_save_LIBS=$LIBS
  17875. LIBS="-lXxf86vm $LIBS"
  17876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17877. /* end confdefs.h. */
  17878. /* Override any GCC internal prototype to avoid an error.
  17879. Use char because int might match the return type of a GCC
  17880. builtin and then its argument prototype would still apply. */
  17881. #ifdef __cplusplus
  17882. extern "C"
  17883. #endif
  17884. char XF86VidModeQueryVersion ();
  17885. int
  17886. main ()
  17887. {
  17888. return XF86VidModeQueryVersion ();
  17889. ;
  17890. return 0;
  17891. }
  17892. _ACEOF
  17893. if ac_fn_c_try_link "$LINENO"; then :
  17894. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17895. else
  17896. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17897. fi
  17898. rm -f core conftest.err conftest.$ac_objext \
  17899. conftest$ac_exeext conftest.$ac_ext
  17900. LIBS=$ac_check_lib_save_LIBS
  17901. fi
  17902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  17903. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  17904. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  17905. have_vm_lib=yes
  17906. fi
  17907. if test x$have_vm_lib = xyes ; then
  17908. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  17909. definitely_enable_video_x11_vm=yes
  17910. fi
  17911. fi
  17912. fi
  17913. fi
  17914. if test x$definitely_enable_video_x11_vm = xyes; then
  17915. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  17916. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  17917. fi
  17918. fi
  17919. fi
  17920. }
  17921. CheckVivanteVideo()
  17922. {
  17923. # Check whether --enable-video-vivante was given.
  17924. if test "${enable_video_vivante+set}" = set; then :
  17925. enableval=$enable_video_vivante;
  17926. else
  17927. enable_video_vivante=yes
  17928. fi
  17929. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  17930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  17931. $as_echo_n "checking for Vivante VDK API... " >&6; }
  17932. have_vivante_vdk=no
  17933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17934. /* end confdefs.h. */
  17935. #define LINUX
  17936. #define EGL_API_FB
  17937. #include <gc_vdk.h>
  17938. int
  17939. main ()
  17940. {
  17941. ;
  17942. return 0;
  17943. }
  17944. _ACEOF
  17945. if ac_fn_c_try_compile "$LINENO"; then :
  17946. have_vivante_vdk=yes
  17947. fi
  17948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  17950. $as_echo "$have_vivante_vdk" >&6; }
  17951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  17952. $as_echo_n "checking for Vivante FB API... " >&6; }
  17953. have_vivante_egl=no
  17954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17955. /* end confdefs.h. */
  17956. #define LINUX
  17957. #define EGL_API_FB
  17958. #include <EGL/eglvivante.h>
  17959. int
  17960. main ()
  17961. {
  17962. ;
  17963. return 0;
  17964. }
  17965. _ACEOF
  17966. if ac_fn_c_try_compile "$LINENO"; then :
  17967. have_vivante_egl=yes
  17968. fi
  17969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  17971. $as_echo "$have_vivante_egl" >&6; }
  17972. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  17973. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  17974. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  17975. if test x$have_vivante_vdk = xyes; then
  17976. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  17977. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  17978. fi
  17979. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  17980. SUMMARY_video="${SUMMARY_video} vivante"
  17981. have_video=yes
  17982. fi
  17983. fi
  17984. }
  17985. CheckHaikuVideo()
  17986. {
  17987. if test x$enable_video = xyes; then
  17988. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  17989. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  17990. have_video=yes
  17991. SUMMARY_video="${SUMMARY_video} haiku"
  17992. fi
  17993. }
  17994. CheckCOCOA()
  17995. {
  17996. # Check whether --enable-video-cocoa was given.
  17997. if test "${enable_video_cocoa+set}" = set; then :
  17998. enableval=$enable_video_cocoa;
  17999. else
  18000. enable_video_cocoa=yes
  18001. fi
  18002. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18003. save_CFLAGS="$CFLAGS"
  18004. CFLAGS="$CFLAGS -x objective-c"
  18005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18006. $as_echo_n "checking for Cocoa framework... " >&6; }
  18007. have_cocoa=no
  18008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18009. /* end confdefs.h. */
  18010. #import <Cocoa/Cocoa.h>
  18011. int
  18012. main ()
  18013. {
  18014. ;
  18015. return 0;
  18016. }
  18017. _ACEOF
  18018. if ac_fn_c_try_compile "$LINENO"; then :
  18019. have_cocoa=yes
  18020. fi
  18021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18023. $as_echo "$have_cocoa" >&6; }
  18024. CFLAGS="$save_CFLAGS"
  18025. if test x$have_cocoa = xyes; then
  18026. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18027. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18028. SUMMARY_video="${SUMMARY_video} cocoa"
  18029. have_video=yes
  18030. fi
  18031. fi
  18032. }
  18033. CheckDirectFB()
  18034. {
  18035. # Check whether --enable-video-directfb was given.
  18036. if test "${enable_video_directfb+set}" = set; then :
  18037. enableval=$enable_video_directfb;
  18038. else
  18039. enable_video_directfb=no
  18040. fi
  18041. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18042. video_directfb=no
  18043. DIRECTFB_REQUIRED_VERSION=1.0.0
  18044. for ac_prog in directfb-config
  18045. do
  18046. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18047. set dummy $ac_prog; ac_word=$2
  18048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18049. $as_echo_n "checking for $ac_word... " >&6; }
  18050. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  18051. $as_echo_n "(cached) " >&6
  18052. else
  18053. case $DIRECTFBCONFIG in
  18054. [\\/]* | ?:[\\/]*)
  18055. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  18056. ;;
  18057. *)
  18058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18059. as_dummy="$prefix/bin:$PATH"
  18060. for as_dir in $as_dummy
  18061. do
  18062. IFS=$as_save_IFS
  18063. test -z "$as_dir" && as_dir=.
  18064. for ac_exec_ext in '' $ac_executable_extensions; do
  18065. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18066. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18067. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18068. break 2
  18069. fi
  18070. done
  18071. done
  18072. IFS=$as_save_IFS
  18073. ;;
  18074. esac
  18075. fi
  18076. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  18077. if test -n "$DIRECTFBCONFIG"; then
  18078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  18079. $as_echo "$DIRECTFBCONFIG" >&6; }
  18080. else
  18081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18082. $as_echo "no" >&6; }
  18083. fi
  18084. test -n "$DIRECTFBCONFIG" && break
  18085. done
  18086. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  18087. if test x$DIRECTFBCONFIG = xno; then
  18088. # Extract the first word of "pkg-config", so it can be a program name with args.
  18089. set dummy pkg-config; ac_word=$2
  18090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18091. $as_echo_n "checking for $ac_word... " >&6; }
  18092. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18093. $as_echo_n "(cached) " >&6
  18094. else
  18095. case $PKG_CONFIG in
  18096. [\\/]* | ?:[\\/]*)
  18097. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18098. ;;
  18099. *)
  18100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18101. for as_dir in $PATH
  18102. do
  18103. IFS=$as_save_IFS
  18104. test -z "$as_dir" && as_dir=.
  18105. for ac_exec_ext in '' $ac_executable_extensions; do
  18106. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18107. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18108. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18109. break 2
  18110. fi
  18111. done
  18112. done
  18113. IFS=$as_save_IFS
  18114. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18115. ;;
  18116. esac
  18117. fi
  18118. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18119. if test -n "$PKG_CONFIG"; then
  18120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18121. $as_echo "$PKG_CONFIG" >&6; }
  18122. else
  18123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18124. $as_echo "no" >&6; }
  18125. fi
  18126. if test x$PKG_CONFIG != xno; then
  18127. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  18128. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  18129. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  18130. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  18131. video_directfb=yes
  18132. fi
  18133. fi
  18134. else
  18135. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  18136. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18137. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  18138. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18139. if test $HAVE_VERSION -ge $NEED_VERSION; then
  18140. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  18141. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  18142. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  18143. video_directfb=yes
  18144. fi
  18145. fi
  18146. if test x$video_directfb = xyes; then
  18147. # SuSE 11.1 installs directfb-config without directfb-devel
  18148. save_CPPFLAGS="$CPPFLAGS"
  18149. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18150. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18151. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18152. have_directfb_hdr=yes
  18153. else
  18154. have_directfb_hdr=no
  18155. fi
  18156. CPPFLAGS="$save_CPPFLAGS"
  18157. video_directfb=$have_directfb_hdr
  18158. fi
  18159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  18160. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  18161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  18162. $as_echo "$video_directfb" >&6; }
  18163. if test x$video_directfb = xyes; then
  18164. # Check whether --enable-directfb-shared was given.
  18165. if test "${enable_directfb_shared+set}" = set; then :
  18166. enableval=$enable_directfb_shared;
  18167. else
  18168. enable_directfb_shared=yes
  18169. fi
  18170. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18171. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18172. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18173. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18175. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18176. directfb_shared=no
  18177. directfb_lib=`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS"`
  18178. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18179. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18180. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18181. if test x$have_loadso != xyes && \
  18182. test x$enable_directfb_shared = xyes; then
  18183. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18184. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18185. fi
  18186. if test x$have_loadso = xyes && \
  18187. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18188. directfb_shared=yes
  18189. echo "-- $directfb_lib_spec -> $directfb_lib"
  18190. cat >>confdefs.h <<_ACEOF
  18191. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18192. _ACEOF
  18193. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18194. else
  18195. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18196. SUMMARY_video="${SUMMARY_video} directfb"
  18197. fi
  18198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18199. $as_echo "$directfb_shared" >&6; }
  18200. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18201. have_video=yes
  18202. fi
  18203. fi
  18204. }
  18205. CheckDummyVideo()
  18206. {
  18207. # Check whether --enable-video-dummy was given.
  18208. if test "${enable_video_dummy+set}" = set; then :
  18209. enableval=$enable_video_dummy;
  18210. else
  18211. enable_video_dummy=yes
  18212. fi
  18213. if test x$enable_video_dummy = xyes; then
  18214. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18215. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18216. have_video=yes
  18217. SUMMARY_video="${SUMMARY_video} dummy"
  18218. fi
  18219. }
  18220. # Check whether --enable-video-opengl was given.
  18221. if test "${enable_video_opengl+set}" = set; then :
  18222. enableval=$enable_video_opengl;
  18223. else
  18224. enable_video_opengl=yes
  18225. fi
  18226. CheckOpenGLX11()
  18227. {
  18228. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18230. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18231. video_opengl=no
  18232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18233. /* end confdefs.h. */
  18234. #include <GL/gl.h>
  18235. #include <GL/glx.h>
  18236. int
  18237. main ()
  18238. {
  18239. ;
  18240. return 0;
  18241. }
  18242. _ACEOF
  18243. if ac_fn_c_try_compile "$LINENO"; then :
  18244. video_opengl=yes
  18245. fi
  18246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18248. $as_echo "$video_opengl" >&6; }
  18249. if test x$video_opengl = xyes; then
  18250. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18251. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18252. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18253. SUMMARY_video="${SUMMARY_video} opengl"
  18254. fi
  18255. fi
  18256. }
  18257. # Check whether --enable-video-opengles was given.
  18258. if test "${enable_video_opengles+set}" = set; then :
  18259. enableval=$enable_video_opengles;
  18260. else
  18261. enable_video_opengles=yes
  18262. fi
  18263. # Check whether --enable-video-opengles1 was given.
  18264. if test "${enable_video_opengles1+set}" = set; then :
  18265. enableval=$enable_video_opengles1;
  18266. else
  18267. enable_video_opengles1=yes
  18268. fi
  18269. # Check whether --enable-video-opengles2 was given.
  18270. if test "${enable_video_opengles2+set}" = set; then :
  18271. enableval=$enable_video_opengles2;
  18272. else
  18273. enable_video_opengles2=yes
  18274. fi
  18275. CheckOpenGLESX11()
  18276. {
  18277. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18279. $as_echo_n "checking for EGL support... " >&6; }
  18280. video_opengl_egl=no
  18281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18282. /* end confdefs.h. */
  18283. #define LINUX
  18284. #define EGL_API_FB
  18285. #include <EGL/egl.h>
  18286. #include <EGL/eglext.h>
  18287. int
  18288. main ()
  18289. {
  18290. ;
  18291. return 0;
  18292. }
  18293. _ACEOF
  18294. if ac_fn_c_try_compile "$LINENO"; then :
  18295. video_opengl_egl=yes
  18296. fi
  18297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18299. $as_echo "$video_opengl_egl" >&6; }
  18300. if test x$video_opengl_egl = xyes; then
  18301. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18302. fi
  18303. if test x$enable_video_opengles1 = xyes; then
  18304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18305. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18306. video_opengles_v1=no
  18307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18308. /* end confdefs.h. */
  18309. #include <GLES/gl.h>
  18310. #include <GLES/glext.h>
  18311. int
  18312. main ()
  18313. {
  18314. ;
  18315. return 0;
  18316. }
  18317. _ACEOF
  18318. if ac_fn_c_try_compile "$LINENO"; then :
  18319. video_opengles_v1=yes
  18320. fi
  18321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18323. $as_echo "$video_opengles_v1" >&6; }
  18324. if test x$video_opengles_v1 = xyes; then
  18325. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18326. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18327. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18328. fi
  18329. fi
  18330. if test x$enable_video_opengles2 = xyes; then
  18331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18332. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18333. video_opengles_v2=no
  18334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18335. /* end confdefs.h. */
  18336. #include <GLES2/gl2.h>
  18337. #include <GLES2/gl2ext.h>
  18338. int
  18339. main ()
  18340. {
  18341. ;
  18342. return 0;
  18343. }
  18344. _ACEOF
  18345. if ac_fn_c_try_compile "$LINENO"; then :
  18346. video_opengles_v2=yes
  18347. fi
  18348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18350. $as_echo "$video_opengles_v2" >&6; }
  18351. if test x$video_opengles_v2 = xyes; then
  18352. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18353. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18354. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18355. fi
  18356. fi
  18357. fi
  18358. }
  18359. CheckWINDOWSGL()
  18360. {
  18361. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18362. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18363. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18364. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18365. SUMMARY_video="${SUMMARY_video} opengl"
  18366. fi
  18367. }
  18368. CheckWINDOWSGLES()
  18369. {
  18370. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18372. $as_echo_n "checking for EGL support... " >&6; }
  18373. video_opengl_egl=no
  18374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18375. /* end confdefs.h. */
  18376. #include <EGL/egl.h>
  18377. int
  18378. main ()
  18379. {
  18380. ;
  18381. return 0;
  18382. }
  18383. _ACEOF
  18384. if ac_fn_c_try_compile "$LINENO"; then :
  18385. video_opengl_egl=yes
  18386. fi
  18387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18389. $as_echo "$video_opengl_egl" >&6; }
  18390. if test x$video_opengl_egl = xyes; then
  18391. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18392. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18393. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18394. fi
  18395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18396. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18397. video_opengles_v2=no
  18398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18399. /* end confdefs.h. */
  18400. #include <GLES2/gl2.h>
  18401. #include <GLES2/gl2ext.h>
  18402. int
  18403. main ()
  18404. {
  18405. ;
  18406. return 0;
  18407. }
  18408. _ACEOF
  18409. if ac_fn_c_try_compile "$LINENO"; then :
  18410. video_opengles_v2=yes
  18411. fi
  18412. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18414. $as_echo "$video_opengles_v2" >&6; }
  18415. if test x$video_opengles_v2 = xyes; then
  18416. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18417. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18418. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18419. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18420. fi
  18421. fi
  18422. }
  18423. CheckHaikuGL()
  18424. {
  18425. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18426. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18427. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18428. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18429. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18430. SUMMARY_video="${SUMMARY_video} opengl"
  18431. fi
  18432. }
  18433. CheckMacGL()
  18434. {
  18435. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18436. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18437. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18438. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18439. SUMMARY_video="${SUMMARY_video} opengl"
  18440. fi
  18441. }
  18442. CheckEmscriptenGLES()
  18443. {
  18444. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18446. $as_echo_n "checking for EGL support... " >&6; }
  18447. video_opengl_egl=no
  18448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18449. /* end confdefs.h. */
  18450. #include <EGL/egl.h>
  18451. int
  18452. main ()
  18453. {
  18454. ;
  18455. return 0;
  18456. }
  18457. _ACEOF
  18458. if ac_fn_c_try_compile "$LINENO"; then :
  18459. video_opengl_egl=yes
  18460. fi
  18461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18463. $as_echo "$video_opengl_egl" >&6; }
  18464. if test x$video_opengl_egl = xyes; then
  18465. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18466. fi
  18467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18468. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18469. video_opengles_v2=no
  18470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18471. /* end confdefs.h. */
  18472. #include <GLES2/gl2.h>
  18473. #include <GLES2/gl2ext.h>
  18474. int
  18475. main ()
  18476. {
  18477. ;
  18478. return 0;
  18479. }
  18480. _ACEOF
  18481. if ac_fn_c_try_compile "$LINENO"; then :
  18482. video_opengles_v2=yes
  18483. fi
  18484. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18486. $as_echo "$video_opengles_v2" >&6; }
  18487. if test x$video_opengles_v2 = xyes; then
  18488. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18489. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18490. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18491. fi
  18492. fi
  18493. }
  18494. CheckInputEvents()
  18495. {
  18496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18497. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18498. use_input_events=no
  18499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18500. /* end confdefs.h. */
  18501. #include <linux/input.h>
  18502. int
  18503. main ()
  18504. {
  18505. #ifndef EVIOCGNAME
  18506. #error EVIOCGNAME() ioctl not available
  18507. #endif
  18508. ;
  18509. return 0;
  18510. }
  18511. _ACEOF
  18512. if ac_fn_c_try_compile "$LINENO"; then :
  18513. use_input_events=yes
  18514. fi
  18515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18517. $as_echo "$use_input_events" >&6; }
  18518. if test x$use_input_events = xyes; then
  18519. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18520. SUMMARY_input="${SUMMARY_input} linuxev"
  18521. fi
  18522. }
  18523. CheckInputKD()
  18524. {
  18525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18526. $as_echo_n "checking for Linux kd.h... " >&6; }
  18527. use_input_kd=no
  18528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18529. /* end confdefs.h. */
  18530. #include <linux/kd.h>
  18531. #include <linux/keyboard.h>
  18532. int
  18533. main ()
  18534. {
  18535. struct kbentry kbe;
  18536. kbe.kb_table = KG_CTRL;
  18537. ioctl(0, KDGKBENT, &kbe);
  18538. ;
  18539. return 0;
  18540. }
  18541. _ACEOF
  18542. if ac_fn_c_try_compile "$LINENO"; then :
  18543. use_input_kd=yes
  18544. fi
  18545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18547. $as_echo "$use_input_kd" >&6; }
  18548. if test x$use_input_kd = xyes; then
  18549. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18550. SUMMARY_input="${SUMMARY_input} linuxkd"
  18551. fi
  18552. }
  18553. CheckLibUDev()
  18554. {
  18555. # Check whether --enable-libudev was given.
  18556. if test "${enable_libudev+set}" = set; then :
  18557. enableval=$enable_libudev;
  18558. else
  18559. enable_libudev=yes
  18560. fi
  18561. if test x$enable_libudev = xyes; then
  18562. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18563. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18564. have_libudev_h_hdr=yes
  18565. else
  18566. have_libudev_h_hdr=no
  18567. fi
  18568. if test x$have_libudev_h_hdr = xyes; then
  18569. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18570. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  18571. if test x$udev_lib != x; then
  18572. echo "-- dynamic udev -> $udev_lib"
  18573. cat >>confdefs.h <<_ACEOF
  18574. #define SDL_UDEV_DYNAMIC "$udev_lib"
  18575. _ACEOF
  18576. fi
  18577. fi
  18578. fi
  18579. }
  18580. CheckDBus()
  18581. {
  18582. # Check whether --enable-dbus was given.
  18583. if test "${enable_dbus+set}" = set; then :
  18584. enableval=$enable_dbus;
  18585. else
  18586. enable_dbus=yes
  18587. fi
  18588. if test x$enable_dbus = xyes; then
  18589. # Extract the first word of "pkg-config", so it can be a program name with args.
  18590. set dummy pkg-config; ac_word=$2
  18591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18592. $as_echo_n "checking for $ac_word... " >&6; }
  18593. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18594. $as_echo_n "(cached) " >&6
  18595. else
  18596. case $PKG_CONFIG in
  18597. [\\/]* | ?:[\\/]*)
  18598. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18599. ;;
  18600. *)
  18601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18602. for as_dir in $PATH
  18603. do
  18604. IFS=$as_save_IFS
  18605. test -z "$as_dir" && as_dir=.
  18606. for ac_exec_ext in '' $ac_executable_extensions; do
  18607. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18608. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18610. break 2
  18611. fi
  18612. done
  18613. done
  18614. IFS=$as_save_IFS
  18615. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18616. ;;
  18617. esac
  18618. fi
  18619. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18620. if test -n "$PKG_CONFIG"; then
  18621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18622. $as_echo "$PKG_CONFIG" >&6; }
  18623. else
  18624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18625. $as_echo "no" >&6; }
  18626. fi
  18627. if test x$PKG_CONFIG != xno; then
  18628. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18629. save_CFLAGS="$CFLAGS"
  18630. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18631. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18632. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18633. have_dbus_dbus_h_hdr=yes
  18634. else
  18635. have_dbus_dbus_h_hdr=no
  18636. fi
  18637. CFLAGS="$save_CFLAGS"
  18638. if test x$have_dbus_dbus_h_hdr = xyes; then
  18639. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18640. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18641. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  18642. fi
  18643. fi
  18644. fi
  18645. }
  18646. CheckIME()
  18647. {
  18648. # Check whether --enable-ime was given.
  18649. if test "${enable_ime+set}" = set; then :
  18650. enableval=$enable_ime;
  18651. else
  18652. enable_ime=yes
  18653. fi
  18654. if test x$enable_ime = xyes; then
  18655. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  18656. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  18657. fi
  18658. }
  18659. CheckIBus()
  18660. {
  18661. # Check whether --enable-ibus was given.
  18662. if test "${enable_ibus+set}" = set; then :
  18663. enableval=$enable_ibus;
  18664. else
  18665. enable_ibus=yes
  18666. fi
  18667. if test x$enable_ibus = xyes; then
  18668. # Extract the first word of "pkg-config", so it can be a program name with args.
  18669. set dummy pkg-config; ac_word=$2
  18670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18671. $as_echo_n "checking for $ac_word... " >&6; }
  18672. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18673. $as_echo_n "(cached) " >&6
  18674. else
  18675. case $PKG_CONFIG in
  18676. [\\/]* | ?:[\\/]*)
  18677. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18678. ;;
  18679. *)
  18680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18681. for as_dir in $PATH
  18682. do
  18683. IFS=$as_save_IFS
  18684. test -z "$as_dir" && as_dir=.
  18685. for ac_exec_ext in '' $ac_executable_extensions; do
  18686. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18687. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18688. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18689. break 2
  18690. fi
  18691. done
  18692. done
  18693. IFS=$as_save_IFS
  18694. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18695. ;;
  18696. esac
  18697. fi
  18698. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18699. if test -n "$PKG_CONFIG"; then
  18700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18701. $as_echo "$PKG_CONFIG" >&6; }
  18702. else
  18703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18704. $as_echo "no" >&6; }
  18705. fi
  18706. if test x$PKG_CONFIG != xno; then
  18707. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  18708. save_CFLAGS="$CFLAGS"
  18709. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  18710. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  18711. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  18712. have_ibus_ibus_h_hdr=yes
  18713. else
  18714. have_ibus_ibus_h_hdr=no
  18715. fi
  18716. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  18717. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  18718. have_inotify_inotify_h_hdr=yes
  18719. else
  18720. have_inotify_inotify_h_hdr=no
  18721. fi
  18722. CFLAGS="$save_CFLAGS"
  18723. if test x$have_ibus_ibus_h_hdr = xyes; then
  18724. if test x$enable_ime != xyes; then
  18725. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  18726. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  18727. have_ibus_ibus_h_hdr=no
  18728. elif test x$enable_dbus != xyes; then
  18729. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  18730. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  18731. have_ibus_ibus_h_hdr=no
  18732. elif test x$have_inotify_inotify_h_hdr != xyes; then
  18733. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  18734. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  18735. have_ibus_ibus_h_hdr=no
  18736. else
  18737. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  18738. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  18739. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  18740. fi
  18741. fi
  18742. fi
  18743. fi
  18744. }
  18745. CheckFcitx()
  18746. {
  18747. # Check whether --enable-fcitx was given.
  18748. if test "${enable_fcitx+set}" = set; then :
  18749. enableval=$enable_fcitx;
  18750. else
  18751. enable_fcitx=yes
  18752. fi
  18753. if test x$enable_fcitx = xyes; then
  18754. # Extract the first word of "pkg-config", so it can be a program name with args.
  18755. set dummy pkg-config; ac_word=$2
  18756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18757. $as_echo_n "checking for $ac_word... " >&6; }
  18758. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18759. $as_echo_n "(cached) " >&6
  18760. else
  18761. case $PKG_CONFIG in
  18762. [\\/]* | ?:[\\/]*)
  18763. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18764. ;;
  18765. *)
  18766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18767. for as_dir in $PATH
  18768. do
  18769. IFS=$as_save_IFS
  18770. test -z "$as_dir" && as_dir=.
  18771. for ac_exec_ext in '' $ac_executable_extensions; do
  18772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18773. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18775. break 2
  18776. fi
  18777. done
  18778. done
  18779. IFS=$as_save_IFS
  18780. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18781. ;;
  18782. esac
  18783. fi
  18784. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18785. if test -n "$PKG_CONFIG"; then
  18786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18787. $as_echo "$PKG_CONFIG" >&6; }
  18788. else
  18789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18790. $as_echo "no" >&6; }
  18791. fi
  18792. if test x$PKG_CONFIG != xno; then
  18793. FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
  18794. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  18795. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  18796. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  18797. have_fcitx_frontend_h_hdr=yes
  18798. else
  18799. have_fcitx_frontend_h_hdr=no
  18800. fi
  18801. CFLAGS="$save_CFLAGS"
  18802. if test x$have_fcitx_frontend_h_hdr = xyes; then
  18803. if test x$enable_ime != xyes; then
  18804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  18805. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  18806. have_fcitx_frontend_h_hdr=no
  18807. elif test x$enable_dbus != xyes; then
  18808. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  18809. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  18810. have_fcitx_frontend_h_hdr=no
  18811. else
  18812. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  18813. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  18814. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  18815. fi
  18816. fi
  18817. fi
  18818. fi
  18819. }
  18820. CheckTslib()
  18821. {
  18822. # Check whether --enable-input-tslib was given.
  18823. if test "${enable_input_tslib+set}" = set; then :
  18824. enableval=$enable_input_tslib;
  18825. else
  18826. enable_input_tslib=yes
  18827. fi
  18828. if test x$enable_input_tslib = xyes; then
  18829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  18830. $as_echo_n "checking for Touchscreen library support... " >&6; }
  18831. enable_input_tslib=no
  18832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18833. /* end confdefs.h. */
  18834. #include "tslib.h"
  18835. int
  18836. main ()
  18837. {
  18838. ;
  18839. return 0;
  18840. }
  18841. _ACEOF
  18842. if ac_fn_c_try_compile "$LINENO"; then :
  18843. enable_input_tslib=yes
  18844. fi
  18845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  18847. $as_echo "$enable_input_tslib" >&6; }
  18848. if test x$enable_input_tslib = xyes; then
  18849. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  18850. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  18851. SUMMARY_input="${SUMMARY_input} ts"
  18852. fi
  18853. fi
  18854. }
  18855. CheckPTHREAD()
  18856. {
  18857. # Check whether --enable-pthreads was given.
  18858. if test "${enable_pthreads+set}" = set; then :
  18859. enableval=$enable_pthreads;
  18860. else
  18861. enable_pthreads=yes
  18862. fi
  18863. # Check whether --enable-pthread-sem was given.
  18864. if test "${enable_pthread_sem+set}" = set; then :
  18865. enableval=$enable_pthread_sem;
  18866. else
  18867. enable_pthread_sem=yes
  18868. fi
  18869. case "$host" in
  18870. *-*-androideabi*)
  18871. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18872. pthread_lib=""
  18873. ;;
  18874. *-*-linux*|*-*-uclinux*)
  18875. pthread_cflags="-D_REENTRANT"
  18876. pthread_lib="-lpthread"
  18877. ;;
  18878. *-*-bsdi*)
  18879. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18880. pthread_lib=""
  18881. ;;
  18882. *-*-darwin*)
  18883. pthread_cflags="-D_THREAD_SAFE"
  18884. # causes Carbon.p complaints?
  18885. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18886. ;;
  18887. *-*-freebsd*|*-*-dragonfly*)
  18888. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18889. pthread_lib="-pthread"
  18890. ;;
  18891. *-*-netbsd*)
  18892. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  18893. pthread_lib="-lpthread"
  18894. ;;
  18895. *-*-openbsd*)
  18896. pthread_cflags="-D_REENTRANT"
  18897. pthread_lib="-pthread"
  18898. ;;
  18899. *-*-solaris2.9)
  18900. # From Solaris 9+, posix4's preferred name is rt.
  18901. pthread_cflags="-D_REENTRANT"
  18902. pthread_lib="-lpthread -lrt"
  18903. ;;
  18904. *-*-solaris2.10)
  18905. # Solaris 10+ merged pthread into libc.
  18906. pthread_cflags="-D_REENTRANT"
  18907. pthread_lib="-lrt"
  18908. ;;
  18909. *-*-solaris*)
  18910. # Solaris 11+ merged rt into libc.
  18911. pthread_cflags="-D_REENTRANT"
  18912. pthread_lib=""
  18913. ;;
  18914. *-*-sysv5*)
  18915. pthread_cflags="-D_REENTRANT -Kthread"
  18916. pthread_lib=""
  18917. ;;
  18918. *-*-aix*)
  18919. pthread_cflags="-D_REENTRANT -mthreads"
  18920. pthread_lib="-lpthread"
  18921. ;;
  18922. *-*-hpux11*)
  18923. pthread_cflags="-D_REENTRANT"
  18924. pthread_lib="-L/usr/lib -lpthread"
  18925. ;;
  18926. *-*-haiku*)
  18927. pthread_cflags="-D_REENTRANT"
  18928. pthread_lib=""
  18929. ;;
  18930. *)
  18931. pthread_cflags="-D_REENTRANT"
  18932. pthread_lib="-lpthread"
  18933. ;;
  18934. esac
  18935. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  18936. # Save the original compiler flags and libraries
  18937. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18938. # Add the pthread compiler flags and libraries
  18939. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18940. # Check to see if we have pthread support on this system
  18941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  18942. $as_echo_n "checking for pthreads... " >&6; }
  18943. use_pthreads=no
  18944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18945. /* end confdefs.h. */
  18946. #include <pthread.h>
  18947. int
  18948. main ()
  18949. {
  18950. pthread_attr_t type;
  18951. pthread_attr_init(&type);
  18952. ;
  18953. return 0;
  18954. }
  18955. _ACEOF
  18956. if ac_fn_c_try_link "$LINENO"; then :
  18957. use_pthreads=yes
  18958. fi
  18959. rm -f core conftest.err conftest.$ac_objext \
  18960. conftest$ac_exeext conftest.$ac_ext
  18961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  18962. $as_echo "$use_pthreads" >&6; }
  18963. # Restore the compiler flags and libraries
  18964. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18965. # Do futher testing if we have pthread support...
  18966. if test x$use_pthreads = xyes; then
  18967. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  18968. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  18969. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  18970. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  18971. # Save the original compiler flags and libraries
  18972. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18973. # Add the pthread compiler flags and libraries
  18974. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  18975. # Check to see if recursive mutexes are available
  18976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  18977. $as_echo_n "checking for recursive mutexes... " >&6; }
  18978. has_recursive_mutexes=no
  18979. if test x$has_recursive_mutexes = xno; then
  18980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18981. /* end confdefs.h. */
  18982. #define _GNU_SOURCE 1
  18983. #include <pthread.h>
  18984. int
  18985. main ()
  18986. {
  18987. pthread_mutexattr_t attr;
  18988. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  18989. ;
  18990. return 0;
  18991. }
  18992. _ACEOF
  18993. if ac_fn_c_try_link "$LINENO"; then :
  18994. has_recursive_mutexes=yes
  18995. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  18996. fi
  18997. rm -f core conftest.err conftest.$ac_objext \
  18998. conftest$ac_exeext conftest.$ac_ext
  18999. fi
  19000. if test x$has_recursive_mutexes = xno; then
  19001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19002. /* end confdefs.h. */
  19003. #define _GNU_SOURCE 1
  19004. #include <pthread.h>
  19005. int
  19006. main ()
  19007. {
  19008. pthread_mutexattr_t attr;
  19009. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19010. ;
  19011. return 0;
  19012. }
  19013. _ACEOF
  19014. if ac_fn_c_try_link "$LINENO"; then :
  19015. has_recursive_mutexes=yes
  19016. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19017. fi
  19018. rm -f core conftest.err conftest.$ac_objext \
  19019. conftest$ac_exeext conftest.$ac_ext
  19020. fi
  19021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19022. $as_echo "$has_recursive_mutexes" >&6; }
  19023. # Check to see if pthread semaphore support is missing
  19024. if test x$enable_pthread_sem = xyes; then
  19025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19026. $as_echo_n "checking for pthread semaphores... " >&6; }
  19027. have_pthread_sem=no
  19028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19029. /* end confdefs.h. */
  19030. #include <pthread.h>
  19031. #include <semaphore.h>
  19032. int
  19033. main ()
  19034. {
  19035. ;
  19036. return 0;
  19037. }
  19038. _ACEOF
  19039. if ac_fn_c_try_compile "$LINENO"; then :
  19040. have_pthread_sem=yes
  19041. fi
  19042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19044. $as_echo "$have_pthread_sem" >&6; }
  19045. fi
  19046. if test x$have_pthread_sem = xyes; then
  19047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19048. $as_echo_n "checking for sem_timedwait... " >&6; }
  19049. have_sem_timedwait=no
  19050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19051. /* end confdefs.h. */
  19052. #include <pthread.h>
  19053. #include <semaphore.h>
  19054. int
  19055. main ()
  19056. {
  19057. sem_timedwait(NULL, NULL);
  19058. ;
  19059. return 0;
  19060. }
  19061. _ACEOF
  19062. if ac_fn_c_try_link "$LINENO"; then :
  19063. have_sem_timedwait=yes
  19064. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19065. fi
  19066. rm -f core conftest.err conftest.$ac_objext \
  19067. conftest$ac_exeext conftest.$ac_ext
  19068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19069. $as_echo "$have_sem_timedwait" >&6; }
  19070. fi
  19071. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19072. "
  19073. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19074. have_pthread_np_h=yes
  19075. else
  19076. have_pthread_np_h=no
  19077. fi
  19078. if test x$have_pthread_np_h = xyes; then
  19079. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19080. fi
  19081. # Check to see if pthread naming is available
  19082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19083. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19085. /* end confdefs.h. */
  19086. /* Override any GCC internal prototype to avoid an error.
  19087. Use char because int might match the return type of a GCC
  19088. builtin and then its argument prototype would still apply. */
  19089. #ifdef __cplusplus
  19090. extern "C"
  19091. #endif
  19092. char pthread_setname_np ();
  19093. int
  19094. main ()
  19095. {
  19096. return pthread_setname_np ();
  19097. ;
  19098. return 0;
  19099. }
  19100. _ACEOF
  19101. if ac_fn_c_try_link "$LINENO"; then :
  19102. has_pthread_setname_np=yes
  19103. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19104. else
  19105. has_pthread_setname_np=no
  19106. fi
  19107. rm -f core conftest.err conftest.$ac_objext \
  19108. conftest$ac_exeext conftest.$ac_ext
  19109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19110. $as_echo "$has_pthread_setname_np" >&6; }
  19111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19112. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19114. /* end confdefs.h. */
  19115. /* Override any GCC internal prototype to avoid an error.
  19116. Use char because int might match the return type of a GCC
  19117. builtin and then its argument prototype would still apply. */
  19118. #ifdef __cplusplus
  19119. extern "C"
  19120. #endif
  19121. char pthread_set_name_np ();
  19122. int
  19123. main ()
  19124. {
  19125. return pthread_set_name_np ();
  19126. ;
  19127. return 0;
  19128. }
  19129. _ACEOF
  19130. if ac_fn_c_try_link "$LINENO"; then :
  19131. has_pthread_set_name_np=yes
  19132. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19133. else
  19134. has_pthread_set_name_np=no
  19135. fi
  19136. rm -f core conftest.err conftest.$ac_objext \
  19137. conftest$ac_exeext conftest.$ac_ext
  19138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19139. $as_echo "$has_pthread_set_name_np" >&6; }
  19140. # Restore the compiler flags and libraries
  19141. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19142. # Basic thread creation functions
  19143. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19144. # Semaphores
  19145. # We can fake these with mutexes and condition variables if necessary
  19146. if test x$have_pthread_sem = xyes; then
  19147. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19148. else
  19149. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19150. fi
  19151. # Mutexes
  19152. # We can fake these with semaphores if necessary
  19153. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19154. # Condition variables
  19155. # We can fake these with semaphores and mutexes if necessary
  19156. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19157. # Thread local storage
  19158. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19159. have_threads=yes
  19160. fi
  19161. fi
  19162. }
  19163. CheckWINDOWS()
  19164. {
  19165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19166. $as_echo_n "checking Windows compiler... " >&6; }
  19167. have_win32_gcc=no
  19168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19169. /* end confdefs.h. */
  19170. #include <windows.h>
  19171. int
  19172. main ()
  19173. {
  19174. ;
  19175. return 0;
  19176. }
  19177. _ACEOF
  19178. if ac_fn_c_try_compile "$LINENO"; then :
  19179. have_win32_gcc=yes
  19180. fi
  19181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19183. $as_echo "$have_win32_gcc" >&6; }
  19184. if test x$have_win32_gcc != xyes; then
  19185. as_fn_error $? "
  19186. *** Your compiler ($CC) does not produce Windows executables!
  19187. " "$LINENO" 5
  19188. fi
  19189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19190. $as_echo_n "checking Windows CE... " >&6; }
  19191. have_wince=no
  19192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19193. /* end confdefs.h. */
  19194. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19195. #error This is not Windows CE
  19196. #endif
  19197. int
  19198. main ()
  19199. {
  19200. ;
  19201. return 0;
  19202. }
  19203. _ACEOF
  19204. if ac_fn_c_try_compile "$LINENO"; then :
  19205. have_wince=yes
  19206. as_fn_error $? "
  19207. *** Sorry, Windows CE is no longer supported.
  19208. " "$LINENO" 5
  19209. fi
  19210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19212. $as_echo "$have_wince" >&6; }
  19213. # This fixes Windows stack alignment with newer GCC
  19214. CheckStackBoundary
  19215. }
  19216. CheckDIRECTX()
  19217. {
  19218. # Check whether --enable-directx was given.
  19219. if test "${enable_directx+set}" = set; then :
  19220. enableval=$enable_directx;
  19221. else
  19222. enable_directx=yes
  19223. fi
  19224. if test x$enable_directx = xyes; then
  19225. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19226. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19227. have_d3d=yes
  19228. fi
  19229. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19230. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19231. have_d3d11=yes
  19232. fi
  19233. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19234. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19235. have_ddraw=yes
  19236. fi
  19237. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19238. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19239. have_dsound=yes
  19240. fi
  19241. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19242. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19243. have_dinput=yes
  19244. fi
  19245. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19246. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19247. have_dxgi=yes
  19248. fi
  19249. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  19250. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  19251. have_xaudio2=yes
  19252. fi
  19253. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19254. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19255. have_xinput=yes
  19256. fi
  19257. if test x$have_ddraw = xyes; then
  19258. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19259. fi
  19260. if test x$have_dinput = xyes; then
  19261. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19262. fi
  19263. if test x$have_dsound = xyes; then
  19264. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19265. fi
  19266. if test x$have_dxgi = xyes; then
  19267. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19268. fi
  19269. if test x$have_xinput = xyes; then
  19270. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19271. fi
  19272. SUMMARY_video="${SUMMARY_video} directx"
  19273. SUMMARY_audio="${SUMMARY_audio} directx"
  19274. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19275. # FIXME: ...so force it off for now.
  19276. case "$host" in
  19277. *-*-cygwin*)
  19278. have_dinput=false
  19279. ;;
  19280. esac
  19281. fi
  19282. }
  19283. CheckDLOPEN()
  19284. {
  19285. # Check whether --enable-sdl-dlopen was given.
  19286. if test "${enable_sdl_dlopen+set}" = set; then :
  19287. enableval=$enable_sdl_dlopen;
  19288. else
  19289. enable_sdl_dlopen=yes
  19290. fi
  19291. if test x$enable_sdl_dlopen = xyes; then
  19292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19293. $as_echo_n "checking for dlopen... " >&6; }
  19294. have_dlopen=no
  19295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19296. /* end confdefs.h. */
  19297. #include <dlfcn.h>
  19298. int
  19299. main ()
  19300. {
  19301. void *handle = dlopen("", RTLD_NOW);
  19302. const char *loaderror = (char *) dlerror();
  19303. ;
  19304. return 0;
  19305. }
  19306. _ACEOF
  19307. if ac_fn_c_try_compile "$LINENO"; then :
  19308. have_dlopen=yes
  19309. fi
  19310. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19312. $as_echo "$have_dlopen" >&6; }
  19313. if test x$have_dlopen = xyes; then
  19314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19315. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19316. if ${ac_cv_lib_c_dlopen+:} false; then :
  19317. $as_echo_n "(cached) " >&6
  19318. else
  19319. ac_check_lib_save_LIBS=$LIBS
  19320. LIBS="-lc $LIBS"
  19321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19322. /* end confdefs.h. */
  19323. /* Override any GCC internal prototype to avoid an error.
  19324. Use char because int might match the return type of a GCC
  19325. builtin and then its argument prototype would still apply. */
  19326. #ifdef __cplusplus
  19327. extern "C"
  19328. #endif
  19329. char dlopen ();
  19330. int
  19331. main ()
  19332. {
  19333. return dlopen ();
  19334. ;
  19335. return 0;
  19336. }
  19337. _ACEOF
  19338. if ac_fn_c_try_link "$LINENO"; then :
  19339. ac_cv_lib_c_dlopen=yes
  19340. else
  19341. ac_cv_lib_c_dlopen=no
  19342. fi
  19343. rm -f core conftest.err conftest.$ac_objext \
  19344. conftest$ac_exeext conftest.$ac_ext
  19345. LIBS=$ac_check_lib_save_LIBS
  19346. fi
  19347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19348. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19349. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19350. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19351. else
  19352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19353. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19354. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19355. $as_echo_n "(cached) " >&6
  19356. else
  19357. ac_check_lib_save_LIBS=$LIBS
  19358. LIBS="-ldl $LIBS"
  19359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19360. /* end confdefs.h. */
  19361. /* Override any GCC internal prototype to avoid an error.
  19362. Use char because int might match the return type of a GCC
  19363. builtin and then its argument prototype would still apply. */
  19364. #ifdef __cplusplus
  19365. extern "C"
  19366. #endif
  19367. char dlopen ();
  19368. int
  19369. main ()
  19370. {
  19371. return dlopen ();
  19372. ;
  19373. return 0;
  19374. }
  19375. _ACEOF
  19376. if ac_fn_c_try_link "$LINENO"; then :
  19377. ac_cv_lib_dl_dlopen=yes
  19378. else
  19379. ac_cv_lib_dl_dlopen=no
  19380. fi
  19381. rm -f core conftest.err conftest.$ac_objext \
  19382. conftest$ac_exeext conftest.$ac_ext
  19383. LIBS=$ac_check_lib_save_LIBS
  19384. fi
  19385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19386. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19387. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19388. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19389. else
  19390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19391. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19392. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19393. $as_echo_n "(cached) " >&6
  19394. else
  19395. ac_check_lib_save_LIBS=$LIBS
  19396. LIBS="-lltdl $LIBS"
  19397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19398. /* end confdefs.h. */
  19399. /* Override any GCC internal prototype to avoid an error.
  19400. Use char because int might match the return type of a GCC
  19401. builtin and then its argument prototype would still apply. */
  19402. #ifdef __cplusplus
  19403. extern "C"
  19404. #endif
  19405. char dlopen ();
  19406. int
  19407. main ()
  19408. {
  19409. return dlopen ();
  19410. ;
  19411. return 0;
  19412. }
  19413. _ACEOF
  19414. if ac_fn_c_try_link "$LINENO"; then :
  19415. ac_cv_lib_ltdl_dlopen=yes
  19416. else
  19417. ac_cv_lib_ltdl_dlopen=no
  19418. fi
  19419. rm -f core conftest.err conftest.$ac_objext \
  19420. conftest$ac_exeext conftest.$ac_ext
  19421. LIBS=$ac_check_lib_save_LIBS
  19422. fi
  19423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19424. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19425. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19426. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19427. fi
  19428. fi
  19429. fi
  19430. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19431. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19432. have_loadso=yes
  19433. fi
  19434. fi
  19435. }
  19436. CheckUSBHID()
  19437. {
  19438. case "$host" in
  19439. *-*-*bsd*)
  19440. if test x$enable_joystick = xyes; then
  19441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19442. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19443. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19444. $as_echo_n "(cached) " >&6
  19445. else
  19446. ac_check_lib_save_LIBS=$LIBS
  19447. LIBS="-lusbhid $LIBS"
  19448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19449. /* end confdefs.h. */
  19450. /* Override any GCC internal prototype to avoid an error.
  19451. Use char because int might match the return type of a GCC
  19452. builtin and then its argument prototype would still apply. */
  19453. #ifdef __cplusplus
  19454. extern "C"
  19455. #endif
  19456. char hid_init ();
  19457. int
  19458. main ()
  19459. {
  19460. return hid_init ();
  19461. ;
  19462. return 0;
  19463. }
  19464. _ACEOF
  19465. if ac_fn_c_try_link "$LINENO"; then :
  19466. ac_cv_lib_usbhid_hid_init=yes
  19467. else
  19468. ac_cv_lib_usbhid_hid_init=no
  19469. fi
  19470. rm -f core conftest.err conftest.$ac_objext \
  19471. conftest$ac_exeext conftest.$ac_ext
  19472. LIBS=$ac_check_lib_save_LIBS
  19473. fi
  19474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19475. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19476. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  19477. have_libusbhid=yes
  19478. fi
  19479. if test x$have_libusbhid = xyes; then
  19480. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  19481. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  19482. USB_CFLAGS="-DHAVE_USBHID_H"
  19483. fi
  19484. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  19485. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  19486. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  19487. fi
  19488. USB_LIBS="$USB_LIBS -lusbhid"
  19489. else
  19490. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  19491. if test "x$ac_cv_header_usb_h" = xyes; then :
  19492. USB_CFLAGS="-DHAVE_USB_H"
  19493. fi
  19494. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  19495. if test "x$ac_cv_header_libusb_h" = xyes; then :
  19496. USB_CFLAGS="-DHAVE_LIBUSB_H"
  19497. fi
  19498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  19499. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  19500. if ${ac_cv_lib_usb_hid_init+:} false; then :
  19501. $as_echo_n "(cached) " >&6
  19502. else
  19503. ac_check_lib_save_LIBS=$LIBS
  19504. LIBS="-lusb $LIBS"
  19505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19506. /* end confdefs.h. */
  19507. /* Override any GCC internal prototype to avoid an error.
  19508. Use char because int might match the return type of a GCC
  19509. builtin and then its argument prototype would still apply. */
  19510. #ifdef __cplusplus
  19511. extern "C"
  19512. #endif
  19513. char hid_init ();
  19514. int
  19515. main ()
  19516. {
  19517. return hid_init ();
  19518. ;
  19519. return 0;
  19520. }
  19521. _ACEOF
  19522. if ac_fn_c_try_link "$LINENO"; then :
  19523. ac_cv_lib_usb_hid_init=yes
  19524. else
  19525. ac_cv_lib_usb_hid_init=no
  19526. fi
  19527. rm -f core conftest.err conftest.$ac_objext \
  19528. conftest$ac_exeext conftest.$ac_ext
  19529. LIBS=$ac_check_lib_save_LIBS
  19530. fi
  19531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  19532. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  19533. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  19534. USB_LIBS="$USB_LIBS -lusb"
  19535. fi
  19536. fi
  19537. save_CFLAGS="$CFLAGS"
  19538. CFLAGS="$CFLAGS $USB_CFLAGS"
  19539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  19540. $as_echo_n "checking for usbhid... " >&6; }
  19541. have_usbhid=no
  19542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19543. /* end confdefs.h. */
  19544. #include <sys/types.h>
  19545. #if defined(HAVE_USB_H)
  19546. #include <usb.h>
  19547. #endif
  19548. #ifdef __DragonFly__
  19549. # include <bus/usb/usb.h>
  19550. # include <bus/usb/usbhid.h>
  19551. #else
  19552. # include <dev/usb/usb.h>
  19553. # include <dev/usb/usbhid.h>
  19554. #endif
  19555. #if defined(HAVE_USBHID_H)
  19556. #include <usbhid.h>
  19557. #elif defined(HAVE_LIBUSB_H)
  19558. #include <libusb.h>
  19559. #elif defined(HAVE_LIBUSBHID_H)
  19560. #include <libusbhid.h>
  19561. #endif
  19562. int
  19563. main ()
  19564. {
  19565. struct report_desc *repdesc;
  19566. struct usb_ctl_report *repbuf;
  19567. hid_kind_t hidkind;
  19568. ;
  19569. return 0;
  19570. }
  19571. _ACEOF
  19572. if ac_fn_c_try_compile "$LINENO"; then :
  19573. have_usbhid=yes
  19574. fi
  19575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  19577. $as_echo "$have_usbhid" >&6; }
  19578. if test x$have_usbhid = xyes; then
  19579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  19580. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  19581. have_usbhid_ucr_data=no
  19582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19583. /* end confdefs.h. */
  19584. #include <sys/types.h>
  19585. #if defined(HAVE_USB_H)
  19586. #include <usb.h>
  19587. #endif
  19588. #ifdef __DragonFly__
  19589. # include <bus/usb/usb.h>
  19590. # include <bus/usb/usbhid.h>
  19591. #else
  19592. # include <dev/usb/usb.h>
  19593. # include <dev/usb/usbhid.h>
  19594. #endif
  19595. #if defined(HAVE_USBHID_H)
  19596. #include <usbhid.h>
  19597. #elif defined(HAVE_LIBUSB_H)
  19598. #include <libusb.h>
  19599. #elif defined(HAVE_LIBUSBHID_H)
  19600. #include <libusbhid.h>
  19601. #endif
  19602. int
  19603. main ()
  19604. {
  19605. struct usb_ctl_report buf;
  19606. if (buf.ucr_data) { }
  19607. ;
  19608. return 0;
  19609. }
  19610. _ACEOF
  19611. if ac_fn_c_try_compile "$LINENO"; then :
  19612. have_usbhid_ucr_data=yes
  19613. fi
  19614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19615. if test x$have_usbhid_ucr_data = xyes; then
  19616. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  19617. fi
  19618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  19619. $as_echo "$have_usbhid_ucr_data" >&6; }
  19620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  19621. $as_echo_n "checking for new usbhid API... " >&6; }
  19622. have_usbhid_new=no
  19623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19624. /* end confdefs.h. */
  19625. #include <sys/types.h>
  19626. #if defined(HAVE_USB_H)
  19627. #include <usb.h>
  19628. #endif
  19629. #ifdef __DragonFly__
  19630. #include <bus/usb/usb.h>
  19631. #include <bus/usb/usbhid.h>
  19632. #else
  19633. #include <dev/usb/usb.h>
  19634. #include <dev/usb/usbhid.h>
  19635. #endif
  19636. #if defined(HAVE_USBHID_H)
  19637. #include <usbhid.h>
  19638. #elif defined(HAVE_LIBUSB_H)
  19639. #include <libusb.h>
  19640. #elif defined(HAVE_LIBUSBHID_H)
  19641. #include <libusbhid.h>
  19642. #endif
  19643. int
  19644. main ()
  19645. {
  19646. report_desc_t d;
  19647. hid_start_parse(d, 1, 1);
  19648. ;
  19649. return 0;
  19650. }
  19651. _ACEOF
  19652. if ac_fn_c_try_compile "$LINENO"; then :
  19653. have_usbhid_new=yes
  19654. fi
  19655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19656. if test x$have_usbhid_new = xyes; then
  19657. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  19658. fi
  19659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  19660. $as_echo "$have_usbhid_new" >&6; }
  19661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  19662. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  19663. have_machine_joystick=no
  19664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19665. /* end confdefs.h. */
  19666. #include <machine/joystick.h>
  19667. int
  19668. main ()
  19669. {
  19670. struct joystick t;
  19671. ;
  19672. return 0;
  19673. }
  19674. _ACEOF
  19675. if ac_fn_c_try_compile "$LINENO"; then :
  19676. have_machine_joystick=yes
  19677. fi
  19678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19679. if test x$have_machine_joystick = xyes; then
  19680. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  19681. fi
  19682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  19683. $as_echo "$have_machine_joystick" >&6; }
  19684. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  19685. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  19686. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  19687. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  19688. have_joystick=yes
  19689. fi
  19690. CFLAGS="$save_CFLAGS"
  19691. fi
  19692. ;;
  19693. esac
  19694. }
  19695. CheckClockGettime()
  19696. {
  19697. # Check whether --enable-clock_gettime was given.
  19698. if test "${enable_clock_gettime+set}" = set; then :
  19699. enableval=$enable_clock_gettime;
  19700. else
  19701. enable_clock_gettime=yes
  19702. fi
  19703. if test x$enable_clock_gettime = xyes; then
  19704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  19705. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  19706. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  19707. $as_echo_n "(cached) " >&6
  19708. else
  19709. ac_check_lib_save_LIBS=$LIBS
  19710. LIBS="-lrt $LIBS"
  19711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19712. /* end confdefs.h. */
  19713. /* Override any GCC internal prototype to avoid an error.
  19714. Use char because int might match the return type of a GCC
  19715. builtin and then its argument prototype would still apply. */
  19716. #ifdef __cplusplus
  19717. extern "C"
  19718. #endif
  19719. char clock_gettime ();
  19720. int
  19721. main ()
  19722. {
  19723. return clock_gettime ();
  19724. ;
  19725. return 0;
  19726. }
  19727. _ACEOF
  19728. if ac_fn_c_try_link "$LINENO"; then :
  19729. ac_cv_lib_rt_clock_gettime=yes
  19730. else
  19731. ac_cv_lib_rt_clock_gettime=no
  19732. fi
  19733. rm -f core conftest.err conftest.$ac_objext \
  19734. conftest$ac_exeext conftest.$ac_ext
  19735. LIBS=$ac_check_lib_save_LIBS
  19736. fi
  19737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  19738. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  19739. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  19740. have_clock_gettime=yes
  19741. fi
  19742. if test x$have_clock_gettime = xyes; then
  19743. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19744. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  19745. else
  19746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  19747. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  19748. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  19749. $as_echo_n "(cached) " >&6
  19750. else
  19751. ac_check_lib_save_LIBS=$LIBS
  19752. LIBS="-lc $LIBS"
  19753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19754. /* end confdefs.h. */
  19755. /* Override any GCC internal prototype to avoid an error.
  19756. Use char because int might match the return type of a GCC
  19757. builtin and then its argument prototype would still apply. */
  19758. #ifdef __cplusplus
  19759. extern "C"
  19760. #endif
  19761. char clock_gettime ();
  19762. int
  19763. main ()
  19764. {
  19765. return clock_gettime ();
  19766. ;
  19767. return 0;
  19768. }
  19769. _ACEOF
  19770. if ac_fn_c_try_link "$LINENO"; then :
  19771. ac_cv_lib_c_clock_gettime=yes
  19772. else
  19773. ac_cv_lib_c_clock_gettime=no
  19774. fi
  19775. rm -f core conftest.err conftest.$ac_objext \
  19776. conftest$ac_exeext conftest.$ac_ext
  19777. LIBS=$ac_check_lib_save_LIBS
  19778. fi
  19779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  19780. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  19781. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  19782. have_clock_gettime=yes
  19783. fi
  19784. if test x$have_clock_gettime = xyes; then
  19785. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  19786. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19787. fi
  19788. fi
  19789. fi
  19790. }
  19791. CheckLinuxVersion()
  19792. {
  19793. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  19794. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  19795. have_linux_version_h=yes
  19796. fi
  19797. if test x$have_linux_version_h = xyes; then
  19798. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  19799. fi
  19800. }
  19801. CheckRPATH()
  19802. {
  19803. # Check whether --enable-rpath was given.
  19804. if test "${enable_rpath+set}" = set; then :
  19805. enableval=$enable_rpath;
  19806. else
  19807. enable_rpath=yes
  19808. fi
  19809. }
  19810. CheckWarnAll
  19811. case "$host" in
  19812. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  19813. case "$host" in
  19814. *-raspberry-linux*)
  19815. # Raspberry Pi
  19816. ARCH=linux
  19817. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19818. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19819. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19820. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19821. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  19822. if test x$enable_video = xyes; then
  19823. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19824. # FIXME: confdefs? Not AC_DEFINE?
  19825. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19826. SUMMARY_video="${SUMMARY_video} rpi"
  19827. fi
  19828. ;;
  19829. *-*-androideabi*)
  19830. # Android
  19831. ARCH=android
  19832. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  19833. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  19834. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  19835. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  19836. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  19837. if test x$enable_video = xyes; then
  19838. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  19839. # FIXME: confdefs? Not AC_DEFINE?
  19840. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  19841. SUMMARY_video="${SUMMARY_video} android"
  19842. fi
  19843. ;;
  19844. *-*-linux*) ARCH=linux ;;
  19845. *-*-uclinux*) ARCH=linux ;;
  19846. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  19847. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  19848. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  19849. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  19850. *-*-bsdi*) ARCH=bsdi ;;
  19851. *-*-freebsd*) ARCH=freebsd ;;
  19852. *-*-dragonfly*) ARCH=freebsd ;;
  19853. *-raspberry-netbsd*)
  19854. # Raspberry Pi
  19855. ARCH=netbsd
  19856. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  19857. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19858. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19859. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19860. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host -ldl"
  19861. if test x$enable_video = xyes; then
  19862. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19863. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19864. SUMMARY_video="${SUMMARY_video} raspberry"
  19865. fi
  19866. ;;
  19867. *-*-netbsd*) ARCH=netbsd ;;
  19868. *-*-openbsd*) ARCH=openbsd ;;
  19869. *-*-sysv5*) ARCH=sysv5 ;;
  19870. *-*-solaris*) ARCH=solaris ;;
  19871. *-*-hpux*) ARCH=hpux ;;
  19872. *-*-aix*) ARCH=aix ;;
  19873. *-*-minix*) ARCH=minix ;;
  19874. esac
  19875. CheckVisibilityHidden
  19876. CheckDeclarationAfterStatement
  19877. CheckDummyVideo
  19878. CheckDiskAudio
  19879. CheckDummyAudio
  19880. CheckDLOPEN
  19881. CheckOSS
  19882. CheckALSA
  19883. CheckPulseAudio
  19884. CheckARTSC
  19885. CheckESD
  19886. CheckNAS
  19887. CheckSNDIO
  19888. CheckFusionSound
  19889. CheckLibSampleRate
  19890. CheckX11
  19891. CheckDirectFB
  19892. CheckOpenGLX11
  19893. CheckOpenGLESX11
  19894. CheckMir
  19895. CheckWayland
  19896. CheckLibUDev
  19897. CheckDBus
  19898. CheckIME
  19899. CheckIBus
  19900. CheckFcitx
  19901. case $ARCH in
  19902. linux)
  19903. CheckInputEvents
  19904. CheckInputKD
  19905. ;;
  19906. esac
  19907. CheckTslib
  19908. CheckUSBHID
  19909. CheckPTHREAD
  19910. CheckClockGettime
  19911. CheckLinuxVersion
  19912. CheckRPATH
  19913. CheckVivanteVideo
  19914. # Set up files for the audio library
  19915. if test x$enable_audio = xyes; then
  19916. case $ARCH in
  19917. sysv5|solaris|hpux)
  19918. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  19919. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  19920. have_audio=yes
  19921. ;;
  19922. netbsd) # Don't use this on OpenBSD, it's busted.
  19923. $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h
  19924. SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
  19925. have_audio=yes
  19926. ;;
  19927. aix)
  19928. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  19929. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  19930. have_audio=yes
  19931. ;;
  19932. android)
  19933. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  19934. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  19935. SUMMARY_audio="${SUMMARY_audio} android"
  19936. have_audio=yes
  19937. ;;
  19938. esac
  19939. fi
  19940. # Set up files for the joystick library
  19941. if test x$enable_joystick = xyes; then
  19942. case $ARCH in
  19943. linux)
  19944. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  19945. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  19946. have_joystick=yes
  19947. ;;
  19948. android)
  19949. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  19950. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  19951. have_joystick=yes
  19952. ;;
  19953. esac
  19954. fi
  19955. # Set up files for the haptic library
  19956. if test x$enable_haptic = xyes; then
  19957. if test x$use_input_events = xyes; then
  19958. case $ARCH in
  19959. linux)
  19960. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  19961. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  19962. have_haptic=yes
  19963. ;;
  19964. esac
  19965. fi
  19966. fi
  19967. # Set up files for the power library
  19968. if test x$enable_power = xyes; then
  19969. case $ARCH in
  19970. linux)
  19971. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  19972. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  19973. have_power=yes
  19974. ;;
  19975. android)
  19976. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  19977. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  19978. have_power=yes
  19979. ;;
  19980. esac
  19981. fi
  19982. # Set up files for the filesystem library
  19983. if test x$enable_filesystem = xyes; then
  19984. case $ARCH in
  19985. android)
  19986. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  19987. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  19988. have_filesystem=yes
  19989. ;;
  19990. *)
  19991. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  19992. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  19993. have_filesystem=yes
  19994. ;;
  19995. esac
  19996. fi
  19997. # Set up files for the timer library
  19998. if test x$enable_timers = xyes; then
  19999. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20000. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20001. have_timers=yes
  20002. fi
  20003. # Set up files for udev hotplugging support
  20004. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  20005. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  20006. fi
  20007. # Set up files for evdev input
  20008. if test x$use_input_events = xyes; then
  20009. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  20010. fi
  20011. ;;
  20012. *-*-cygwin* | *-*-mingw32*)
  20013. ARCH=win32
  20014. if test "$build" != "$host"; then # cross-compiling
  20015. # Default cross-compile location
  20016. ac_default_prefix=/usr/local/cross-tools/$host
  20017. else
  20018. # Look for the location of the tools and install there
  20019. if test "$BUILD_PREFIX" != ""; then
  20020. ac_default_prefix=$BUILD_PREFIX
  20021. fi
  20022. fi
  20023. CheckDeclarationAfterStatement
  20024. CheckDummyVideo
  20025. CheckDiskAudio
  20026. CheckDummyAudio
  20027. CheckWINDOWS
  20028. CheckWINDOWSGL
  20029. CheckWINDOWSGLES
  20030. CheckDIRECTX
  20031. # Set up the core platform files
  20032. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  20033. # Set up files for the video library
  20034. if test x$enable_video = xyes; then
  20035. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  20036. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  20037. have_video=yes
  20038. # Check whether --enable-render-d3d was given.
  20039. if test "${enable_render_d3d+set}" = set; then :
  20040. enableval=$enable_render_d3d;
  20041. else
  20042. enable_render_d3d=yes
  20043. fi
  20044. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  20045. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  20046. fi
  20047. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  20048. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  20049. fi
  20050. fi
  20051. # Set up files for the audio library
  20052. if test x$enable_audio = xyes; then
  20053. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  20054. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  20055. if test x$have_dsound = xyes; then
  20056. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  20057. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  20058. fi
  20059. if test x$have_xaudio2 = xyes; then
  20060. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  20061. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  20062. fi
  20063. have_audio=yes
  20064. fi
  20065. # Set up files for the joystick library
  20066. if test x$enable_joystick = xyes; then
  20067. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20068. if test x$have_xinput = xyes; then
  20069. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  20070. fi
  20071. if test x$have_dinput = xyes; then
  20072. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  20073. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  20074. fi
  20075. else
  20076. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  20077. fi
  20078. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  20079. have_joystick=yes
  20080. fi
  20081. if test x$enable_haptic = xyes; then
  20082. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20083. if test x$have_xinput = xyes; then
  20084. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  20085. fi
  20086. if test x$have_dinput = xyes; then
  20087. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  20088. fi
  20089. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  20090. have_haptic=yes
  20091. fi
  20092. fi
  20093. if test x$enable_power = xyes; then
  20094. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  20095. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  20096. have_power=yes
  20097. fi
  20098. if test x$enable_filesystem = xyes; then
  20099. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  20100. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  20101. have_filesystem=yes
  20102. fi
  20103. # Set up files for the thread library
  20104. if test x$enable_threads = xyes; then
  20105. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  20106. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  20107. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  20108. have_threads=yes
  20109. fi
  20110. # Set up files for the timer library
  20111. if test x$enable_timers = xyes; then
  20112. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  20113. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  20114. have_timers=yes
  20115. fi
  20116. # Set up files for the shared object loading library
  20117. if test x$enable_loadso = xyes; then
  20118. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  20119. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  20120. have_loadso=yes
  20121. fi
  20122. # Set up the system libraries we need
  20123. if test -f /lib/w32api/libuuid.a; then
  20124. LIBUUID=/lib/w32api/libuuid.a
  20125. else
  20126. LIBUUID=-luuid
  20127. fi
  20128. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
  20129. # The Windows platform requires special setup
  20130. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  20131. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  20132. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  20133. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  20134. # Check to see if this is a mingw or cygwin build
  20135. have_mingw32=
  20136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  20137. $as_echo_n "checking for main in -lmingw32... " >&6; }
  20138. if ${ac_cv_lib_mingw32_main+:} false; then :
  20139. $as_echo_n "(cached) " >&6
  20140. else
  20141. ac_check_lib_save_LIBS=$LIBS
  20142. LIBS="-lmingw32 $LIBS"
  20143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20144. /* end confdefs.h. */
  20145. int
  20146. main ()
  20147. {
  20148. return main ();
  20149. ;
  20150. return 0;
  20151. }
  20152. _ACEOF
  20153. if ac_fn_c_try_link "$LINENO"; then :
  20154. ac_cv_lib_mingw32_main=yes
  20155. else
  20156. ac_cv_lib_mingw32_main=no
  20157. fi
  20158. rm -f core conftest.err conftest.$ac_objext \
  20159. conftest$ac_exeext conftest.$ac_ext
  20160. LIBS=$ac_check_lib_save_LIBS
  20161. fi
  20162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  20163. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  20164. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  20165. have_mingw32=yes
  20166. fi
  20167. if test x$have_mingw32 = xyes; then
  20168. SDL_LIBS="-lmingw32 $SDL_LIBS"
  20169. else
  20170. SDL_LIBS="-lcygwin $SDL_LIBS"
  20171. fi
  20172. ;;
  20173. *-*-beos*)
  20174. as_fn_error $? "
  20175. *** BeOS support has been removed as of SDL 2.0.2.
  20176. " "$LINENO" 5
  20177. ;;
  20178. *-*-haiku*)
  20179. ARCH=haiku
  20180. ac_default_prefix=/boot/system
  20181. CheckDummyVideo
  20182. CheckDiskAudio
  20183. CheckDummyAudio
  20184. CheckDLOPEN
  20185. CheckHaikuVideo
  20186. CheckHaikuGL
  20187. CheckPTHREAD
  20188. # Set up files for the audio library
  20189. if test x$enable_audio = xyes; then
  20190. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  20191. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  20192. have_audio=yes
  20193. fi
  20194. # Set up files for the joystick library
  20195. if test x$enable_joystick = xyes; then
  20196. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  20197. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  20198. have_joystick=yes
  20199. fi
  20200. # Set up files for the timer library
  20201. if test x$enable_timers = xyes; then
  20202. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  20203. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  20204. have_timers=yes
  20205. fi
  20206. # Set up files for the system power library
  20207. if test x$enable_power = xyes; then
  20208. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  20209. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  20210. have_power=yes
  20211. fi
  20212. # Set up files for the system filesystem library
  20213. if test x$enable_filesystem = xyes; then
  20214. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20215. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20216. have_filesystem=yes
  20217. fi
  20218. # The Haiku platform requires special setup.
  20219. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20220. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding -lstdc++.r4"
  20221. ;;
  20222. arm*-apple-darwin*|*-ios-*)
  20223. ARCH=ios
  20224. CheckVisibilityHidden
  20225. CheckDeclarationAfterStatement
  20226. CheckDummyVideo
  20227. CheckDiskAudio
  20228. CheckDummyAudio
  20229. CheckDLOPEN
  20230. CheckPTHREAD
  20231. # Set up files for the audio library
  20232. if test x$enable_audio = xyes; then
  20233. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20234. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20235. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20236. have_audio=yes
  20237. fi
  20238. # Set up files for the joystick library
  20239. if test x$enable_joystick = xyes; then
  20240. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20241. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20242. have_joystick=yes
  20243. fi
  20244. # Set up files for the haptic library
  20245. #if test x$enable_haptic = xyes; then
  20246. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20247. # have_haptic=yes
  20248. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20249. #fi
  20250. # Set up files for the power library
  20251. if test x$enable_power = xyes; then
  20252. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  20253. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20254. have_power=yes
  20255. fi
  20256. # Set up files for the filesystem library
  20257. if test x$enable_filesystem = xyes; then
  20258. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20259. have_filesystem=yes
  20260. fi
  20261. # Set up additional files for the file library
  20262. if test x$enable_file = xyes; then
  20263. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20264. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20265. fi
  20266. # Set up files for the timer library
  20267. if test x$enable_timers = xyes; then
  20268. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20269. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20270. have_timers=yes
  20271. fi
  20272. # The iOS platform requires special setup.
  20273. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  20274. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20275. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20276. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20277. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20278. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20279. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20280. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20281. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  20282. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20283. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20284. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20285. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20286. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20287. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20288. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20289. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20290. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20291. ;;
  20292. *-*-darwin* )
  20293. # This could be either full "Mac OS X", or plain "Darwin" which is
  20294. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20295. # Next line is broken, and a few files below require Mac OS X (full)
  20296. ARCH=macosx
  20297. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20298. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20299. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20300. CheckVisibilityHidden
  20301. CheckDeclarationAfterStatement
  20302. CheckDummyVideo
  20303. CheckDiskAudio
  20304. CheckDummyAudio
  20305. CheckDLOPEN
  20306. CheckCOCOA
  20307. CheckX11
  20308. CheckMacGL
  20309. CheckOpenGLX11
  20310. CheckPTHREAD
  20311. # Set up files for the audio library
  20312. if test x$enable_audio = xyes; then
  20313. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20314. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20315. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  20316. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20317. have_audio=yes
  20318. fi
  20319. # Set up files for the joystick library
  20320. if test x$enable_joystick = xyes; then
  20321. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20322. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20323. have_joystick=yes
  20324. fi
  20325. # Set up files for the haptic library
  20326. if test x$enable_haptic = xyes; then
  20327. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20328. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20329. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20330. have_haptic=yes
  20331. fi
  20332. # Set up files for the power library
  20333. if test x$enable_power = xyes; then
  20334. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20335. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20336. have_power=yes
  20337. fi
  20338. # Set up files for the filesystem library
  20339. if test x$enable_filesystem = xyes; then
  20340. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20341. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20342. have_filesystem=yes
  20343. fi
  20344. # Set up files for the timer library
  20345. if test x$enable_timers = xyes; then
  20346. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20347. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20348. have_timers=yes
  20349. fi
  20350. # Set up additional files for the file library
  20351. if test x$enable_file = xyes; then
  20352. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20353. fi
  20354. # The Mac OS X platform requires special setup.
  20355. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
  20356. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  20357. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  20358. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  20359. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  20360. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  20361. ;;
  20362. *-nacl|*-pnacl)
  20363. ARCH=nacl
  20364. CheckNativeClient
  20365. CheckDummyAudio
  20366. CheckDummyVideo
  20367. CheckInputEvents
  20368. CheckPTHREAD
  20369. # Set up files for the timer library
  20370. if test x$enable_timers = xyes; then
  20371. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20372. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20373. have_timers=yes
  20374. fi
  20375. if test x$enable_filesystem = xyes; then
  20376. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  20377. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  20378. have_filesystem=yes
  20379. fi
  20380. ;;
  20381. *-*-emscripten* )
  20382. if test x$enable_video = xyes; then
  20383. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20384. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  20385. have_video=yes
  20386. SUMMARY_video="${SUMMARY_video} emscripten"
  20387. fi
  20388. if test x$enable_audio = xyes; then
  20389. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20390. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  20391. have_audio=yes
  20392. SUMMARY_audio="${SUMMARY_audio} emscripten"
  20393. fi
  20394. CheckVisibilityHidden
  20395. CheckDeclarationAfterStatement
  20396. CheckDummyVideo
  20397. CheckDiskAudio
  20398. CheckDummyAudio
  20399. CheckDLOPEN
  20400. CheckClockGettime
  20401. CheckEmscriptenGLES
  20402. # Set up files for the power library
  20403. if test x$enable_power = xyes; then
  20404. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  20405. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  20406. have_power=yes
  20407. fi
  20408. # Set up files for the power library
  20409. if test x$enable_joystick = xyes; then
  20410. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  20411. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  20412. have_joystick=yes
  20413. fi
  20414. # Set up files for the filesystem library
  20415. if test x$enable_filesystem = xyes; then
  20416. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  20417. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  20418. have_filesystem=yes
  20419. fi
  20420. # Set up files for the timer library
  20421. if test x$enable_timers = xyes; then
  20422. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20423. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20424. have_timers=yes
  20425. fi
  20426. ;;
  20427. *)
  20428. as_fn_error $? "
  20429. *** Unsupported host: Please add to configure.in
  20430. " "$LINENO" 5
  20431. ;;
  20432. esac
  20433. # Verify that we have all the platform specific files we need
  20434. if test x$have_joystick != xyes; then
  20435. if test x$enable_joystick = xyes; then
  20436. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  20437. fi
  20438. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  20439. fi
  20440. if test x$have_haptic != xyes; then
  20441. if test x$enable_haptic = xyes; then
  20442. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  20443. fi
  20444. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  20445. fi
  20446. if test x$have_threads != xyes; then
  20447. if test x$enable_threads = xyes; then
  20448. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  20449. fi
  20450. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  20451. fi
  20452. if test x$have_timers != xyes; then
  20453. if test x$enable_timers = xyes; then
  20454. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  20455. fi
  20456. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  20457. fi
  20458. if test x$have_filesystem != xyes; then
  20459. if test x$enable_filesystem = xyes; then
  20460. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  20461. fi
  20462. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  20463. fi
  20464. if test x$have_loadso != xyes; then
  20465. if test x$enable_loadso = xyes; then
  20466. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  20467. fi
  20468. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  20469. fi
  20470. if test x$SDLMAIN_SOURCES = x; then
  20471. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  20472. fi
  20473. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  20474. if test x$video_wayland = xyes; then
  20475. WAYLAND_CORE_PROTOCOL_SOURCE='$(gen)/wayland-protocol.c'
  20476. WAYLAND_CORE_PROTOCOL_HEADER='$(gen)/wayland-client-protocol.h'
  20477. WAYLAND_PROTOCOLS_UNSTABLE_SOURCES=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20478. sed 's,[^ ]\+,\\$(gen)/&-protocol.c,g'`
  20479. WAYLAND_PROTOCOLS_UNSTABLE_HEADERS=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20480. sed 's,[^ ]\+,\\$(gen)/&-client-protocol.h,g'`
  20481. GEN_SOURCES="$GEN_SOURCES $WAYLAND_CORE_PROTOCOL_SOURCE $WAYLAND_PROTOCOLS_UNSTABLE_SOURCES"
  20482. GEN_HEADERS="$GEN_HEADERS $WAYLAND_CORE_PROTOCOL_HEADER $WAYLAND_PROTOCOLS_UNSTABLE_HEADERS"
  20483. WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS="
  20484. $WAYLAND_CORE_PROTOCOL_SOURCE: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20485. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20486. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) code \$< \$@"
  20487. WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS="
  20488. $WAYLAND_CORE_PROTOCOL_HEADER: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20489. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20490. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) client-header \$< \$@"
  20491. WAYLAND_CORE_PROTOCOL_OBJECT="
  20492. \$(objects)/`echo $WAYLAND_CORE_PROTOCOL_SOURCE | sed 's/\$(gen)\/\(.*\).c$/\1.lo/'`: $WAYLAND_CORE_PROTOCOL_SOURCE
  20493. \$(RUN_CMD_CC)\$(LIBTOOL) --tag=CC --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \$< -o \$@"
  20494. WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20495. do echo ; echo \$p | sed\
  20496. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-client-protocol.h: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20497. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20498. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@," ; done`
  20499. WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20500. do echo ; echo \$p | sed\
  20501. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-protocol.c: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20502. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20503. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@," ; done`
  20504. WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20505. do echo ; echo \$p | sed\
  20506. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\\$(objects)/&-protocol.lo: \\$(gen)/&-protocol.c \\$(gen)/&-client-protocol.h\\\\
  20507. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@," ; done`
  20508. WAYLAND_PROTOCOLS_DEPENDS="
  20509. $WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS
  20510. $WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS
  20511. $WAYLAND_CORE_PROTOCOL_OBJECT
  20512. $WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS
  20513. $WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS
  20514. $WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE
  20515. "
  20516. fi
  20517. OBJECTS=`echo $SOURCES`
  20518. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  20519. for EXT in asm cc m c S; do
  20520. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  20521. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  20522. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  20523. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20524. done
  20525. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20526. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  20527. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  20528. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  20529. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  20530. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  20531. \\$(WINDRES) \\$< \\$@,g"`
  20532. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  20533. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  20534. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20535. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20536. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20537. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20538. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  20539. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  20540. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
  20541. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20542. \\$(objects)/\\2.o: \\1/\\2.c\\\\
  20543. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20544. # Set runtime shared library paths as needed
  20545. if test "x$enable_rpath" = "xyes"; then
  20546. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  20547. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  20548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  20549. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  20550. have_enable_new_dtags=no
  20551. save_LDFLAGS="$LDFLAGS"
  20552. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  20553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20554. /* end confdefs.h. */
  20555. int
  20556. main ()
  20557. {
  20558. ;
  20559. return 0;
  20560. }
  20561. _ACEOF
  20562. if ac_fn_c_try_link "$LINENO"; then :
  20563. have_enable_new_dtags=yes
  20564. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  20565. fi
  20566. rm -f core conftest.err conftest.$ac_objext \
  20567. conftest$ac_exeext conftest.$ac_ext
  20568. LDFLAGS="$save_LDFLAGS"
  20569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  20570. $as_echo "$have_enable_new_dtags" >&6; }
  20571. fi
  20572. if test $ARCH = solaris; then
  20573. SDL_RLD_FLAGS="-R\${libdir}"
  20574. fi
  20575. else
  20576. SDL_RLD_FLAGS=""
  20577. fi
  20578. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  20579. if test x$enable_shared = xyes; then
  20580. ENABLE_SHARED_TRUE=
  20581. ENABLE_SHARED_FALSE="#"
  20582. else
  20583. ENABLE_SHARED_TRUE="#"
  20584. ENABLE_SHARED_FALSE=
  20585. fi
  20586. if test x$enable_static = xyes; then
  20587. ENABLE_STATIC_TRUE=
  20588. ENABLE_STATIC_FALSE="#"
  20589. else
  20590. ENABLE_STATIC_TRUE="#"
  20591. ENABLE_STATIC_FALSE=
  20592. fi
  20593. cat >Makefile.rules <<__EOF__
  20594. # Build rules for objects
  20595. -include \$(OBJECTS:.lo=.d)
  20596. # Special dependency for SDL.c, since it depends on SDL_revision.h
  20597. $srcdir/src/SDL.c: update-revision
  20598. $DEPENDS
  20599. $VERSION_DEPENDS
  20600. $SDLMAIN_DEPENDS
  20601. $SDLTEST_DEPENDS
  20602. $WAYLAND_PROTOCOLS_DEPENDS
  20603. __EOF__
  20604. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  20605. ac_config_commands="$ac_config_commands sdl2_config"
  20606. SUMMARY="SDL2 Configure Summary:\n"
  20607. if test x$enable_shared = xyes; then
  20608. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  20609. fi
  20610. if test x$enable_static = xyes; then
  20611. SUMMARY="${SUMMARY}Building Static Libraries\n"
  20612. fi
  20613. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  20614. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  20615. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  20616. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  20617. if test x$have_x = xyes; then
  20618. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  20619. fi
  20620. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  20621. if test x$have_samplerate_h_hdr = xyes; then
  20622. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  20623. else
  20624. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  20625. fi
  20626. if test x$have_libudev_h_hdr = xyes; then
  20627. SUMMARY="${SUMMARY}Using libudev : YES\n"
  20628. else
  20629. SUMMARY="${SUMMARY}Using libudev : NO\n"
  20630. fi
  20631. if test x$have_dbus_dbus_h_hdr = xyes; then
  20632. SUMMARY="${SUMMARY}Using dbus : YES\n"
  20633. else
  20634. SUMMARY="${SUMMARY}Using dbus : NO\n"
  20635. fi
  20636. if test x$enable_ime = xyes; then
  20637. SUMMARY="${SUMMARY}Using ime : YES\n"
  20638. else
  20639. SUMMARY="${SUMMARY}Using ime : NO\n"
  20640. fi
  20641. if test x$have_ibus_ibus_h_hdr = xyes; then
  20642. SUMMARY="${SUMMARY}Using ibus : YES\n"
  20643. else
  20644. SUMMARY="${SUMMARY}Using ibus : NO\n"
  20645. fi
  20646. if test x$have_fcitx_frontend_h_hdr = xyes; then
  20647. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  20648. else
  20649. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  20650. fi
  20651. ac_config_commands="$ac_config_commands summary"
  20652. cat >confcache <<\_ACEOF
  20653. # This file is a shell script that caches the results of configure
  20654. # tests run on this system so they can be shared between configure
  20655. # scripts and configure runs, see configure's option --config-cache.
  20656. # It is not useful on other systems. If it contains results you don't
  20657. # want to keep, you may remove or edit it.
  20658. #
  20659. # config.status only pays attention to the cache file if you give it
  20660. # the --recheck option to rerun configure.
  20661. #
  20662. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20663. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20664. # following values.
  20665. _ACEOF
  20666. # The following way of writing the cache mishandles newlines in values,
  20667. # but we know of no workaround that is simple, portable, and efficient.
  20668. # So, we kill variables containing newlines.
  20669. # Ultrix sh set writes to stderr and can't be redirected directly,
  20670. # and sets the high bit in the cache file unless we assign to the vars.
  20671. (
  20672. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20673. eval ac_val=\$$ac_var
  20674. case $ac_val in #(
  20675. *${as_nl}*)
  20676. case $ac_var in #(
  20677. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  20678. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20679. esac
  20680. case $ac_var in #(
  20681. _ | IFS | as_nl) ;; #(
  20682. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20683. *) { eval $ac_var=; unset $ac_var;} ;;
  20684. esac ;;
  20685. esac
  20686. done
  20687. (set) 2>&1 |
  20688. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20689. *${as_nl}ac_space=\ *)
  20690. # `set' does not quote correctly, so add quotes: double-quote
  20691. # substitution turns \\\\ into \\, and sed turns \\ into \.
  20692. sed -n \
  20693. "s/'/'\\\\''/g;
  20694. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20695. ;; #(
  20696. *)
  20697. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20698. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20699. ;;
  20700. esac |
  20701. sort
  20702. ) |
  20703. sed '
  20704. /^ac_cv_env_/b end
  20705. t clear
  20706. :clear
  20707. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20708. t end
  20709. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20710. :end' >>confcache
  20711. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20712. if test -w "$cache_file"; then
  20713. if test "x$cache_file" != "x/dev/null"; then
  20714. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  20715. $as_echo "$as_me: updating cache $cache_file" >&6;}
  20716. if test ! -f "$cache_file" || test -h "$cache_file"; then
  20717. cat confcache >"$cache_file"
  20718. else
  20719. case $cache_file in #(
  20720. */* | ?:*)
  20721. mv -f confcache "$cache_file"$$ &&
  20722. mv -f "$cache_file"$$ "$cache_file" ;; #(
  20723. *)
  20724. mv -f confcache "$cache_file" ;;
  20725. esac
  20726. fi
  20727. fi
  20728. else
  20729. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  20730. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20731. fi
  20732. fi
  20733. rm -f confcache
  20734. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20735. # Let make expand exec_prefix.
  20736. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20737. DEFS=-DHAVE_CONFIG_H
  20738. ac_libobjs=
  20739. ac_ltlibobjs=
  20740. U=
  20741. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20742. # 1. Remove the extension, and $U if already installed.
  20743. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20744. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20745. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20746. # will be set to the directory where LIBOBJS objects are built.
  20747. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20748. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  20749. done
  20750. LIBOBJS=$ac_libobjs
  20751. LTLIBOBJS=$ac_ltlibobjs
  20752. : "${CONFIG_STATUS=./config.status}"
  20753. ac_write_fail=0
  20754. ac_clean_files_save=$ac_clean_files
  20755. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20756. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  20757. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20758. as_write_fail=0
  20759. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  20760. #! $SHELL
  20761. # Generated by $as_me.
  20762. # Run this file to recreate the current configuration.
  20763. # Compiler output produced by configure, useful for debugging
  20764. # configure, is in config.log if it exists.
  20765. debug=false
  20766. ac_cs_recheck=false
  20767. ac_cs_silent=false
  20768. SHELL=\${CONFIG_SHELL-$SHELL}
  20769. export SHELL
  20770. _ASEOF
  20771. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  20772. ## -------------------- ##
  20773. ## M4sh Initialization. ##
  20774. ## -------------------- ##
  20775. # Be more Bourne compatible
  20776. DUALCASE=1; export DUALCASE # for MKS sh
  20777. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20778. emulate sh
  20779. NULLCMD=:
  20780. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20781. # is contrary to our usage. Disable this feature.
  20782. alias -g '${1+"$@"}'='"$@"'
  20783. setopt NO_GLOB_SUBST
  20784. else
  20785. case `(set -o) 2>/dev/null` in #(
  20786. *posix*) :
  20787. set -o posix ;; #(
  20788. *) :
  20789. ;;
  20790. esac
  20791. fi
  20792. as_nl='
  20793. '
  20794. export as_nl
  20795. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  20796. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  20797. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  20798. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  20799. # Prefer a ksh shell builtin over an external printf program on Solaris,
  20800. # but without wasting forks for bash or zsh.
  20801. if test -z "$BASH_VERSION$ZSH_VERSION" \
  20802. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  20803. as_echo='print -r --'
  20804. as_echo_n='print -rn --'
  20805. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  20806. as_echo='printf %s\n'
  20807. as_echo_n='printf %s'
  20808. else
  20809. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  20810. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  20811. as_echo_n='/usr/ucb/echo -n'
  20812. else
  20813. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  20814. as_echo_n_body='eval
  20815. arg=$1;
  20816. case $arg in #(
  20817. *"$as_nl"*)
  20818. expr "X$arg" : "X\\(.*\\)$as_nl";
  20819. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  20820. esac;
  20821. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  20822. '
  20823. export as_echo_n_body
  20824. as_echo_n='sh -c $as_echo_n_body as_echo'
  20825. fi
  20826. export as_echo_body
  20827. as_echo='sh -c $as_echo_body as_echo'
  20828. fi
  20829. # The user is always right.
  20830. if test "${PATH_SEPARATOR+set}" != set; then
  20831. PATH_SEPARATOR=:
  20832. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20833. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20834. PATH_SEPARATOR=';'
  20835. }
  20836. fi
  20837. # IFS
  20838. # We need space, tab and new line, in precisely that order. Quoting is
  20839. # there to prevent editors from complaining about space-tab.
  20840. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20841. # splitting by setting IFS to empty value.)
  20842. IFS=" "" $as_nl"
  20843. # Find who we are. Look in the path if we contain no directory separator.
  20844. as_myself=
  20845. case $0 in #((
  20846. *[\\/]* ) as_myself=$0 ;;
  20847. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20848. for as_dir in $PATH
  20849. do
  20850. IFS=$as_save_IFS
  20851. test -z "$as_dir" && as_dir=.
  20852. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20853. done
  20854. IFS=$as_save_IFS
  20855. ;;
  20856. esac
  20857. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20858. # in which case we are not to be found in the path.
  20859. if test "x$as_myself" = x; then
  20860. as_myself=$0
  20861. fi
  20862. if test ! -f "$as_myself"; then
  20863. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20864. exit 1
  20865. fi
  20866. # Unset variables that we do not need and which cause bugs (e.g. in
  20867. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  20868. # suppresses any "Segmentation fault" message there. '((' could
  20869. # trigger a bug in pdksh 5.2.14.
  20870. for as_var in BASH_ENV ENV MAIL MAILPATH
  20871. do eval test x\${$as_var+set} = xset \
  20872. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  20873. done
  20874. PS1='$ '
  20875. PS2='> '
  20876. PS4='+ '
  20877. # NLS nuisances.
  20878. LC_ALL=C
  20879. export LC_ALL
  20880. LANGUAGE=C
  20881. export LANGUAGE
  20882. # CDPATH.
  20883. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20884. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  20885. # ----------------------------------------
  20886. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  20887. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  20888. # script with STATUS, using 1 if that was 0.
  20889. as_fn_error ()
  20890. {
  20891. as_status=$1; test $as_status -eq 0 && as_status=1
  20892. if test "$4"; then
  20893. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  20894. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  20895. fi
  20896. $as_echo "$as_me: error: $2" >&2
  20897. as_fn_exit $as_status
  20898. } # as_fn_error
  20899. # as_fn_set_status STATUS
  20900. # -----------------------
  20901. # Set $? to STATUS, without forking.
  20902. as_fn_set_status ()
  20903. {
  20904. return $1
  20905. } # as_fn_set_status
  20906. # as_fn_exit STATUS
  20907. # -----------------
  20908. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  20909. as_fn_exit ()
  20910. {
  20911. set +e
  20912. as_fn_set_status $1
  20913. exit $1
  20914. } # as_fn_exit
  20915. # as_fn_unset VAR
  20916. # ---------------
  20917. # Portably unset VAR.
  20918. as_fn_unset ()
  20919. {
  20920. { eval $1=; unset $1;}
  20921. }
  20922. as_unset=as_fn_unset
  20923. # as_fn_append VAR VALUE
  20924. # ----------------------
  20925. # Append the text in VALUE to the end of the definition contained in VAR. Take
  20926. # advantage of any shell optimizations that allow amortized linear growth over
  20927. # repeated appends, instead of the typical quadratic growth present in naive
  20928. # implementations.
  20929. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  20930. eval 'as_fn_append ()
  20931. {
  20932. eval $1+=\$2
  20933. }'
  20934. else
  20935. as_fn_append ()
  20936. {
  20937. eval $1=\$$1\$2
  20938. }
  20939. fi # as_fn_append
  20940. # as_fn_arith ARG...
  20941. # ------------------
  20942. # Perform arithmetic evaluation on the ARGs, and store the result in the
  20943. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  20944. # must be portable across $(()) and expr.
  20945. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  20946. eval 'as_fn_arith ()
  20947. {
  20948. as_val=$(( $* ))
  20949. }'
  20950. else
  20951. as_fn_arith ()
  20952. {
  20953. as_val=`expr "$@" || test $? -eq 1`
  20954. }
  20955. fi # as_fn_arith
  20956. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20957. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20958. as_expr=expr
  20959. else
  20960. as_expr=false
  20961. fi
  20962. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20963. as_basename=basename
  20964. else
  20965. as_basename=false
  20966. fi
  20967. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20968. as_dirname=dirname
  20969. else
  20970. as_dirname=false
  20971. fi
  20972. as_me=`$as_basename -- "$0" ||
  20973. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20974. X"$0" : 'X\(//\)$' \| \
  20975. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20976. $as_echo X/"$0" |
  20977. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20978. s//\1/
  20979. q
  20980. }
  20981. /^X\/\(\/\/\)$/{
  20982. s//\1/
  20983. q
  20984. }
  20985. /^X\/\(\/\).*/{
  20986. s//\1/
  20987. q
  20988. }
  20989. s/.*/./; q'`
  20990. # Avoid depending upon Character Ranges.
  20991. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20992. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20993. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20994. as_cr_digits='0123456789'
  20995. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20996. ECHO_C= ECHO_N= ECHO_T=
  20997. case `echo -n x` in #(((((
  20998. -n*)
  20999. case `echo 'xy\c'` in
  21000. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21001. xy) ECHO_C='\c';;
  21002. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  21003. ECHO_T=' ';;
  21004. esac;;
  21005. *)
  21006. ECHO_N='-n';;
  21007. esac
  21008. rm -f conf$$ conf$$.exe conf$$.file
  21009. if test -d conf$$.dir; then
  21010. rm -f conf$$.dir/conf$$.file
  21011. else
  21012. rm -f conf$$.dir
  21013. mkdir conf$$.dir 2>/dev/null
  21014. fi
  21015. if (echo >conf$$.file) 2>/dev/null; then
  21016. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21017. as_ln_s='ln -s'
  21018. # ... but there are two gotchas:
  21019. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21020. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21021. # In both cases, we have to default to `cp -pR'.
  21022. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21023. as_ln_s='cp -pR'
  21024. elif ln conf$$.file conf$$ 2>/dev/null; then
  21025. as_ln_s=ln
  21026. else
  21027. as_ln_s='cp -pR'
  21028. fi
  21029. else
  21030. as_ln_s='cp -pR'
  21031. fi
  21032. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21033. rmdir conf$$.dir 2>/dev/null
  21034. # as_fn_mkdir_p
  21035. # -------------
  21036. # Create "$as_dir" as a directory, including parents if necessary.
  21037. as_fn_mkdir_p ()
  21038. {
  21039. case $as_dir in #(
  21040. -*) as_dir=./$as_dir;;
  21041. esac
  21042. test -d "$as_dir" || eval $as_mkdir_p || {
  21043. as_dirs=
  21044. while :; do
  21045. case $as_dir in #(
  21046. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21047. *) as_qdir=$as_dir;;
  21048. esac
  21049. as_dirs="'$as_qdir' $as_dirs"
  21050. as_dir=`$as_dirname -- "$as_dir" ||
  21051. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21052. X"$as_dir" : 'X\(//\)[^/]' \| \
  21053. X"$as_dir" : 'X\(//\)$' \| \
  21054. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21055. $as_echo X"$as_dir" |
  21056. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21057. s//\1/
  21058. q
  21059. }
  21060. /^X\(\/\/\)[^/].*/{
  21061. s//\1/
  21062. q
  21063. }
  21064. /^X\(\/\/\)$/{
  21065. s//\1/
  21066. q
  21067. }
  21068. /^X\(\/\).*/{
  21069. s//\1/
  21070. q
  21071. }
  21072. s/.*/./; q'`
  21073. test -d "$as_dir" && break
  21074. done
  21075. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21076. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  21077. } # as_fn_mkdir_p
  21078. if mkdir -p . 2>/dev/null; then
  21079. as_mkdir_p='mkdir -p "$as_dir"'
  21080. else
  21081. test -d ./-p && rmdir ./-p
  21082. as_mkdir_p=false
  21083. fi
  21084. # as_fn_executable_p FILE
  21085. # -----------------------
  21086. # Test if FILE is an executable regular file.
  21087. as_fn_executable_p ()
  21088. {
  21089. test -f "$1" && test -x "$1"
  21090. } # as_fn_executable_p
  21091. as_test_x='test -x'
  21092. as_executable_p=as_fn_executable_p
  21093. # Sed expression to map a string onto a valid CPP name.
  21094. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21095. # Sed expression to map a string onto a valid variable name.
  21096. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21097. exec 6>&1
  21098. ## ----------------------------------- ##
  21099. ## Main body of $CONFIG_STATUS script. ##
  21100. ## ----------------------------------- ##
  21101. _ASEOF
  21102. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  21103. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21104. # Save the log message, to keep $0 and so on meaningful, and to
  21105. # report actual input values of CONFIG_FILES etc. instead of their
  21106. # values after options handling.
  21107. ac_log="
  21108. This file was extended by $as_me, which was
  21109. generated by GNU Autoconf 2.69. Invocation command line was
  21110. CONFIG_FILES = $CONFIG_FILES
  21111. CONFIG_HEADERS = $CONFIG_HEADERS
  21112. CONFIG_LINKS = $CONFIG_LINKS
  21113. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21114. $ $0 $@
  21115. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21116. "
  21117. _ACEOF
  21118. case $ac_config_files in *"
  21119. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21120. esac
  21121. case $ac_config_headers in *"
  21122. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21123. esac
  21124. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21125. # Files that config.status was made for.
  21126. config_files="$ac_config_files"
  21127. config_headers="$ac_config_headers"
  21128. config_commands="$ac_config_commands"
  21129. _ACEOF
  21130. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21131. ac_cs_usage="\
  21132. \`$as_me' instantiates files and other configuration actions
  21133. from templates according to the current configuration. Unless the files
  21134. and actions are specified as TAGs, all are instantiated by default.
  21135. Usage: $0 [OPTION]... [TAG]...
  21136. -h, --help print this help, then exit
  21137. -V, --version print version number and configuration settings, then exit
  21138. --config print configuration, then exit
  21139. -q, --quiet, --silent
  21140. do not print progress messages
  21141. -d, --debug don't remove temporary files
  21142. --recheck update $as_me by reconfiguring in the same conditions
  21143. --file=FILE[:TEMPLATE]
  21144. instantiate the configuration file FILE
  21145. --header=FILE[:TEMPLATE]
  21146. instantiate the configuration header FILE
  21147. Configuration files:
  21148. $config_files
  21149. Configuration headers:
  21150. $config_headers
  21151. Configuration commands:
  21152. $config_commands
  21153. Report bugs to the package provider."
  21154. _ACEOF
  21155. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21156. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21157. ac_cs_version="\\
  21158. config.status
  21159. configured by $0, generated by GNU Autoconf 2.69,
  21160. with options \\"\$ac_cs_config\\"
  21161. Copyright (C) 2012 Free Software Foundation, Inc.
  21162. This config.status script is free software; the Free Software Foundation
  21163. gives unlimited permission to copy, distribute and modify it."
  21164. ac_pwd='$ac_pwd'
  21165. srcdir='$srcdir'
  21166. INSTALL='$INSTALL'
  21167. AWK='$AWK'
  21168. test -n "\$AWK" || AWK=awk
  21169. _ACEOF
  21170. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21171. # The default lists apply if the user does not specify any file.
  21172. ac_need_defaults=:
  21173. while test $# != 0
  21174. do
  21175. case $1 in
  21176. --*=?*)
  21177. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21178. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21179. ac_shift=:
  21180. ;;
  21181. --*=)
  21182. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21183. ac_optarg=
  21184. ac_shift=:
  21185. ;;
  21186. *)
  21187. ac_option=$1
  21188. ac_optarg=$2
  21189. ac_shift=shift
  21190. ;;
  21191. esac
  21192. case $ac_option in
  21193. # Handling of the options.
  21194. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21195. ac_cs_recheck=: ;;
  21196. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21197. $as_echo "$ac_cs_version"; exit ;;
  21198. --config | --confi | --conf | --con | --co | --c )
  21199. $as_echo "$ac_cs_config"; exit ;;
  21200. --debug | --debu | --deb | --de | --d | -d )
  21201. debug=: ;;
  21202. --file | --fil | --fi | --f )
  21203. $ac_shift
  21204. case $ac_optarg in
  21205. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21206. '') as_fn_error $? "missing file argument" ;;
  21207. esac
  21208. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21209. ac_need_defaults=false;;
  21210. --header | --heade | --head | --hea )
  21211. $ac_shift
  21212. case $ac_optarg in
  21213. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21214. esac
  21215. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21216. ac_need_defaults=false;;
  21217. --he | --h)
  21218. # Conflict between --help and --header
  21219. as_fn_error $? "ambiguous option: \`$1'
  21220. Try \`$0 --help' for more information.";;
  21221. --help | --hel | -h )
  21222. $as_echo "$ac_cs_usage"; exit ;;
  21223. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21224. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21225. ac_cs_silent=: ;;
  21226. # This is an error.
  21227. -*) as_fn_error $? "unrecognized option: \`$1'
  21228. Try \`$0 --help' for more information." ;;
  21229. *) as_fn_append ac_config_targets " $1"
  21230. ac_need_defaults=false ;;
  21231. esac
  21232. shift
  21233. done
  21234. ac_configure_extra_args=
  21235. if $ac_cs_silent; then
  21236. exec 6>/dev/null
  21237. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21238. fi
  21239. _ACEOF
  21240. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21241. if \$ac_cs_recheck; then
  21242. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21243. shift
  21244. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21245. CONFIG_SHELL='$SHELL'
  21246. export CONFIG_SHELL
  21247. exec "\$@"
  21248. fi
  21249. _ACEOF
  21250. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21251. exec 5>>config.log
  21252. {
  21253. echo
  21254. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21255. ## Running $as_me. ##
  21256. _ASBOX
  21257. $as_echo "$ac_log"
  21258. } >&5
  21259. _ACEOF
  21260. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21261. #
  21262. # INIT-COMMANDS
  21263. #
  21264. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21265. # if CDPATH is set.
  21266. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21267. sed_quote_subst='$sed_quote_subst'
  21268. double_quote_subst='$double_quote_subst'
  21269. delay_variable_subst='$delay_variable_subst'
  21270. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21271. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21272. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21273. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21274. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21275. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21276. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21277. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21278. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21279. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21280. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21281. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21282. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21283. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21284. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21285. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21286. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21287. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21288. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21289. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21290. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21291. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21292. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21293. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21294. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21295. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21296. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21297. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21298. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21299. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21300. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21301. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21302. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21303. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21304. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21305. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21306. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21307. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21308. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21309. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21310. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21311. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21312. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21313. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21314. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21315. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21316. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21317. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21318. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21319. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  21320. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  21321. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  21322. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  21323. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  21324. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21325. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21326. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21327. 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"`'
  21328. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21329. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21330. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21331. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21332. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21333. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21334. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21335. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21336. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21337. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21338. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21339. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21340. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21341. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21342. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21343. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21344. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21345. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21346. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21347. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21348. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21349. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21350. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21351. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21352. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21353. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21354. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21355. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21356. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21357. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21358. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21359. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21360. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21361. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  21362. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  21363. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  21364. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  21365. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  21366. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21367. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  21368. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  21369. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  21370. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  21371. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  21372. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  21373. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  21374. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  21375. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  21376. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  21377. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  21378. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21379. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  21380. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  21381. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  21382. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21383. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  21384. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  21385. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  21386. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  21387. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  21388. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21389. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21390. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  21391. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  21392. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  21393. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  21394. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  21395. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  21396. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  21397. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  21398. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  21399. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  21400. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  21401. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  21402. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  21403. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  21404. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  21405. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  21406. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  21407. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  21408. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21409. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21410. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21411. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  21412. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  21413. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21414. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  21415. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  21416. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  21417. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  21418. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  21419. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  21420. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21421. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21422. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  21423. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21424. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21425. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21426. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21427. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21428. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21429. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  21430. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21431. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21432. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21433. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  21434. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  21435. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  21436. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  21437. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  21438. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  21439. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  21440. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  21441. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  21442. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21443. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21444. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21445. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21446. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21447. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21448. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  21449. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  21450. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21451. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21452. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  21453. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  21454. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  21455. LTCC='$LTCC'
  21456. LTCFLAGS='$LTCFLAGS'
  21457. compiler='$compiler_DEFAULT'
  21458. # A function that is used when there is no print builtin or printf.
  21459. func_fallback_echo ()
  21460. {
  21461. eval 'cat <<_LTECHO_EOF
  21462. \$1
  21463. _LTECHO_EOF'
  21464. }
  21465. # Quote evaled strings.
  21466. for var in AS \
  21467. DLLTOOL \
  21468. OBJDUMP \
  21469. SHELL \
  21470. ECHO \
  21471. PATH_SEPARATOR \
  21472. SED \
  21473. GREP \
  21474. EGREP \
  21475. FGREP \
  21476. LD \
  21477. NM \
  21478. LN_S \
  21479. lt_SP2NL \
  21480. lt_NL2SP \
  21481. reload_flag \
  21482. deplibs_check_method \
  21483. file_magic_cmd \
  21484. file_magic_glob \
  21485. want_nocaseglob \
  21486. sharedlib_from_linklib_cmd \
  21487. AR \
  21488. AR_FLAGS \
  21489. archiver_list_spec \
  21490. STRIP \
  21491. RANLIB \
  21492. CC \
  21493. CFLAGS \
  21494. compiler \
  21495. lt_cv_sys_global_symbol_pipe \
  21496. lt_cv_sys_global_symbol_to_cdecl \
  21497. lt_cv_sys_global_symbol_to_c_name_address \
  21498. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21499. nm_file_list_spec \
  21500. lt_prog_compiler_no_builtin_flag \
  21501. lt_prog_compiler_pic \
  21502. lt_prog_compiler_wl \
  21503. lt_prog_compiler_static \
  21504. lt_cv_prog_compiler_c_o \
  21505. need_locks \
  21506. MANIFEST_TOOL \
  21507. DSYMUTIL \
  21508. NMEDIT \
  21509. LIPO \
  21510. OTOOL \
  21511. OTOOL64 \
  21512. shrext_cmds \
  21513. export_dynamic_flag_spec \
  21514. whole_archive_flag_spec \
  21515. compiler_needs_object \
  21516. with_gnu_ld \
  21517. allow_undefined_flag \
  21518. no_undefined_flag \
  21519. hardcode_libdir_flag_spec \
  21520. hardcode_libdir_separator \
  21521. exclude_expsyms \
  21522. include_expsyms \
  21523. file_list_spec \
  21524. variables_saved_for_relink \
  21525. libname_spec \
  21526. library_names_spec \
  21527. soname_spec \
  21528. install_override_mode \
  21529. finish_eval \
  21530. old_striplib \
  21531. striplib \
  21532. compiler_lib_search_dirs \
  21533. predep_objects \
  21534. postdep_objects \
  21535. predeps \
  21536. postdeps \
  21537. compiler_lib_search_path \
  21538. LD_CXX \
  21539. reload_flag_CXX \
  21540. compiler_CXX \
  21541. lt_prog_compiler_no_builtin_flag_CXX \
  21542. lt_prog_compiler_pic_CXX \
  21543. lt_prog_compiler_wl_CXX \
  21544. lt_prog_compiler_static_CXX \
  21545. lt_cv_prog_compiler_c_o_CXX \
  21546. export_dynamic_flag_spec_CXX \
  21547. whole_archive_flag_spec_CXX \
  21548. compiler_needs_object_CXX \
  21549. with_gnu_ld_CXX \
  21550. allow_undefined_flag_CXX \
  21551. no_undefined_flag_CXX \
  21552. hardcode_libdir_flag_spec_CXX \
  21553. hardcode_libdir_separator_CXX \
  21554. exclude_expsyms_CXX \
  21555. include_expsyms_CXX \
  21556. file_list_spec_CXX \
  21557. compiler_lib_search_dirs_CXX \
  21558. predep_objects_CXX \
  21559. postdep_objects_CXX \
  21560. predeps_CXX \
  21561. postdeps_CXX \
  21562. compiler_lib_search_path_CXX; do
  21563. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21564. *[\\\\\\\`\\"\\\$]*)
  21565. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  21566. ;;
  21567. *)
  21568. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21569. ;;
  21570. esac
  21571. done
  21572. # Double-quote double-evaled strings.
  21573. for var in reload_cmds \
  21574. old_postinstall_cmds \
  21575. old_postuninstall_cmds \
  21576. old_archive_cmds \
  21577. extract_expsyms_cmds \
  21578. old_archive_from_new_cmds \
  21579. old_archive_from_expsyms_cmds \
  21580. archive_cmds \
  21581. archive_expsym_cmds \
  21582. module_cmds \
  21583. module_expsym_cmds \
  21584. export_symbols_cmds \
  21585. prelink_cmds \
  21586. postlink_cmds \
  21587. postinstall_cmds \
  21588. postuninstall_cmds \
  21589. finish_cmds \
  21590. sys_lib_search_path_spec \
  21591. sys_lib_dlsearch_path_spec \
  21592. reload_cmds_CXX \
  21593. old_archive_cmds_CXX \
  21594. old_archive_from_new_cmds_CXX \
  21595. old_archive_from_expsyms_cmds_CXX \
  21596. archive_cmds_CXX \
  21597. archive_expsym_cmds_CXX \
  21598. module_cmds_CXX \
  21599. module_expsym_cmds_CXX \
  21600. export_symbols_cmds_CXX \
  21601. prelink_cmds_CXX \
  21602. postlink_cmds_CXX; do
  21603. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21604. *[\\\\\\\`\\"\\\$]*)
  21605. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  21606. ;;
  21607. *)
  21608. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21609. ;;
  21610. esac
  21611. done
  21612. ac_aux_dir='$ac_aux_dir'
  21613. xsi_shell='$xsi_shell'
  21614. lt_shell_append='$lt_shell_append'
  21615. # See if we are running on zsh, and set the options which allow our
  21616. # commands through without removal of \ escapes INIT.
  21617. if test -n "\${ZSH_VERSION+set}" ; then
  21618. setopt NO_GLOB_SUBST
  21619. fi
  21620. PACKAGE='$PACKAGE'
  21621. VERSION='$VERSION'
  21622. TIMESTAMP='$TIMESTAMP'
  21623. RM='$RM'
  21624. ofile='$ofile'
  21625. SUMMARY="$SUMMARY"
  21626. _ACEOF
  21627. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21628. # Handling of arguments.
  21629. for ac_config_target in $ac_config_targets
  21630. do
  21631. case $ac_config_target in
  21632. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  21633. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  21634. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  21635. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  21636. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  21637. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  21638. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  21639. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  21640. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  21641. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  21642. esac
  21643. done
  21644. # If the user did not use the arguments to specify the items to instantiate,
  21645. # then the envvar interface is used. Set only those that are not.
  21646. # We use the long form for the default assignment because of an extremely
  21647. # bizarre bug on SunOS 4.1.3.
  21648. if $ac_need_defaults; then
  21649. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21650. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21651. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21652. fi
  21653. # Have a temporary directory for convenience. Make it in the build tree
  21654. # simply because there is no reason against having it here, and in addition,
  21655. # creating and moving files from /tmp can sometimes cause problems.
  21656. # Hook for its removal unless debugging.
  21657. # Note that there is a small window in which the directory will not be cleaned:
  21658. # after its creation but before its name has been assigned to `$tmp'.
  21659. $debug ||
  21660. {
  21661. tmp= ac_tmp=
  21662. trap 'exit_status=$?
  21663. : "${ac_tmp:=$tmp}"
  21664. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  21665. ' 0
  21666. trap 'as_fn_exit 1' 1 2 13 15
  21667. }
  21668. # Create a (secure) tmp directory for tmp files.
  21669. {
  21670. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21671. test -d "$tmp"
  21672. } ||
  21673. {
  21674. tmp=./conf$$-$RANDOM
  21675. (umask 077 && mkdir "$tmp")
  21676. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  21677. ac_tmp=$tmp
  21678. # Set up the scripts for CONFIG_FILES section.
  21679. # No need to generate them if there are no CONFIG_FILES.
  21680. # This happens for instance with `./config.status config.h'.
  21681. if test -n "$CONFIG_FILES"; then
  21682. ac_cr=`echo X | tr X '\015'`
  21683. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  21684. # But we know of no other shell where ac_cr would be empty at this
  21685. # point, so we can use a bashism as a fallback.
  21686. if test "x$ac_cr" = x; then
  21687. eval ac_cr=\$\'\\r\'
  21688. fi
  21689. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21690. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21691. ac_cs_awk_cr='\\r'
  21692. else
  21693. ac_cs_awk_cr=$ac_cr
  21694. fi
  21695. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  21696. _ACEOF
  21697. {
  21698. echo "cat >conf$$subs.awk <<_ACEOF" &&
  21699. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21700. echo "_ACEOF"
  21701. } >conf$$subs.sh ||
  21702. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21703. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  21704. ac_delim='%!_!# '
  21705. for ac_last_try in false false false false false :; do
  21706. . ./conf$$subs.sh ||
  21707. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21708. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21709. if test $ac_delim_n = $ac_delim_num; then
  21710. break
  21711. elif $ac_last_try; then
  21712. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  21713. else
  21714. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21715. fi
  21716. done
  21717. rm -f conf$$subs.sh
  21718. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21719. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  21720. _ACEOF
  21721. sed -n '
  21722. h
  21723. s/^/S["/; s/!.*/"]=/
  21724. p
  21725. g
  21726. s/^[^!]*!//
  21727. :repl
  21728. t repl
  21729. s/'"$ac_delim"'$//
  21730. t delim
  21731. :nl
  21732. h
  21733. s/\(.\{148\}\)..*/\1/
  21734. t more1
  21735. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21736. p
  21737. n
  21738. b repl
  21739. :more1
  21740. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21741. p
  21742. g
  21743. s/.\{148\}//
  21744. t nl
  21745. :delim
  21746. h
  21747. s/\(.\{148\}\)..*/\1/
  21748. t more2
  21749. s/["\\]/\\&/g; s/^/"/; s/$/"/
  21750. p
  21751. b
  21752. :more2
  21753. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21754. p
  21755. g
  21756. s/.\{148\}//
  21757. t delim
  21758. ' <conf$$subs.awk | sed '
  21759. /^[^""]/{
  21760. N
  21761. s/\n//
  21762. }
  21763. ' >>$CONFIG_STATUS || ac_write_fail=1
  21764. rm -f conf$$subs.awk
  21765. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21766. _ACAWK
  21767. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  21768. for (key in S) S_is_set[key] = 1
  21769. FS = ""
  21770. }
  21771. {
  21772. line = $ 0
  21773. nfields = split(line, field, "@")
  21774. substed = 0
  21775. len = length(field[1])
  21776. for (i = 2; i < nfields; i++) {
  21777. key = field[i]
  21778. keylen = length(key)
  21779. if (S_is_set[key]) {
  21780. value = S[key]
  21781. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21782. len += length(value) + length(field[++i])
  21783. substed = 1
  21784. } else
  21785. len += 1 + keylen
  21786. }
  21787. print line
  21788. }
  21789. _ACAWK
  21790. _ACEOF
  21791. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21792. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21793. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21794. else
  21795. cat
  21796. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  21797. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  21798. _ACEOF
  21799. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  21800. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  21801. # trailing colons and then remove the whole line if VPATH becomes empty
  21802. # (actually we leave an empty line to preserve line numbers).
  21803. if test "x$srcdir" = x.; then
  21804. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  21805. h
  21806. s///
  21807. s/^/:/
  21808. s/[ ]*$/:/
  21809. s/:\$(srcdir):/:/g
  21810. s/:\${srcdir}:/:/g
  21811. s/:@srcdir@:/:/g
  21812. s/^:*//
  21813. s/:*$//
  21814. x
  21815. s/\(=[ ]*\).*/\1/
  21816. G
  21817. s/\n//
  21818. s/^[^=]*=[ ]*$//
  21819. }'
  21820. fi
  21821. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21822. fi # test -n "$CONFIG_FILES"
  21823. # Set up the scripts for CONFIG_HEADERS section.
  21824. # No need to generate them if there are no CONFIG_HEADERS.
  21825. # This happens for instance with `./config.status Makefile'.
  21826. if test -n "$CONFIG_HEADERS"; then
  21827. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  21828. BEGIN {
  21829. _ACEOF
  21830. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21831. # here-document in config.status, that substitutes the proper values into
  21832. # config.h.in to produce config.h.
  21833. # Create a delimiter string that does not exist in confdefs.h, to ease
  21834. # handling of long lines.
  21835. ac_delim='%!_!# '
  21836. for ac_last_try in false false :; do
  21837. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  21838. if test -z "$ac_tt"; then
  21839. break
  21840. elif $ac_last_try; then
  21841. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  21842. else
  21843. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21844. fi
  21845. done
  21846. # For the awk script, D is an array of macro values keyed by name,
  21847. # likewise P contains macro parameters if any. Preserve backslash
  21848. # newline sequences.
  21849. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21850. sed -n '
  21851. s/.\{148\}/&'"$ac_delim"'/g
  21852. t rset
  21853. :rset
  21854. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21855. t def
  21856. d
  21857. :def
  21858. s/\\$//
  21859. t bsnl
  21860. s/["\\]/\\&/g
  21861. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21862. D["\1"]=" \3"/p
  21863. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21864. d
  21865. :bsnl
  21866. s/["\\]/\\&/g
  21867. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21868. D["\1"]=" \3\\\\\\n"\\/p
  21869. t cont
  21870. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21871. t cont
  21872. d
  21873. :cont
  21874. n
  21875. s/.\{148\}/&'"$ac_delim"'/g
  21876. t clear
  21877. :clear
  21878. s/\\$//
  21879. t bsnlc
  21880. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21881. d
  21882. :bsnlc
  21883. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21884. b cont
  21885. ' <confdefs.h | sed '
  21886. s/'"$ac_delim"'/"\\\
  21887. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21888. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21889. for (key in D) D_is_set[key] = 1
  21890. FS = ""
  21891. }
  21892. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21893. line = \$ 0
  21894. split(line, arg, " ")
  21895. if (arg[1] == "#") {
  21896. defundef = arg[2]
  21897. mac1 = arg[3]
  21898. } else {
  21899. defundef = substr(arg[1], 2)
  21900. mac1 = arg[2]
  21901. }
  21902. split(mac1, mac2, "(") #)
  21903. macro = mac2[1]
  21904. prefix = substr(line, 1, index(line, defundef) - 1)
  21905. if (D_is_set[macro]) {
  21906. # Preserve the white space surrounding the "#".
  21907. print prefix "define", macro P[macro] D[macro]
  21908. next
  21909. } else {
  21910. # Replace #undef with comments. This is necessary, for example,
  21911. # in the case of _POSIX_SOURCE, which is predefined and required
  21912. # on some systems where configure will not decide to define it.
  21913. if (defundef == "undef") {
  21914. print "/*", prefix defundef, macro, "*/"
  21915. next
  21916. }
  21917. }
  21918. }
  21919. { print }
  21920. _ACAWK
  21921. _ACEOF
  21922. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21923. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  21924. fi # test -n "$CONFIG_HEADERS"
  21925. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21926. shift
  21927. for ac_tag
  21928. do
  21929. case $ac_tag in
  21930. :[FHLC]) ac_mode=$ac_tag; continue;;
  21931. esac
  21932. case $ac_mode$ac_tag in
  21933. :[FHL]*:*);;
  21934. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  21935. :[FH]-) ac_tag=-:-;;
  21936. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21937. esac
  21938. ac_save_IFS=$IFS
  21939. IFS=:
  21940. set x $ac_tag
  21941. IFS=$ac_save_IFS
  21942. shift
  21943. ac_file=$1
  21944. shift
  21945. case $ac_mode in
  21946. :L) ac_source=$1;;
  21947. :[FH])
  21948. ac_file_inputs=
  21949. for ac_f
  21950. do
  21951. case $ac_f in
  21952. -) ac_f="$ac_tmp/stdin";;
  21953. *) # Look for the file first in the build tree, then in the source tree
  21954. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21955. # because $ac_f cannot contain `:'.
  21956. test -f "$ac_f" ||
  21957. case $ac_f in
  21958. [\\/$]*) false;;
  21959. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21960. esac ||
  21961. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  21962. esac
  21963. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21964. as_fn_append ac_file_inputs " '$ac_f'"
  21965. done
  21966. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21967. # use $as_me), people would be surprised to read:
  21968. # /* config.h. Generated by config.status. */
  21969. configure_input='Generated from '`
  21970. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21971. `' by configure.'
  21972. if test x"$ac_file" != x-; then
  21973. configure_input="$ac_file. $configure_input"
  21974. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  21975. $as_echo "$as_me: creating $ac_file" >&6;}
  21976. fi
  21977. # Neutralize special characters interpreted by sed in replacement strings.
  21978. case $configure_input in #(
  21979. *\&* | *\|* | *\\* )
  21980. ac_sed_conf_input=`$as_echo "$configure_input" |
  21981. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21982. *) ac_sed_conf_input=$configure_input;;
  21983. esac
  21984. case $ac_tag in
  21985. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  21986. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  21987. esac
  21988. ;;
  21989. esac
  21990. ac_dir=`$as_dirname -- "$ac_file" ||
  21991. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21992. X"$ac_file" : 'X\(//\)[^/]' \| \
  21993. X"$ac_file" : 'X\(//\)$' \| \
  21994. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21995. $as_echo X"$ac_file" |
  21996. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21997. s//\1/
  21998. q
  21999. }
  22000. /^X\(\/\/\)[^/].*/{
  22001. s//\1/
  22002. q
  22003. }
  22004. /^X\(\/\/\)$/{
  22005. s//\1/
  22006. q
  22007. }
  22008. /^X\(\/\).*/{
  22009. s//\1/
  22010. q
  22011. }
  22012. s/.*/./; q'`
  22013. as_dir="$ac_dir"; as_fn_mkdir_p
  22014. ac_builddir=.
  22015. case "$ac_dir" in
  22016. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22017. *)
  22018. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  22019. # A ".." for each directory in $ac_dir_suffix.
  22020. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22021. case $ac_top_builddir_sub in
  22022. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22023. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22024. esac ;;
  22025. esac
  22026. ac_abs_top_builddir=$ac_pwd
  22027. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22028. # for backward compatibility:
  22029. ac_top_builddir=$ac_top_build_prefix
  22030. case $srcdir in
  22031. .) # We are building in place.
  22032. ac_srcdir=.
  22033. ac_top_srcdir=$ac_top_builddir_sub
  22034. ac_abs_top_srcdir=$ac_pwd ;;
  22035. [\\/]* | ?:[\\/]* ) # Absolute name.
  22036. ac_srcdir=$srcdir$ac_dir_suffix;
  22037. ac_top_srcdir=$srcdir
  22038. ac_abs_top_srcdir=$srcdir ;;
  22039. *) # Relative name.
  22040. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22041. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22042. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22043. esac
  22044. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22045. case $ac_mode in
  22046. :F)
  22047. #
  22048. # CONFIG_FILE
  22049. #
  22050. case $INSTALL in
  22051. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22052. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22053. esac
  22054. _ACEOF
  22055. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22056. # If the template does not know about datarootdir, expand it.
  22057. # FIXME: This hack should be removed a few years after 2.60.
  22058. ac_datarootdir_hack=; ac_datarootdir_seen=
  22059. ac_sed_dataroot='
  22060. /datarootdir/ {
  22061. p
  22062. q
  22063. }
  22064. /@datadir@/p
  22065. /@docdir@/p
  22066. /@infodir@/p
  22067. /@localedir@/p
  22068. /@mandir@/p'
  22069. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22070. *datarootdir*) ac_datarootdir_seen=yes;;
  22071. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22072. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22073. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22074. _ACEOF
  22075. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22076. ac_datarootdir_hack='
  22077. s&@datadir@&$datadir&g
  22078. s&@docdir@&$docdir&g
  22079. s&@infodir@&$infodir&g
  22080. s&@localedir@&$localedir&g
  22081. s&@mandir@&$mandir&g
  22082. s&\\\${datarootdir}&$datarootdir&g' ;;
  22083. esac
  22084. _ACEOF
  22085. # Neutralize VPATH when `$srcdir' = `.'.
  22086. # Shell code in configure.ac might set extrasub.
  22087. # FIXME: do we really want to maintain this feature?
  22088. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22089. ac_sed_extra="$ac_vpsub
  22090. $extrasub
  22091. _ACEOF
  22092. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22093. :t
  22094. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22095. s|@configure_input@|$ac_sed_conf_input|;t t
  22096. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22097. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22098. s&@srcdir@&$ac_srcdir&;t t
  22099. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22100. s&@top_srcdir@&$ac_top_srcdir&;t t
  22101. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22102. s&@builddir@&$ac_builddir&;t t
  22103. s&@abs_builddir@&$ac_abs_builddir&;t t
  22104. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22105. s&@INSTALL@&$ac_INSTALL&;t t
  22106. $ac_datarootdir_hack
  22107. "
  22108. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  22109. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22110. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22111. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  22112. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  22113. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  22114. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22115. which seems to be undefined. Please make sure it is defined" >&5
  22116. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22117. which seems to be undefined. Please make sure it is defined" >&2;}
  22118. rm -f "$ac_tmp/stdin"
  22119. case $ac_file in
  22120. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  22121. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22122. esac \
  22123. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22124. ;;
  22125. :H)
  22126. #
  22127. # CONFIG_HEADER
  22128. #
  22129. if test x"$ac_file" != x-; then
  22130. {
  22131. $as_echo "/* $configure_input */" \
  22132. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22133. } >"$ac_tmp/config.h" \
  22134. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22135. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22136. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22137. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22138. else
  22139. rm -f "$ac_file"
  22140. mv "$ac_tmp/config.h" "$ac_file" \
  22141. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22142. fi
  22143. else
  22144. $as_echo "/* $configure_input */" \
  22145. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22146. || as_fn_error $? "could not create -" "$LINENO" 5
  22147. fi
  22148. ;;
  22149. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22150. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22151. ;;
  22152. esac
  22153. case $ac_file$ac_mode in
  22154. "libtool":C)
  22155. # See if we are running on zsh, and set the options which allow our
  22156. # commands through without removal of \ escapes.
  22157. if test -n "${ZSH_VERSION+set}" ; then
  22158. setopt NO_GLOB_SUBST
  22159. fi
  22160. cfgfile="${ofile}T"
  22161. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22162. $RM "$cfgfile"
  22163. cat <<_LT_EOF >> "$cfgfile"
  22164. #! $SHELL
  22165. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22166. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22167. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22168. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22169. #
  22170. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22171. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22172. # Foundation, Inc.
  22173. # Written by Gordon Matzigkeit, 1996
  22174. #
  22175. # This file is part of GNU Libtool.
  22176. #
  22177. # GNU Libtool is free software; you can redistribute it and/or
  22178. # modify it under the terms of the GNU General Public License as
  22179. # published by the Free Software Foundation; either version 2 of
  22180. # the License, or (at your option) any later version.
  22181. #
  22182. # As a special exception to the GNU General Public License,
  22183. # if you distribute this file as part of a program or library that
  22184. # is built using GNU Libtool, you may include this file under the
  22185. # same distribution terms that you use for the rest of that program.
  22186. #
  22187. # GNU Libtool is distributed in the hope that it will be useful,
  22188. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22189. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22190. # GNU General Public License for more details.
  22191. #
  22192. # You should have received a copy of the GNU General Public License
  22193. # along with GNU Libtool; see the file COPYING. If not, a copy
  22194. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22195. # obtained by writing to the Free Software Foundation, Inc.,
  22196. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22197. # The names of the tagged configurations supported by this script.
  22198. available_tags="CXX "
  22199. # ### BEGIN LIBTOOL CONFIG
  22200. # Which release of libtool.m4 was used?
  22201. macro_version=$macro_version
  22202. macro_revision=$macro_revision
  22203. # Assembler program.
  22204. AS=$lt_AS
  22205. # DLL creation program.
  22206. DLLTOOL=$lt_DLLTOOL
  22207. # Object dumper program.
  22208. OBJDUMP=$lt_OBJDUMP
  22209. # Whether or not to build shared libraries.
  22210. build_libtool_libs=$enable_shared
  22211. # Whether or not to build static libraries.
  22212. build_old_libs=$enable_static
  22213. # What type of objects to build.
  22214. pic_mode=$pic_mode
  22215. # Whether or not to optimize for fast installation.
  22216. fast_install=$enable_fast_install
  22217. # Shell to use when invoking shell scripts.
  22218. SHELL=$lt_SHELL
  22219. # An echo program that protects backslashes.
  22220. ECHO=$lt_ECHO
  22221. # The PATH separator for the build system.
  22222. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22223. # The host system.
  22224. host_alias=$host_alias
  22225. host=$host
  22226. host_os=$host_os
  22227. # The build system.
  22228. build_alias=$build_alias
  22229. build=$build
  22230. build_os=$build_os
  22231. # A sed program that does not truncate output.
  22232. SED=$lt_SED
  22233. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22234. Xsed="\$SED -e 1s/^X//"
  22235. # A grep program that handles long lines.
  22236. GREP=$lt_GREP
  22237. # An ERE matcher.
  22238. EGREP=$lt_EGREP
  22239. # A literal string matcher.
  22240. FGREP=$lt_FGREP
  22241. # A BSD- or MS-compatible name lister.
  22242. NM=$lt_NM
  22243. # Whether we need soft or hard links.
  22244. LN_S=$lt_LN_S
  22245. # What is the maximum length of a command?
  22246. max_cmd_len=$max_cmd_len
  22247. # Object file suffix (normally "o").
  22248. objext=$ac_objext
  22249. # Executable file suffix (normally "").
  22250. exeext=$exeext
  22251. # whether the shell understands "unset".
  22252. lt_unset=$lt_unset
  22253. # turn spaces into newlines.
  22254. SP2NL=$lt_lt_SP2NL
  22255. # turn newlines into spaces.
  22256. NL2SP=$lt_lt_NL2SP
  22257. # convert \$build file names to \$host format.
  22258. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22259. # convert \$build files to toolchain format.
  22260. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22261. # Method to check whether dependent libraries are shared objects.
  22262. deplibs_check_method=$lt_deplibs_check_method
  22263. # Command to use when deplibs_check_method = "file_magic".
  22264. file_magic_cmd=$lt_file_magic_cmd
  22265. # How to find potential files when deplibs_check_method = "file_magic".
  22266. file_magic_glob=$lt_file_magic_glob
  22267. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22268. want_nocaseglob=$lt_want_nocaseglob
  22269. # Command to associate shared and link libraries.
  22270. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22271. # The archiver.
  22272. AR=$lt_AR
  22273. # Flags to create an archive.
  22274. AR_FLAGS=$lt_AR_FLAGS
  22275. # How to feed a file listing to the archiver.
  22276. archiver_list_spec=$lt_archiver_list_spec
  22277. # A symbol stripping program.
  22278. STRIP=$lt_STRIP
  22279. # Commands used to install an old-style archive.
  22280. RANLIB=$lt_RANLIB
  22281. old_postinstall_cmds=$lt_old_postinstall_cmds
  22282. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22283. # Whether to use a lock for old archive extraction.
  22284. lock_old_archive_extraction=$lock_old_archive_extraction
  22285. # A C compiler.
  22286. LTCC=$lt_CC
  22287. # LTCC compiler flags.
  22288. LTCFLAGS=$lt_CFLAGS
  22289. # Take the output of nm and produce a listing of raw symbols and C names.
  22290. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22291. # Transform the output of nm in a proper C declaration.
  22292. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22293. # Transform the output of nm in a C name address pair.
  22294. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22295. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22296. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22297. # Specify filename containing input files for \$NM.
  22298. nm_file_list_spec=$lt_nm_file_list_spec
  22299. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22300. lt_sysroot=$lt_sysroot
  22301. # The name of the directory that contains temporary libtool files.
  22302. objdir=$objdir
  22303. # Used to examine libraries when file_magic_cmd begins with "file".
  22304. MAGIC_CMD=$MAGIC_CMD
  22305. # Must we lock files when doing compilation?
  22306. need_locks=$lt_need_locks
  22307. # Manifest tool.
  22308. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22309. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22310. DSYMUTIL=$lt_DSYMUTIL
  22311. # Tool to change global to local symbols on Mac OS X.
  22312. NMEDIT=$lt_NMEDIT
  22313. # Tool to manipulate fat objects and archives on Mac OS X.
  22314. LIPO=$lt_LIPO
  22315. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22316. OTOOL=$lt_OTOOL
  22317. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22318. OTOOL64=$lt_OTOOL64
  22319. # Old archive suffix (normally "a").
  22320. libext=$libext
  22321. # Shared library suffix (normally ".so").
  22322. shrext_cmds=$lt_shrext_cmds
  22323. # The commands to extract the exported symbol list from a shared archive.
  22324. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22325. # Variables whose values should be saved in libtool wrapper scripts and
  22326. # restored at link time.
  22327. variables_saved_for_relink=$lt_variables_saved_for_relink
  22328. # Do we need the "lib" prefix for modules?
  22329. need_lib_prefix=$need_lib_prefix
  22330. # Do we need a version for libraries?
  22331. need_version=$need_version
  22332. # Library versioning type.
  22333. version_type=$version_type
  22334. # Shared library runtime path variable.
  22335. runpath_var=$runpath_var
  22336. # Shared library path variable.
  22337. shlibpath_var=$shlibpath_var
  22338. # Is shlibpath searched before the hard-coded library search path?
  22339. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22340. # Format of library name prefix.
  22341. libname_spec=$lt_libname_spec
  22342. # List of archive names. First name is the real one, the rest are links.
  22343. # The last name is the one that the linker finds with -lNAME
  22344. library_names_spec=$lt_library_names_spec
  22345. # The coded name of the library, if different from the real name.
  22346. soname_spec=$lt_soname_spec
  22347. # Permission mode override for installation of shared libraries.
  22348. install_override_mode=$lt_install_override_mode
  22349. # Command to use after installation of a shared archive.
  22350. postinstall_cmds=$lt_postinstall_cmds
  22351. # Command to use after uninstallation of a shared archive.
  22352. postuninstall_cmds=$lt_postuninstall_cmds
  22353. # Commands used to finish a libtool library installation in a directory.
  22354. finish_cmds=$lt_finish_cmds
  22355. # As "finish_cmds", except a single script fragment to be evaled but
  22356. # not shown.
  22357. finish_eval=$lt_finish_eval
  22358. # Whether we should hardcode library paths into libraries.
  22359. hardcode_into_libs=$hardcode_into_libs
  22360. # Compile-time system search path for libraries.
  22361. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22362. # Run-time system search path for libraries.
  22363. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22364. # Whether dlopen is supported.
  22365. dlopen_support=$enable_dlopen
  22366. # Whether dlopen of programs is supported.
  22367. dlopen_self=$enable_dlopen_self
  22368. # Whether dlopen of statically linked programs is supported.
  22369. dlopen_self_static=$enable_dlopen_self_static
  22370. # Commands to strip libraries.
  22371. old_striplib=$lt_old_striplib
  22372. striplib=$lt_striplib
  22373. # The linker used to build libraries.
  22374. LD=$lt_LD
  22375. # How to create reloadable object files.
  22376. reload_flag=$lt_reload_flag
  22377. reload_cmds=$lt_reload_cmds
  22378. # Commands used to build an old-style archive.
  22379. old_archive_cmds=$lt_old_archive_cmds
  22380. # A language specific compiler.
  22381. CC=$lt_compiler
  22382. # Is the compiler the GNU compiler?
  22383. with_gcc=$GCC
  22384. # Compiler flag to turn off builtin functions.
  22385. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22386. # Additional compiler flags for building library objects.
  22387. pic_flag=$lt_lt_prog_compiler_pic
  22388. # How to pass a linker flag through the compiler.
  22389. wl=$lt_lt_prog_compiler_wl
  22390. # Compiler flag to prevent dynamic linking.
  22391. link_static_flag=$lt_lt_prog_compiler_static
  22392. # Does compiler simultaneously support -c and -o options?
  22393. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22394. # Whether or not to add -lc for building shared libraries.
  22395. build_libtool_need_lc=$archive_cmds_need_lc
  22396. # Whether or not to disallow shared libs when runtime libs are static.
  22397. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22398. # Compiler flag to allow reflexive dlopens.
  22399. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22400. # Compiler flag to generate shared objects directly from archives.
  22401. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22402. # Whether the compiler copes with passing no objects directly.
  22403. compiler_needs_object=$lt_compiler_needs_object
  22404. # Create an old-style archive from a shared archive.
  22405. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22406. # Create a temporary old-style archive to link instead of a shared archive.
  22407. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22408. # Commands used to build a shared archive.
  22409. archive_cmds=$lt_archive_cmds
  22410. archive_expsym_cmds=$lt_archive_expsym_cmds
  22411. # Commands used to build a loadable module if different from building
  22412. # a shared archive.
  22413. module_cmds=$lt_module_cmds
  22414. module_expsym_cmds=$lt_module_expsym_cmds
  22415. # Whether we are building with GNU ld or not.
  22416. with_gnu_ld=$lt_with_gnu_ld
  22417. # Flag that allows shared libraries with undefined symbols to be built.
  22418. allow_undefined_flag=$lt_allow_undefined_flag
  22419. # Flag that enforces no undefined symbols.
  22420. no_undefined_flag=$lt_no_undefined_flag
  22421. # Flag to hardcode \$libdir into a binary during linking.
  22422. # This must work even if \$libdir does not exist
  22423. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22424. # Whether we need a single "-rpath" flag with a separated argument.
  22425. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22426. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22427. # DIR into the resulting binary.
  22428. hardcode_direct=$hardcode_direct
  22429. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22430. # DIR into the resulting binary and the resulting library dependency is
  22431. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22432. # library is relocated.
  22433. hardcode_direct_absolute=$hardcode_direct_absolute
  22434. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22435. # into the resulting binary.
  22436. hardcode_minus_L=$hardcode_minus_L
  22437. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22438. # into the resulting binary.
  22439. hardcode_shlibpath_var=$hardcode_shlibpath_var
  22440. # Set to "yes" if building a shared library automatically hardcodes DIR
  22441. # into the library and all subsequent libraries and executables linked
  22442. # against it.
  22443. hardcode_automatic=$hardcode_automatic
  22444. # Set to yes if linker adds runtime paths of dependent libraries
  22445. # to runtime path list.
  22446. inherit_rpath=$inherit_rpath
  22447. # Whether libtool must link a program against all its dependency libraries.
  22448. link_all_deplibs=$link_all_deplibs
  22449. # Set to "yes" if exported symbols are required.
  22450. always_export_symbols=$always_export_symbols
  22451. # The commands to list exported symbols.
  22452. export_symbols_cmds=$lt_export_symbols_cmds
  22453. # Symbols that should not be listed in the preloaded symbols.
  22454. exclude_expsyms=$lt_exclude_expsyms
  22455. # Symbols that must always be exported.
  22456. include_expsyms=$lt_include_expsyms
  22457. # Commands necessary for linking programs (against libraries) with templates.
  22458. prelink_cmds=$lt_prelink_cmds
  22459. # Commands necessary for finishing linking programs.
  22460. postlink_cmds=$lt_postlink_cmds
  22461. # Specify filename containing input files.
  22462. file_list_spec=$lt_file_list_spec
  22463. # How to hardcode a shared library path into an executable.
  22464. hardcode_action=$hardcode_action
  22465. # The directories searched by this compiler when creating a shared library.
  22466. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22467. # Dependencies to place before and after the objects being linked to
  22468. # create a shared library.
  22469. predep_objects=$lt_predep_objects
  22470. postdep_objects=$lt_postdep_objects
  22471. predeps=$lt_predeps
  22472. postdeps=$lt_postdeps
  22473. # The library search path used internally by the compiler when linking
  22474. # a shared library.
  22475. compiler_lib_search_path=$lt_compiler_lib_search_path
  22476. # ### END LIBTOOL CONFIG
  22477. _LT_EOF
  22478. case $host_os in
  22479. aix3*)
  22480. cat <<\_LT_EOF >> "$cfgfile"
  22481. # AIX sometimes has problems with the GCC collect2 program. For some
  22482. # reason, if we set the COLLECT_NAMES environment variable, the problems
  22483. # vanish in a puff of smoke.
  22484. if test "X${COLLECT_NAMES+set}" != Xset; then
  22485. COLLECT_NAMES=
  22486. export COLLECT_NAMES
  22487. fi
  22488. _LT_EOF
  22489. ;;
  22490. esac
  22491. ltmain="$ac_aux_dir/ltmain.sh"
  22492. # We use sed instead of cat because bash on DJGPP gets confused if
  22493. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  22494. # text mode, it properly converts lines to CR/LF. This bash problem
  22495. # is reportedly fixed, but why not run on old versions too?
  22496. sed '$q' "$ltmain" >> "$cfgfile" \
  22497. || (rm -f "$cfgfile"; exit 1)
  22498. if test x"$xsi_shell" = xyes; then
  22499. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  22500. func_dirname ()\
  22501. {\
  22502. \ case ${1} in\
  22503. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22504. \ * ) func_dirname_result="${3}" ;;\
  22505. \ esac\
  22506. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  22507. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22508. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22509. test 0 -eq $? || _lt_function_replace_fail=:
  22510. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  22511. func_basename ()\
  22512. {\
  22513. \ func_basename_result="${1##*/}"\
  22514. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22515. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22516. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22517. test 0 -eq $? || _lt_function_replace_fail=:
  22518. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  22519. func_dirname_and_basename ()\
  22520. {\
  22521. \ case ${1} in\
  22522. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22523. \ * ) func_dirname_result="${3}" ;;\
  22524. \ esac\
  22525. \ func_basename_result="${1##*/}"\
  22526. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22527. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22528. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22529. test 0 -eq $? || _lt_function_replace_fail=:
  22530. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  22531. func_stripname ()\
  22532. {\
  22533. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  22534. \ # positional parameters, so assign one to ordinary parameter first.\
  22535. \ func_stripname_result=${3}\
  22536. \ func_stripname_result=${func_stripname_result#"${1}"}\
  22537. \ func_stripname_result=${func_stripname_result%"${2}"}\
  22538. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  22539. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22540. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22541. test 0 -eq $? || _lt_function_replace_fail=:
  22542. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  22543. func_split_long_opt ()\
  22544. {\
  22545. \ func_split_long_opt_name=${1%%=*}\
  22546. \ func_split_long_opt_arg=${1#*=}\
  22547. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22548. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22549. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22550. test 0 -eq $? || _lt_function_replace_fail=:
  22551. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  22552. func_split_short_opt ()\
  22553. {\
  22554. \ func_split_short_opt_arg=${1#??}\
  22555. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  22556. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22557. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22558. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22559. test 0 -eq $? || _lt_function_replace_fail=:
  22560. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  22561. func_lo2o ()\
  22562. {\
  22563. \ case ${1} in\
  22564. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  22565. \ *) func_lo2o_result=${1} ;;\
  22566. \ esac\
  22567. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  22568. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22569. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22570. test 0 -eq $? || _lt_function_replace_fail=:
  22571. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  22572. func_xform ()\
  22573. {\
  22574. func_xform_result=${1%.*}.lo\
  22575. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  22576. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22577. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22578. test 0 -eq $? || _lt_function_replace_fail=:
  22579. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  22580. func_arith ()\
  22581. {\
  22582. func_arith_result=$(( $* ))\
  22583. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  22584. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22585. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22586. test 0 -eq $? || _lt_function_replace_fail=:
  22587. sed -e '/^func_len ()$/,/^} # func_len /c\
  22588. func_len ()\
  22589. {\
  22590. func_len_result=${#1}\
  22591. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  22592. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22593. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22594. test 0 -eq $? || _lt_function_replace_fail=:
  22595. fi
  22596. if test x"$lt_shell_append" = xyes; then
  22597. sed -e '/^func_append ()$/,/^} # func_append /c\
  22598. func_append ()\
  22599. {\
  22600. eval "${1}+=\\${2}"\
  22601. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  22602. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22603. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22604. test 0 -eq $? || _lt_function_replace_fail=:
  22605. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  22606. func_append_quoted ()\
  22607. {\
  22608. \ func_quote_for_eval "${2}"\
  22609. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  22610. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  22611. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22612. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22613. test 0 -eq $? || _lt_function_replace_fail=:
  22614. # Save a `func_append' function call where possible by direct use of '+='
  22615. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  22616. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22617. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22618. test 0 -eq $? || _lt_function_replace_fail=:
  22619. else
  22620. # Save a `func_append' function call even when '+=' is not available
  22621. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  22622. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22623. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22624. test 0 -eq $? || _lt_function_replace_fail=:
  22625. fi
  22626. if test x"$_lt_function_replace_fail" = x":"; then
  22627. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  22628. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  22629. fi
  22630. mv -f "$cfgfile" "$ofile" ||
  22631. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  22632. chmod +x "$ofile"
  22633. cat <<_LT_EOF >> "$ofile"
  22634. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  22635. # The linker used to build libraries.
  22636. LD=$lt_LD_CXX
  22637. # How to create reloadable object files.
  22638. reload_flag=$lt_reload_flag_CXX
  22639. reload_cmds=$lt_reload_cmds_CXX
  22640. # Commands used to build an old-style archive.
  22641. old_archive_cmds=$lt_old_archive_cmds_CXX
  22642. # A language specific compiler.
  22643. CC=$lt_compiler_CXX
  22644. # Is the compiler the GNU compiler?
  22645. with_gcc=$GCC_CXX
  22646. # Compiler flag to turn off builtin functions.
  22647. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  22648. # Additional compiler flags for building library objects.
  22649. pic_flag=$lt_lt_prog_compiler_pic_CXX
  22650. # How to pass a linker flag through the compiler.
  22651. wl=$lt_lt_prog_compiler_wl_CXX
  22652. # Compiler flag to prevent dynamic linking.
  22653. link_static_flag=$lt_lt_prog_compiler_static_CXX
  22654. # Does compiler simultaneously support -c and -o options?
  22655. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  22656. # Whether or not to add -lc for building shared libraries.
  22657. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  22658. # Whether or not to disallow shared libs when runtime libs are static.
  22659. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  22660. # Compiler flag to allow reflexive dlopens.
  22661. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  22662. # Compiler flag to generate shared objects directly from archives.
  22663. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  22664. # Whether the compiler copes with passing no objects directly.
  22665. compiler_needs_object=$lt_compiler_needs_object_CXX
  22666. # Create an old-style archive from a shared archive.
  22667. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  22668. # Create a temporary old-style archive to link instead of a shared archive.
  22669. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  22670. # Commands used to build a shared archive.
  22671. archive_cmds=$lt_archive_cmds_CXX
  22672. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  22673. # Commands used to build a loadable module if different from building
  22674. # a shared archive.
  22675. module_cmds=$lt_module_cmds_CXX
  22676. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  22677. # Whether we are building with GNU ld or not.
  22678. with_gnu_ld=$lt_with_gnu_ld_CXX
  22679. # Flag that allows shared libraries with undefined symbols to be built.
  22680. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  22681. # Flag that enforces no undefined symbols.
  22682. no_undefined_flag=$lt_no_undefined_flag_CXX
  22683. # Flag to hardcode \$libdir into a binary during linking.
  22684. # This must work even if \$libdir does not exist
  22685. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  22686. # Whether we need a single "-rpath" flag with a separated argument.
  22687. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  22688. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22689. # DIR into the resulting binary.
  22690. hardcode_direct=$hardcode_direct_CXX
  22691. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22692. # DIR into the resulting binary and the resulting library dependency is
  22693. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22694. # library is relocated.
  22695. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  22696. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22697. # into the resulting binary.
  22698. hardcode_minus_L=$hardcode_minus_L_CXX
  22699. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22700. # into the resulting binary.
  22701. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  22702. # Set to "yes" if building a shared library automatically hardcodes DIR
  22703. # into the library and all subsequent libraries and executables linked
  22704. # against it.
  22705. hardcode_automatic=$hardcode_automatic_CXX
  22706. # Set to yes if linker adds runtime paths of dependent libraries
  22707. # to runtime path list.
  22708. inherit_rpath=$inherit_rpath_CXX
  22709. # Whether libtool must link a program against all its dependency libraries.
  22710. link_all_deplibs=$link_all_deplibs_CXX
  22711. # Set to "yes" if exported symbols are required.
  22712. always_export_symbols=$always_export_symbols_CXX
  22713. # The commands to list exported symbols.
  22714. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  22715. # Symbols that should not be listed in the preloaded symbols.
  22716. exclude_expsyms=$lt_exclude_expsyms_CXX
  22717. # Symbols that must always be exported.
  22718. include_expsyms=$lt_include_expsyms_CXX
  22719. # Commands necessary for linking programs (against libraries) with templates.
  22720. prelink_cmds=$lt_prelink_cmds_CXX
  22721. # Commands necessary for finishing linking programs.
  22722. postlink_cmds=$lt_postlink_cmds_CXX
  22723. # Specify filename containing input files.
  22724. file_list_spec=$lt_file_list_spec_CXX
  22725. # How to hardcode a shared library path into an executable.
  22726. hardcode_action=$hardcode_action_CXX
  22727. # The directories searched by this compiler when creating a shared library.
  22728. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  22729. # Dependencies to place before and after the objects being linked to
  22730. # create a shared library.
  22731. predep_objects=$lt_predep_objects_CXX
  22732. postdep_objects=$lt_postdep_objects_CXX
  22733. predeps=$lt_predeps_CXX
  22734. postdeps=$lt_postdeps_CXX
  22735. # The library search path used internally by the compiler when linking
  22736. # a shared library.
  22737. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  22738. # ### END LIBTOOL TAG CONFIG: CXX
  22739. _LT_EOF
  22740. ;;
  22741. "sdl2_config":C) chmod a+x sdl2-config ;;
  22742. "summary":C) echo -en "$SUMMARY" ;;
  22743. esac
  22744. done # for ac_tag
  22745. as_fn_exit 0
  22746. _ACEOF
  22747. ac_clean_files=$ac_clean_files_save
  22748. test $ac_write_fail = 0 ||
  22749. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  22750. # configure is writing to config.log, and then calls config.status.
  22751. # config.status does its own redirection, appending to config.log.
  22752. # Unfortunately, on DOS this fails, as config.log is still kept open
  22753. # by configure, so config.status won't be able to write to it; its
  22754. # output is simply discarded. So we exec the FD to /dev/null,
  22755. # effectively closing config.log, so it can be properly (re)opened and
  22756. # appended to by config.status. When coming back to configure, we
  22757. # need to make the FD available again.
  22758. if test "$no_create" != yes; then
  22759. ac_cs_success=:
  22760. ac_config_status_args=
  22761. test "$silent" = yes &&
  22762. ac_config_status_args="$ac_config_status_args --quiet"
  22763. exec 5>/dev/null
  22764. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22765. exec 5>>config.log
  22766. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22767. # would make configure fail if this is the last instruction.
  22768. $ac_cs_success || as_fn_exit 1
  22769. fi
  22770. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22772. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22773. fi