configure 806 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565
  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. ESD_LIBS
  610. ESD_CFLAGS
  611. ESD_CONFIG
  612. PKG_CONFIG
  613. ALSA_LIBS
  614. ALSA_CFLAGS
  615. POW_LIB
  616. LIBOBJS
  617. ALLOCA
  618. WINDRES
  619. SET_MAKE
  620. INSTALL_DATA
  621. INSTALL_SCRIPT
  622. INSTALL_PROGRAM
  623. CXXCPP
  624. ac_ct_CXX
  625. CXXFLAGS
  626. CXX
  627. LT_AGE
  628. LT_REVISION
  629. LT_CURRENT
  630. LT_RELEASE
  631. CPP
  632. OTOOL64
  633. OTOOL
  634. LIPO
  635. NMEDIT
  636. DSYMUTIL
  637. MANIFEST_TOOL
  638. AWK
  639. RANLIB
  640. STRIP
  641. ac_ct_AR
  642. AR
  643. LN_S
  644. NM
  645. ac_ct_DUMPBIN
  646. DUMPBIN
  647. LD
  648. FGREP
  649. EGREP
  650. GREP
  651. SED
  652. OBJEXT
  653. EXEEXT
  654. ac_ct_CC
  655. CPPFLAGS
  656. LDFLAGS
  657. CFLAGS
  658. CC
  659. host_os
  660. host_vendor
  661. host_cpu
  662. host
  663. build_os
  664. build_vendor
  665. build_cpu
  666. build
  667. LIBTOOL
  668. OBJDUMP
  669. DLLTOOL
  670. AS
  671. SDL_VERSION
  672. SDL_BINARY_AGE
  673. SDL_INTERFACE_AGE
  674. SDL_MICRO_VERSION
  675. SDL_MINOR_VERSION
  676. SDL_MAJOR_VERSION
  677. target_alias
  678. host_alias
  679. build_alias
  680. LIBS
  681. ECHO_T
  682. ECHO_N
  683. ECHO_C
  684. DEFS
  685. mandir
  686. localedir
  687. libdir
  688. psdir
  689. pdfdir
  690. dvidir
  691. htmldir
  692. infodir
  693. docdir
  694. oldincludedir
  695. includedir
  696. localstatedir
  697. sharedstatedir
  698. sysconfdir
  699. datadir
  700. datarootdir
  701. libexecdir
  702. sbindir
  703. bindir
  704. program_transform_name
  705. prefix
  706. exec_prefix
  707. PACKAGE_URL
  708. PACKAGE_BUGREPORT
  709. PACKAGE_STRING
  710. PACKAGE_VERSION
  711. PACKAGE_TARNAME
  712. PACKAGE_NAME
  713. PATH_SEPARATOR
  714. SHELL'
  715. ac_subst_files=''
  716. ac_user_opts='
  717. enable_option_checking
  718. enable_shared
  719. enable_static
  720. with_pic
  721. enable_fast_install
  722. with_gnu_ld
  723. with_sysroot
  724. enable_libtool_lock
  725. enable_assertions
  726. enable_dependency_tracking
  727. enable_libc
  728. enable_gcc_atomics
  729. enable_atomic
  730. enable_audio
  731. enable_video
  732. enable_render
  733. enable_events
  734. enable_joystick
  735. enable_haptic
  736. enable_sensor
  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_jack
  759. enable_jack_shared
  760. enable_esd
  761. with_esd_prefix
  762. with_esd_exec_prefix
  763. enable_esdtest
  764. enable_esd_shared
  765. enable_pulseaudio
  766. enable_pulseaudio_shared
  767. enable_arts
  768. enable_arts_shared
  769. enable_nas
  770. enable_nas_shared
  771. enable_sndio
  772. enable_sndio_shared
  773. enable_fusionsound
  774. enable_fusionsound_shared
  775. enable_diskaudio
  776. enable_dummyaudio
  777. enable_libsamplerate
  778. enable_libsamplerate_shared
  779. enable_video_wayland
  780. enable_video_wayland_qt_touch
  781. enable_wayland_shared
  782. enable_video_rpi
  783. enable_video_x11
  784. with_x
  785. enable_x11_shared
  786. enable_video_x11_xcursor
  787. enable_video_x11_xdbe
  788. enable_video_x11_xinerama
  789. enable_video_x11_xinput
  790. enable_video_x11_xrandr
  791. enable_video_x11_scrnsaver
  792. enable_video_x11_xshape
  793. enable_video_x11_vm
  794. enable_video_vivante
  795. enable_video_cocoa
  796. enable_render_metal
  797. enable_video_directfb
  798. enable_directfb_shared
  799. enable_video_kmsdrm
  800. enable_kmsdrm_shared
  801. enable_video_dummy
  802. enable_video_opengl
  803. enable_video_opengles
  804. enable_video_opengles1
  805. enable_video_opengles2
  806. enable_video_vulkan
  807. enable_libudev
  808. enable_dbus
  809. enable_ime
  810. enable_ibus
  811. enable_fcitx
  812. enable_input_tslib
  813. enable_pthreads
  814. enable_pthread_sem
  815. enable_directx
  816. enable_wasapi
  817. enable_sdl_dlopen
  818. enable_hidapi
  819. enable_clock_gettime
  820. enable_rpath
  821. enable_backgrounding_signal
  822. enable_foregrounding_signal
  823. enable_render_d3d
  824. '
  825. ac_precious_vars='build_alias
  826. host_alias
  827. target_alias
  828. CC
  829. CFLAGS
  830. LDFLAGS
  831. LIBS
  832. CPPFLAGS
  833. CPP
  834. CXX
  835. CXXFLAGS
  836. CCC
  837. CXXCPP
  838. XMKMF'
  839. # Initialize some variables set by options.
  840. ac_init_help=
  841. ac_init_version=false
  842. ac_unrecognized_opts=
  843. ac_unrecognized_sep=
  844. # The variables have the same names as the options, with
  845. # dashes changed to underlines.
  846. cache_file=/dev/null
  847. exec_prefix=NONE
  848. no_create=
  849. no_recursion=
  850. prefix=NONE
  851. program_prefix=NONE
  852. program_suffix=NONE
  853. program_transform_name=s,x,x,
  854. silent=
  855. site=
  856. srcdir=
  857. verbose=
  858. x_includes=NONE
  859. x_libraries=NONE
  860. # Installation directory options.
  861. # These are left unexpanded so users can "make install exec_prefix=/foo"
  862. # and all the variables that are supposed to be based on exec_prefix
  863. # by default will actually change.
  864. # Use braces instead of parens because sh, perl, etc. also accept them.
  865. # (The list follows the same order as the GNU Coding Standards.)
  866. bindir='${exec_prefix}/bin'
  867. sbindir='${exec_prefix}/sbin'
  868. libexecdir='${exec_prefix}/libexec'
  869. datarootdir='${prefix}/share'
  870. datadir='${datarootdir}'
  871. sysconfdir='${prefix}/etc'
  872. sharedstatedir='${prefix}/com'
  873. localstatedir='${prefix}/var'
  874. includedir='${prefix}/include'
  875. oldincludedir='/usr/include'
  876. docdir='${datarootdir}/doc/${PACKAGE}'
  877. infodir='${datarootdir}/info'
  878. htmldir='${docdir}'
  879. dvidir='${docdir}'
  880. pdfdir='${docdir}'
  881. psdir='${docdir}'
  882. libdir='${exec_prefix}/lib'
  883. localedir='${datarootdir}/locale'
  884. mandir='${datarootdir}/man'
  885. ac_prev=
  886. ac_dashdash=
  887. for ac_option
  888. do
  889. # If the previous option needs an argument, assign it.
  890. if test -n "$ac_prev"; then
  891. eval $ac_prev=\$ac_option
  892. ac_prev=
  893. continue
  894. fi
  895. case $ac_option in
  896. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  897. *=) ac_optarg= ;;
  898. *) ac_optarg=yes ;;
  899. esac
  900. # Accept the important Cygnus configure options, so we can diagnose typos.
  901. case $ac_dashdash$ac_option in
  902. --)
  903. ac_dashdash=yes ;;
  904. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  905. ac_prev=bindir ;;
  906. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  907. bindir=$ac_optarg ;;
  908. -build | --build | --buil | --bui | --bu)
  909. ac_prev=build_alias ;;
  910. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  911. build_alias=$ac_optarg ;;
  912. -cache-file | --cache-file | --cache-fil | --cache-fi \
  913. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  914. ac_prev=cache_file ;;
  915. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  916. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  917. cache_file=$ac_optarg ;;
  918. --config-cache | -C)
  919. cache_file=config.cache ;;
  920. -datadir | --datadir | --datadi | --datad)
  921. ac_prev=datadir ;;
  922. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  923. datadir=$ac_optarg ;;
  924. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  925. | --dataroo | --dataro | --datar)
  926. ac_prev=datarootdir ;;
  927. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  928. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  929. datarootdir=$ac_optarg ;;
  930. -disable-* | --disable-*)
  931. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  932. # Reject names that are not valid shell variable names.
  933. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  934. as_fn_error $? "invalid feature name: $ac_useropt"
  935. ac_useropt_orig=$ac_useropt
  936. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  937. case $ac_user_opts in
  938. *"
  939. "enable_$ac_useropt"
  940. "*) ;;
  941. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  942. ac_unrecognized_sep=', ';;
  943. esac
  944. eval enable_$ac_useropt=no ;;
  945. -docdir | --docdir | --docdi | --doc | --do)
  946. ac_prev=docdir ;;
  947. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  948. docdir=$ac_optarg ;;
  949. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  950. ac_prev=dvidir ;;
  951. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  952. dvidir=$ac_optarg ;;
  953. -enable-* | --enable-*)
  954. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  955. # Reject names that are not valid shell variable names.
  956. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  957. as_fn_error $? "invalid feature name: $ac_useropt"
  958. ac_useropt_orig=$ac_useropt
  959. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  960. case $ac_user_opts in
  961. *"
  962. "enable_$ac_useropt"
  963. "*) ;;
  964. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  965. ac_unrecognized_sep=', ';;
  966. esac
  967. eval enable_$ac_useropt=\$ac_optarg ;;
  968. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  969. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  970. | --exec | --exe | --ex)
  971. ac_prev=exec_prefix ;;
  972. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  973. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  974. | --exec=* | --exe=* | --ex=*)
  975. exec_prefix=$ac_optarg ;;
  976. -gas | --gas | --ga | --g)
  977. # Obsolete; use --with-gas.
  978. with_gas=yes ;;
  979. -help | --help | --hel | --he | -h)
  980. ac_init_help=long ;;
  981. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  982. ac_init_help=recursive ;;
  983. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  984. ac_init_help=short ;;
  985. -host | --host | --hos | --ho)
  986. ac_prev=host_alias ;;
  987. -host=* | --host=* | --hos=* | --ho=*)
  988. host_alias=$ac_optarg ;;
  989. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  990. ac_prev=htmldir ;;
  991. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  992. | --ht=*)
  993. htmldir=$ac_optarg ;;
  994. -includedir | --includedir | --includedi | --included | --include \
  995. | --includ | --inclu | --incl | --inc)
  996. ac_prev=includedir ;;
  997. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  998. | --includ=* | --inclu=* | --incl=* | --inc=*)
  999. includedir=$ac_optarg ;;
  1000. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1001. ac_prev=infodir ;;
  1002. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1003. infodir=$ac_optarg ;;
  1004. -libdir | --libdir | --libdi | --libd)
  1005. ac_prev=libdir ;;
  1006. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1007. libdir=$ac_optarg ;;
  1008. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1009. | --libexe | --libex | --libe)
  1010. ac_prev=libexecdir ;;
  1011. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1012. | --libexe=* | --libex=* | --libe=*)
  1013. libexecdir=$ac_optarg ;;
  1014. -localedir | --localedir | --localedi | --localed | --locale)
  1015. ac_prev=localedir ;;
  1016. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1017. localedir=$ac_optarg ;;
  1018. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1019. | --localstate | --localstat | --localsta | --localst | --locals)
  1020. ac_prev=localstatedir ;;
  1021. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1022. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1023. localstatedir=$ac_optarg ;;
  1024. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1025. ac_prev=mandir ;;
  1026. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1027. mandir=$ac_optarg ;;
  1028. -nfp | --nfp | --nf)
  1029. # Obsolete; use --without-fp.
  1030. with_fp=no ;;
  1031. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1032. | --no-cr | --no-c | -n)
  1033. no_create=yes ;;
  1034. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1035. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1036. no_recursion=yes ;;
  1037. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1038. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1039. | --oldin | --oldi | --old | --ol | --o)
  1040. ac_prev=oldincludedir ;;
  1041. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1042. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1043. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1044. oldincludedir=$ac_optarg ;;
  1045. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1046. ac_prev=prefix ;;
  1047. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1048. prefix=$ac_optarg ;;
  1049. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1050. | --program-pre | --program-pr | --program-p)
  1051. ac_prev=program_prefix ;;
  1052. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1053. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1054. program_prefix=$ac_optarg ;;
  1055. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1056. | --program-suf | --program-su | --program-s)
  1057. ac_prev=program_suffix ;;
  1058. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1059. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1060. program_suffix=$ac_optarg ;;
  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. ac_prev=program_transform_name ;;
  1069. -program-transform-name=* | --program-transform-name=* \
  1070. | --program-transform-nam=* | --program-transform-na=* \
  1071. | --program-transform-n=* | --program-transform-=* \
  1072. | --program-transform=* | --program-transfor=* \
  1073. | --program-transfo=* | --program-transf=* \
  1074. | --program-trans=* | --program-tran=* \
  1075. | --progr-tra=* | --program-tr=* | --program-t=*)
  1076. program_transform_name=$ac_optarg ;;
  1077. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1078. ac_prev=pdfdir ;;
  1079. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1080. pdfdir=$ac_optarg ;;
  1081. -psdir | --psdir | --psdi | --psd | --ps)
  1082. ac_prev=psdir ;;
  1083. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1084. psdir=$ac_optarg ;;
  1085. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1086. | -silent | --silent | --silen | --sile | --sil)
  1087. silent=yes ;;
  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
  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. --libdir=DIR object code libraries [EPREFIX/lib]
  1343. --includedir=DIR C header files [PREFIX/include]
  1344. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1345. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1346. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1347. --infodir=DIR info documentation [DATAROOTDIR/info]
  1348. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1349. --mandir=DIR man documentation [DATAROOTDIR/man]
  1350. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1351. --htmldir=DIR html documentation [DOCDIR]
  1352. --dvidir=DIR dvi documentation [DOCDIR]
  1353. --pdfdir=DIR pdf documentation [DOCDIR]
  1354. --psdir=DIR ps documentation [DOCDIR]
  1355. _ACEOF
  1356. cat <<\_ACEOF
  1357. X features:
  1358. --x-includes=DIR X include files are in DIR
  1359. --x-libraries=DIR X library files are in DIR
  1360. System types:
  1361. --build=BUILD configure for building on BUILD [guessed]
  1362. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1363. _ACEOF
  1364. fi
  1365. if test -n "$ac_init_help"; then
  1366. cat <<\_ACEOF
  1367. Optional Features:
  1368. --disable-option-checking ignore unrecognized --enable/--with options
  1369. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1370. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1371. --enable-shared[=PKGS] build shared libraries [default=yes]
  1372. --enable-static[=PKGS] build static libraries [default=yes]
  1373. --enable-fast-install[=PKGS]
  1374. optimize for fast installation [default=yes]
  1375. --disable-libtool-lock avoid locking (might break parallel builds)
  1376. --enable-assertions Enable internal sanity checks
  1377. (auto/disabled/release/enabled/paranoid)
  1378. [[default=auto]]
  1379. --enable-dependency-tracking
  1380. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1381. --enable-libc Use the system C library [[default=yes]]
  1382. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1383. --enable-atomic Enable the atomic operations subsystem
  1384. [[default=yes]]
  1385. --enable-audio Enable the audio subsystem [[default=yes]]
  1386. --enable-video Enable the video subsystem [[default=yes]]
  1387. --enable-render Enable the render subsystem [[default=yes]]
  1388. --enable-events Enable the events subsystem [[default=yes]]
  1389. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1390. --enable-haptic Enable the haptic (force feedback) subsystem
  1391. [[default=yes]]
  1392. --enable-sensor Enable the sensor subsystem [[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-jack use JACK audio [[default=yes]]
  1415. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1416. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1417. --disable-esdtest Do not try to compile and run a test ESD program
  1418. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1419. --enable-pulseaudio use PulseAudio [[default=yes]]
  1420. --enable-pulseaudio-shared
  1421. dynamically load PulseAudio support [[default=yes]]
  1422. --enable-arts support the Analog Real Time Synthesizer
  1423. [[default=yes]]
  1424. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1425. --enable-nas support the NAS audio API [[default=yes]]
  1426. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1427. --enable-sndio support the sndio audio API [[default=yes]]
  1428. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1429. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1430. --enable-fusionsound-shared
  1431. dynamically load fusionsound audio support
  1432. [[default=yes]]
  1433. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1434. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1435. --enable-libsamplerate use libsamplerate for audio rate conversion
  1436. [[default=yes]]
  1437. --enable-libsamplerate-shared
  1438. dynamically load libsamplerate [[default=yes]]
  1439. --enable-video-wayland use Wayland video driver [[default=yes]]
  1440. --enable-video-wayland-qt-touch
  1441. QtWayland server support for Wayland video driver
  1442. [[default=yes]]
  1443. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1444. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1445. --enable-video-x11 use X11 video driver [[default=yes]]
  1446. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1447. --enable-video-x11-xcursor
  1448. enable X11 Xcursor support [[default=yes]]
  1449. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1450. --enable-video-x11-xinerama
  1451. enable X11 Xinerama support [[default=yes]]
  1452. --enable-video-x11-xinput
  1453. enable X11 XInput extension for manymouse, tablets,
  1454. etc [[default=yes]]
  1455. --enable-video-x11-xrandr
  1456. enable X11 Xrandr extension for fullscreen
  1457. [[default=yes]]
  1458. --enable-video-x11-scrnsaver
  1459. enable X11 screensaver extension [[default=yes]]
  1460. --enable-video-x11-xshape
  1461. enable X11 XShape support [[default=yes]]
  1462. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1463. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1464. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1465. --enable-render-metal enable the Metal render driver [[default=yes]]
  1466. --enable-video-directfb use DirectFB video driver [[default=no]]
  1467. --enable-directfb-shared
  1468. dynamically load directfb support [[default=yes]]
  1469. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1470. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1471. --enable-video-dummy use dummy video driver [[default=yes]]
  1472. --enable-video-opengl include OpenGL support [[default=yes]]
  1473. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1474. --enable-video-opengles1
  1475. include OpenGL ES 1.1 support [[default=yes]]
  1476. --enable-video-opengles2
  1477. include OpenGL ES 2.0 support [[default=yes]]
  1478. --enable-video-vulkan include Vulkan support [[default=yes]]
  1479. --enable-libudev enable libudev support [[default=yes]]
  1480. --enable-dbus enable D-Bus support [[default=yes]]
  1481. --enable-ime enable IME support [[default=yes]]
  1482. --enable-ibus enable IBus support [[default=yes]]
  1483. --enable-fcitx enable fcitx support [[default=yes]]
  1484. --enable-input-tslib use the Touchscreen library for input
  1485. [[default=yes]]
  1486. --enable-pthreads use POSIX threads for multi-threading
  1487. [[default=yes]]
  1488. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1489. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1490. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1491. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1492. --enable-hidapi use HIDAPI for low level joystick drivers
  1493. [[default=no]]
  1494. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1495. UNIX [[default=yes]]
  1496. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1497. --enable-backgrounding-signal
  1498. number to use for magic backgrounding signal or 'no'
  1499. [[default=no]]
  1500. --enable-foregrounding-signal
  1501. number to use for magic foregrounding signal or 'no'
  1502. [[default=no]]
  1503. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1504. Optional Packages:
  1505. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1506. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1507. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1508. both]
  1509. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1510. --with-sysroot=DIR Search for dependent libraries within DIR
  1511. (or the compiler's sysroot if not specified).
  1512. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1513. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1514. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1515. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1516. --with-x use the X Window System
  1517. Some influential environment variables:
  1518. CC C compiler command
  1519. CFLAGS C compiler flags
  1520. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1521. nonstandard directory <lib dir>
  1522. LIBS libraries to pass to the linker, e.g. -l<library>
  1523. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1524. you have headers in a nonstandard directory <include dir>
  1525. CPP C preprocessor
  1526. CXX C++ compiler command
  1527. CXXFLAGS C++ compiler flags
  1528. CXXCPP C++ preprocessor
  1529. XMKMF Path to xmkmf, Makefile generator for X Window System
  1530. Use these variables to override the choices made by `configure' or to help
  1531. it to find libraries and programs with nonstandard names/locations.
  1532. Report bugs to the package provider.
  1533. _ACEOF
  1534. ac_status=$?
  1535. fi
  1536. if test "$ac_init_help" = "recursive"; then
  1537. # If there are subdirs, report their specific --help.
  1538. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1539. test -d "$ac_dir" ||
  1540. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1541. continue
  1542. ac_builddir=.
  1543. case "$ac_dir" in
  1544. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1545. *)
  1546. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1547. # A ".." for each directory in $ac_dir_suffix.
  1548. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1549. case $ac_top_builddir_sub in
  1550. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1551. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1552. esac ;;
  1553. esac
  1554. ac_abs_top_builddir=$ac_pwd
  1555. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1556. # for backward compatibility:
  1557. ac_top_builddir=$ac_top_build_prefix
  1558. case $srcdir in
  1559. .) # We are building in place.
  1560. ac_srcdir=.
  1561. ac_top_srcdir=$ac_top_builddir_sub
  1562. ac_abs_top_srcdir=$ac_pwd ;;
  1563. [\\/]* | ?:[\\/]* ) # Absolute name.
  1564. ac_srcdir=$srcdir$ac_dir_suffix;
  1565. ac_top_srcdir=$srcdir
  1566. ac_abs_top_srcdir=$srcdir ;;
  1567. *) # Relative name.
  1568. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1569. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1570. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1571. esac
  1572. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1573. cd "$ac_dir" || { ac_status=$?; continue; }
  1574. # Check for guested configure.
  1575. if test -f "$ac_srcdir/configure.gnu"; then
  1576. echo &&
  1577. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1578. elif test -f "$ac_srcdir/configure"; then
  1579. echo &&
  1580. $SHELL "$ac_srcdir/configure" --help=recursive
  1581. else
  1582. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1583. fi || ac_status=$?
  1584. cd "$ac_pwd" || { ac_status=$?; break; }
  1585. done
  1586. fi
  1587. test -n "$ac_init_help" && exit $ac_status
  1588. if $ac_init_version; then
  1589. cat <<\_ACEOF
  1590. configure
  1591. generated by GNU Autoconf 2.69
  1592. Copyright (C) 2012 Free Software Foundation, Inc.
  1593. This configure script is free software; the Free Software Foundation
  1594. gives unlimited permission to copy, distribute and modify it.
  1595. _ACEOF
  1596. exit
  1597. fi
  1598. ## ------------------------ ##
  1599. ## Autoconf initialization. ##
  1600. ## ------------------------ ##
  1601. # ac_fn_c_try_compile LINENO
  1602. # --------------------------
  1603. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1604. ac_fn_c_try_compile ()
  1605. {
  1606. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1607. rm -f conftest.$ac_objext
  1608. if { { ac_try="$ac_compile"
  1609. case "(($ac_try" in
  1610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1611. *) ac_try_echo=$ac_try;;
  1612. esac
  1613. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1614. $as_echo "$ac_try_echo"; } >&5
  1615. (eval "$ac_compile") 2>conftest.err
  1616. ac_status=$?
  1617. if test -s conftest.err; then
  1618. grep -v '^ *+' conftest.err >conftest.er1
  1619. cat conftest.er1 >&5
  1620. mv -f conftest.er1 conftest.err
  1621. fi
  1622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1623. test $ac_status = 0; } && {
  1624. test -z "$ac_c_werror_flag" ||
  1625. test ! -s conftest.err
  1626. } && test -s conftest.$ac_objext; then :
  1627. ac_retval=0
  1628. else
  1629. $as_echo "$as_me: failed program was:" >&5
  1630. sed 's/^/| /' conftest.$ac_ext >&5
  1631. ac_retval=1
  1632. fi
  1633. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1634. as_fn_set_status $ac_retval
  1635. } # ac_fn_c_try_compile
  1636. # ac_fn_c_try_link LINENO
  1637. # -----------------------
  1638. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1639. ac_fn_c_try_link ()
  1640. {
  1641. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1642. rm -f conftest.$ac_objext conftest$ac_exeext
  1643. if { { ac_try="$ac_link"
  1644. case "(($ac_try" in
  1645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1646. *) ac_try_echo=$ac_try;;
  1647. esac
  1648. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1649. $as_echo "$ac_try_echo"; } >&5
  1650. (eval "$ac_link") 2>conftest.err
  1651. ac_status=$?
  1652. if test -s conftest.err; then
  1653. grep -v '^ *+' conftest.err >conftest.er1
  1654. cat conftest.er1 >&5
  1655. mv -f conftest.er1 conftest.err
  1656. fi
  1657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1658. test $ac_status = 0; } && {
  1659. test -z "$ac_c_werror_flag" ||
  1660. test ! -s conftest.err
  1661. } && test -s conftest$ac_exeext && {
  1662. test "$cross_compiling" = yes ||
  1663. test -x conftest$ac_exeext
  1664. }; then :
  1665. ac_retval=0
  1666. else
  1667. $as_echo "$as_me: failed program was:" >&5
  1668. sed 's/^/| /' conftest.$ac_ext >&5
  1669. ac_retval=1
  1670. fi
  1671. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1672. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1673. # interfere with the next link command; also delete a directory that is
  1674. # left behind by Apple's compiler. We do this before executing the actions.
  1675. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1676. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1677. as_fn_set_status $ac_retval
  1678. } # ac_fn_c_try_link
  1679. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1680. # -------------------------------------------------------
  1681. # Tests whether HEADER exists and can be compiled using the include files in
  1682. # INCLUDES, setting the cache variable VAR accordingly.
  1683. ac_fn_c_check_header_compile ()
  1684. {
  1685. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1687. $as_echo_n "checking for $2... " >&6; }
  1688. if eval \${$3+:} false; then :
  1689. $as_echo_n "(cached) " >&6
  1690. else
  1691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1692. /* end confdefs.h. */
  1693. $4
  1694. #include <$2>
  1695. _ACEOF
  1696. if ac_fn_c_try_compile "$LINENO"; then :
  1697. eval "$3=yes"
  1698. else
  1699. eval "$3=no"
  1700. fi
  1701. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1702. fi
  1703. eval ac_res=\$$3
  1704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1705. $as_echo "$ac_res" >&6; }
  1706. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1707. } # ac_fn_c_check_header_compile
  1708. # ac_fn_c_try_cpp LINENO
  1709. # ----------------------
  1710. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1711. ac_fn_c_try_cpp ()
  1712. {
  1713. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1714. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1715. case "(($ac_try" in
  1716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1717. *) ac_try_echo=$ac_try;;
  1718. esac
  1719. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1720. $as_echo "$ac_try_echo"; } >&5
  1721. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1722. ac_status=$?
  1723. if test -s conftest.err; then
  1724. grep -v '^ *+' conftest.err >conftest.er1
  1725. cat conftest.er1 >&5
  1726. mv -f conftest.er1 conftest.err
  1727. fi
  1728. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1729. test $ac_status = 0; } > conftest.i && {
  1730. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1731. test ! -s conftest.err
  1732. }; then :
  1733. ac_retval=0
  1734. else
  1735. $as_echo "$as_me: failed program was:" >&5
  1736. sed 's/^/| /' conftest.$ac_ext >&5
  1737. ac_retval=1
  1738. fi
  1739. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1740. as_fn_set_status $ac_retval
  1741. } # ac_fn_c_try_cpp
  1742. # ac_fn_c_try_run LINENO
  1743. # ----------------------
  1744. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1745. # that executables *can* be run.
  1746. ac_fn_c_try_run ()
  1747. {
  1748. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1749. if { { ac_try="$ac_link"
  1750. case "(($ac_try" in
  1751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1752. *) ac_try_echo=$ac_try;;
  1753. esac
  1754. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1755. $as_echo "$ac_try_echo"; } >&5
  1756. (eval "$ac_link") 2>&5
  1757. ac_status=$?
  1758. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1759. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1760. { { case "(($ac_try" in
  1761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1762. *) ac_try_echo=$ac_try;;
  1763. esac
  1764. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1765. $as_echo "$ac_try_echo"; } >&5
  1766. (eval "$ac_try") 2>&5
  1767. ac_status=$?
  1768. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1769. test $ac_status = 0; }; }; then :
  1770. ac_retval=0
  1771. else
  1772. $as_echo "$as_me: program exited with status $ac_status" >&5
  1773. $as_echo "$as_me: failed program was:" >&5
  1774. sed 's/^/| /' conftest.$ac_ext >&5
  1775. ac_retval=$ac_status
  1776. fi
  1777. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1778. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1779. as_fn_set_status $ac_retval
  1780. } # ac_fn_c_try_run
  1781. # ac_fn_c_check_func LINENO FUNC VAR
  1782. # ----------------------------------
  1783. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1784. ac_fn_c_check_func ()
  1785. {
  1786. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1788. $as_echo_n "checking for $2... " >&6; }
  1789. if eval \${$3+:} false; then :
  1790. $as_echo_n "(cached) " >&6
  1791. else
  1792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1793. /* end confdefs.h. */
  1794. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1795. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1796. #define $2 innocuous_$2
  1797. /* System header to define __stub macros and hopefully few prototypes,
  1798. which can conflict with char $2 (); below.
  1799. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1800. <limits.h> exists even on freestanding compilers. */
  1801. #ifdef __STDC__
  1802. # include <limits.h>
  1803. #else
  1804. # include <assert.h>
  1805. #endif
  1806. #undef $2
  1807. /* Override any GCC internal prototype to avoid an error.
  1808. Use char because int might match the return type of a GCC
  1809. builtin and then its argument prototype would still apply. */
  1810. #ifdef __cplusplus
  1811. extern "C"
  1812. #endif
  1813. char $2 ();
  1814. /* The GNU C library defines this for functions which it implements
  1815. to always fail with ENOSYS. Some functions are actually named
  1816. something starting with __ and the normal name is an alias. */
  1817. #if defined __stub_$2 || defined __stub___$2
  1818. choke me
  1819. #endif
  1820. int
  1821. main ()
  1822. {
  1823. return $2 ();
  1824. ;
  1825. return 0;
  1826. }
  1827. _ACEOF
  1828. if ac_fn_c_try_link "$LINENO"; then :
  1829. eval "$3=yes"
  1830. else
  1831. eval "$3=no"
  1832. fi
  1833. rm -f core conftest.err conftest.$ac_objext \
  1834. conftest$ac_exeext conftest.$ac_ext
  1835. fi
  1836. eval ac_res=\$$3
  1837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1838. $as_echo "$ac_res" >&6; }
  1839. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1840. } # ac_fn_c_check_func
  1841. # ac_fn_cxx_try_compile LINENO
  1842. # ----------------------------
  1843. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1844. ac_fn_cxx_try_compile ()
  1845. {
  1846. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1847. rm -f conftest.$ac_objext
  1848. if { { ac_try="$ac_compile"
  1849. case "(($ac_try" in
  1850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1851. *) ac_try_echo=$ac_try;;
  1852. esac
  1853. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1854. $as_echo "$ac_try_echo"; } >&5
  1855. (eval "$ac_compile") 2>conftest.err
  1856. ac_status=$?
  1857. if test -s conftest.err; then
  1858. grep -v '^ *+' conftest.err >conftest.er1
  1859. cat conftest.er1 >&5
  1860. mv -f conftest.er1 conftest.err
  1861. fi
  1862. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1863. test $ac_status = 0; } && {
  1864. test -z "$ac_cxx_werror_flag" ||
  1865. test ! -s conftest.err
  1866. } && test -s conftest.$ac_objext; then :
  1867. ac_retval=0
  1868. else
  1869. $as_echo "$as_me: failed program was:" >&5
  1870. sed 's/^/| /' conftest.$ac_ext >&5
  1871. ac_retval=1
  1872. fi
  1873. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1874. as_fn_set_status $ac_retval
  1875. } # ac_fn_cxx_try_compile
  1876. # ac_fn_cxx_try_cpp LINENO
  1877. # ------------------------
  1878. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1879. ac_fn_cxx_try_cpp ()
  1880. {
  1881. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1882. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1883. case "(($ac_try" in
  1884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1885. *) ac_try_echo=$ac_try;;
  1886. esac
  1887. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1888. $as_echo "$ac_try_echo"; } >&5
  1889. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1890. ac_status=$?
  1891. if test -s conftest.err; then
  1892. grep -v '^ *+' conftest.err >conftest.er1
  1893. cat conftest.er1 >&5
  1894. mv -f conftest.er1 conftest.err
  1895. fi
  1896. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1897. test $ac_status = 0; } > conftest.i && {
  1898. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1899. test ! -s conftest.err
  1900. }; then :
  1901. ac_retval=0
  1902. else
  1903. $as_echo "$as_me: failed program was:" >&5
  1904. sed 's/^/| /' conftest.$ac_ext >&5
  1905. ac_retval=1
  1906. fi
  1907. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1908. as_fn_set_status $ac_retval
  1909. } # ac_fn_cxx_try_cpp
  1910. # ac_fn_cxx_try_link LINENO
  1911. # -------------------------
  1912. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1913. ac_fn_cxx_try_link ()
  1914. {
  1915. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1916. rm -f conftest.$ac_objext conftest$ac_exeext
  1917. if { { ac_try="$ac_link"
  1918. case "(($ac_try" in
  1919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1920. *) ac_try_echo=$ac_try;;
  1921. esac
  1922. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1923. $as_echo "$ac_try_echo"; } >&5
  1924. (eval "$ac_link") 2>conftest.err
  1925. ac_status=$?
  1926. if test -s conftest.err; then
  1927. grep -v '^ *+' conftest.err >conftest.er1
  1928. cat conftest.er1 >&5
  1929. mv -f conftest.er1 conftest.err
  1930. fi
  1931. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1932. test $ac_status = 0; } && {
  1933. test -z "$ac_cxx_werror_flag" ||
  1934. test ! -s conftest.err
  1935. } && test -s conftest$ac_exeext && {
  1936. test "$cross_compiling" = yes ||
  1937. test -x conftest$ac_exeext
  1938. }; then :
  1939. ac_retval=0
  1940. else
  1941. $as_echo "$as_me: failed program was:" >&5
  1942. sed 's/^/| /' conftest.$ac_ext >&5
  1943. ac_retval=1
  1944. fi
  1945. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1946. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1947. # interfere with the next link command; also delete a directory that is
  1948. # left behind by Apple's compiler. We do this before executing the actions.
  1949. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1950. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1951. as_fn_set_status $ac_retval
  1952. } # ac_fn_cxx_try_link
  1953. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1954. # -------------------------------------------------------
  1955. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1956. # the include files in INCLUDES and setting the cache variable VAR
  1957. # accordingly.
  1958. ac_fn_c_check_header_mongrel ()
  1959. {
  1960. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1961. if eval \${$3+:} false; then :
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1963. $as_echo_n "checking for $2... " >&6; }
  1964. if eval \${$3+:} false; then :
  1965. $as_echo_n "(cached) " >&6
  1966. fi
  1967. eval ac_res=\$$3
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1969. $as_echo "$ac_res" >&6; }
  1970. else
  1971. # Is the header compilable?
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1973. $as_echo_n "checking $2 usability... " >&6; }
  1974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1975. /* end confdefs.h. */
  1976. $4
  1977. #include <$2>
  1978. _ACEOF
  1979. if ac_fn_c_try_compile "$LINENO"; then :
  1980. ac_header_compiler=yes
  1981. else
  1982. ac_header_compiler=no
  1983. fi
  1984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1986. $as_echo "$ac_header_compiler" >&6; }
  1987. # Is the header present?
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1989. $as_echo_n "checking $2 presence... " >&6; }
  1990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1991. /* end confdefs.h. */
  1992. #include <$2>
  1993. _ACEOF
  1994. if ac_fn_c_try_cpp "$LINENO"; then :
  1995. ac_header_preproc=yes
  1996. else
  1997. ac_header_preproc=no
  1998. fi
  1999. rm -f conftest.err conftest.i conftest.$ac_ext
  2000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2001. $as_echo "$ac_header_preproc" >&6; }
  2002. # So? What about this header?
  2003. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2004. yes:no: )
  2005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2006. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2007. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2008. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2009. ;;
  2010. no:yes:* )
  2011. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2012. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2013. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2014. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2015. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2016. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2017. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2018. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2019. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2020. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2021. ;;
  2022. esac
  2023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2024. $as_echo_n "checking for $2... " >&6; }
  2025. if eval \${$3+:} false; then :
  2026. $as_echo_n "(cached) " >&6
  2027. else
  2028. eval "$3=\$ac_header_compiler"
  2029. fi
  2030. eval ac_res=\$$3
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2032. $as_echo "$ac_res" >&6; }
  2033. fi
  2034. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2035. } # ac_fn_c_check_header_mongrel
  2036. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2037. # -------------------------------------------
  2038. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2039. # variable VAR accordingly.
  2040. ac_fn_c_check_type ()
  2041. {
  2042. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2044. $as_echo_n "checking for $2... " >&6; }
  2045. if eval \${$3+:} false; then :
  2046. $as_echo_n "(cached) " >&6
  2047. else
  2048. eval "$3=no"
  2049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2050. /* end confdefs.h. */
  2051. $4
  2052. int
  2053. main ()
  2054. {
  2055. if (sizeof ($2))
  2056. return 0;
  2057. ;
  2058. return 0;
  2059. }
  2060. _ACEOF
  2061. if ac_fn_c_try_compile "$LINENO"; then :
  2062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2063. /* end confdefs.h. */
  2064. $4
  2065. int
  2066. main ()
  2067. {
  2068. if (sizeof (($2)))
  2069. return 0;
  2070. ;
  2071. return 0;
  2072. }
  2073. _ACEOF
  2074. if ac_fn_c_try_compile "$LINENO"; then :
  2075. else
  2076. eval "$3=yes"
  2077. fi
  2078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2079. fi
  2080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2081. fi
  2082. eval ac_res=\$$3
  2083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2084. $as_echo "$ac_res" >&6; }
  2085. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2086. } # ac_fn_c_check_type
  2087. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2088. # ----------------------------------------------------
  2089. # Tries to find if the field MEMBER exists in type AGGR, after including
  2090. # INCLUDES, setting cache variable VAR accordingly.
  2091. ac_fn_c_check_member ()
  2092. {
  2093. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2095. $as_echo_n "checking for $2.$3... " >&6; }
  2096. if eval \${$4+:} false; then :
  2097. $as_echo_n "(cached) " >&6
  2098. else
  2099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2100. /* end confdefs.h. */
  2101. $5
  2102. int
  2103. main ()
  2104. {
  2105. static $2 ac_aggr;
  2106. if (ac_aggr.$3)
  2107. return 0;
  2108. ;
  2109. return 0;
  2110. }
  2111. _ACEOF
  2112. if ac_fn_c_try_compile "$LINENO"; then :
  2113. eval "$4=yes"
  2114. else
  2115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2116. /* end confdefs.h. */
  2117. $5
  2118. int
  2119. main ()
  2120. {
  2121. static $2 ac_aggr;
  2122. if (sizeof ac_aggr.$3)
  2123. return 0;
  2124. ;
  2125. return 0;
  2126. }
  2127. _ACEOF
  2128. if ac_fn_c_try_compile "$LINENO"; then :
  2129. eval "$4=yes"
  2130. else
  2131. eval "$4=no"
  2132. fi
  2133. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2134. fi
  2135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2136. fi
  2137. eval ac_res=\$$4
  2138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2139. $as_echo "$ac_res" >&6; }
  2140. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2141. } # ac_fn_c_check_member
  2142. cat >config.log <<_ACEOF
  2143. This file contains any messages produced by compilers while
  2144. running configure, to aid debugging if configure makes a mistake.
  2145. It was created by $as_me, which was
  2146. generated by GNU Autoconf 2.69. Invocation command line was
  2147. $ $0 $@
  2148. _ACEOF
  2149. exec 5>>config.log
  2150. {
  2151. cat <<_ASUNAME
  2152. ## --------- ##
  2153. ## Platform. ##
  2154. ## --------- ##
  2155. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2156. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2157. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2158. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2159. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2160. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2161. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2162. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2163. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2164. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2165. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2166. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2167. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2168. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2169. _ASUNAME
  2170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2171. for as_dir in $PATH
  2172. do
  2173. IFS=$as_save_IFS
  2174. test -z "$as_dir" && as_dir=.
  2175. $as_echo "PATH: $as_dir"
  2176. done
  2177. IFS=$as_save_IFS
  2178. } >&5
  2179. cat >&5 <<_ACEOF
  2180. ## ----------- ##
  2181. ## Core tests. ##
  2182. ## ----------- ##
  2183. _ACEOF
  2184. # Keep a trace of the command line.
  2185. # Strip out --no-create and --no-recursion so they do not pile up.
  2186. # Strip out --silent because we don't want to record it for future runs.
  2187. # Also quote any args containing shell meta-characters.
  2188. # Make two passes to allow for proper duplicate-argument suppression.
  2189. ac_configure_args=
  2190. ac_configure_args0=
  2191. ac_configure_args1=
  2192. ac_must_keep_next=false
  2193. for ac_pass in 1 2
  2194. do
  2195. for ac_arg
  2196. do
  2197. case $ac_arg in
  2198. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2199. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2200. | -silent | --silent | --silen | --sile | --sil)
  2201. continue ;;
  2202. *\'*)
  2203. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2204. esac
  2205. case $ac_pass in
  2206. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2207. 2)
  2208. as_fn_append ac_configure_args1 " '$ac_arg'"
  2209. if test $ac_must_keep_next = true; then
  2210. ac_must_keep_next=false # Got value, back to normal.
  2211. else
  2212. case $ac_arg in
  2213. *=* | --config-cache | -C | -disable-* | --disable-* \
  2214. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2215. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2216. | -with-* | --with-* | -without-* | --without-* | --x)
  2217. case "$ac_configure_args0 " in
  2218. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2219. esac
  2220. ;;
  2221. -* ) ac_must_keep_next=true ;;
  2222. esac
  2223. fi
  2224. as_fn_append ac_configure_args " '$ac_arg'"
  2225. ;;
  2226. esac
  2227. done
  2228. done
  2229. { ac_configure_args0=; unset ac_configure_args0;}
  2230. { ac_configure_args1=; unset ac_configure_args1;}
  2231. # When interrupted or exit'd, cleanup temporary files, and complete
  2232. # config.log. We remove comments because anyway the quotes in there
  2233. # would cause problems or look ugly.
  2234. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2235. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2236. trap 'exit_status=$?
  2237. # Save into config.log some information that might help in debugging.
  2238. {
  2239. echo
  2240. $as_echo "## ---------------- ##
  2241. ## Cache variables. ##
  2242. ## ---------------- ##"
  2243. echo
  2244. # The following way of writing the cache mishandles newlines in values,
  2245. (
  2246. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2247. eval ac_val=\$$ac_var
  2248. case $ac_val in #(
  2249. *${as_nl}*)
  2250. case $ac_var in #(
  2251. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2252. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2253. esac
  2254. case $ac_var in #(
  2255. _ | IFS | as_nl) ;; #(
  2256. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2257. *) { eval $ac_var=; unset $ac_var;} ;;
  2258. esac ;;
  2259. esac
  2260. done
  2261. (set) 2>&1 |
  2262. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2263. *${as_nl}ac_space=\ *)
  2264. sed -n \
  2265. "s/'\''/'\''\\\\'\'''\''/g;
  2266. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2267. ;; #(
  2268. *)
  2269. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2270. ;;
  2271. esac |
  2272. sort
  2273. )
  2274. echo
  2275. $as_echo "## ----------------- ##
  2276. ## Output variables. ##
  2277. ## ----------------- ##"
  2278. echo
  2279. for ac_var in $ac_subst_vars
  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. if test -n "$ac_subst_files"; then
  2289. $as_echo "## ------------------- ##
  2290. ## File substitutions. ##
  2291. ## ------------------- ##"
  2292. echo
  2293. for ac_var in $ac_subst_files
  2294. do
  2295. eval ac_val=\$$ac_var
  2296. case $ac_val in
  2297. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2298. esac
  2299. $as_echo "$ac_var='\''$ac_val'\''"
  2300. done | sort
  2301. echo
  2302. fi
  2303. if test -s confdefs.h; then
  2304. $as_echo "## ----------- ##
  2305. ## confdefs.h. ##
  2306. ## ----------- ##"
  2307. echo
  2308. cat confdefs.h
  2309. echo
  2310. fi
  2311. test "$ac_signal" != 0 &&
  2312. $as_echo "$as_me: caught signal $ac_signal"
  2313. $as_echo "$as_me: exit $exit_status"
  2314. } >&5
  2315. rm -f core *.core core.conftest.* &&
  2316. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2317. exit $exit_status
  2318. ' 0
  2319. for ac_signal in 1 2 13 15; do
  2320. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2321. done
  2322. ac_signal=0
  2323. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2324. rm -f -r conftest* confdefs.h
  2325. $as_echo "/* confdefs.h */" > confdefs.h
  2326. # Predefined preprocessor variables.
  2327. cat >>confdefs.h <<_ACEOF
  2328. #define PACKAGE_NAME "$PACKAGE_NAME"
  2329. _ACEOF
  2330. cat >>confdefs.h <<_ACEOF
  2331. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2332. _ACEOF
  2333. cat >>confdefs.h <<_ACEOF
  2334. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2335. _ACEOF
  2336. cat >>confdefs.h <<_ACEOF
  2337. #define PACKAGE_STRING "$PACKAGE_STRING"
  2338. _ACEOF
  2339. cat >>confdefs.h <<_ACEOF
  2340. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2341. _ACEOF
  2342. cat >>confdefs.h <<_ACEOF
  2343. #define PACKAGE_URL "$PACKAGE_URL"
  2344. _ACEOF
  2345. # Let the site file select an alternate cache file if it wants to.
  2346. # Prefer an explicitly selected file to automatically selected ones.
  2347. ac_site_file1=NONE
  2348. ac_site_file2=NONE
  2349. if test -n "$CONFIG_SITE"; then
  2350. # We do not want a PATH search for config.site.
  2351. case $CONFIG_SITE in #((
  2352. -*) ac_site_file1=./$CONFIG_SITE;;
  2353. */*) ac_site_file1=$CONFIG_SITE;;
  2354. *) ac_site_file1=./$CONFIG_SITE;;
  2355. esac
  2356. elif test "x$prefix" != xNONE; then
  2357. ac_site_file1=$prefix/share/config.site
  2358. ac_site_file2=$prefix/etc/config.site
  2359. else
  2360. ac_site_file1=$ac_default_prefix/share/config.site
  2361. ac_site_file2=$ac_default_prefix/etc/config.site
  2362. fi
  2363. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2364. do
  2365. test "x$ac_site_file" = xNONE && continue
  2366. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2368. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2369. sed 's/^/| /' "$ac_site_file" >&5
  2370. . "$ac_site_file" \
  2371. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2372. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2373. as_fn_error $? "failed to load site script $ac_site_file
  2374. See \`config.log' for more details" "$LINENO" 5; }
  2375. fi
  2376. done
  2377. if test -r "$cache_file"; then
  2378. # Some versions of bash will fail to source /dev/null (special files
  2379. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2380. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2381. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2382. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2383. case $cache_file in
  2384. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2385. *) . "./$cache_file";;
  2386. esac
  2387. fi
  2388. else
  2389. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2390. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2391. >$cache_file
  2392. fi
  2393. # Check that the precious variables saved in the cache have kept the same
  2394. # value.
  2395. ac_cache_corrupted=false
  2396. for ac_var in $ac_precious_vars; do
  2397. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2398. eval ac_new_set=\$ac_env_${ac_var}_set
  2399. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2400. eval ac_new_val=\$ac_env_${ac_var}_value
  2401. case $ac_old_set,$ac_new_set in
  2402. set,)
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2404. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2405. ac_cache_corrupted=: ;;
  2406. ,set)
  2407. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2408. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2409. ac_cache_corrupted=: ;;
  2410. ,);;
  2411. *)
  2412. if test "x$ac_old_val" != "x$ac_new_val"; then
  2413. # differences in whitespace do not lead to failure.
  2414. ac_old_val_w=`echo x $ac_old_val`
  2415. ac_new_val_w=`echo x $ac_new_val`
  2416. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2417. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2418. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2419. ac_cache_corrupted=:
  2420. else
  2421. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2422. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2423. eval $ac_var=\$ac_old_val
  2424. fi
  2425. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2426. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2427. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2428. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2429. fi;;
  2430. esac
  2431. # Pass precious variables to config.status.
  2432. if test "$ac_new_set" = set; then
  2433. case $ac_new_val in
  2434. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2435. *) ac_arg=$ac_var=$ac_new_val ;;
  2436. esac
  2437. case " $ac_configure_args " in
  2438. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2439. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2440. esac
  2441. fi
  2442. done
  2443. if $ac_cache_corrupted; then
  2444. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2445. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2446. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2447. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2448. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2449. fi
  2450. ## -------------------- ##
  2451. ## Main body of script. ##
  2452. ## -------------------- ##
  2453. ac_ext=c
  2454. ac_cpp='$CPP $CPPFLAGS'
  2455. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2456. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2457. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2458. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2459. ac_aux_dir=
  2460. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2461. if test -f "$ac_dir/install-sh"; then
  2462. ac_aux_dir=$ac_dir
  2463. ac_install_sh="$ac_aux_dir/install-sh -c"
  2464. break
  2465. elif test -f "$ac_dir/install.sh"; then
  2466. ac_aux_dir=$ac_dir
  2467. ac_install_sh="$ac_aux_dir/install.sh -c"
  2468. break
  2469. elif test -f "$ac_dir/shtool"; then
  2470. ac_aux_dir=$ac_dir
  2471. ac_install_sh="$ac_aux_dir/shtool install -c"
  2472. break
  2473. fi
  2474. done
  2475. if test -z "$ac_aux_dir"; then
  2476. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2477. fi
  2478. # These three variables are undocumented and unsupported,
  2479. # and are intended to be withdrawn in a future Autoconf release.
  2480. # They can cause serious problems if a builder's source tree is in a directory
  2481. # whose full name contains unusual characters.
  2482. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2483. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2484. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2485. orig_CFLAGS="$CFLAGS"
  2486. #
  2487. # Making releases:
  2488. # Edit include/SDL_version.h and change the version, then:
  2489. # SDL_MICRO_VERSION += 1;
  2490. # SDL_INTERFACE_AGE += 1;
  2491. # SDL_BINARY_AGE += 1;
  2492. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2493. # if backwards compatibility has been broken,
  2494. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2495. #
  2496. SDL_MAJOR_VERSION=2
  2497. SDL_MINOR_VERSION=0
  2498. SDL_MICRO_VERSION=9
  2499. SDL_INTERFACE_AGE=0
  2500. SDL_BINARY_AGE=9
  2501. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2502. # libtool versioning
  2503. case `pwd` in
  2504. *\ * | *\ *)
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2506. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2507. esac
  2508. macro_version='2.4.2'
  2509. macro_revision='1.3337'
  2510. ltmain="$ac_aux_dir/ltmain.sh"
  2511. # Make sure we can run config.sub.
  2512. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2513. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2515. $as_echo_n "checking build system type... " >&6; }
  2516. if ${ac_cv_build+:} false; then :
  2517. $as_echo_n "(cached) " >&6
  2518. else
  2519. ac_build_alias=$build_alias
  2520. test "x$ac_build_alias" = x &&
  2521. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2522. test "x$ac_build_alias" = x &&
  2523. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2524. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2525. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2526. fi
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2528. $as_echo "$ac_cv_build" >&6; }
  2529. case $ac_cv_build in
  2530. *-*-*) ;;
  2531. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2532. esac
  2533. build=$ac_cv_build
  2534. ac_save_IFS=$IFS; IFS='-'
  2535. set x $ac_cv_build
  2536. shift
  2537. build_cpu=$1
  2538. build_vendor=$2
  2539. shift; shift
  2540. # Remember, the first character of IFS is used to create $*,
  2541. # except with old shells:
  2542. build_os=$*
  2543. IFS=$ac_save_IFS
  2544. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2546. $as_echo_n "checking host system type... " >&6; }
  2547. if ${ac_cv_host+:} false; then :
  2548. $as_echo_n "(cached) " >&6
  2549. else
  2550. if test "x$host_alias" = x; then
  2551. ac_cv_host=$ac_cv_build
  2552. else
  2553. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2554. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2555. fi
  2556. fi
  2557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2558. $as_echo "$ac_cv_host" >&6; }
  2559. case $ac_cv_host in
  2560. *-*-*) ;;
  2561. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2562. esac
  2563. host=$ac_cv_host
  2564. ac_save_IFS=$IFS; IFS='-'
  2565. set x $ac_cv_host
  2566. shift
  2567. host_cpu=$1
  2568. host_vendor=$2
  2569. shift; shift
  2570. # Remember, the first character of IFS is used to create $*,
  2571. # except with old shells:
  2572. host_os=$*
  2573. IFS=$ac_save_IFS
  2574. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2575. # Backslashify metacharacters that are still active within
  2576. # double-quoted strings.
  2577. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2578. # Same as above, but do not quote variable references.
  2579. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2580. # Sed substitution to delay expansion of an escaped shell variable in a
  2581. # double_quote_subst'ed string.
  2582. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2583. # Sed substitution to delay expansion of an escaped single quote.
  2584. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2585. # Sed substitution to avoid accidental globbing in evaled expressions
  2586. no_glob_subst='s/\*/\\\*/g'
  2587. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2588. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2589. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2591. $as_echo_n "checking how to print strings... " >&6; }
  2592. # Test print first, because it will be a builtin if present.
  2593. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2594. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2595. ECHO='print -r --'
  2596. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2597. ECHO='printf %s\n'
  2598. else
  2599. # Use this function as a fallback that always works.
  2600. func_fallback_echo ()
  2601. {
  2602. eval 'cat <<_LTECHO_EOF
  2603. $1
  2604. _LTECHO_EOF'
  2605. }
  2606. ECHO='func_fallback_echo'
  2607. fi
  2608. # func_echo_all arg...
  2609. # Invoke $ECHO with all args, space-separated.
  2610. func_echo_all ()
  2611. {
  2612. $ECHO ""
  2613. }
  2614. case "$ECHO" in
  2615. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2616. $as_echo "printf" >&6; } ;;
  2617. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2618. $as_echo "print -r" >&6; } ;;
  2619. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2620. $as_echo "cat" >&6; } ;;
  2621. esac
  2622. ac_ext=c
  2623. ac_cpp='$CPP $CPPFLAGS'
  2624. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2625. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2626. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2627. if test -n "$ac_tool_prefix"; then
  2628. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2629. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2631. $as_echo_n "checking for $ac_word... " >&6; }
  2632. if ${ac_cv_prog_CC+:} false; then :
  2633. $as_echo_n "(cached) " >&6
  2634. else
  2635. if test -n "$CC"; then
  2636. ac_cv_prog_CC="$CC" # Let the user override the test.
  2637. else
  2638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2639. for as_dir in $PATH
  2640. do
  2641. IFS=$as_save_IFS
  2642. test -z "$as_dir" && as_dir=.
  2643. for ac_exec_ext in '' $ac_executable_extensions; do
  2644. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2645. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2646. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2647. break 2
  2648. fi
  2649. done
  2650. done
  2651. IFS=$as_save_IFS
  2652. fi
  2653. fi
  2654. CC=$ac_cv_prog_CC
  2655. if test -n "$CC"; then
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2657. $as_echo "$CC" >&6; }
  2658. else
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2660. $as_echo "no" >&6; }
  2661. fi
  2662. fi
  2663. if test -z "$ac_cv_prog_CC"; then
  2664. ac_ct_CC=$CC
  2665. # Extract the first word of "gcc", so it can be a program name with args.
  2666. set dummy gcc; ac_word=$2
  2667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2668. $as_echo_n "checking for $ac_word... " >&6; }
  2669. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2670. $as_echo_n "(cached) " >&6
  2671. else
  2672. if test -n "$ac_ct_CC"; then
  2673. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2674. else
  2675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2676. for as_dir in $PATH
  2677. do
  2678. IFS=$as_save_IFS
  2679. test -z "$as_dir" && as_dir=.
  2680. for ac_exec_ext in '' $ac_executable_extensions; do
  2681. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2682. ac_cv_prog_ac_ct_CC="gcc"
  2683. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2684. break 2
  2685. fi
  2686. done
  2687. done
  2688. IFS=$as_save_IFS
  2689. fi
  2690. fi
  2691. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2692. if test -n "$ac_ct_CC"; then
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2694. $as_echo "$ac_ct_CC" >&6; }
  2695. else
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2697. $as_echo "no" >&6; }
  2698. fi
  2699. if test "x$ac_ct_CC" = x; then
  2700. CC=""
  2701. else
  2702. case $cross_compiling:$ac_tool_warned in
  2703. yes:)
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2705. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2706. ac_tool_warned=yes ;;
  2707. esac
  2708. CC=$ac_ct_CC
  2709. fi
  2710. else
  2711. CC="$ac_cv_prog_CC"
  2712. fi
  2713. if test -z "$CC"; then
  2714. if test -n "$ac_tool_prefix"; then
  2715. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2716. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2718. $as_echo_n "checking for $ac_word... " >&6; }
  2719. if ${ac_cv_prog_CC+:} false; then :
  2720. $as_echo_n "(cached) " >&6
  2721. else
  2722. if test -n "$CC"; then
  2723. ac_cv_prog_CC="$CC" # Let the user override the test.
  2724. else
  2725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2726. for as_dir in $PATH
  2727. do
  2728. IFS=$as_save_IFS
  2729. test -z "$as_dir" && as_dir=.
  2730. for ac_exec_ext in '' $ac_executable_extensions; do
  2731. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2732. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2733. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2734. break 2
  2735. fi
  2736. done
  2737. done
  2738. IFS=$as_save_IFS
  2739. fi
  2740. fi
  2741. CC=$ac_cv_prog_CC
  2742. if test -n "$CC"; then
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2744. $as_echo "$CC" >&6; }
  2745. else
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2747. $as_echo "no" >&6; }
  2748. fi
  2749. fi
  2750. fi
  2751. if test -z "$CC"; then
  2752. # Extract the first word of "cc", so it can be a program name with args.
  2753. set dummy cc; ac_word=$2
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2755. $as_echo_n "checking for $ac_word... " >&6; }
  2756. if ${ac_cv_prog_CC+:} false; then :
  2757. $as_echo_n "(cached) " >&6
  2758. else
  2759. if test -n "$CC"; then
  2760. ac_cv_prog_CC="$CC" # Let the user override the test.
  2761. else
  2762. ac_prog_rejected=no
  2763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2764. for as_dir in $PATH
  2765. do
  2766. IFS=$as_save_IFS
  2767. test -z "$as_dir" && as_dir=.
  2768. for ac_exec_ext in '' $ac_executable_extensions; do
  2769. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2770. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2771. ac_prog_rejected=yes
  2772. continue
  2773. fi
  2774. ac_cv_prog_CC="cc"
  2775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2776. break 2
  2777. fi
  2778. done
  2779. done
  2780. IFS=$as_save_IFS
  2781. if test $ac_prog_rejected = yes; then
  2782. # We found a bogon in the path, so make sure we never use it.
  2783. set dummy $ac_cv_prog_CC
  2784. shift
  2785. if test $# != 0; then
  2786. # We chose a different compiler from the bogus one.
  2787. # However, it has the same basename, so the bogon will be chosen
  2788. # first if we set CC to just the basename; use the full file name.
  2789. shift
  2790. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2791. fi
  2792. fi
  2793. fi
  2794. fi
  2795. CC=$ac_cv_prog_CC
  2796. if test -n "$CC"; then
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2798. $as_echo "$CC" >&6; }
  2799. else
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2801. $as_echo "no" >&6; }
  2802. fi
  2803. fi
  2804. if test -z "$CC"; then
  2805. if test -n "$ac_tool_prefix"; then
  2806. for ac_prog in cl.exe
  2807. do
  2808. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2809. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2811. $as_echo_n "checking for $ac_word... " >&6; }
  2812. if ${ac_cv_prog_CC+:} false; then :
  2813. $as_echo_n "(cached) " >&6
  2814. else
  2815. if test -n "$CC"; then
  2816. ac_cv_prog_CC="$CC" # Let the user override the test.
  2817. else
  2818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2819. for as_dir in $PATH
  2820. do
  2821. IFS=$as_save_IFS
  2822. test -z "$as_dir" && as_dir=.
  2823. for ac_exec_ext in '' $ac_executable_extensions; do
  2824. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2825. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2827. break 2
  2828. fi
  2829. done
  2830. done
  2831. IFS=$as_save_IFS
  2832. fi
  2833. fi
  2834. CC=$ac_cv_prog_CC
  2835. if test -n "$CC"; then
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2837. $as_echo "$CC" >&6; }
  2838. else
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2840. $as_echo "no" >&6; }
  2841. fi
  2842. test -n "$CC" && break
  2843. done
  2844. fi
  2845. if test -z "$CC"; then
  2846. ac_ct_CC=$CC
  2847. for ac_prog in cl.exe
  2848. do
  2849. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2850. set dummy $ac_prog; ac_word=$2
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2852. $as_echo_n "checking for $ac_word... " >&6; }
  2853. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2854. $as_echo_n "(cached) " >&6
  2855. else
  2856. if test -n "$ac_ct_CC"; then
  2857. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2858. else
  2859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2860. for as_dir in $PATH
  2861. do
  2862. IFS=$as_save_IFS
  2863. test -z "$as_dir" && as_dir=.
  2864. for ac_exec_ext in '' $ac_executable_extensions; do
  2865. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2866. ac_cv_prog_ac_ct_CC="$ac_prog"
  2867. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2868. break 2
  2869. fi
  2870. done
  2871. done
  2872. IFS=$as_save_IFS
  2873. fi
  2874. fi
  2875. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2876. if test -n "$ac_ct_CC"; then
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2878. $as_echo "$ac_ct_CC" >&6; }
  2879. else
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2881. $as_echo "no" >&6; }
  2882. fi
  2883. test -n "$ac_ct_CC" && break
  2884. done
  2885. if test "x$ac_ct_CC" = x; then
  2886. CC=""
  2887. else
  2888. case $cross_compiling:$ac_tool_warned in
  2889. yes:)
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2891. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2892. ac_tool_warned=yes ;;
  2893. esac
  2894. CC=$ac_ct_CC
  2895. fi
  2896. fi
  2897. fi
  2898. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2899. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2900. as_fn_error $? "no acceptable C compiler found in \$PATH
  2901. See \`config.log' for more details" "$LINENO" 5; }
  2902. # Provide some information about the compiler.
  2903. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2904. set X $ac_compile
  2905. ac_compiler=$2
  2906. for ac_option in --version -v -V -qversion; do
  2907. { { ac_try="$ac_compiler $ac_option >&5"
  2908. case "(($ac_try" in
  2909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2910. *) ac_try_echo=$ac_try;;
  2911. esac
  2912. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2913. $as_echo "$ac_try_echo"; } >&5
  2914. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2915. ac_status=$?
  2916. if test -s conftest.err; then
  2917. sed '10a\
  2918. ... rest of stderr output deleted ...
  2919. 10q' conftest.err >conftest.er1
  2920. cat conftest.er1 >&5
  2921. fi
  2922. rm -f conftest.er1 conftest.err
  2923. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2924. test $ac_status = 0; }
  2925. done
  2926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2927. /* end confdefs.h. */
  2928. int
  2929. main ()
  2930. {
  2931. ;
  2932. return 0;
  2933. }
  2934. _ACEOF
  2935. ac_clean_files_save=$ac_clean_files
  2936. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2937. # Try to create an executable without -o first, disregard a.out.
  2938. # It will help us diagnose broken compilers, and finding out an intuition
  2939. # of exeext.
  2940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2941. $as_echo_n "checking whether the C compiler works... " >&6; }
  2942. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2943. # The possible output files:
  2944. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2945. ac_rmfiles=
  2946. for ac_file in $ac_files
  2947. do
  2948. case $ac_file in
  2949. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2950. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2951. esac
  2952. done
  2953. rm -f $ac_rmfiles
  2954. if { { ac_try="$ac_link_default"
  2955. case "(($ac_try" in
  2956. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2957. *) ac_try_echo=$ac_try;;
  2958. esac
  2959. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2960. $as_echo "$ac_try_echo"; } >&5
  2961. (eval "$ac_link_default") 2>&5
  2962. ac_status=$?
  2963. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2964. test $ac_status = 0; }; then :
  2965. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2966. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2967. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2968. # so that the user can short-circuit this test for compilers unknown to
  2969. # Autoconf.
  2970. for ac_file in $ac_files ''
  2971. do
  2972. test -f "$ac_file" || continue
  2973. case $ac_file in
  2974. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2975. ;;
  2976. [ab].out )
  2977. # We found the default executable, but exeext='' is most
  2978. # certainly right.
  2979. break;;
  2980. *.* )
  2981. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2982. then :; else
  2983. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2984. fi
  2985. # We set ac_cv_exeext here because the later test for it is not
  2986. # safe: cross compilers may not add the suffix if given an `-o'
  2987. # argument, so we may need to know it at that point already.
  2988. # Even if this section looks crufty: it has the advantage of
  2989. # actually working.
  2990. break;;
  2991. * )
  2992. break;;
  2993. esac
  2994. done
  2995. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2996. else
  2997. ac_file=''
  2998. fi
  2999. if test -z "$ac_file"; then :
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3001. $as_echo "no" >&6; }
  3002. $as_echo "$as_me: failed program was:" >&5
  3003. sed 's/^/| /' conftest.$ac_ext >&5
  3004. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3005. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3006. as_fn_error 77 "C compiler cannot create executables
  3007. See \`config.log' for more details" "$LINENO" 5; }
  3008. else
  3009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3010. $as_echo "yes" >&6; }
  3011. fi
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3013. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3015. $as_echo "$ac_file" >&6; }
  3016. ac_exeext=$ac_cv_exeext
  3017. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3018. ac_clean_files=$ac_clean_files_save
  3019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3020. $as_echo_n "checking for suffix of executables... " >&6; }
  3021. if { { ac_try="$ac_link"
  3022. case "(($ac_try" in
  3023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3024. *) ac_try_echo=$ac_try;;
  3025. esac
  3026. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3027. $as_echo "$ac_try_echo"; } >&5
  3028. (eval "$ac_link") 2>&5
  3029. ac_status=$?
  3030. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3031. test $ac_status = 0; }; then :
  3032. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3033. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3034. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3035. # `rm'.
  3036. for ac_file in conftest.exe conftest conftest.*; do
  3037. test -f "$ac_file" || continue
  3038. case $ac_file in
  3039. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3040. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3041. break;;
  3042. * ) break;;
  3043. esac
  3044. done
  3045. else
  3046. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3047. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3048. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3049. See \`config.log' for more details" "$LINENO" 5; }
  3050. fi
  3051. rm -f conftest conftest$ac_cv_exeext
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3053. $as_echo "$ac_cv_exeext" >&6; }
  3054. rm -f conftest.$ac_ext
  3055. EXEEXT=$ac_cv_exeext
  3056. ac_exeext=$EXEEXT
  3057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3058. /* end confdefs.h. */
  3059. #include <stdio.h>
  3060. int
  3061. main ()
  3062. {
  3063. FILE *f = fopen ("conftest.out", "w");
  3064. return ferror (f) || fclose (f) != 0;
  3065. ;
  3066. return 0;
  3067. }
  3068. _ACEOF
  3069. ac_clean_files="$ac_clean_files conftest.out"
  3070. # Check that the compiler produces executables we can run. If not, either
  3071. # the compiler is broken, or we cross compile.
  3072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3073. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3074. if test "$cross_compiling" != yes; then
  3075. { { ac_try="$ac_link"
  3076. case "(($ac_try" in
  3077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3078. *) ac_try_echo=$ac_try;;
  3079. esac
  3080. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3081. $as_echo "$ac_try_echo"; } >&5
  3082. (eval "$ac_link") 2>&5
  3083. ac_status=$?
  3084. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3085. test $ac_status = 0; }
  3086. if { ac_try='./conftest$ac_cv_exeext'
  3087. { { case "(($ac_try" in
  3088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3089. *) ac_try_echo=$ac_try;;
  3090. esac
  3091. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3092. $as_echo "$ac_try_echo"; } >&5
  3093. (eval "$ac_try") 2>&5
  3094. ac_status=$?
  3095. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3096. test $ac_status = 0; }; }; then
  3097. cross_compiling=no
  3098. else
  3099. if test "$cross_compiling" = maybe; then
  3100. cross_compiling=yes
  3101. else
  3102. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3103. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3104. as_fn_error $? "cannot run C compiled programs.
  3105. If you meant to cross compile, use \`--host'.
  3106. See \`config.log' for more details" "$LINENO" 5; }
  3107. fi
  3108. fi
  3109. fi
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3111. $as_echo "$cross_compiling" >&6; }
  3112. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3113. ac_clean_files=$ac_clean_files_save
  3114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3115. $as_echo_n "checking for suffix of object files... " >&6; }
  3116. if ${ac_cv_objext+:} false; then :
  3117. $as_echo_n "(cached) " >&6
  3118. else
  3119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3120. /* end confdefs.h. */
  3121. int
  3122. main ()
  3123. {
  3124. ;
  3125. return 0;
  3126. }
  3127. _ACEOF
  3128. rm -f conftest.o conftest.obj
  3129. if { { ac_try="$ac_compile"
  3130. case "(($ac_try" in
  3131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3132. *) ac_try_echo=$ac_try;;
  3133. esac
  3134. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3135. $as_echo "$ac_try_echo"; } >&5
  3136. (eval "$ac_compile") 2>&5
  3137. ac_status=$?
  3138. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3139. test $ac_status = 0; }; then :
  3140. for ac_file in conftest.o conftest.obj conftest.*; do
  3141. test -f "$ac_file" || continue;
  3142. case $ac_file in
  3143. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3144. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3145. break;;
  3146. esac
  3147. done
  3148. else
  3149. $as_echo "$as_me: failed program was:" >&5
  3150. sed 's/^/| /' conftest.$ac_ext >&5
  3151. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3152. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3153. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3154. See \`config.log' for more details" "$LINENO" 5; }
  3155. fi
  3156. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3157. fi
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3159. $as_echo "$ac_cv_objext" >&6; }
  3160. OBJEXT=$ac_cv_objext
  3161. ac_objext=$OBJEXT
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3163. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3164. if ${ac_cv_c_compiler_gnu+:} false; then :
  3165. $as_echo_n "(cached) " >&6
  3166. else
  3167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3168. /* end confdefs.h. */
  3169. int
  3170. main ()
  3171. {
  3172. #ifndef __GNUC__
  3173. choke me
  3174. #endif
  3175. ;
  3176. return 0;
  3177. }
  3178. _ACEOF
  3179. if ac_fn_c_try_compile "$LINENO"; then :
  3180. ac_compiler_gnu=yes
  3181. else
  3182. ac_compiler_gnu=no
  3183. fi
  3184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3185. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3186. fi
  3187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3188. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3189. if test $ac_compiler_gnu = yes; then
  3190. GCC=yes
  3191. else
  3192. GCC=
  3193. fi
  3194. ac_test_CFLAGS=${CFLAGS+set}
  3195. ac_save_CFLAGS=$CFLAGS
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3197. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3198. if ${ac_cv_prog_cc_g+:} false; then :
  3199. $as_echo_n "(cached) " >&6
  3200. else
  3201. ac_save_c_werror_flag=$ac_c_werror_flag
  3202. ac_c_werror_flag=yes
  3203. ac_cv_prog_cc_g=no
  3204. CFLAGS="-g"
  3205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3206. /* end confdefs.h. */
  3207. int
  3208. main ()
  3209. {
  3210. ;
  3211. return 0;
  3212. }
  3213. _ACEOF
  3214. if ac_fn_c_try_compile "$LINENO"; then :
  3215. ac_cv_prog_cc_g=yes
  3216. else
  3217. CFLAGS=""
  3218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3219. /* end confdefs.h. */
  3220. int
  3221. main ()
  3222. {
  3223. ;
  3224. return 0;
  3225. }
  3226. _ACEOF
  3227. if ac_fn_c_try_compile "$LINENO"; then :
  3228. else
  3229. ac_c_werror_flag=$ac_save_c_werror_flag
  3230. CFLAGS="-g"
  3231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3232. /* end confdefs.h. */
  3233. int
  3234. main ()
  3235. {
  3236. ;
  3237. return 0;
  3238. }
  3239. _ACEOF
  3240. if ac_fn_c_try_compile "$LINENO"; then :
  3241. ac_cv_prog_cc_g=yes
  3242. fi
  3243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3244. fi
  3245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3246. fi
  3247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3248. ac_c_werror_flag=$ac_save_c_werror_flag
  3249. fi
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3251. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3252. if test "$ac_test_CFLAGS" = set; then
  3253. CFLAGS=$ac_save_CFLAGS
  3254. elif test $ac_cv_prog_cc_g = yes; then
  3255. if test "$GCC" = yes; then
  3256. CFLAGS="-g -O2"
  3257. else
  3258. CFLAGS="-g"
  3259. fi
  3260. else
  3261. if test "$GCC" = yes; then
  3262. CFLAGS="-O2"
  3263. else
  3264. CFLAGS=
  3265. fi
  3266. fi
  3267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3268. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3269. if ${ac_cv_prog_cc_c89+:} false; then :
  3270. $as_echo_n "(cached) " >&6
  3271. else
  3272. ac_cv_prog_cc_c89=no
  3273. ac_save_CC=$CC
  3274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3275. /* end confdefs.h. */
  3276. #include <stdarg.h>
  3277. #include <stdio.h>
  3278. struct stat;
  3279. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3280. struct buf { int x; };
  3281. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3282. static char *e (p, i)
  3283. char **p;
  3284. int i;
  3285. {
  3286. return p[i];
  3287. }
  3288. static char *f (char * (*g) (char **, int), char **p, ...)
  3289. {
  3290. char *s;
  3291. va_list v;
  3292. va_start (v,p);
  3293. s = g (p, va_arg (v,int));
  3294. va_end (v);
  3295. return s;
  3296. }
  3297. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3298. function prototypes and stuff, but not '\xHH' hex character constants.
  3299. These don't provoke an error unfortunately, instead are silently treated
  3300. as 'x'. The following induces an error, until -std is added to get
  3301. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3302. array size at least. It's necessary to write '\x00'==0 to get something
  3303. that's true only with -std. */
  3304. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3305. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3306. inside strings and character constants. */
  3307. #define FOO(x) 'x'
  3308. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3309. int test (int i, double x);
  3310. struct s1 {int (*f) (int a);};
  3311. struct s2 {int (*f) (double a);};
  3312. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3313. int argc;
  3314. char **argv;
  3315. int
  3316. main ()
  3317. {
  3318. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3319. ;
  3320. return 0;
  3321. }
  3322. _ACEOF
  3323. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3324. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3325. do
  3326. CC="$ac_save_CC $ac_arg"
  3327. if ac_fn_c_try_compile "$LINENO"; then :
  3328. ac_cv_prog_cc_c89=$ac_arg
  3329. fi
  3330. rm -f core conftest.err conftest.$ac_objext
  3331. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3332. done
  3333. rm -f conftest.$ac_ext
  3334. CC=$ac_save_CC
  3335. fi
  3336. # AC_CACHE_VAL
  3337. case "x$ac_cv_prog_cc_c89" in
  3338. x)
  3339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3340. $as_echo "none needed" >&6; } ;;
  3341. xno)
  3342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3343. $as_echo "unsupported" >&6; } ;;
  3344. *)
  3345. CC="$CC $ac_cv_prog_cc_c89"
  3346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3347. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3348. esac
  3349. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3350. fi
  3351. ac_ext=c
  3352. ac_cpp='$CPP $CPPFLAGS'
  3353. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3354. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3355. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3357. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3358. if ${ac_cv_path_SED+:} false; then :
  3359. $as_echo_n "(cached) " >&6
  3360. else
  3361. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3362. for ac_i in 1 2 3 4 5 6 7; do
  3363. ac_script="$ac_script$as_nl$ac_script"
  3364. done
  3365. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3366. { ac_script=; unset ac_script;}
  3367. if test -z "$SED"; then
  3368. ac_path_SED_found=false
  3369. # Loop through the user's path and test for each of PROGNAME-LIST
  3370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3371. for as_dir in $PATH
  3372. do
  3373. IFS=$as_save_IFS
  3374. test -z "$as_dir" && as_dir=.
  3375. for ac_prog in sed gsed; do
  3376. for ac_exec_ext in '' $ac_executable_extensions; do
  3377. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3378. as_fn_executable_p "$ac_path_SED" || continue
  3379. # Check for GNU ac_path_SED and select it if it is found.
  3380. # Check for GNU $ac_path_SED
  3381. case `"$ac_path_SED" --version 2>&1` in
  3382. *GNU*)
  3383. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3384. *)
  3385. ac_count=0
  3386. $as_echo_n 0123456789 >"conftest.in"
  3387. while :
  3388. do
  3389. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3390. mv "conftest.tmp" "conftest.in"
  3391. cp "conftest.in" "conftest.nl"
  3392. $as_echo '' >> "conftest.nl"
  3393. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3394. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3395. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3396. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3397. # Best one so far, save it but keep looking for a better one
  3398. ac_cv_path_SED="$ac_path_SED"
  3399. ac_path_SED_max=$ac_count
  3400. fi
  3401. # 10*(2^10) chars as input seems more than enough
  3402. test $ac_count -gt 10 && break
  3403. done
  3404. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3405. esac
  3406. $ac_path_SED_found && break 3
  3407. done
  3408. done
  3409. done
  3410. IFS=$as_save_IFS
  3411. if test -z "$ac_cv_path_SED"; then
  3412. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3413. fi
  3414. else
  3415. ac_cv_path_SED=$SED
  3416. fi
  3417. fi
  3418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3419. $as_echo "$ac_cv_path_SED" >&6; }
  3420. SED="$ac_cv_path_SED"
  3421. rm -f conftest.sed
  3422. test -z "$SED" && SED=sed
  3423. Xsed="$SED -e 1s/^X//"
  3424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3425. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3426. if ${ac_cv_path_GREP+:} false; then :
  3427. $as_echo_n "(cached) " >&6
  3428. else
  3429. if test -z "$GREP"; then
  3430. ac_path_GREP_found=false
  3431. # Loop through the user's path and test for each of PROGNAME-LIST
  3432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3433. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3434. do
  3435. IFS=$as_save_IFS
  3436. test -z "$as_dir" && as_dir=.
  3437. for ac_prog in grep ggrep; do
  3438. for ac_exec_ext in '' $ac_executable_extensions; do
  3439. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3440. as_fn_executable_p "$ac_path_GREP" || continue
  3441. # Check for GNU ac_path_GREP and select it if it is found.
  3442. # Check for GNU $ac_path_GREP
  3443. case `"$ac_path_GREP" --version 2>&1` in
  3444. *GNU*)
  3445. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3446. *)
  3447. ac_count=0
  3448. $as_echo_n 0123456789 >"conftest.in"
  3449. while :
  3450. do
  3451. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3452. mv "conftest.tmp" "conftest.in"
  3453. cp "conftest.in" "conftest.nl"
  3454. $as_echo 'GREP' >> "conftest.nl"
  3455. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3456. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3457. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3458. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3459. # Best one so far, save it but keep looking for a better one
  3460. ac_cv_path_GREP="$ac_path_GREP"
  3461. ac_path_GREP_max=$ac_count
  3462. fi
  3463. # 10*(2^10) chars as input seems more than enough
  3464. test $ac_count -gt 10 && break
  3465. done
  3466. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3467. esac
  3468. $ac_path_GREP_found && break 3
  3469. done
  3470. done
  3471. done
  3472. IFS=$as_save_IFS
  3473. if test -z "$ac_cv_path_GREP"; then
  3474. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3475. fi
  3476. else
  3477. ac_cv_path_GREP=$GREP
  3478. fi
  3479. fi
  3480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3481. $as_echo "$ac_cv_path_GREP" >&6; }
  3482. GREP="$ac_cv_path_GREP"
  3483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3484. $as_echo_n "checking for egrep... " >&6; }
  3485. if ${ac_cv_path_EGREP+:} false; then :
  3486. $as_echo_n "(cached) " >&6
  3487. else
  3488. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3489. then ac_cv_path_EGREP="$GREP -E"
  3490. else
  3491. if test -z "$EGREP"; then
  3492. ac_path_EGREP_found=false
  3493. # Loop through the user's path and test for each of PROGNAME-LIST
  3494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3495. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3496. do
  3497. IFS=$as_save_IFS
  3498. test -z "$as_dir" && as_dir=.
  3499. for ac_prog in egrep; do
  3500. for ac_exec_ext in '' $ac_executable_extensions; do
  3501. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3502. as_fn_executable_p "$ac_path_EGREP" || continue
  3503. # Check for GNU ac_path_EGREP and select it if it is found.
  3504. # Check for GNU $ac_path_EGREP
  3505. case `"$ac_path_EGREP" --version 2>&1` in
  3506. *GNU*)
  3507. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3508. *)
  3509. ac_count=0
  3510. $as_echo_n 0123456789 >"conftest.in"
  3511. while :
  3512. do
  3513. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3514. mv "conftest.tmp" "conftest.in"
  3515. cp "conftest.in" "conftest.nl"
  3516. $as_echo 'EGREP' >> "conftest.nl"
  3517. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3518. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3519. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3520. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3521. # Best one so far, save it but keep looking for a better one
  3522. ac_cv_path_EGREP="$ac_path_EGREP"
  3523. ac_path_EGREP_max=$ac_count
  3524. fi
  3525. # 10*(2^10) chars as input seems more than enough
  3526. test $ac_count -gt 10 && break
  3527. done
  3528. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3529. esac
  3530. $ac_path_EGREP_found && break 3
  3531. done
  3532. done
  3533. done
  3534. IFS=$as_save_IFS
  3535. if test -z "$ac_cv_path_EGREP"; then
  3536. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3537. fi
  3538. else
  3539. ac_cv_path_EGREP=$EGREP
  3540. fi
  3541. fi
  3542. fi
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3544. $as_echo "$ac_cv_path_EGREP" >&6; }
  3545. EGREP="$ac_cv_path_EGREP"
  3546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3547. $as_echo_n "checking for fgrep... " >&6; }
  3548. if ${ac_cv_path_FGREP+:} false; then :
  3549. $as_echo_n "(cached) " >&6
  3550. else
  3551. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3552. then ac_cv_path_FGREP="$GREP -F"
  3553. else
  3554. if test -z "$FGREP"; then
  3555. ac_path_FGREP_found=false
  3556. # Loop through the user's path and test for each of PROGNAME-LIST
  3557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3558. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3559. do
  3560. IFS=$as_save_IFS
  3561. test -z "$as_dir" && as_dir=.
  3562. for ac_prog in fgrep; do
  3563. for ac_exec_ext in '' $ac_executable_extensions; do
  3564. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3565. as_fn_executable_p "$ac_path_FGREP" || continue
  3566. # Check for GNU ac_path_FGREP and select it if it is found.
  3567. # Check for GNU $ac_path_FGREP
  3568. case `"$ac_path_FGREP" --version 2>&1` in
  3569. *GNU*)
  3570. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3571. *)
  3572. ac_count=0
  3573. $as_echo_n 0123456789 >"conftest.in"
  3574. while :
  3575. do
  3576. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3577. mv "conftest.tmp" "conftest.in"
  3578. cp "conftest.in" "conftest.nl"
  3579. $as_echo 'FGREP' >> "conftest.nl"
  3580. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3581. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3582. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3583. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3584. # Best one so far, save it but keep looking for a better one
  3585. ac_cv_path_FGREP="$ac_path_FGREP"
  3586. ac_path_FGREP_max=$ac_count
  3587. fi
  3588. # 10*(2^10) chars as input seems more than enough
  3589. test $ac_count -gt 10 && break
  3590. done
  3591. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3592. esac
  3593. $ac_path_FGREP_found && break 3
  3594. done
  3595. done
  3596. done
  3597. IFS=$as_save_IFS
  3598. if test -z "$ac_cv_path_FGREP"; then
  3599. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3600. fi
  3601. else
  3602. ac_cv_path_FGREP=$FGREP
  3603. fi
  3604. fi
  3605. fi
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3607. $as_echo "$ac_cv_path_FGREP" >&6; }
  3608. FGREP="$ac_cv_path_FGREP"
  3609. test -z "$GREP" && GREP=grep
  3610. # Check whether --with-gnu-ld was given.
  3611. if test "${with_gnu_ld+set}" = set; then :
  3612. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3613. else
  3614. with_gnu_ld=no
  3615. fi
  3616. ac_prog=ld
  3617. if test "$GCC" = yes; then
  3618. # Check if gcc -print-prog-name=ld gives a path.
  3619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3620. $as_echo_n "checking for ld used by $CC... " >&6; }
  3621. case $host in
  3622. *-*-mingw*)
  3623. # gcc leaves a trailing carriage return which upsets mingw
  3624. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3625. *)
  3626. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3627. esac
  3628. case $ac_prog in
  3629. # Accept absolute paths.
  3630. [\\/]* | ?:[\\/]*)
  3631. re_direlt='/[^/][^/]*/\.\./'
  3632. # Canonicalize the pathname of ld
  3633. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3634. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3635. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3636. done
  3637. test -z "$LD" && LD="$ac_prog"
  3638. ;;
  3639. "")
  3640. # If it fails, then pretend we aren't using GCC.
  3641. ac_prog=ld
  3642. ;;
  3643. *)
  3644. # If it is relative, then search for the first ld in PATH.
  3645. with_gnu_ld=unknown
  3646. ;;
  3647. esac
  3648. elif test "$with_gnu_ld" = yes; then
  3649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3650. $as_echo_n "checking for GNU ld... " >&6; }
  3651. else
  3652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3653. $as_echo_n "checking for non-GNU ld... " >&6; }
  3654. fi
  3655. if ${lt_cv_path_LD+:} false; then :
  3656. $as_echo_n "(cached) " >&6
  3657. else
  3658. if test -z "$LD"; then
  3659. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3660. for ac_dir in $PATH; do
  3661. IFS="$lt_save_ifs"
  3662. test -z "$ac_dir" && ac_dir=.
  3663. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3664. lt_cv_path_LD="$ac_dir/$ac_prog"
  3665. # Check to see if the program is GNU ld. I'd rather use --version,
  3666. # but apparently some variants of GNU ld only accept -v.
  3667. # Break only if it was the GNU/non-GNU ld that we prefer.
  3668. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3669. *GNU* | *'with BFD'*)
  3670. test "$with_gnu_ld" != no && break
  3671. ;;
  3672. *)
  3673. test "$with_gnu_ld" != yes && break
  3674. ;;
  3675. esac
  3676. fi
  3677. done
  3678. IFS="$lt_save_ifs"
  3679. else
  3680. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3681. fi
  3682. fi
  3683. LD="$lt_cv_path_LD"
  3684. if test -n "$LD"; then
  3685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3686. $as_echo "$LD" >&6; }
  3687. else
  3688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3689. $as_echo "no" >&6; }
  3690. fi
  3691. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3693. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3694. if ${lt_cv_prog_gnu_ld+:} false; then :
  3695. $as_echo_n "(cached) " >&6
  3696. else
  3697. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3698. case `$LD -v 2>&1 </dev/null` in
  3699. *GNU* | *'with BFD'*)
  3700. lt_cv_prog_gnu_ld=yes
  3701. ;;
  3702. *)
  3703. lt_cv_prog_gnu_ld=no
  3704. ;;
  3705. esac
  3706. fi
  3707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3708. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3709. with_gnu_ld=$lt_cv_prog_gnu_ld
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3711. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3712. if ${lt_cv_path_NM+:} false; then :
  3713. $as_echo_n "(cached) " >&6
  3714. else
  3715. if test -n "$NM"; then
  3716. # Let the user override the test.
  3717. lt_cv_path_NM="$NM"
  3718. else
  3719. lt_nm_to_check="${ac_tool_prefix}nm"
  3720. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3721. lt_nm_to_check="$lt_nm_to_check nm"
  3722. fi
  3723. for lt_tmp_nm in $lt_nm_to_check; do
  3724. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3725. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3726. IFS="$lt_save_ifs"
  3727. test -z "$ac_dir" && ac_dir=.
  3728. tmp_nm="$ac_dir/$lt_tmp_nm"
  3729. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3730. # Check to see if the nm accepts a BSD-compat flag.
  3731. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3732. # nm: unknown option "B" ignored
  3733. # Tru64's nm complains that /dev/null is an invalid object file
  3734. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3735. */dev/null* | *'Invalid file or object type'*)
  3736. lt_cv_path_NM="$tmp_nm -B"
  3737. break
  3738. ;;
  3739. *)
  3740. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3741. */dev/null*)
  3742. lt_cv_path_NM="$tmp_nm -p"
  3743. break
  3744. ;;
  3745. *)
  3746. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3747. continue # so that we can try to find one that supports BSD flags
  3748. ;;
  3749. esac
  3750. ;;
  3751. esac
  3752. fi
  3753. done
  3754. IFS="$lt_save_ifs"
  3755. done
  3756. : ${lt_cv_path_NM=no}
  3757. fi
  3758. fi
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3760. $as_echo "$lt_cv_path_NM" >&6; }
  3761. if test "$lt_cv_path_NM" != "no"; then
  3762. NM="$lt_cv_path_NM"
  3763. else
  3764. # Didn't find any BSD compatible name lister, look for dumpbin.
  3765. if test -n "$DUMPBIN"; then :
  3766. # Let the user override the test.
  3767. else
  3768. if test -n "$ac_tool_prefix"; then
  3769. for ac_prog in dumpbin "link -dump"
  3770. do
  3771. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3772. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3774. $as_echo_n "checking for $ac_word... " >&6; }
  3775. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3776. $as_echo_n "(cached) " >&6
  3777. else
  3778. if test -n "$DUMPBIN"; then
  3779. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3780. else
  3781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3782. for as_dir in $PATH
  3783. do
  3784. IFS=$as_save_IFS
  3785. test -z "$as_dir" && as_dir=.
  3786. for ac_exec_ext in '' $ac_executable_extensions; do
  3787. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3788. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3790. break 2
  3791. fi
  3792. done
  3793. done
  3794. IFS=$as_save_IFS
  3795. fi
  3796. fi
  3797. DUMPBIN=$ac_cv_prog_DUMPBIN
  3798. if test -n "$DUMPBIN"; then
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3800. $as_echo "$DUMPBIN" >&6; }
  3801. else
  3802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3803. $as_echo "no" >&6; }
  3804. fi
  3805. test -n "$DUMPBIN" && break
  3806. done
  3807. fi
  3808. if test -z "$DUMPBIN"; then
  3809. ac_ct_DUMPBIN=$DUMPBIN
  3810. for ac_prog in dumpbin "link -dump"
  3811. do
  3812. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3813. set dummy $ac_prog; ac_word=$2
  3814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3815. $as_echo_n "checking for $ac_word... " >&6; }
  3816. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3817. $as_echo_n "(cached) " >&6
  3818. else
  3819. if test -n "$ac_ct_DUMPBIN"; then
  3820. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3821. else
  3822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3823. for as_dir in $PATH
  3824. do
  3825. IFS=$as_save_IFS
  3826. test -z "$as_dir" && as_dir=.
  3827. for ac_exec_ext in '' $ac_executable_extensions; do
  3828. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3829. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3831. break 2
  3832. fi
  3833. done
  3834. done
  3835. IFS=$as_save_IFS
  3836. fi
  3837. fi
  3838. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3839. if test -n "$ac_ct_DUMPBIN"; then
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3841. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3842. else
  3843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3844. $as_echo "no" >&6; }
  3845. fi
  3846. test -n "$ac_ct_DUMPBIN" && break
  3847. done
  3848. if test "x$ac_ct_DUMPBIN" = x; then
  3849. DUMPBIN=":"
  3850. else
  3851. case $cross_compiling:$ac_tool_warned in
  3852. yes:)
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3854. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3855. ac_tool_warned=yes ;;
  3856. esac
  3857. DUMPBIN=$ac_ct_DUMPBIN
  3858. fi
  3859. fi
  3860. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3861. *COFF*)
  3862. DUMPBIN="$DUMPBIN -symbols"
  3863. ;;
  3864. *)
  3865. DUMPBIN=:
  3866. ;;
  3867. esac
  3868. fi
  3869. if test "$DUMPBIN" != ":"; then
  3870. NM="$DUMPBIN"
  3871. fi
  3872. fi
  3873. test -z "$NM" && NM=nm
  3874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3875. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3876. if ${lt_cv_nm_interface+:} false; then :
  3877. $as_echo_n "(cached) " >&6
  3878. else
  3879. lt_cv_nm_interface="BSD nm"
  3880. echo "int some_variable = 0;" > conftest.$ac_ext
  3881. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3882. (eval "$ac_compile" 2>conftest.err)
  3883. cat conftest.err >&5
  3884. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3885. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3886. cat conftest.err >&5
  3887. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3888. cat conftest.out >&5
  3889. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3890. lt_cv_nm_interface="MS dumpbin"
  3891. fi
  3892. rm -f conftest*
  3893. fi
  3894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3895. $as_echo "$lt_cv_nm_interface" >&6; }
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3897. $as_echo_n "checking whether ln -s works... " >&6; }
  3898. LN_S=$as_ln_s
  3899. if test "$LN_S" = "ln -s"; then
  3900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3901. $as_echo "yes" >&6; }
  3902. else
  3903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3904. $as_echo "no, using $LN_S" >&6; }
  3905. fi
  3906. # find the maximum length of command line arguments
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3908. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3909. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3910. $as_echo_n "(cached) " >&6
  3911. else
  3912. i=0
  3913. teststring="ABCD"
  3914. case $build_os in
  3915. msdosdjgpp*)
  3916. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3917. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3918. # during glob expansion). Even if it were fixed, the result of this
  3919. # check would be larger than it should be.
  3920. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3921. ;;
  3922. gnu*)
  3923. # Under GNU Hurd, this test is not required because there is
  3924. # no limit to the length of command line arguments.
  3925. # Libtool will interpret -1 as no limit whatsoever
  3926. lt_cv_sys_max_cmd_len=-1;
  3927. ;;
  3928. cygwin* | mingw* | cegcc*)
  3929. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3930. # about 5 minutes as the teststring grows exponentially.
  3931. # Worse, since 9x/ME are not pre-emptively multitasking,
  3932. # you end up with a "frozen" computer, even though with patience
  3933. # the test eventually succeeds (with a max line length of 256k).
  3934. # Instead, let's just punt: use the minimum linelength reported by
  3935. # all of the supported platforms: 8192 (on NT/2K/XP).
  3936. lt_cv_sys_max_cmd_len=8192;
  3937. ;;
  3938. mint*)
  3939. # On MiNT this can take a long time and run out of memory.
  3940. lt_cv_sys_max_cmd_len=8192;
  3941. ;;
  3942. amigaos*)
  3943. # On AmigaOS with pdksh, this test takes hours, literally.
  3944. # So we just punt and use a minimum line length of 8192.
  3945. lt_cv_sys_max_cmd_len=8192;
  3946. ;;
  3947. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3948. # This has been around since 386BSD, at least. Likely further.
  3949. if test -x /sbin/sysctl; then
  3950. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3951. elif test -x /usr/sbin/sysctl; then
  3952. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3953. else
  3954. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3955. fi
  3956. # And add a safety zone
  3957. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3958. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3959. ;;
  3960. interix*)
  3961. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3962. lt_cv_sys_max_cmd_len=196608
  3963. ;;
  3964. os2*)
  3965. # The test takes a long time on OS/2.
  3966. lt_cv_sys_max_cmd_len=8192
  3967. ;;
  3968. osf*)
  3969. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3970. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3971. # nice to cause kernel panics so lets avoid the loop below.
  3972. # First set a reasonable default.
  3973. lt_cv_sys_max_cmd_len=16384
  3974. #
  3975. if test -x /sbin/sysconfig; then
  3976. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3977. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3978. esac
  3979. fi
  3980. ;;
  3981. sco3.2v5*)
  3982. lt_cv_sys_max_cmd_len=102400
  3983. ;;
  3984. sysv5* | sco5v6* | sysv4.2uw2*)
  3985. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3986. if test -n "$kargmax"; then
  3987. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3988. else
  3989. lt_cv_sys_max_cmd_len=32768
  3990. fi
  3991. ;;
  3992. *)
  3993. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3994. if test -n "$lt_cv_sys_max_cmd_len"; then
  3995. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3996. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3997. else
  3998. # Make teststring a little bigger before we do anything with it.
  3999. # a 1K string should be a reasonable start.
  4000. for i in 1 2 3 4 5 6 7 8 ; do
  4001. teststring=$teststring$teststring
  4002. done
  4003. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4004. # If test is not a shell built-in, we'll probably end up computing a
  4005. # maximum length that is only half of the actual maximum length, but
  4006. # we can't tell.
  4007. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4008. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4009. test $i != 17 # 1/2 MB should be enough
  4010. do
  4011. i=`expr $i + 1`
  4012. teststring=$teststring$teststring
  4013. done
  4014. # Only check the string length outside the loop.
  4015. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4016. teststring=
  4017. # Add a significant safety factor because C++ compilers can tack on
  4018. # massive amounts of additional arguments before passing them to the
  4019. # linker. It appears as though 1/2 is a usable value.
  4020. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4021. fi
  4022. ;;
  4023. esac
  4024. fi
  4025. if test -n $lt_cv_sys_max_cmd_len ; then
  4026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4027. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4028. else
  4029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4030. $as_echo "none" >&6; }
  4031. fi
  4032. max_cmd_len=$lt_cv_sys_max_cmd_len
  4033. : ${CP="cp -f"}
  4034. : ${MV="mv -f"}
  4035. : ${RM="rm -f"}
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4037. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4038. # Try some XSI features
  4039. xsi_shell=no
  4040. ( _lt_dummy="a/b/c"
  4041. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4042. = c,a/b,b/c, \
  4043. && eval 'test $(( 1 + 1 )) -eq 2 \
  4044. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4045. && xsi_shell=yes
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4047. $as_echo "$xsi_shell" >&6; }
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4049. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4050. lt_shell_append=no
  4051. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4052. >/dev/null 2>&1 \
  4053. && lt_shell_append=yes
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4055. $as_echo "$lt_shell_append" >&6; }
  4056. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4057. lt_unset=unset
  4058. else
  4059. lt_unset=false
  4060. fi
  4061. # test EBCDIC or ASCII
  4062. case `echo X|tr X '\101'` in
  4063. A) # ASCII based system
  4064. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4065. lt_SP2NL='tr \040 \012'
  4066. lt_NL2SP='tr \015\012 \040\040'
  4067. ;;
  4068. *) # EBCDIC based system
  4069. lt_SP2NL='tr \100 \n'
  4070. lt_NL2SP='tr \r\n \100\100'
  4071. ;;
  4072. esac
  4073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4074. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4075. if ${lt_cv_to_host_file_cmd+:} false; then :
  4076. $as_echo_n "(cached) " >&6
  4077. else
  4078. case $host in
  4079. *-*-mingw* )
  4080. case $build in
  4081. *-*-mingw* ) # actually msys
  4082. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4083. ;;
  4084. *-*-cygwin* )
  4085. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4086. ;;
  4087. * ) # otherwise, assume *nix
  4088. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4089. ;;
  4090. esac
  4091. ;;
  4092. *-*-cygwin* )
  4093. case $build in
  4094. *-*-mingw* ) # actually msys
  4095. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4096. ;;
  4097. *-*-cygwin* )
  4098. lt_cv_to_host_file_cmd=func_convert_file_noop
  4099. ;;
  4100. * ) # otherwise, assume *nix
  4101. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4102. ;;
  4103. esac
  4104. ;;
  4105. * ) # unhandled hosts (and "normal" native builds)
  4106. lt_cv_to_host_file_cmd=func_convert_file_noop
  4107. ;;
  4108. esac
  4109. fi
  4110. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4112. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4114. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4115. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4116. $as_echo_n "(cached) " >&6
  4117. else
  4118. #assume ordinary cross tools, or native build.
  4119. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4120. case $host in
  4121. *-*-mingw* )
  4122. case $build in
  4123. *-*-mingw* ) # actually msys
  4124. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4125. ;;
  4126. esac
  4127. ;;
  4128. esac
  4129. fi
  4130. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4132. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4134. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4135. if ${lt_cv_ld_reload_flag+:} false; then :
  4136. $as_echo_n "(cached) " >&6
  4137. else
  4138. lt_cv_ld_reload_flag='-r'
  4139. fi
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4141. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4142. reload_flag=$lt_cv_ld_reload_flag
  4143. case $reload_flag in
  4144. "" | " "*) ;;
  4145. *) reload_flag=" $reload_flag" ;;
  4146. esac
  4147. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4148. case $host_os in
  4149. cygwin* | mingw* | pw32* | cegcc*)
  4150. if test "$GCC" != yes; then
  4151. reload_cmds=false
  4152. fi
  4153. ;;
  4154. darwin*)
  4155. if test "$GCC" = yes; then
  4156. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4157. else
  4158. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4159. fi
  4160. ;;
  4161. esac
  4162. if test -n "$ac_tool_prefix"; then
  4163. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4164. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4166. $as_echo_n "checking for $ac_word... " >&6; }
  4167. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4168. $as_echo_n "(cached) " >&6
  4169. else
  4170. if test -n "$OBJDUMP"; then
  4171. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4172. else
  4173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4174. for as_dir in $PATH
  4175. do
  4176. IFS=$as_save_IFS
  4177. test -z "$as_dir" && as_dir=.
  4178. for ac_exec_ext in '' $ac_executable_extensions; do
  4179. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4180. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4181. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4182. break 2
  4183. fi
  4184. done
  4185. done
  4186. IFS=$as_save_IFS
  4187. fi
  4188. fi
  4189. OBJDUMP=$ac_cv_prog_OBJDUMP
  4190. if test -n "$OBJDUMP"; then
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4192. $as_echo "$OBJDUMP" >&6; }
  4193. else
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4195. $as_echo "no" >&6; }
  4196. fi
  4197. fi
  4198. if test -z "$ac_cv_prog_OBJDUMP"; then
  4199. ac_ct_OBJDUMP=$OBJDUMP
  4200. # Extract the first word of "objdump", so it can be a program name with args.
  4201. set dummy objdump; ac_word=$2
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4203. $as_echo_n "checking for $ac_word... " >&6; }
  4204. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4205. $as_echo_n "(cached) " >&6
  4206. else
  4207. if test -n "$ac_ct_OBJDUMP"; then
  4208. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4209. else
  4210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4211. for as_dir in $PATH
  4212. do
  4213. IFS=$as_save_IFS
  4214. test -z "$as_dir" && as_dir=.
  4215. for ac_exec_ext in '' $ac_executable_extensions; do
  4216. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4217. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4218. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4219. break 2
  4220. fi
  4221. done
  4222. done
  4223. IFS=$as_save_IFS
  4224. fi
  4225. fi
  4226. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4227. if test -n "$ac_ct_OBJDUMP"; then
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4229. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4230. else
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4232. $as_echo "no" >&6; }
  4233. fi
  4234. if test "x$ac_ct_OBJDUMP" = x; then
  4235. OBJDUMP="false"
  4236. else
  4237. case $cross_compiling:$ac_tool_warned in
  4238. yes:)
  4239. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4240. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4241. ac_tool_warned=yes ;;
  4242. esac
  4243. OBJDUMP=$ac_ct_OBJDUMP
  4244. fi
  4245. else
  4246. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4247. fi
  4248. test -z "$OBJDUMP" && OBJDUMP=objdump
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4250. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4251. if ${lt_cv_deplibs_check_method+:} false; then :
  4252. $as_echo_n "(cached) " >&6
  4253. else
  4254. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4255. lt_cv_file_magic_test_file=
  4256. lt_cv_deplibs_check_method='unknown'
  4257. # Need to set the preceding variable on all platforms that support
  4258. # interlibrary dependencies.
  4259. # 'none' -- dependencies not supported.
  4260. # `unknown' -- same as none, but documents that we really don't know.
  4261. # 'pass_all' -- all dependencies passed with no checks.
  4262. # 'test_compile' -- check by making test program.
  4263. # 'file_magic [[regex]]' -- check by looking for files in library path
  4264. # which responds to the $file_magic_cmd with a given extended regex.
  4265. # If you have `file' or equivalent on your system and you're not sure
  4266. # whether `pass_all' will *always* work, you probably want this one.
  4267. case $host_os in
  4268. aix[4-9]*)
  4269. lt_cv_deplibs_check_method=pass_all
  4270. ;;
  4271. beos*)
  4272. lt_cv_deplibs_check_method=pass_all
  4273. ;;
  4274. bsdi[45]*)
  4275. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4276. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4277. lt_cv_file_magic_test_file=/shlib/libc.so
  4278. ;;
  4279. cygwin*)
  4280. # func_win32_libid is a shell function defined in ltmain.sh
  4281. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4282. lt_cv_file_magic_cmd='func_win32_libid'
  4283. lt_cv_deplibs_check_method=pass_all
  4284. ;;
  4285. mingw* | pw32*)
  4286. # Base MSYS/MinGW do not provide the 'file' command needed by
  4287. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4288. # unless we find 'file', for example because we are cross-compiling.
  4289. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4290. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4291. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4292. lt_cv_file_magic_cmd='func_win32_libid'
  4293. else
  4294. # Keep this pattern in sync with the one in func_win32_libid.
  4295. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4296. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4297. fi
  4298. lt_cv_deplibs_check_method=pass_all
  4299. ;;
  4300. cegcc*)
  4301. # use the weaker test based on 'objdump'. See mingw*.
  4302. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4303. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4304. ;;
  4305. darwin* | rhapsody*)
  4306. lt_cv_deplibs_check_method=pass_all
  4307. ;;
  4308. freebsd* | dragonfly*)
  4309. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4310. case $host_cpu in
  4311. i*86 )
  4312. # Not sure whether the presence of OpenBSD here was a mistake.
  4313. # Let's accept both of them until this is cleared up.
  4314. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4315. lt_cv_file_magic_cmd=/usr/bin/file
  4316. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4317. ;;
  4318. esac
  4319. else
  4320. lt_cv_deplibs_check_method=pass_all
  4321. fi
  4322. ;;
  4323. gnu*)
  4324. lt_cv_deplibs_check_method=pass_all
  4325. ;;
  4326. haiku*)
  4327. lt_cv_deplibs_check_method=pass_all
  4328. ;;
  4329. hpux10.20* | hpux11*)
  4330. lt_cv_file_magic_cmd=/usr/bin/file
  4331. case $host_cpu in
  4332. ia64*)
  4333. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4334. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4335. ;;
  4336. hppa*64*)
  4337. 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]'
  4338. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4339. ;;
  4340. *)
  4341. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4342. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4343. ;;
  4344. esac
  4345. ;;
  4346. interix[3-9]*)
  4347. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4348. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4349. ;;
  4350. irix5* | irix6* | nonstopux*)
  4351. case $LD in
  4352. *-32|*"-32 ") libmagic=32-bit;;
  4353. *-n32|*"-n32 ") libmagic=N32;;
  4354. *-64|*"-64 ") libmagic=64-bit;;
  4355. *) libmagic=never-match;;
  4356. esac
  4357. lt_cv_deplibs_check_method=pass_all
  4358. ;;
  4359. # This must be glibc/ELF.
  4360. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4361. lt_cv_deplibs_check_method=pass_all
  4362. ;;
  4363. netbsd*)
  4364. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4365. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4366. else
  4367. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4368. fi
  4369. ;;
  4370. newos6*)
  4371. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4372. lt_cv_file_magic_cmd=/usr/bin/file
  4373. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4374. ;;
  4375. *nto* | *qnx*)
  4376. lt_cv_deplibs_check_method=pass_all
  4377. ;;
  4378. openbsd*)
  4379. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4380. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4381. else
  4382. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4383. fi
  4384. ;;
  4385. osf3* | osf4* | osf5*)
  4386. lt_cv_deplibs_check_method=pass_all
  4387. ;;
  4388. rdos*)
  4389. lt_cv_deplibs_check_method=pass_all
  4390. ;;
  4391. solaris*)
  4392. lt_cv_deplibs_check_method=pass_all
  4393. ;;
  4394. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4395. lt_cv_deplibs_check_method=pass_all
  4396. ;;
  4397. sysv4 | sysv4.3*)
  4398. case $host_vendor in
  4399. motorola)
  4400. 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]'
  4401. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4402. ;;
  4403. ncr)
  4404. lt_cv_deplibs_check_method=pass_all
  4405. ;;
  4406. sequent)
  4407. lt_cv_file_magic_cmd='/bin/file'
  4408. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4409. ;;
  4410. sni)
  4411. lt_cv_file_magic_cmd='/bin/file'
  4412. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4413. lt_cv_file_magic_test_file=/lib/libc.so
  4414. ;;
  4415. siemens)
  4416. lt_cv_deplibs_check_method=pass_all
  4417. ;;
  4418. pc)
  4419. lt_cv_deplibs_check_method=pass_all
  4420. ;;
  4421. esac
  4422. ;;
  4423. tpf*)
  4424. lt_cv_deplibs_check_method=pass_all
  4425. ;;
  4426. esac
  4427. fi
  4428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4429. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4430. file_magic_glob=
  4431. want_nocaseglob=no
  4432. if test "$build" = "$host"; then
  4433. case $host_os in
  4434. mingw* | pw32*)
  4435. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4436. want_nocaseglob=yes
  4437. else
  4438. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4439. fi
  4440. ;;
  4441. esac
  4442. fi
  4443. file_magic_cmd=$lt_cv_file_magic_cmd
  4444. deplibs_check_method=$lt_cv_deplibs_check_method
  4445. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4446. if test -n "$ac_tool_prefix"; then
  4447. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4448. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4450. $as_echo_n "checking for $ac_word... " >&6; }
  4451. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4452. $as_echo_n "(cached) " >&6
  4453. else
  4454. if test -n "$DLLTOOL"; then
  4455. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4456. else
  4457. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4458. for as_dir in $PATH
  4459. do
  4460. IFS=$as_save_IFS
  4461. test -z "$as_dir" && as_dir=.
  4462. for ac_exec_ext in '' $ac_executable_extensions; do
  4463. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4464. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4465. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4466. break 2
  4467. fi
  4468. done
  4469. done
  4470. IFS=$as_save_IFS
  4471. fi
  4472. fi
  4473. DLLTOOL=$ac_cv_prog_DLLTOOL
  4474. if test -n "$DLLTOOL"; then
  4475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4476. $as_echo "$DLLTOOL" >&6; }
  4477. else
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4479. $as_echo "no" >&6; }
  4480. fi
  4481. fi
  4482. if test -z "$ac_cv_prog_DLLTOOL"; then
  4483. ac_ct_DLLTOOL=$DLLTOOL
  4484. # Extract the first word of "dlltool", so it can be a program name with args.
  4485. set dummy dlltool; ac_word=$2
  4486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4487. $as_echo_n "checking for $ac_word... " >&6; }
  4488. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4489. $as_echo_n "(cached) " >&6
  4490. else
  4491. if test -n "$ac_ct_DLLTOOL"; then
  4492. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4493. else
  4494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4495. for as_dir in $PATH
  4496. do
  4497. IFS=$as_save_IFS
  4498. test -z "$as_dir" && as_dir=.
  4499. for ac_exec_ext in '' $ac_executable_extensions; do
  4500. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4501. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4502. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4503. break 2
  4504. fi
  4505. done
  4506. done
  4507. IFS=$as_save_IFS
  4508. fi
  4509. fi
  4510. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4511. if test -n "$ac_ct_DLLTOOL"; then
  4512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4513. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4514. else
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4516. $as_echo "no" >&6; }
  4517. fi
  4518. if test "x$ac_ct_DLLTOOL" = x; then
  4519. DLLTOOL="false"
  4520. else
  4521. case $cross_compiling:$ac_tool_warned in
  4522. yes:)
  4523. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4524. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4525. ac_tool_warned=yes ;;
  4526. esac
  4527. DLLTOOL=$ac_ct_DLLTOOL
  4528. fi
  4529. else
  4530. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4531. fi
  4532. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4534. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4535. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4536. $as_echo_n "(cached) " >&6
  4537. else
  4538. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4539. case $host_os in
  4540. cygwin* | mingw* | pw32* | cegcc*)
  4541. # two different shell functions defined in ltmain.sh
  4542. # decide which to use based on capabilities of $DLLTOOL
  4543. case `$DLLTOOL --help 2>&1` in
  4544. *--identify-strict*)
  4545. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4546. ;;
  4547. *)
  4548. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4549. ;;
  4550. esac
  4551. ;;
  4552. *)
  4553. # fallback: assume linklib IS sharedlib
  4554. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4555. ;;
  4556. esac
  4557. fi
  4558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4559. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4560. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4561. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4562. if test -n "$ac_tool_prefix"; then
  4563. for ac_prog in ar
  4564. do
  4565. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4566. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4568. $as_echo_n "checking for $ac_word... " >&6; }
  4569. if ${ac_cv_prog_AR+:} false; then :
  4570. $as_echo_n "(cached) " >&6
  4571. else
  4572. if test -n "$AR"; then
  4573. ac_cv_prog_AR="$AR" # Let the user override the test.
  4574. else
  4575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4576. for as_dir in $PATH
  4577. do
  4578. IFS=$as_save_IFS
  4579. test -z "$as_dir" && as_dir=.
  4580. for ac_exec_ext in '' $ac_executable_extensions; do
  4581. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4582. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4583. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4584. break 2
  4585. fi
  4586. done
  4587. done
  4588. IFS=$as_save_IFS
  4589. fi
  4590. fi
  4591. AR=$ac_cv_prog_AR
  4592. if test -n "$AR"; then
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4594. $as_echo "$AR" >&6; }
  4595. else
  4596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4597. $as_echo "no" >&6; }
  4598. fi
  4599. test -n "$AR" && break
  4600. done
  4601. fi
  4602. if test -z "$AR"; then
  4603. ac_ct_AR=$AR
  4604. for ac_prog in ar
  4605. do
  4606. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4607. set dummy $ac_prog; ac_word=$2
  4608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4609. $as_echo_n "checking for $ac_word... " >&6; }
  4610. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4611. $as_echo_n "(cached) " >&6
  4612. else
  4613. if test -n "$ac_ct_AR"; then
  4614. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4615. else
  4616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4617. for as_dir in $PATH
  4618. do
  4619. IFS=$as_save_IFS
  4620. test -z "$as_dir" && as_dir=.
  4621. for ac_exec_ext in '' $ac_executable_extensions; do
  4622. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4623. ac_cv_prog_ac_ct_AR="$ac_prog"
  4624. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4625. break 2
  4626. fi
  4627. done
  4628. done
  4629. IFS=$as_save_IFS
  4630. fi
  4631. fi
  4632. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4633. if test -n "$ac_ct_AR"; then
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4635. $as_echo "$ac_ct_AR" >&6; }
  4636. else
  4637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4638. $as_echo "no" >&6; }
  4639. fi
  4640. test -n "$ac_ct_AR" && break
  4641. done
  4642. if test "x$ac_ct_AR" = x; then
  4643. AR="false"
  4644. else
  4645. case $cross_compiling:$ac_tool_warned in
  4646. yes:)
  4647. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4648. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4649. ac_tool_warned=yes ;;
  4650. esac
  4651. AR=$ac_ct_AR
  4652. fi
  4653. fi
  4654. : ${AR=ar}
  4655. : ${AR_FLAGS=cru}
  4656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4657. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4658. if ${lt_cv_ar_at_file+:} false; then :
  4659. $as_echo_n "(cached) " >&6
  4660. else
  4661. lt_cv_ar_at_file=no
  4662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4663. /* end confdefs.h. */
  4664. int
  4665. main ()
  4666. {
  4667. ;
  4668. return 0;
  4669. }
  4670. _ACEOF
  4671. if ac_fn_c_try_compile "$LINENO"; then :
  4672. echo conftest.$ac_objext > conftest.lst
  4673. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4674. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4675. (eval $lt_ar_try) 2>&5
  4676. ac_status=$?
  4677. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4678. test $ac_status = 0; }
  4679. if test "$ac_status" -eq 0; then
  4680. # Ensure the archiver fails upon bogus file names.
  4681. rm -f conftest.$ac_objext libconftest.a
  4682. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4683. (eval $lt_ar_try) 2>&5
  4684. ac_status=$?
  4685. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4686. test $ac_status = 0; }
  4687. if test "$ac_status" -ne 0; then
  4688. lt_cv_ar_at_file=@
  4689. fi
  4690. fi
  4691. rm -f conftest.* libconftest.a
  4692. fi
  4693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4694. fi
  4695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4696. $as_echo "$lt_cv_ar_at_file" >&6; }
  4697. if test "x$lt_cv_ar_at_file" = xno; then
  4698. archiver_list_spec=
  4699. else
  4700. archiver_list_spec=$lt_cv_ar_at_file
  4701. fi
  4702. if test -n "$ac_tool_prefix"; then
  4703. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4704. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4706. $as_echo_n "checking for $ac_word... " >&6; }
  4707. if ${ac_cv_prog_STRIP+:} false; then :
  4708. $as_echo_n "(cached) " >&6
  4709. else
  4710. if test -n "$STRIP"; then
  4711. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4712. else
  4713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4714. for as_dir in $PATH
  4715. do
  4716. IFS=$as_save_IFS
  4717. test -z "$as_dir" && as_dir=.
  4718. for ac_exec_ext in '' $ac_executable_extensions; do
  4719. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4720. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4722. break 2
  4723. fi
  4724. done
  4725. done
  4726. IFS=$as_save_IFS
  4727. fi
  4728. fi
  4729. STRIP=$ac_cv_prog_STRIP
  4730. if test -n "$STRIP"; then
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4732. $as_echo "$STRIP" >&6; }
  4733. else
  4734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4735. $as_echo "no" >&6; }
  4736. fi
  4737. fi
  4738. if test -z "$ac_cv_prog_STRIP"; then
  4739. ac_ct_STRIP=$STRIP
  4740. # Extract the first word of "strip", so it can be a program name with args.
  4741. set dummy strip; ac_word=$2
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4743. $as_echo_n "checking for $ac_word... " >&6; }
  4744. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4745. $as_echo_n "(cached) " >&6
  4746. else
  4747. if test -n "$ac_ct_STRIP"; then
  4748. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4749. else
  4750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4751. for as_dir in $PATH
  4752. do
  4753. IFS=$as_save_IFS
  4754. test -z "$as_dir" && as_dir=.
  4755. for ac_exec_ext in '' $ac_executable_extensions; do
  4756. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4757. ac_cv_prog_ac_ct_STRIP="strip"
  4758. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4759. break 2
  4760. fi
  4761. done
  4762. done
  4763. IFS=$as_save_IFS
  4764. fi
  4765. fi
  4766. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4767. if test -n "$ac_ct_STRIP"; then
  4768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4769. $as_echo "$ac_ct_STRIP" >&6; }
  4770. else
  4771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4772. $as_echo "no" >&6; }
  4773. fi
  4774. if test "x$ac_ct_STRIP" = x; then
  4775. STRIP=":"
  4776. else
  4777. case $cross_compiling:$ac_tool_warned in
  4778. yes:)
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4780. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4781. ac_tool_warned=yes ;;
  4782. esac
  4783. STRIP=$ac_ct_STRIP
  4784. fi
  4785. else
  4786. STRIP="$ac_cv_prog_STRIP"
  4787. fi
  4788. test -z "$STRIP" && STRIP=:
  4789. if test -n "$ac_tool_prefix"; then
  4790. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4791. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4793. $as_echo_n "checking for $ac_word... " >&6; }
  4794. if ${ac_cv_prog_RANLIB+:} false; then :
  4795. $as_echo_n "(cached) " >&6
  4796. else
  4797. if test -n "$RANLIB"; then
  4798. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4799. else
  4800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4801. for as_dir in $PATH
  4802. do
  4803. IFS=$as_save_IFS
  4804. test -z "$as_dir" && as_dir=.
  4805. for ac_exec_ext in '' $ac_executable_extensions; do
  4806. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4807. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4808. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4809. break 2
  4810. fi
  4811. done
  4812. done
  4813. IFS=$as_save_IFS
  4814. fi
  4815. fi
  4816. RANLIB=$ac_cv_prog_RANLIB
  4817. if test -n "$RANLIB"; then
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4819. $as_echo "$RANLIB" >&6; }
  4820. else
  4821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4822. $as_echo "no" >&6; }
  4823. fi
  4824. fi
  4825. if test -z "$ac_cv_prog_RANLIB"; then
  4826. ac_ct_RANLIB=$RANLIB
  4827. # Extract the first word of "ranlib", so it can be a program name with args.
  4828. set dummy ranlib; ac_word=$2
  4829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4830. $as_echo_n "checking for $ac_word... " >&6; }
  4831. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4832. $as_echo_n "(cached) " >&6
  4833. else
  4834. if test -n "$ac_ct_RANLIB"; then
  4835. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4836. else
  4837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4838. for as_dir in $PATH
  4839. do
  4840. IFS=$as_save_IFS
  4841. test -z "$as_dir" && as_dir=.
  4842. for ac_exec_ext in '' $ac_executable_extensions; do
  4843. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4844. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4845. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4846. break 2
  4847. fi
  4848. done
  4849. done
  4850. IFS=$as_save_IFS
  4851. fi
  4852. fi
  4853. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4854. if test -n "$ac_ct_RANLIB"; then
  4855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4856. $as_echo "$ac_ct_RANLIB" >&6; }
  4857. else
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4859. $as_echo "no" >&6; }
  4860. fi
  4861. if test "x$ac_ct_RANLIB" = x; then
  4862. RANLIB=":"
  4863. else
  4864. case $cross_compiling:$ac_tool_warned in
  4865. yes:)
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4867. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4868. ac_tool_warned=yes ;;
  4869. esac
  4870. RANLIB=$ac_ct_RANLIB
  4871. fi
  4872. else
  4873. RANLIB="$ac_cv_prog_RANLIB"
  4874. fi
  4875. test -z "$RANLIB" && RANLIB=:
  4876. # Determine commands to create old-style static archives.
  4877. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4878. old_postinstall_cmds='chmod 644 $oldlib'
  4879. old_postuninstall_cmds=
  4880. if test -n "$RANLIB"; then
  4881. case $host_os in
  4882. openbsd*)
  4883. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4884. ;;
  4885. *)
  4886. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4887. ;;
  4888. esac
  4889. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4890. fi
  4891. case $host_os in
  4892. darwin*)
  4893. lock_old_archive_extraction=yes ;;
  4894. *)
  4895. lock_old_archive_extraction=no ;;
  4896. esac
  4897. for ac_prog in gawk mawk nawk awk
  4898. do
  4899. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4900. set dummy $ac_prog; ac_word=$2
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4902. $as_echo_n "checking for $ac_word... " >&6; }
  4903. if ${ac_cv_prog_AWK+:} false; then :
  4904. $as_echo_n "(cached) " >&6
  4905. else
  4906. if test -n "$AWK"; then
  4907. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4908. else
  4909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4910. for as_dir in $PATH
  4911. do
  4912. IFS=$as_save_IFS
  4913. test -z "$as_dir" && as_dir=.
  4914. for ac_exec_ext in '' $ac_executable_extensions; do
  4915. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4916. ac_cv_prog_AWK="$ac_prog"
  4917. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4918. break 2
  4919. fi
  4920. done
  4921. done
  4922. IFS=$as_save_IFS
  4923. fi
  4924. fi
  4925. AWK=$ac_cv_prog_AWK
  4926. if test -n "$AWK"; then
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4928. $as_echo "$AWK" >&6; }
  4929. else
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4931. $as_echo "no" >&6; }
  4932. fi
  4933. test -n "$AWK" && break
  4934. done
  4935. # If no C compiler was specified, use CC.
  4936. LTCC=${LTCC-"$CC"}
  4937. # If no C compiler flags were specified, use CFLAGS.
  4938. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4939. # Allow CC to be a program name with arguments.
  4940. compiler=$CC
  4941. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4943. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4944. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4945. $as_echo_n "(cached) " >&6
  4946. else
  4947. # These are sane defaults that work on at least a few old systems.
  4948. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4949. # Character class describing NM global symbol codes.
  4950. symcode='[BCDEGRST]'
  4951. # Regexp to match symbols that can be accessed directly from C.
  4952. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4953. # Define system-specific variables.
  4954. case $host_os in
  4955. aix*)
  4956. symcode='[BCDT]'
  4957. ;;
  4958. cygwin* | mingw* | pw32* | cegcc*)
  4959. symcode='[ABCDGISTW]'
  4960. ;;
  4961. hpux*)
  4962. if test "$host_cpu" = ia64; then
  4963. symcode='[ABCDEGRST]'
  4964. fi
  4965. ;;
  4966. irix* | nonstopux*)
  4967. symcode='[BCDEGRST]'
  4968. ;;
  4969. osf*)
  4970. symcode='[BCDEGQRST]'
  4971. ;;
  4972. solaris*)
  4973. symcode='[BDRT]'
  4974. ;;
  4975. sco3.2v5*)
  4976. symcode='[DT]'
  4977. ;;
  4978. sysv4.2uw2*)
  4979. symcode='[DT]'
  4980. ;;
  4981. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4982. symcode='[ABDT]'
  4983. ;;
  4984. sysv4)
  4985. symcode='[DFNSTU]'
  4986. ;;
  4987. esac
  4988. # If we're using GNU nm, then use its standard symbol codes.
  4989. case `$NM -V 2>&1` in
  4990. *GNU* | *'with BFD'*)
  4991. symcode='[ABCDGIRSTW]' ;;
  4992. esac
  4993. # Transform an extracted symbol line into a proper C declaration.
  4994. # Some systems (esp. on ia64) link data and code symbols differently,
  4995. # so use this general approach.
  4996. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4997. # Transform an extracted symbol line into symbol name and symbol address
  4998. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4999. 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'"
  5000. # Handle CRLF in mingw tool chain
  5001. opt_cr=
  5002. case $build_os in
  5003. mingw*)
  5004. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5005. ;;
  5006. esac
  5007. # Try without a prefix underscore, then with it.
  5008. for ac_symprfx in "" "_"; do
  5009. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5010. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5011. # Write the raw and C identifiers.
  5012. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5013. # Fake it for dumpbin and say T for any non-static function
  5014. # and D for any global variable.
  5015. # Also find C++ and __fastcall symbols from MSVC++,
  5016. # which start with @ or ?.
  5017. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5018. " {last_section=section; section=\$ 3};"\
  5019. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5020. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5021. " \$ 0!~/External *\|/{next};"\
  5022. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5023. " {if(hide[section]) next};"\
  5024. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5025. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5026. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5027. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5028. " ' prfx=^$ac_symprfx"
  5029. else
  5030. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5031. fi
  5032. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5033. # Check to see that the pipe works correctly.
  5034. pipe_works=no
  5035. rm -f conftest*
  5036. cat > conftest.$ac_ext <<_LT_EOF
  5037. #ifdef __cplusplus
  5038. extern "C" {
  5039. #endif
  5040. char nm_test_var;
  5041. void nm_test_func(void);
  5042. void nm_test_func(void){}
  5043. #ifdef __cplusplus
  5044. }
  5045. #endif
  5046. int main(){nm_test_var='a';nm_test_func();return(0);}
  5047. _LT_EOF
  5048. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5049. (eval $ac_compile) 2>&5
  5050. ac_status=$?
  5051. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5052. test $ac_status = 0; }; then
  5053. # Now try to grab the symbols.
  5054. nlist=conftest.nm
  5055. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5056. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5057. ac_status=$?
  5058. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5059. test $ac_status = 0; } && test -s "$nlist"; then
  5060. # Try sorting and uniquifying the output.
  5061. if sort "$nlist" | uniq > "$nlist"T; then
  5062. mv -f "$nlist"T "$nlist"
  5063. else
  5064. rm -f "$nlist"T
  5065. fi
  5066. # Make sure that we snagged all the symbols we need.
  5067. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5068. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5069. cat <<_LT_EOF > conftest.$ac_ext
  5070. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5071. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5072. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5073. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5074. # define LT_DLSYM_CONST
  5075. #elif defined(__osf__)
  5076. /* This system does not cope well with relocations in const data. */
  5077. # define LT_DLSYM_CONST
  5078. #else
  5079. # define LT_DLSYM_CONST const
  5080. #endif
  5081. #ifdef __cplusplus
  5082. extern "C" {
  5083. #endif
  5084. _LT_EOF
  5085. # Now generate the symbol file.
  5086. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5087. cat <<_LT_EOF >> conftest.$ac_ext
  5088. /* The mapping between symbol names and symbols. */
  5089. LT_DLSYM_CONST struct {
  5090. const char *name;
  5091. void *address;
  5092. }
  5093. lt__PROGRAM__LTX_preloaded_symbols[] =
  5094. {
  5095. { "@PROGRAM@", (void *) 0 },
  5096. _LT_EOF
  5097. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5098. cat <<\_LT_EOF >> conftest.$ac_ext
  5099. {0, (void *) 0}
  5100. };
  5101. /* This works around a problem in FreeBSD linker */
  5102. #ifdef FREEBSD_WORKAROUND
  5103. static const void *lt_preloaded_setup() {
  5104. return lt__PROGRAM__LTX_preloaded_symbols;
  5105. }
  5106. #endif
  5107. #ifdef __cplusplus
  5108. }
  5109. #endif
  5110. _LT_EOF
  5111. # Now try linking the two files.
  5112. mv conftest.$ac_objext conftstm.$ac_objext
  5113. lt_globsym_save_LIBS=$LIBS
  5114. lt_globsym_save_CFLAGS=$CFLAGS
  5115. LIBS="conftstm.$ac_objext"
  5116. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5117. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5118. (eval $ac_link) 2>&5
  5119. ac_status=$?
  5120. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5121. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5122. pipe_works=yes
  5123. fi
  5124. LIBS=$lt_globsym_save_LIBS
  5125. CFLAGS=$lt_globsym_save_CFLAGS
  5126. else
  5127. echo "cannot find nm_test_func in $nlist" >&5
  5128. fi
  5129. else
  5130. echo "cannot find nm_test_var in $nlist" >&5
  5131. fi
  5132. else
  5133. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5134. fi
  5135. else
  5136. echo "$progname: failed program was:" >&5
  5137. cat conftest.$ac_ext >&5
  5138. fi
  5139. rm -rf conftest* conftst*
  5140. # Do not use the global_symbol_pipe unless it works.
  5141. if test "$pipe_works" = yes; then
  5142. break
  5143. else
  5144. lt_cv_sys_global_symbol_pipe=
  5145. fi
  5146. done
  5147. fi
  5148. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5149. lt_cv_sys_global_symbol_to_cdecl=
  5150. fi
  5151. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5153. $as_echo "failed" >&6; }
  5154. else
  5155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5156. $as_echo "ok" >&6; }
  5157. fi
  5158. # Response file support.
  5159. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5160. nm_file_list_spec='@'
  5161. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5162. nm_file_list_spec='@'
  5163. fi
  5164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5165. $as_echo_n "checking for sysroot... " >&6; }
  5166. # Check whether --with-sysroot was given.
  5167. if test "${with_sysroot+set}" = set; then :
  5168. withval=$with_sysroot;
  5169. else
  5170. with_sysroot=no
  5171. fi
  5172. lt_sysroot=
  5173. case ${with_sysroot} in #(
  5174. yes)
  5175. if test "$GCC" = yes; then
  5176. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5177. fi
  5178. ;; #(
  5179. /*)
  5180. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5181. ;; #(
  5182. no|'')
  5183. ;; #(
  5184. *)
  5185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5186. $as_echo "${with_sysroot}" >&6; }
  5187. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5188. ;;
  5189. esac
  5190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5191. $as_echo "${lt_sysroot:-no}" >&6; }
  5192. # Check whether --enable-libtool-lock was given.
  5193. if test "${enable_libtool_lock+set}" = set; then :
  5194. enableval=$enable_libtool_lock;
  5195. fi
  5196. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5197. # Some flags need to be propagated to the compiler or linker for good
  5198. # libtool support.
  5199. case $host in
  5200. ia64-*-hpux*)
  5201. # Find out which ABI we are using.
  5202. echo 'int i;' > conftest.$ac_ext
  5203. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5204. (eval $ac_compile) 2>&5
  5205. ac_status=$?
  5206. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5207. test $ac_status = 0; }; then
  5208. case `/usr/bin/file conftest.$ac_objext` in
  5209. *ELF-32*)
  5210. HPUX_IA64_MODE="32"
  5211. ;;
  5212. *ELF-64*)
  5213. HPUX_IA64_MODE="64"
  5214. ;;
  5215. esac
  5216. fi
  5217. rm -rf conftest*
  5218. ;;
  5219. *-*-irix6*)
  5220. # Find out which ABI we are using.
  5221. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5222. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5223. (eval $ac_compile) 2>&5
  5224. ac_status=$?
  5225. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5226. test $ac_status = 0; }; then
  5227. if test "$lt_cv_prog_gnu_ld" = yes; then
  5228. case `/usr/bin/file conftest.$ac_objext` in
  5229. *32-bit*)
  5230. LD="${LD-ld} -melf32bsmip"
  5231. ;;
  5232. *N32*)
  5233. LD="${LD-ld} -melf32bmipn32"
  5234. ;;
  5235. *64-bit*)
  5236. LD="${LD-ld} -melf64bmip"
  5237. ;;
  5238. esac
  5239. else
  5240. case `/usr/bin/file conftest.$ac_objext` in
  5241. *32-bit*)
  5242. LD="${LD-ld} -32"
  5243. ;;
  5244. *N32*)
  5245. LD="${LD-ld} -n32"
  5246. ;;
  5247. *64-bit*)
  5248. LD="${LD-ld} -64"
  5249. ;;
  5250. esac
  5251. fi
  5252. fi
  5253. rm -rf conftest*
  5254. ;;
  5255. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5256. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5257. # Find out which ABI we are using.
  5258. echo 'int i;' > conftest.$ac_ext
  5259. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5260. (eval $ac_compile) 2>&5
  5261. ac_status=$?
  5262. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5263. test $ac_status = 0; }; then
  5264. case `/usr/bin/file conftest.o` in
  5265. *32-bit*)
  5266. case $host in
  5267. x86_64-*kfreebsd*-gnu)
  5268. LD="${LD-ld} -m elf_i386_fbsd"
  5269. ;;
  5270. x86_64-*linux*)
  5271. LD="${LD-ld} -m elf_i386"
  5272. ;;
  5273. ppc64-*linux*|powerpc64-*linux*)
  5274. LD="${LD-ld} -m elf32ppclinux"
  5275. ;;
  5276. s390x-*linux*)
  5277. LD="${LD-ld} -m elf_s390"
  5278. ;;
  5279. sparc64-*linux*)
  5280. LD="${LD-ld} -m elf32_sparc"
  5281. ;;
  5282. esac
  5283. ;;
  5284. *64-bit*)
  5285. case $host in
  5286. x86_64-*kfreebsd*-gnu)
  5287. LD="${LD-ld} -m elf_x86_64_fbsd"
  5288. ;;
  5289. x86_64-*linux*)
  5290. LD="${LD-ld} -m elf_x86_64"
  5291. ;;
  5292. powerpc64le-*linux*)
  5293. LD="${LD-ld} -m elf64lppc"
  5294. ;;
  5295. powerpc64-*linux*)
  5296. LD="${LD-ld} -m elf64ppc"
  5297. ;;
  5298. s390*-*linux*|s390*-*tpf*)
  5299. LD="${LD-ld} -m elf64_s390"
  5300. ;;
  5301. sparc*-*linux*)
  5302. LD="${LD-ld} -m elf64_sparc"
  5303. ;;
  5304. esac
  5305. ;;
  5306. esac
  5307. fi
  5308. rm -rf conftest*
  5309. ;;
  5310. *-*-sco3.2v5*)
  5311. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5312. SAVE_CFLAGS="$CFLAGS"
  5313. CFLAGS="$CFLAGS -belf"
  5314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5315. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5316. if ${lt_cv_cc_needs_belf+:} false; then :
  5317. $as_echo_n "(cached) " >&6
  5318. else
  5319. ac_ext=c
  5320. ac_cpp='$CPP $CPPFLAGS'
  5321. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5322. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5323. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5325. /* end confdefs.h. */
  5326. int
  5327. main ()
  5328. {
  5329. ;
  5330. return 0;
  5331. }
  5332. _ACEOF
  5333. if ac_fn_c_try_link "$LINENO"; then :
  5334. lt_cv_cc_needs_belf=yes
  5335. else
  5336. lt_cv_cc_needs_belf=no
  5337. fi
  5338. rm -f core conftest.err conftest.$ac_objext \
  5339. conftest$ac_exeext conftest.$ac_ext
  5340. ac_ext=c
  5341. ac_cpp='$CPP $CPPFLAGS'
  5342. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5343. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5344. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5345. fi
  5346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5347. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5348. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5349. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5350. CFLAGS="$SAVE_CFLAGS"
  5351. fi
  5352. ;;
  5353. *-*solaris*)
  5354. # Find out which ABI we are using.
  5355. echo 'int i;' > conftest.$ac_ext
  5356. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5357. (eval $ac_compile) 2>&5
  5358. ac_status=$?
  5359. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5360. test $ac_status = 0; }; then
  5361. case `/usr/bin/file conftest.o` in
  5362. *64-bit*)
  5363. case $lt_cv_prog_gnu_ld in
  5364. yes*)
  5365. case $host in
  5366. i?86-*-solaris*)
  5367. LD="${LD-ld} -m elf_x86_64"
  5368. ;;
  5369. sparc*-*-solaris*)
  5370. LD="${LD-ld} -m elf64_sparc"
  5371. ;;
  5372. esac
  5373. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5374. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5375. LD="${LD-ld}_sol2"
  5376. fi
  5377. ;;
  5378. *)
  5379. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5380. LD="${LD-ld} -64"
  5381. fi
  5382. ;;
  5383. esac
  5384. ;;
  5385. esac
  5386. fi
  5387. rm -rf conftest*
  5388. ;;
  5389. esac
  5390. need_locks="$enable_libtool_lock"
  5391. if test -n "$ac_tool_prefix"; then
  5392. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5393. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5395. $as_echo_n "checking for $ac_word... " >&6; }
  5396. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5397. $as_echo_n "(cached) " >&6
  5398. else
  5399. if test -n "$MANIFEST_TOOL"; then
  5400. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5401. else
  5402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5403. for as_dir in $PATH
  5404. do
  5405. IFS=$as_save_IFS
  5406. test -z "$as_dir" && as_dir=.
  5407. for ac_exec_ext in '' $ac_executable_extensions; do
  5408. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5409. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5411. break 2
  5412. fi
  5413. done
  5414. done
  5415. IFS=$as_save_IFS
  5416. fi
  5417. fi
  5418. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5419. if test -n "$MANIFEST_TOOL"; then
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5421. $as_echo "$MANIFEST_TOOL" >&6; }
  5422. else
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5424. $as_echo "no" >&6; }
  5425. fi
  5426. fi
  5427. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5428. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5429. # Extract the first word of "mt", so it can be a program name with args.
  5430. set dummy mt; ac_word=$2
  5431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5432. $as_echo_n "checking for $ac_word... " >&6; }
  5433. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5434. $as_echo_n "(cached) " >&6
  5435. else
  5436. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5437. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5438. else
  5439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5440. for as_dir in $PATH
  5441. do
  5442. IFS=$as_save_IFS
  5443. test -z "$as_dir" && as_dir=.
  5444. for ac_exec_ext in '' $ac_executable_extensions; do
  5445. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5446. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5447. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5448. break 2
  5449. fi
  5450. done
  5451. done
  5452. IFS=$as_save_IFS
  5453. fi
  5454. fi
  5455. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5456. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5458. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5459. else
  5460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5461. $as_echo "no" >&6; }
  5462. fi
  5463. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5464. MANIFEST_TOOL=":"
  5465. else
  5466. case $cross_compiling:$ac_tool_warned in
  5467. yes:)
  5468. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5469. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5470. ac_tool_warned=yes ;;
  5471. esac
  5472. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5473. fi
  5474. else
  5475. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5476. fi
  5477. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5479. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5480. if ${lt_cv_path_mainfest_tool+:} false; then :
  5481. $as_echo_n "(cached) " >&6
  5482. else
  5483. lt_cv_path_mainfest_tool=no
  5484. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5485. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5486. cat conftest.err >&5
  5487. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5488. lt_cv_path_mainfest_tool=yes
  5489. fi
  5490. rm -f conftest*
  5491. fi
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5493. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5494. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5495. MANIFEST_TOOL=:
  5496. fi
  5497. case $host_os in
  5498. rhapsody* | darwin*)
  5499. if test -n "$ac_tool_prefix"; then
  5500. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5501. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5503. $as_echo_n "checking for $ac_word... " >&6; }
  5504. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5505. $as_echo_n "(cached) " >&6
  5506. else
  5507. if test -n "$DSYMUTIL"; then
  5508. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5509. else
  5510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5511. for as_dir in $PATH
  5512. do
  5513. IFS=$as_save_IFS
  5514. test -z "$as_dir" && as_dir=.
  5515. for ac_exec_ext in '' $ac_executable_extensions; do
  5516. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5517. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5519. break 2
  5520. fi
  5521. done
  5522. done
  5523. IFS=$as_save_IFS
  5524. fi
  5525. fi
  5526. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5527. if test -n "$DSYMUTIL"; then
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5529. $as_echo "$DSYMUTIL" >&6; }
  5530. else
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5532. $as_echo "no" >&6; }
  5533. fi
  5534. fi
  5535. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5536. ac_ct_DSYMUTIL=$DSYMUTIL
  5537. # Extract the first word of "dsymutil", so it can be a program name with args.
  5538. set dummy dsymutil; ac_word=$2
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5540. $as_echo_n "checking for $ac_word... " >&6; }
  5541. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5542. $as_echo_n "(cached) " >&6
  5543. else
  5544. if test -n "$ac_ct_DSYMUTIL"; then
  5545. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5546. else
  5547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5548. for as_dir in $PATH
  5549. do
  5550. IFS=$as_save_IFS
  5551. test -z "$as_dir" && as_dir=.
  5552. for ac_exec_ext in '' $ac_executable_extensions; do
  5553. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5554. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5556. break 2
  5557. fi
  5558. done
  5559. done
  5560. IFS=$as_save_IFS
  5561. fi
  5562. fi
  5563. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5564. if test -n "$ac_ct_DSYMUTIL"; then
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5566. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5567. else
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5569. $as_echo "no" >&6; }
  5570. fi
  5571. if test "x$ac_ct_DSYMUTIL" = x; then
  5572. DSYMUTIL=":"
  5573. else
  5574. case $cross_compiling:$ac_tool_warned in
  5575. yes:)
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5577. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5578. ac_tool_warned=yes ;;
  5579. esac
  5580. DSYMUTIL=$ac_ct_DSYMUTIL
  5581. fi
  5582. else
  5583. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5584. fi
  5585. if test -n "$ac_tool_prefix"; then
  5586. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5587. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5589. $as_echo_n "checking for $ac_word... " >&6; }
  5590. if ${ac_cv_prog_NMEDIT+:} false; then :
  5591. $as_echo_n "(cached) " >&6
  5592. else
  5593. if test -n "$NMEDIT"; then
  5594. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5595. else
  5596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5597. for as_dir in $PATH
  5598. do
  5599. IFS=$as_save_IFS
  5600. test -z "$as_dir" && as_dir=.
  5601. for ac_exec_ext in '' $ac_executable_extensions; do
  5602. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5603. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5605. break 2
  5606. fi
  5607. done
  5608. done
  5609. IFS=$as_save_IFS
  5610. fi
  5611. fi
  5612. NMEDIT=$ac_cv_prog_NMEDIT
  5613. if test -n "$NMEDIT"; then
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5615. $as_echo "$NMEDIT" >&6; }
  5616. else
  5617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5618. $as_echo "no" >&6; }
  5619. fi
  5620. fi
  5621. if test -z "$ac_cv_prog_NMEDIT"; then
  5622. ac_ct_NMEDIT=$NMEDIT
  5623. # Extract the first word of "nmedit", so it can be a program name with args.
  5624. set dummy nmedit; ac_word=$2
  5625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5626. $as_echo_n "checking for $ac_word... " >&6; }
  5627. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5628. $as_echo_n "(cached) " >&6
  5629. else
  5630. if test -n "$ac_ct_NMEDIT"; then
  5631. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5632. else
  5633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5634. for as_dir in $PATH
  5635. do
  5636. IFS=$as_save_IFS
  5637. test -z "$as_dir" && as_dir=.
  5638. for ac_exec_ext in '' $ac_executable_extensions; do
  5639. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5640. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5642. break 2
  5643. fi
  5644. done
  5645. done
  5646. IFS=$as_save_IFS
  5647. fi
  5648. fi
  5649. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5650. if test -n "$ac_ct_NMEDIT"; then
  5651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5652. $as_echo "$ac_ct_NMEDIT" >&6; }
  5653. else
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5655. $as_echo "no" >&6; }
  5656. fi
  5657. if test "x$ac_ct_NMEDIT" = x; then
  5658. NMEDIT=":"
  5659. else
  5660. case $cross_compiling:$ac_tool_warned in
  5661. yes:)
  5662. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5663. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5664. ac_tool_warned=yes ;;
  5665. esac
  5666. NMEDIT=$ac_ct_NMEDIT
  5667. fi
  5668. else
  5669. NMEDIT="$ac_cv_prog_NMEDIT"
  5670. fi
  5671. if test -n "$ac_tool_prefix"; then
  5672. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5673. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5675. $as_echo_n "checking for $ac_word... " >&6; }
  5676. if ${ac_cv_prog_LIPO+:} false; then :
  5677. $as_echo_n "(cached) " >&6
  5678. else
  5679. if test -n "$LIPO"; then
  5680. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5681. else
  5682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5683. for as_dir in $PATH
  5684. do
  5685. IFS=$as_save_IFS
  5686. test -z "$as_dir" && as_dir=.
  5687. for ac_exec_ext in '' $ac_executable_extensions; do
  5688. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5689. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5690. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5691. break 2
  5692. fi
  5693. done
  5694. done
  5695. IFS=$as_save_IFS
  5696. fi
  5697. fi
  5698. LIPO=$ac_cv_prog_LIPO
  5699. if test -n "$LIPO"; then
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5701. $as_echo "$LIPO" >&6; }
  5702. else
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5704. $as_echo "no" >&6; }
  5705. fi
  5706. fi
  5707. if test -z "$ac_cv_prog_LIPO"; then
  5708. ac_ct_LIPO=$LIPO
  5709. # Extract the first word of "lipo", so it can be a program name with args.
  5710. set dummy lipo; ac_word=$2
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5712. $as_echo_n "checking for $ac_word... " >&6; }
  5713. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5714. $as_echo_n "(cached) " >&6
  5715. else
  5716. if test -n "$ac_ct_LIPO"; then
  5717. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5718. else
  5719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5720. for as_dir in $PATH
  5721. do
  5722. IFS=$as_save_IFS
  5723. test -z "$as_dir" && as_dir=.
  5724. for ac_exec_ext in '' $ac_executable_extensions; do
  5725. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5726. ac_cv_prog_ac_ct_LIPO="lipo"
  5727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5728. break 2
  5729. fi
  5730. done
  5731. done
  5732. IFS=$as_save_IFS
  5733. fi
  5734. fi
  5735. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5736. if test -n "$ac_ct_LIPO"; then
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5738. $as_echo "$ac_ct_LIPO" >&6; }
  5739. else
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5741. $as_echo "no" >&6; }
  5742. fi
  5743. if test "x$ac_ct_LIPO" = x; then
  5744. LIPO=":"
  5745. else
  5746. case $cross_compiling:$ac_tool_warned in
  5747. yes:)
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5749. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5750. ac_tool_warned=yes ;;
  5751. esac
  5752. LIPO=$ac_ct_LIPO
  5753. fi
  5754. else
  5755. LIPO="$ac_cv_prog_LIPO"
  5756. fi
  5757. if test -n "$ac_tool_prefix"; then
  5758. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5759. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5761. $as_echo_n "checking for $ac_word... " >&6; }
  5762. if ${ac_cv_prog_OTOOL+:} false; then :
  5763. $as_echo_n "(cached) " >&6
  5764. else
  5765. if test -n "$OTOOL"; then
  5766. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5767. else
  5768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5769. for as_dir in $PATH
  5770. do
  5771. IFS=$as_save_IFS
  5772. test -z "$as_dir" && as_dir=.
  5773. for ac_exec_ext in '' $ac_executable_extensions; do
  5774. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5775. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5776. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5777. break 2
  5778. fi
  5779. done
  5780. done
  5781. IFS=$as_save_IFS
  5782. fi
  5783. fi
  5784. OTOOL=$ac_cv_prog_OTOOL
  5785. if test -n "$OTOOL"; then
  5786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5787. $as_echo "$OTOOL" >&6; }
  5788. else
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5790. $as_echo "no" >&6; }
  5791. fi
  5792. fi
  5793. if test -z "$ac_cv_prog_OTOOL"; then
  5794. ac_ct_OTOOL=$OTOOL
  5795. # Extract the first word of "otool", so it can be a program name with args.
  5796. set dummy otool; ac_word=$2
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5798. $as_echo_n "checking for $ac_word... " >&6; }
  5799. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5800. $as_echo_n "(cached) " >&6
  5801. else
  5802. if test -n "$ac_ct_OTOOL"; then
  5803. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5804. else
  5805. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5806. for as_dir in $PATH
  5807. do
  5808. IFS=$as_save_IFS
  5809. test -z "$as_dir" && as_dir=.
  5810. for ac_exec_ext in '' $ac_executable_extensions; do
  5811. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5812. ac_cv_prog_ac_ct_OTOOL="otool"
  5813. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5814. break 2
  5815. fi
  5816. done
  5817. done
  5818. IFS=$as_save_IFS
  5819. fi
  5820. fi
  5821. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5822. if test -n "$ac_ct_OTOOL"; then
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5824. $as_echo "$ac_ct_OTOOL" >&6; }
  5825. else
  5826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5827. $as_echo "no" >&6; }
  5828. fi
  5829. if test "x$ac_ct_OTOOL" = x; then
  5830. OTOOL=":"
  5831. else
  5832. case $cross_compiling:$ac_tool_warned in
  5833. yes:)
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5835. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5836. ac_tool_warned=yes ;;
  5837. esac
  5838. OTOOL=$ac_ct_OTOOL
  5839. fi
  5840. else
  5841. OTOOL="$ac_cv_prog_OTOOL"
  5842. fi
  5843. if test -n "$ac_tool_prefix"; then
  5844. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5845. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5847. $as_echo_n "checking for $ac_word... " >&6; }
  5848. if ${ac_cv_prog_OTOOL64+:} false; then :
  5849. $as_echo_n "(cached) " >&6
  5850. else
  5851. if test -n "$OTOOL64"; then
  5852. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5853. else
  5854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5855. for as_dir in $PATH
  5856. do
  5857. IFS=$as_save_IFS
  5858. test -z "$as_dir" && as_dir=.
  5859. for ac_exec_ext in '' $ac_executable_extensions; do
  5860. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5861. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5862. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5863. break 2
  5864. fi
  5865. done
  5866. done
  5867. IFS=$as_save_IFS
  5868. fi
  5869. fi
  5870. OTOOL64=$ac_cv_prog_OTOOL64
  5871. if test -n "$OTOOL64"; then
  5872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5873. $as_echo "$OTOOL64" >&6; }
  5874. else
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5876. $as_echo "no" >&6; }
  5877. fi
  5878. fi
  5879. if test -z "$ac_cv_prog_OTOOL64"; then
  5880. ac_ct_OTOOL64=$OTOOL64
  5881. # Extract the first word of "otool64", so it can be a program name with args.
  5882. set dummy otool64; ac_word=$2
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5884. $as_echo_n "checking for $ac_word... " >&6; }
  5885. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5886. $as_echo_n "(cached) " >&6
  5887. else
  5888. if test -n "$ac_ct_OTOOL64"; then
  5889. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5890. else
  5891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5892. for as_dir in $PATH
  5893. do
  5894. IFS=$as_save_IFS
  5895. test -z "$as_dir" && as_dir=.
  5896. for ac_exec_ext in '' $ac_executable_extensions; do
  5897. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5898. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5899. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5900. break 2
  5901. fi
  5902. done
  5903. done
  5904. IFS=$as_save_IFS
  5905. fi
  5906. fi
  5907. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5908. if test -n "$ac_ct_OTOOL64"; then
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5910. $as_echo "$ac_ct_OTOOL64" >&6; }
  5911. else
  5912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5913. $as_echo "no" >&6; }
  5914. fi
  5915. if test "x$ac_ct_OTOOL64" = x; then
  5916. OTOOL64=":"
  5917. else
  5918. case $cross_compiling:$ac_tool_warned in
  5919. yes:)
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5921. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5922. ac_tool_warned=yes ;;
  5923. esac
  5924. OTOOL64=$ac_ct_OTOOL64
  5925. fi
  5926. else
  5927. OTOOL64="$ac_cv_prog_OTOOL64"
  5928. fi
  5929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5930. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5931. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5932. $as_echo_n "(cached) " >&6
  5933. else
  5934. lt_cv_apple_cc_single_mod=no
  5935. if test -z "${LT_MULTI_MODULE}"; then
  5936. # By default we will add the -single_module flag. You can override
  5937. # by either setting the environment variable LT_MULTI_MODULE
  5938. # non-empty at configure time, or by adding -multi_module to the
  5939. # link flags.
  5940. rm -rf libconftest.dylib*
  5941. echo "int foo(void){return 1;}" > conftest.c
  5942. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5943. -dynamiclib -Wl,-single_module conftest.c" >&5
  5944. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5945. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5946. _lt_result=$?
  5947. # If there is a non-empty error log, and "single_module"
  5948. # appears in it, assume the flag caused a linker warning
  5949. if test -s conftest.err && $GREP single_module conftest.err; then
  5950. cat conftest.err >&5
  5951. # Otherwise, if the output was created with a 0 exit code from
  5952. # the compiler, it worked.
  5953. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5954. lt_cv_apple_cc_single_mod=yes
  5955. else
  5956. cat conftest.err >&5
  5957. fi
  5958. rm -rf libconftest.dylib*
  5959. rm -f conftest.*
  5960. fi
  5961. fi
  5962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5963. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5965. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5966. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5967. $as_echo_n "(cached) " >&6
  5968. else
  5969. lt_cv_ld_exported_symbols_list=no
  5970. save_LDFLAGS=$LDFLAGS
  5971. echo "_main" > conftest.sym
  5972. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5974. /* end confdefs.h. */
  5975. int
  5976. main ()
  5977. {
  5978. ;
  5979. return 0;
  5980. }
  5981. _ACEOF
  5982. if ac_fn_c_try_link "$LINENO"; then :
  5983. lt_cv_ld_exported_symbols_list=yes
  5984. else
  5985. lt_cv_ld_exported_symbols_list=no
  5986. fi
  5987. rm -f core conftest.err conftest.$ac_objext \
  5988. conftest$ac_exeext conftest.$ac_ext
  5989. LDFLAGS="$save_LDFLAGS"
  5990. fi
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5992. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5994. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5995. if ${lt_cv_ld_force_load+:} false; then :
  5996. $as_echo_n "(cached) " >&6
  5997. else
  5998. lt_cv_ld_force_load=no
  5999. cat > conftest.c << _LT_EOF
  6000. int forced_loaded() { return 2;}
  6001. _LT_EOF
  6002. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6003. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6004. echo "$AR cru libconftest.a conftest.o" >&5
  6005. $AR cru libconftest.a conftest.o 2>&5
  6006. echo "$RANLIB libconftest.a" >&5
  6007. $RANLIB libconftest.a 2>&5
  6008. cat > conftest.c << _LT_EOF
  6009. int main() { return 0;}
  6010. _LT_EOF
  6011. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6012. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6013. _lt_result=$?
  6014. if test -s conftest.err && $GREP force_load conftest.err; then
  6015. cat conftest.err >&5
  6016. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6017. lt_cv_ld_force_load=yes
  6018. else
  6019. cat conftest.err >&5
  6020. fi
  6021. rm -f conftest.err libconftest.a conftest conftest.c
  6022. rm -rf conftest.dSYM
  6023. fi
  6024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6025. $as_echo "$lt_cv_ld_force_load" >&6; }
  6026. case $host_os in
  6027. rhapsody* | darwin1.[012])
  6028. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6029. darwin1.*)
  6030. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6031. darwin*) # darwin 5.x on
  6032. # if running on 10.5 or later, the deployment target defaults
  6033. # to the OS version, if on x86, and 10.4, the deployment
  6034. # target defaults to 10.4. Don't you love it?
  6035. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6036. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6037. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6038. 10.[012]*)
  6039. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6040. 10.*)
  6041. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6042. esac
  6043. ;;
  6044. esac
  6045. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6046. _lt_dar_single_mod='$single_module'
  6047. fi
  6048. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6049. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6050. else
  6051. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6052. fi
  6053. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6054. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6055. else
  6056. _lt_dsymutil=
  6057. fi
  6058. ;;
  6059. esac
  6060. ac_ext=c
  6061. ac_cpp='$CPP $CPPFLAGS'
  6062. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6063. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6064. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6066. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6067. # On Suns, sometimes $CPP names a directory.
  6068. if test -n "$CPP" && test -d "$CPP"; then
  6069. CPP=
  6070. fi
  6071. if test -z "$CPP"; then
  6072. if ${ac_cv_prog_CPP+:} false; then :
  6073. $as_echo_n "(cached) " >&6
  6074. else
  6075. # Double quotes because CPP needs to be expanded
  6076. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6077. do
  6078. ac_preproc_ok=false
  6079. for ac_c_preproc_warn_flag in '' yes
  6080. do
  6081. # Use a header file that comes with gcc, so configuring glibc
  6082. # with a fresh cross-compiler works.
  6083. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6084. # <limits.h> exists even on freestanding compilers.
  6085. # On the NeXT, cc -E runs the code through the compiler's parser,
  6086. # not just through cpp. "Syntax error" is here to catch this case.
  6087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6088. /* end confdefs.h. */
  6089. #ifdef __STDC__
  6090. # include <limits.h>
  6091. #else
  6092. # include <assert.h>
  6093. #endif
  6094. Syntax error
  6095. _ACEOF
  6096. if ac_fn_c_try_cpp "$LINENO"; then :
  6097. else
  6098. # Broken: fails on valid input.
  6099. continue
  6100. fi
  6101. rm -f conftest.err conftest.i conftest.$ac_ext
  6102. # OK, works on sane cases. Now check whether nonexistent headers
  6103. # can be detected and how.
  6104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6105. /* end confdefs.h. */
  6106. #include <ac_nonexistent.h>
  6107. _ACEOF
  6108. if ac_fn_c_try_cpp "$LINENO"; then :
  6109. # Broken: success on invalid input.
  6110. continue
  6111. else
  6112. # Passes both tests.
  6113. ac_preproc_ok=:
  6114. break
  6115. fi
  6116. rm -f conftest.err conftest.i conftest.$ac_ext
  6117. done
  6118. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6119. rm -f conftest.i conftest.err conftest.$ac_ext
  6120. if $ac_preproc_ok; then :
  6121. break
  6122. fi
  6123. done
  6124. ac_cv_prog_CPP=$CPP
  6125. fi
  6126. CPP=$ac_cv_prog_CPP
  6127. else
  6128. ac_cv_prog_CPP=$CPP
  6129. fi
  6130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6131. $as_echo "$CPP" >&6; }
  6132. ac_preproc_ok=false
  6133. for ac_c_preproc_warn_flag in '' yes
  6134. do
  6135. # Use a header file that comes with gcc, so configuring glibc
  6136. # with a fresh cross-compiler works.
  6137. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6138. # <limits.h> exists even on freestanding compilers.
  6139. # On the NeXT, cc -E runs the code through the compiler's parser,
  6140. # not just through cpp. "Syntax error" is here to catch this case.
  6141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6142. /* end confdefs.h. */
  6143. #ifdef __STDC__
  6144. # include <limits.h>
  6145. #else
  6146. # include <assert.h>
  6147. #endif
  6148. Syntax error
  6149. _ACEOF
  6150. if ac_fn_c_try_cpp "$LINENO"; then :
  6151. else
  6152. # Broken: fails on valid input.
  6153. continue
  6154. fi
  6155. rm -f conftest.err conftest.i conftest.$ac_ext
  6156. # OK, works on sane cases. Now check whether nonexistent headers
  6157. # can be detected and how.
  6158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6159. /* end confdefs.h. */
  6160. #include <ac_nonexistent.h>
  6161. _ACEOF
  6162. if ac_fn_c_try_cpp "$LINENO"; then :
  6163. # Broken: success on invalid input.
  6164. continue
  6165. else
  6166. # Passes both tests.
  6167. ac_preproc_ok=:
  6168. break
  6169. fi
  6170. rm -f conftest.err conftest.i conftest.$ac_ext
  6171. done
  6172. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6173. rm -f conftest.i conftest.err conftest.$ac_ext
  6174. if $ac_preproc_ok; then :
  6175. else
  6176. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6177. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6178. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6179. See \`config.log' for more details" "$LINENO" 5; }
  6180. fi
  6181. ac_ext=c
  6182. ac_cpp='$CPP $CPPFLAGS'
  6183. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6184. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6185. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6187. $as_echo_n "checking for ANSI C header files... " >&6; }
  6188. if ${ac_cv_header_stdc+:} false; then :
  6189. $as_echo_n "(cached) " >&6
  6190. else
  6191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6192. /* end confdefs.h. */
  6193. #include <stdlib.h>
  6194. #include <stdarg.h>
  6195. #include <string.h>
  6196. #include <float.h>
  6197. int
  6198. main ()
  6199. {
  6200. ;
  6201. return 0;
  6202. }
  6203. _ACEOF
  6204. if ac_fn_c_try_compile "$LINENO"; then :
  6205. ac_cv_header_stdc=yes
  6206. else
  6207. ac_cv_header_stdc=no
  6208. fi
  6209. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6210. if test $ac_cv_header_stdc = yes; then
  6211. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6213. /* end confdefs.h. */
  6214. #include <string.h>
  6215. _ACEOF
  6216. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6217. $EGREP "memchr" >/dev/null 2>&1; then :
  6218. else
  6219. ac_cv_header_stdc=no
  6220. fi
  6221. rm -f conftest*
  6222. fi
  6223. if test $ac_cv_header_stdc = yes; then
  6224. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6226. /* end confdefs.h. */
  6227. #include <stdlib.h>
  6228. _ACEOF
  6229. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6230. $EGREP "free" >/dev/null 2>&1; then :
  6231. else
  6232. ac_cv_header_stdc=no
  6233. fi
  6234. rm -f conftest*
  6235. fi
  6236. if test $ac_cv_header_stdc = yes; then
  6237. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6238. if test "$cross_compiling" = yes; then :
  6239. :
  6240. else
  6241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6242. /* end confdefs.h. */
  6243. #include <ctype.h>
  6244. #include <stdlib.h>
  6245. #if ((' ' & 0x0FF) == 0x020)
  6246. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6247. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6248. #else
  6249. # define ISLOWER(c) \
  6250. (('a' <= (c) && (c) <= 'i') \
  6251. || ('j' <= (c) && (c) <= 'r') \
  6252. || ('s' <= (c) && (c) <= 'z'))
  6253. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6254. #endif
  6255. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6256. int
  6257. main ()
  6258. {
  6259. int i;
  6260. for (i = 0; i < 256; i++)
  6261. if (XOR (islower (i), ISLOWER (i))
  6262. || toupper (i) != TOUPPER (i))
  6263. return 2;
  6264. return 0;
  6265. }
  6266. _ACEOF
  6267. if ac_fn_c_try_run "$LINENO"; then :
  6268. else
  6269. ac_cv_header_stdc=no
  6270. fi
  6271. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6272. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6273. fi
  6274. fi
  6275. fi
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6277. $as_echo "$ac_cv_header_stdc" >&6; }
  6278. if test $ac_cv_header_stdc = yes; then
  6279. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6280. fi
  6281. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6282. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6283. inttypes.h stdint.h unistd.h
  6284. do :
  6285. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6286. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6287. "
  6288. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6289. cat >>confdefs.h <<_ACEOF
  6290. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6291. _ACEOF
  6292. fi
  6293. done
  6294. for ac_header in dlfcn.h
  6295. do :
  6296. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6297. "
  6298. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6299. cat >>confdefs.h <<_ACEOF
  6300. #define HAVE_DLFCN_H 1
  6301. _ACEOF
  6302. fi
  6303. done
  6304. # Set options
  6305. enable_win32_dll=yes
  6306. case $host in
  6307. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6308. if test -n "$ac_tool_prefix"; then
  6309. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6310. set dummy ${ac_tool_prefix}as; ac_word=$2
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6312. $as_echo_n "checking for $ac_word... " >&6; }
  6313. if ${ac_cv_prog_AS+:} false; then :
  6314. $as_echo_n "(cached) " >&6
  6315. else
  6316. if test -n "$AS"; then
  6317. ac_cv_prog_AS="$AS" # Let the user override the test.
  6318. else
  6319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6320. for as_dir in $PATH
  6321. do
  6322. IFS=$as_save_IFS
  6323. test -z "$as_dir" && as_dir=.
  6324. for ac_exec_ext in '' $ac_executable_extensions; do
  6325. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6326. ac_cv_prog_AS="${ac_tool_prefix}as"
  6327. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6328. break 2
  6329. fi
  6330. done
  6331. done
  6332. IFS=$as_save_IFS
  6333. fi
  6334. fi
  6335. AS=$ac_cv_prog_AS
  6336. if test -n "$AS"; then
  6337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6338. $as_echo "$AS" >&6; }
  6339. else
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6341. $as_echo "no" >&6; }
  6342. fi
  6343. fi
  6344. if test -z "$ac_cv_prog_AS"; then
  6345. ac_ct_AS=$AS
  6346. # Extract the first word of "as", so it can be a program name with args.
  6347. set dummy as; ac_word=$2
  6348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6349. $as_echo_n "checking for $ac_word... " >&6; }
  6350. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6351. $as_echo_n "(cached) " >&6
  6352. else
  6353. if test -n "$ac_ct_AS"; then
  6354. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6355. else
  6356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6357. for as_dir in $PATH
  6358. do
  6359. IFS=$as_save_IFS
  6360. test -z "$as_dir" && as_dir=.
  6361. for ac_exec_ext in '' $ac_executable_extensions; do
  6362. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6363. ac_cv_prog_ac_ct_AS="as"
  6364. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6365. break 2
  6366. fi
  6367. done
  6368. done
  6369. IFS=$as_save_IFS
  6370. fi
  6371. fi
  6372. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6373. if test -n "$ac_ct_AS"; then
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6375. $as_echo "$ac_ct_AS" >&6; }
  6376. else
  6377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6378. $as_echo "no" >&6; }
  6379. fi
  6380. if test "x$ac_ct_AS" = x; then
  6381. AS="false"
  6382. else
  6383. case $cross_compiling:$ac_tool_warned in
  6384. yes:)
  6385. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6386. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6387. ac_tool_warned=yes ;;
  6388. esac
  6389. AS=$ac_ct_AS
  6390. fi
  6391. else
  6392. AS="$ac_cv_prog_AS"
  6393. fi
  6394. if test -n "$ac_tool_prefix"; then
  6395. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6396. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6398. $as_echo_n "checking for $ac_word... " >&6; }
  6399. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6400. $as_echo_n "(cached) " >&6
  6401. else
  6402. if test -n "$DLLTOOL"; then
  6403. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6404. else
  6405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6406. for as_dir in $PATH
  6407. do
  6408. IFS=$as_save_IFS
  6409. test -z "$as_dir" && as_dir=.
  6410. for ac_exec_ext in '' $ac_executable_extensions; do
  6411. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6412. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6413. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6414. break 2
  6415. fi
  6416. done
  6417. done
  6418. IFS=$as_save_IFS
  6419. fi
  6420. fi
  6421. DLLTOOL=$ac_cv_prog_DLLTOOL
  6422. if test -n "$DLLTOOL"; then
  6423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6424. $as_echo "$DLLTOOL" >&6; }
  6425. else
  6426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6427. $as_echo "no" >&6; }
  6428. fi
  6429. fi
  6430. if test -z "$ac_cv_prog_DLLTOOL"; then
  6431. ac_ct_DLLTOOL=$DLLTOOL
  6432. # Extract the first word of "dlltool", so it can be a program name with args.
  6433. set dummy dlltool; ac_word=$2
  6434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6435. $as_echo_n "checking for $ac_word... " >&6; }
  6436. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6437. $as_echo_n "(cached) " >&6
  6438. else
  6439. if test -n "$ac_ct_DLLTOOL"; then
  6440. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6441. else
  6442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6443. for as_dir in $PATH
  6444. do
  6445. IFS=$as_save_IFS
  6446. test -z "$as_dir" && as_dir=.
  6447. for ac_exec_ext in '' $ac_executable_extensions; do
  6448. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6449. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6450. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6451. break 2
  6452. fi
  6453. done
  6454. done
  6455. IFS=$as_save_IFS
  6456. fi
  6457. fi
  6458. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6459. if test -n "$ac_ct_DLLTOOL"; then
  6460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6461. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6462. else
  6463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6464. $as_echo "no" >&6; }
  6465. fi
  6466. if test "x$ac_ct_DLLTOOL" = x; then
  6467. DLLTOOL="false"
  6468. else
  6469. case $cross_compiling:$ac_tool_warned in
  6470. yes:)
  6471. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6472. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6473. ac_tool_warned=yes ;;
  6474. esac
  6475. DLLTOOL=$ac_ct_DLLTOOL
  6476. fi
  6477. else
  6478. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6479. fi
  6480. if test -n "$ac_tool_prefix"; then
  6481. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6482. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6484. $as_echo_n "checking for $ac_word... " >&6; }
  6485. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6486. $as_echo_n "(cached) " >&6
  6487. else
  6488. if test -n "$OBJDUMP"; then
  6489. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6490. else
  6491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6492. for as_dir in $PATH
  6493. do
  6494. IFS=$as_save_IFS
  6495. test -z "$as_dir" && as_dir=.
  6496. for ac_exec_ext in '' $ac_executable_extensions; do
  6497. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6498. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6499. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6500. break 2
  6501. fi
  6502. done
  6503. done
  6504. IFS=$as_save_IFS
  6505. fi
  6506. fi
  6507. OBJDUMP=$ac_cv_prog_OBJDUMP
  6508. if test -n "$OBJDUMP"; then
  6509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6510. $as_echo "$OBJDUMP" >&6; }
  6511. else
  6512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6513. $as_echo "no" >&6; }
  6514. fi
  6515. fi
  6516. if test -z "$ac_cv_prog_OBJDUMP"; then
  6517. ac_ct_OBJDUMP=$OBJDUMP
  6518. # Extract the first word of "objdump", so it can be a program name with args.
  6519. set dummy objdump; ac_word=$2
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6521. $as_echo_n "checking for $ac_word... " >&6; }
  6522. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6523. $as_echo_n "(cached) " >&6
  6524. else
  6525. if test -n "$ac_ct_OBJDUMP"; then
  6526. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6527. else
  6528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6529. for as_dir in $PATH
  6530. do
  6531. IFS=$as_save_IFS
  6532. test -z "$as_dir" && as_dir=.
  6533. for ac_exec_ext in '' $ac_executable_extensions; do
  6534. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6535. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6536. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6537. break 2
  6538. fi
  6539. done
  6540. done
  6541. IFS=$as_save_IFS
  6542. fi
  6543. fi
  6544. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6545. if test -n "$ac_ct_OBJDUMP"; then
  6546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6547. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6548. else
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6550. $as_echo "no" >&6; }
  6551. fi
  6552. if test "x$ac_ct_OBJDUMP" = x; then
  6553. OBJDUMP="false"
  6554. else
  6555. case $cross_compiling:$ac_tool_warned in
  6556. yes:)
  6557. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6558. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6559. ac_tool_warned=yes ;;
  6560. esac
  6561. OBJDUMP=$ac_ct_OBJDUMP
  6562. fi
  6563. else
  6564. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6565. fi
  6566. ;;
  6567. esac
  6568. test -z "$AS" && AS=as
  6569. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6570. test -z "$OBJDUMP" && OBJDUMP=objdump
  6571. enable_dlopen=no
  6572. # Check whether --enable-shared was given.
  6573. if test "${enable_shared+set}" = set; then :
  6574. enableval=$enable_shared; p=${PACKAGE-default}
  6575. case $enableval in
  6576. yes) enable_shared=yes ;;
  6577. no) enable_shared=no ;;
  6578. *)
  6579. enable_shared=no
  6580. # Look at the argument we got. We use all the common list separators.
  6581. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6582. for pkg in $enableval; do
  6583. IFS="$lt_save_ifs"
  6584. if test "X$pkg" = "X$p"; then
  6585. enable_shared=yes
  6586. fi
  6587. done
  6588. IFS="$lt_save_ifs"
  6589. ;;
  6590. esac
  6591. else
  6592. enable_shared=yes
  6593. fi
  6594. # Check whether --enable-static was given.
  6595. if test "${enable_static+set}" = set; then :
  6596. enableval=$enable_static; p=${PACKAGE-default}
  6597. case $enableval in
  6598. yes) enable_static=yes ;;
  6599. no) enable_static=no ;;
  6600. *)
  6601. enable_static=no
  6602. # Look at the argument we got. We use all the common list separators.
  6603. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6604. for pkg in $enableval; do
  6605. IFS="$lt_save_ifs"
  6606. if test "X$pkg" = "X$p"; then
  6607. enable_static=yes
  6608. fi
  6609. done
  6610. IFS="$lt_save_ifs"
  6611. ;;
  6612. esac
  6613. else
  6614. enable_static=yes
  6615. fi
  6616. # Check whether --with-pic was given.
  6617. if test "${with_pic+set}" = set; then :
  6618. withval=$with_pic; lt_p=${PACKAGE-default}
  6619. case $withval in
  6620. yes|no) pic_mode=$withval ;;
  6621. *)
  6622. pic_mode=default
  6623. # Look at the argument we got. We use all the common list separators.
  6624. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6625. for lt_pkg in $withval; do
  6626. IFS="$lt_save_ifs"
  6627. if test "X$lt_pkg" = "X$lt_p"; then
  6628. pic_mode=yes
  6629. fi
  6630. done
  6631. IFS="$lt_save_ifs"
  6632. ;;
  6633. esac
  6634. else
  6635. pic_mode=default
  6636. fi
  6637. test -z "$pic_mode" && pic_mode=default
  6638. # Check whether --enable-fast-install was given.
  6639. if test "${enable_fast_install+set}" = set; then :
  6640. enableval=$enable_fast_install; p=${PACKAGE-default}
  6641. case $enableval in
  6642. yes) enable_fast_install=yes ;;
  6643. no) enable_fast_install=no ;;
  6644. *)
  6645. enable_fast_install=no
  6646. # Look at the argument we got. We use all the common list separators.
  6647. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6648. for pkg in $enableval; do
  6649. IFS="$lt_save_ifs"
  6650. if test "X$pkg" = "X$p"; then
  6651. enable_fast_install=yes
  6652. fi
  6653. done
  6654. IFS="$lt_save_ifs"
  6655. ;;
  6656. esac
  6657. else
  6658. enable_fast_install=yes
  6659. fi
  6660. # This can be used to rebuild libtool when needed
  6661. LIBTOOL_DEPS="$ltmain"
  6662. # Always use our own libtool.
  6663. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6664. test -z "$LN_S" && LN_S="ln -s"
  6665. if test -n "${ZSH_VERSION+set}" ; then
  6666. setopt NO_GLOB_SUBST
  6667. fi
  6668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6669. $as_echo_n "checking for objdir... " >&6; }
  6670. if ${lt_cv_objdir+:} false; then :
  6671. $as_echo_n "(cached) " >&6
  6672. else
  6673. rm -f .libs 2>/dev/null
  6674. mkdir .libs 2>/dev/null
  6675. if test -d .libs; then
  6676. lt_cv_objdir=.libs
  6677. else
  6678. # MS-DOS does not allow filenames that begin with a dot.
  6679. lt_cv_objdir=_libs
  6680. fi
  6681. rmdir .libs 2>/dev/null
  6682. fi
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6684. $as_echo "$lt_cv_objdir" >&6; }
  6685. objdir=$lt_cv_objdir
  6686. cat >>confdefs.h <<_ACEOF
  6687. #define LT_OBJDIR "$lt_cv_objdir/"
  6688. _ACEOF
  6689. case $host_os in
  6690. aix3*)
  6691. # AIX sometimes has problems with the GCC collect2 program. For some
  6692. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6693. # vanish in a puff of smoke.
  6694. if test "X${COLLECT_NAMES+set}" != Xset; then
  6695. COLLECT_NAMES=
  6696. export COLLECT_NAMES
  6697. fi
  6698. ;;
  6699. esac
  6700. # Global variables:
  6701. ofile=libtool
  6702. can_build_shared=yes
  6703. # All known linkers require a `.a' archive for static linking (except MSVC,
  6704. # which needs '.lib').
  6705. libext=a
  6706. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6707. old_CC="$CC"
  6708. old_CFLAGS="$CFLAGS"
  6709. # Set sane defaults for various variables
  6710. test -z "$CC" && CC=cc
  6711. test -z "$LTCC" && LTCC=$CC
  6712. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6713. test -z "$LD" && LD=ld
  6714. test -z "$ac_objext" && ac_objext=o
  6715. for cc_temp in $compiler""; do
  6716. case $cc_temp in
  6717. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6718. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6719. \-*) ;;
  6720. *) break;;
  6721. esac
  6722. done
  6723. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6724. # Only perform the check for file, if the check method requires it
  6725. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6726. case $deplibs_check_method in
  6727. file_magic*)
  6728. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6730. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6731. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6732. $as_echo_n "(cached) " >&6
  6733. else
  6734. case $MAGIC_CMD in
  6735. [\\/*] | ?:[\\/]*)
  6736. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6737. ;;
  6738. *)
  6739. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6740. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6741. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6742. for ac_dir in $ac_dummy; do
  6743. IFS="$lt_save_ifs"
  6744. test -z "$ac_dir" && ac_dir=.
  6745. if test -f $ac_dir/${ac_tool_prefix}file; then
  6746. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6747. if test -n "$file_magic_test_file"; then
  6748. case $deplibs_check_method in
  6749. "file_magic "*)
  6750. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6751. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6752. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6753. $EGREP "$file_magic_regex" > /dev/null; then
  6754. :
  6755. else
  6756. cat <<_LT_EOF 1>&2
  6757. *** Warning: the command libtool uses to detect shared libraries,
  6758. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6759. *** The result is that libtool may fail to recognize shared libraries
  6760. *** as such. This will affect the creation of libtool libraries that
  6761. *** depend on shared libraries, but programs linked with such libtool
  6762. *** libraries will work regardless of this problem. Nevertheless, you
  6763. *** may want to report the problem to your system manager and/or to
  6764. *** bug-libtool@gnu.org
  6765. _LT_EOF
  6766. fi ;;
  6767. esac
  6768. fi
  6769. break
  6770. fi
  6771. done
  6772. IFS="$lt_save_ifs"
  6773. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6774. ;;
  6775. esac
  6776. fi
  6777. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6778. if test -n "$MAGIC_CMD"; then
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6780. $as_echo "$MAGIC_CMD" >&6; }
  6781. else
  6782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6783. $as_echo "no" >&6; }
  6784. fi
  6785. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6786. if test -n "$ac_tool_prefix"; then
  6787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6788. $as_echo_n "checking for file... " >&6; }
  6789. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6790. $as_echo_n "(cached) " >&6
  6791. else
  6792. case $MAGIC_CMD in
  6793. [\\/*] | ?:[\\/]*)
  6794. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6795. ;;
  6796. *)
  6797. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6798. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6799. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6800. for ac_dir in $ac_dummy; do
  6801. IFS="$lt_save_ifs"
  6802. test -z "$ac_dir" && ac_dir=.
  6803. if test -f $ac_dir/file; then
  6804. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6805. if test -n "$file_magic_test_file"; then
  6806. case $deplibs_check_method in
  6807. "file_magic "*)
  6808. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6809. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6810. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6811. $EGREP "$file_magic_regex" > /dev/null; then
  6812. :
  6813. else
  6814. cat <<_LT_EOF 1>&2
  6815. *** Warning: the command libtool uses to detect shared libraries,
  6816. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6817. *** The result is that libtool may fail to recognize shared libraries
  6818. *** as such. This will affect the creation of libtool libraries that
  6819. *** depend on shared libraries, but programs linked with such libtool
  6820. *** libraries will work regardless of this problem. Nevertheless, you
  6821. *** may want to report the problem to your system manager and/or to
  6822. *** bug-libtool@gnu.org
  6823. _LT_EOF
  6824. fi ;;
  6825. esac
  6826. fi
  6827. break
  6828. fi
  6829. done
  6830. IFS="$lt_save_ifs"
  6831. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6832. ;;
  6833. esac
  6834. fi
  6835. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6836. if test -n "$MAGIC_CMD"; then
  6837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6838. $as_echo "$MAGIC_CMD" >&6; }
  6839. else
  6840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6841. $as_echo "no" >&6; }
  6842. fi
  6843. else
  6844. MAGIC_CMD=:
  6845. fi
  6846. fi
  6847. fi
  6848. ;;
  6849. esac
  6850. # Use C for the default configuration in the libtool script
  6851. lt_save_CC="$CC"
  6852. ac_ext=c
  6853. ac_cpp='$CPP $CPPFLAGS'
  6854. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6855. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6856. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6857. # Source file extension for C test sources.
  6858. ac_ext=c
  6859. # Object file extension for compiled C test sources.
  6860. objext=o
  6861. objext=$objext
  6862. # Code to be used in simple compile tests
  6863. lt_simple_compile_test_code="int some_variable = 0;"
  6864. # Code to be used in simple link tests
  6865. lt_simple_link_test_code='int main(){return(0);}'
  6866. # If no C compiler was specified, use CC.
  6867. LTCC=${LTCC-"$CC"}
  6868. # If no C compiler flags were specified, use CFLAGS.
  6869. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6870. # Allow CC to be a program name with arguments.
  6871. compiler=$CC
  6872. # Save the default compiler, since it gets overwritten when the other
  6873. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6874. compiler_DEFAULT=$CC
  6875. # save warnings/boilerplate of simple test code
  6876. ac_outfile=conftest.$ac_objext
  6877. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6878. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6879. _lt_compiler_boilerplate=`cat conftest.err`
  6880. $RM conftest*
  6881. ac_outfile=conftest.$ac_objext
  6882. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6883. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6884. _lt_linker_boilerplate=`cat conftest.err`
  6885. $RM -r conftest*
  6886. ## CAVEAT EMPTOR:
  6887. ## There is no encapsulation within the following macros, do not change
  6888. ## the running order or otherwise move them around unless you know exactly
  6889. ## what you are doing...
  6890. if test -n "$compiler"; then
  6891. lt_prog_compiler_no_builtin_flag=
  6892. if test "$GCC" = yes; then
  6893. case $cc_basename in
  6894. nvcc*)
  6895. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6896. *)
  6897. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6898. esac
  6899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6900. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6901. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6902. $as_echo_n "(cached) " >&6
  6903. else
  6904. lt_cv_prog_compiler_rtti_exceptions=no
  6905. ac_outfile=conftest.$ac_objext
  6906. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6907. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6908. # Insert the option either (1) after the last *FLAGS variable, or
  6909. # (2) before a word containing "conftest.", or (3) at the end.
  6910. # Note that $ac_compile itself does not contain backslashes and begins
  6911. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6912. # The option is referenced via a variable to avoid confusing sed.
  6913. lt_compile=`echo "$ac_compile" | $SED \
  6914. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6915. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6916. -e 's:$: $lt_compiler_flag:'`
  6917. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6918. (eval "$lt_compile" 2>conftest.err)
  6919. ac_status=$?
  6920. cat conftest.err >&5
  6921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6922. if (exit $ac_status) && test -s "$ac_outfile"; then
  6923. # The compiler can only warn and ignore the option if not recognized
  6924. # So say no if there are warnings other than the usual output.
  6925. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6926. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6927. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6928. lt_cv_prog_compiler_rtti_exceptions=yes
  6929. fi
  6930. fi
  6931. $RM conftest*
  6932. fi
  6933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6934. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6935. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6936. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6937. else
  6938. :
  6939. fi
  6940. fi
  6941. lt_prog_compiler_wl=
  6942. lt_prog_compiler_pic=
  6943. lt_prog_compiler_static=
  6944. if test "$GCC" = yes; then
  6945. lt_prog_compiler_wl='-Wl,'
  6946. lt_prog_compiler_static='-static'
  6947. case $host_os in
  6948. aix*)
  6949. # All AIX code is PIC.
  6950. if test "$host_cpu" = ia64; then
  6951. # AIX 5 now supports IA64 processor
  6952. lt_prog_compiler_static='-Bstatic'
  6953. fi
  6954. ;;
  6955. amigaos*)
  6956. case $host_cpu in
  6957. powerpc)
  6958. # see comment about AmigaOS4 .so support
  6959. lt_prog_compiler_pic='-fPIC'
  6960. ;;
  6961. m68k)
  6962. # FIXME: we need at least 68020 code to build shared libraries, but
  6963. # adding the `-m68020' flag to GCC prevents building anything better,
  6964. # like `-m68040'.
  6965. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6966. ;;
  6967. esac
  6968. ;;
  6969. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6970. # PIC is the default for these OSes.
  6971. ;;
  6972. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6973. # This hack is so that the source file can tell whether it is being
  6974. # built for inclusion in a dll (and should export symbols for example).
  6975. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6976. # (--disable-auto-import) libraries
  6977. lt_prog_compiler_pic='-DDLL_EXPORT'
  6978. ;;
  6979. darwin* | rhapsody*)
  6980. # PIC is the default on this platform
  6981. # Common symbols not allowed in MH_DYLIB files
  6982. lt_prog_compiler_pic='-fno-common'
  6983. ;;
  6984. haiku*)
  6985. # PIC is the default for Haiku.
  6986. # The "-static" flag exists, but is broken.
  6987. lt_prog_compiler_static=
  6988. ;;
  6989. hpux*)
  6990. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6991. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6992. # sets the default TLS model and affects inlining.
  6993. case $host_cpu in
  6994. hppa*64*)
  6995. # +Z the default
  6996. ;;
  6997. *)
  6998. lt_prog_compiler_pic='-fPIC'
  6999. ;;
  7000. esac
  7001. ;;
  7002. interix[3-9]*)
  7003. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7004. # Instead, we relocate shared libraries at runtime.
  7005. ;;
  7006. msdosdjgpp*)
  7007. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7008. # on systems that don't support them.
  7009. lt_prog_compiler_can_build_shared=no
  7010. enable_shared=no
  7011. ;;
  7012. *nto* | *qnx*)
  7013. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7014. # it will coredump.
  7015. lt_prog_compiler_pic='-fPIC -shared'
  7016. ;;
  7017. sysv4*MP*)
  7018. if test -d /usr/nec; then
  7019. lt_prog_compiler_pic=-Kconform_pic
  7020. fi
  7021. ;;
  7022. *)
  7023. lt_prog_compiler_pic='-fPIC'
  7024. ;;
  7025. esac
  7026. case $cc_basename in
  7027. nvcc*) # Cuda Compiler Driver 2.2
  7028. lt_prog_compiler_wl='-Xlinker '
  7029. if test -n "$lt_prog_compiler_pic"; then
  7030. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7031. fi
  7032. ;;
  7033. esac
  7034. else
  7035. # PORTME Check for flag to pass linker flags through the system compiler.
  7036. case $host_os in
  7037. aix*)
  7038. lt_prog_compiler_wl='-Wl,'
  7039. if test "$host_cpu" = ia64; then
  7040. # AIX 5 now supports IA64 processor
  7041. lt_prog_compiler_static='-Bstatic'
  7042. else
  7043. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7044. fi
  7045. ;;
  7046. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7047. # This hack is so that the source file can tell whether it is being
  7048. # built for inclusion in a dll (and should export symbols for example).
  7049. lt_prog_compiler_pic='-DDLL_EXPORT'
  7050. ;;
  7051. hpux9* | hpux10* | hpux11*)
  7052. lt_prog_compiler_wl='-Wl,'
  7053. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7054. # not for PA HP-UX.
  7055. case $host_cpu in
  7056. hppa*64*|ia64*)
  7057. # +Z the default
  7058. ;;
  7059. *)
  7060. lt_prog_compiler_pic='+Z'
  7061. ;;
  7062. esac
  7063. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7064. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7065. ;;
  7066. irix5* | irix6* | nonstopux*)
  7067. lt_prog_compiler_wl='-Wl,'
  7068. # PIC (with -KPIC) is the default.
  7069. lt_prog_compiler_static='-non_shared'
  7070. ;;
  7071. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7072. case $cc_basename in
  7073. # old Intel for x86_64 which still supported -KPIC.
  7074. ecc*)
  7075. lt_prog_compiler_wl='-Wl,'
  7076. lt_prog_compiler_pic='-KPIC'
  7077. lt_prog_compiler_static='-static'
  7078. ;;
  7079. # icc used to be incompatible with GCC.
  7080. # ICC 10 doesn't accept -KPIC any more.
  7081. icc* | ifort*)
  7082. lt_prog_compiler_wl='-Wl,'
  7083. lt_prog_compiler_pic='-fPIC'
  7084. lt_prog_compiler_static='-static'
  7085. ;;
  7086. # Lahey Fortran 8.1.
  7087. lf95*)
  7088. lt_prog_compiler_wl='-Wl,'
  7089. lt_prog_compiler_pic='--shared'
  7090. lt_prog_compiler_static='--static'
  7091. ;;
  7092. nagfor*)
  7093. # NAG Fortran compiler
  7094. lt_prog_compiler_wl='-Wl,-Wl,,'
  7095. lt_prog_compiler_pic='-PIC'
  7096. lt_prog_compiler_static='-Bstatic'
  7097. ;;
  7098. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7099. # Portland Group compilers (*not* the Pentium gcc compiler,
  7100. # which looks to be a dead project)
  7101. lt_prog_compiler_wl='-Wl,'
  7102. lt_prog_compiler_pic='-fpic'
  7103. lt_prog_compiler_static='-Bstatic'
  7104. ;;
  7105. ccc*)
  7106. lt_prog_compiler_wl='-Wl,'
  7107. # All Alpha code is PIC.
  7108. lt_prog_compiler_static='-non_shared'
  7109. ;;
  7110. xl* | bgxl* | bgf* | mpixl*)
  7111. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7112. lt_prog_compiler_wl='-Wl,'
  7113. lt_prog_compiler_pic='-qpic'
  7114. lt_prog_compiler_static='-qstaticlink'
  7115. ;;
  7116. *)
  7117. case `$CC -V 2>&1 | sed 5q` in
  7118. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7119. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7120. lt_prog_compiler_pic='-KPIC'
  7121. lt_prog_compiler_static='-Bstatic'
  7122. lt_prog_compiler_wl=''
  7123. ;;
  7124. *Sun\ F* | *Sun*Fortran*)
  7125. lt_prog_compiler_pic='-KPIC'
  7126. lt_prog_compiler_static='-Bstatic'
  7127. lt_prog_compiler_wl='-Qoption ld '
  7128. ;;
  7129. *Sun\ C*)
  7130. # Sun C 5.9
  7131. lt_prog_compiler_pic='-KPIC'
  7132. lt_prog_compiler_static='-Bstatic'
  7133. lt_prog_compiler_wl='-Wl,'
  7134. ;;
  7135. *Intel*\ [CF]*Compiler*)
  7136. lt_prog_compiler_wl='-Wl,'
  7137. lt_prog_compiler_pic='-fPIC'
  7138. lt_prog_compiler_static='-static'
  7139. ;;
  7140. *Portland\ Group*)
  7141. lt_prog_compiler_wl='-Wl,'
  7142. lt_prog_compiler_pic='-fpic'
  7143. lt_prog_compiler_static='-Bstatic'
  7144. ;;
  7145. esac
  7146. ;;
  7147. esac
  7148. ;;
  7149. newsos6)
  7150. lt_prog_compiler_pic='-KPIC'
  7151. lt_prog_compiler_static='-Bstatic'
  7152. ;;
  7153. *nto* | *qnx*)
  7154. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7155. # it will coredump.
  7156. lt_prog_compiler_pic='-fPIC -shared'
  7157. ;;
  7158. osf3* | osf4* | osf5*)
  7159. lt_prog_compiler_wl='-Wl,'
  7160. # All OSF/1 code is PIC.
  7161. lt_prog_compiler_static='-non_shared'
  7162. ;;
  7163. rdos*)
  7164. lt_prog_compiler_static='-non_shared'
  7165. ;;
  7166. solaris*)
  7167. lt_prog_compiler_pic='-KPIC'
  7168. lt_prog_compiler_static='-Bstatic'
  7169. case $cc_basename in
  7170. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7171. lt_prog_compiler_wl='-Qoption ld ';;
  7172. *)
  7173. lt_prog_compiler_wl='-Wl,';;
  7174. esac
  7175. ;;
  7176. sunos4*)
  7177. lt_prog_compiler_wl='-Qoption ld '
  7178. lt_prog_compiler_pic='-PIC'
  7179. lt_prog_compiler_static='-Bstatic'
  7180. ;;
  7181. sysv4 | sysv4.2uw2* | sysv4.3*)
  7182. lt_prog_compiler_wl='-Wl,'
  7183. lt_prog_compiler_pic='-KPIC'
  7184. lt_prog_compiler_static='-Bstatic'
  7185. ;;
  7186. sysv4*MP*)
  7187. if test -d /usr/nec ;then
  7188. lt_prog_compiler_pic='-Kconform_pic'
  7189. lt_prog_compiler_static='-Bstatic'
  7190. fi
  7191. ;;
  7192. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7193. lt_prog_compiler_wl='-Wl,'
  7194. lt_prog_compiler_pic='-KPIC'
  7195. lt_prog_compiler_static='-Bstatic'
  7196. ;;
  7197. unicos*)
  7198. lt_prog_compiler_wl='-Wl,'
  7199. lt_prog_compiler_can_build_shared=no
  7200. ;;
  7201. uts4*)
  7202. lt_prog_compiler_pic='-pic'
  7203. lt_prog_compiler_static='-Bstatic'
  7204. ;;
  7205. *)
  7206. lt_prog_compiler_can_build_shared=no
  7207. ;;
  7208. esac
  7209. fi
  7210. case $host_os in
  7211. # For platforms which do not support PIC, -DPIC is meaningless:
  7212. *djgpp*)
  7213. lt_prog_compiler_pic=
  7214. ;;
  7215. *)
  7216. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7217. ;;
  7218. esac
  7219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7220. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7221. if ${lt_cv_prog_compiler_pic+:} false; then :
  7222. $as_echo_n "(cached) " >&6
  7223. else
  7224. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7225. fi
  7226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7227. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7228. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7229. #
  7230. # Check to make sure the PIC flag actually works.
  7231. #
  7232. if test -n "$lt_prog_compiler_pic"; then
  7233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7234. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7235. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7236. $as_echo_n "(cached) " >&6
  7237. else
  7238. lt_cv_prog_compiler_pic_works=no
  7239. ac_outfile=conftest.$ac_objext
  7240. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7241. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7242. # Insert the option either (1) after the last *FLAGS variable, or
  7243. # (2) before a word containing "conftest.", or (3) at the end.
  7244. # Note that $ac_compile itself does not contain backslashes and begins
  7245. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7246. # The option is referenced via a variable to avoid confusing sed.
  7247. lt_compile=`echo "$ac_compile" | $SED \
  7248. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7249. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7250. -e 's:$: $lt_compiler_flag:'`
  7251. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7252. (eval "$lt_compile" 2>conftest.err)
  7253. ac_status=$?
  7254. cat conftest.err >&5
  7255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7256. if (exit $ac_status) && test -s "$ac_outfile"; then
  7257. # The compiler can only warn and ignore the option if not recognized
  7258. # So say no if there are warnings other than the usual output.
  7259. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7260. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7261. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7262. lt_cv_prog_compiler_pic_works=yes
  7263. fi
  7264. fi
  7265. $RM conftest*
  7266. fi
  7267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7268. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7269. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7270. case $lt_prog_compiler_pic in
  7271. "" | " "*) ;;
  7272. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7273. esac
  7274. else
  7275. lt_prog_compiler_pic=
  7276. lt_prog_compiler_can_build_shared=no
  7277. fi
  7278. fi
  7279. #
  7280. # Check to make sure the static flag actually works.
  7281. #
  7282. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7284. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7285. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7286. $as_echo_n "(cached) " >&6
  7287. else
  7288. lt_cv_prog_compiler_static_works=no
  7289. save_LDFLAGS="$LDFLAGS"
  7290. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7291. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7292. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7293. # The linker can only warn and ignore the option if not recognized
  7294. # So say no if there are warnings
  7295. if test -s conftest.err; then
  7296. # Append any errors to the config.log.
  7297. cat conftest.err 1>&5
  7298. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7299. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7300. if diff conftest.exp conftest.er2 >/dev/null; then
  7301. lt_cv_prog_compiler_static_works=yes
  7302. fi
  7303. else
  7304. lt_cv_prog_compiler_static_works=yes
  7305. fi
  7306. fi
  7307. $RM -r conftest*
  7308. LDFLAGS="$save_LDFLAGS"
  7309. fi
  7310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7311. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7312. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7313. :
  7314. else
  7315. lt_prog_compiler_static=
  7316. fi
  7317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7318. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7319. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7320. $as_echo_n "(cached) " >&6
  7321. else
  7322. lt_cv_prog_compiler_c_o=no
  7323. $RM -r conftest 2>/dev/null
  7324. mkdir conftest
  7325. cd conftest
  7326. mkdir out
  7327. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7328. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7329. # Insert the option either (1) after the last *FLAGS variable, or
  7330. # (2) before a word containing "conftest.", or (3) at the end.
  7331. # Note that $ac_compile itself does not contain backslashes and begins
  7332. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7333. lt_compile=`echo "$ac_compile" | $SED \
  7334. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7335. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7336. -e 's:$: $lt_compiler_flag:'`
  7337. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7338. (eval "$lt_compile" 2>out/conftest.err)
  7339. ac_status=$?
  7340. cat out/conftest.err >&5
  7341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7342. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7343. then
  7344. # The compiler can only warn and ignore the option if not recognized
  7345. # So say no if there are warnings
  7346. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7347. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7348. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7349. lt_cv_prog_compiler_c_o=yes
  7350. fi
  7351. fi
  7352. chmod u+w . 2>&5
  7353. $RM conftest*
  7354. # SGI C++ compiler will create directory out/ii_files/ for
  7355. # template instantiation
  7356. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7357. $RM out/* && rmdir out
  7358. cd ..
  7359. $RM -r conftest
  7360. $RM conftest*
  7361. fi
  7362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7363. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7365. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7366. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7367. $as_echo_n "(cached) " >&6
  7368. else
  7369. lt_cv_prog_compiler_c_o=no
  7370. $RM -r conftest 2>/dev/null
  7371. mkdir conftest
  7372. cd conftest
  7373. mkdir out
  7374. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7375. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7376. # Insert the option either (1) after the last *FLAGS variable, or
  7377. # (2) before a word containing "conftest.", or (3) at the end.
  7378. # Note that $ac_compile itself does not contain backslashes and begins
  7379. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7380. lt_compile=`echo "$ac_compile" | $SED \
  7381. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7382. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7383. -e 's:$: $lt_compiler_flag:'`
  7384. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7385. (eval "$lt_compile" 2>out/conftest.err)
  7386. ac_status=$?
  7387. cat out/conftest.err >&5
  7388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7389. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7390. then
  7391. # The compiler can only warn and ignore the option if not recognized
  7392. # So say no if there are warnings
  7393. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7394. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7395. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7396. lt_cv_prog_compiler_c_o=yes
  7397. fi
  7398. fi
  7399. chmod u+w . 2>&5
  7400. $RM conftest*
  7401. # SGI C++ compiler will create directory out/ii_files/ for
  7402. # template instantiation
  7403. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7404. $RM out/* && rmdir out
  7405. cd ..
  7406. $RM -r conftest
  7407. $RM conftest*
  7408. fi
  7409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7410. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7411. hard_links="nottested"
  7412. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7413. # do not overwrite the value of need_locks provided by the user
  7414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7415. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7416. hard_links=yes
  7417. $RM conftest*
  7418. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7419. touch conftest.a
  7420. ln conftest.a conftest.b 2>&5 || hard_links=no
  7421. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7423. $as_echo "$hard_links" >&6; }
  7424. if test "$hard_links" = no; then
  7425. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7426. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7427. need_locks=warn
  7428. fi
  7429. else
  7430. need_locks=no
  7431. fi
  7432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7433. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7434. runpath_var=
  7435. allow_undefined_flag=
  7436. always_export_symbols=no
  7437. archive_cmds=
  7438. archive_expsym_cmds=
  7439. compiler_needs_object=no
  7440. enable_shared_with_static_runtimes=no
  7441. export_dynamic_flag_spec=
  7442. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7443. hardcode_automatic=no
  7444. hardcode_direct=no
  7445. hardcode_direct_absolute=no
  7446. hardcode_libdir_flag_spec=
  7447. hardcode_libdir_separator=
  7448. hardcode_minus_L=no
  7449. hardcode_shlibpath_var=unsupported
  7450. inherit_rpath=no
  7451. link_all_deplibs=unknown
  7452. module_cmds=
  7453. module_expsym_cmds=
  7454. old_archive_from_new_cmds=
  7455. old_archive_from_expsyms_cmds=
  7456. thread_safe_flag_spec=
  7457. whole_archive_flag_spec=
  7458. # include_expsyms should be a list of space-separated symbols to be *always*
  7459. # included in the symbol list
  7460. include_expsyms=
  7461. # exclude_expsyms can be an extended regexp of symbols to exclude
  7462. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7463. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7464. # as well as any symbol that contains `d'.
  7465. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7466. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7467. # platforms (ab)use it in PIC code, but their linkers get confused if
  7468. # the symbol is explicitly referenced. Since portable code cannot
  7469. # rely on this symbol name, it's probably fine to never include it in
  7470. # preloaded symbol tables.
  7471. # Exclude shared library initialization/finalization symbols.
  7472. extract_expsyms_cmds=
  7473. case $host_os in
  7474. cygwin* | mingw* | pw32* | cegcc*)
  7475. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7476. # When not using gcc, we currently assume that we are using
  7477. # Microsoft Visual C++.
  7478. if test "$GCC" != yes; then
  7479. with_gnu_ld=no
  7480. fi
  7481. ;;
  7482. interix*)
  7483. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7484. with_gnu_ld=yes
  7485. ;;
  7486. openbsd*)
  7487. with_gnu_ld=no
  7488. ;;
  7489. esac
  7490. ld_shlibs=yes
  7491. # On some targets, GNU ld is compatible enough with the native linker
  7492. # that we're better off using the native interface for both.
  7493. lt_use_gnu_ld_interface=no
  7494. if test "$with_gnu_ld" = yes; then
  7495. case $host_os in
  7496. aix*)
  7497. # The AIX port of GNU ld has always aspired to compatibility
  7498. # with the native linker. However, as the warning in the GNU ld
  7499. # block says, versions before 2.19.5* couldn't really create working
  7500. # shared libraries, regardless of the interface used.
  7501. case `$LD -v 2>&1` in
  7502. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7503. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7504. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7505. *)
  7506. lt_use_gnu_ld_interface=yes
  7507. ;;
  7508. esac
  7509. ;;
  7510. *)
  7511. lt_use_gnu_ld_interface=yes
  7512. ;;
  7513. esac
  7514. fi
  7515. if test "$lt_use_gnu_ld_interface" = yes; then
  7516. # If archive_cmds runs LD, not CC, wlarc should be empty
  7517. wlarc='${wl}'
  7518. # Set some defaults for GNU ld with shared library support. These
  7519. # are reset later if shared libraries are not supported. Putting them
  7520. # here allows them to be overridden if necessary.
  7521. runpath_var=LD_RUN_PATH
  7522. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7523. export_dynamic_flag_spec='${wl}--export-dynamic'
  7524. # ancient GNU ld didn't support --whole-archive et. al.
  7525. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7526. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7527. else
  7528. whole_archive_flag_spec=
  7529. fi
  7530. supports_anon_versioning=no
  7531. case `$LD -v 2>&1` in
  7532. *GNU\ gold*) supports_anon_versioning=yes ;;
  7533. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7534. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7535. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7536. *\ 2.11.*) ;; # other 2.11 versions
  7537. *) supports_anon_versioning=yes ;;
  7538. esac
  7539. # See if GNU ld supports shared libraries.
  7540. case $host_os in
  7541. aix[3-9]*)
  7542. # On AIX/PPC, the GNU linker is very broken
  7543. if test "$host_cpu" != ia64; then
  7544. ld_shlibs=no
  7545. cat <<_LT_EOF 1>&2
  7546. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7547. *** to be unable to reliably create shared libraries on AIX.
  7548. *** Therefore, libtool is disabling shared libraries support. If you
  7549. *** really care for shared libraries, you may want to install binutils
  7550. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7551. *** You will then need to restart the configuration process.
  7552. _LT_EOF
  7553. fi
  7554. ;;
  7555. amigaos*)
  7556. case $host_cpu in
  7557. powerpc)
  7558. # see comment about AmigaOS4 .so support
  7559. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7560. archive_expsym_cmds=''
  7561. ;;
  7562. m68k)
  7563. 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)'
  7564. hardcode_libdir_flag_spec='-L$libdir'
  7565. hardcode_minus_L=yes
  7566. ;;
  7567. esac
  7568. ;;
  7569. beos*)
  7570. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7571. allow_undefined_flag=unsupported
  7572. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7573. # support --undefined. This deserves some investigation. FIXME
  7574. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7575. else
  7576. ld_shlibs=no
  7577. fi
  7578. ;;
  7579. cygwin* | mingw* | pw32* | cegcc*)
  7580. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7581. # as there is no search path for DLLs.
  7582. hardcode_libdir_flag_spec='-L$libdir'
  7583. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7584. allow_undefined_flag=unsupported
  7585. always_export_symbols=no
  7586. enable_shared_with_static_runtimes=yes
  7587. 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'
  7588. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7589. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7590. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7591. # If the export-symbols file already is a .def file (1st line
  7592. # is EXPORTS), use it as is; otherwise, prepend...
  7593. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7594. cp $export_symbols $output_objdir/$soname.def;
  7595. else
  7596. echo EXPORTS > $output_objdir/$soname.def;
  7597. cat $export_symbols >> $output_objdir/$soname.def;
  7598. fi~
  7599. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7600. else
  7601. ld_shlibs=no
  7602. fi
  7603. ;;
  7604. haiku*)
  7605. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7606. link_all_deplibs=yes
  7607. ;;
  7608. interix[3-9]*)
  7609. hardcode_direct=no
  7610. hardcode_shlibpath_var=no
  7611. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7612. export_dynamic_flag_spec='${wl}-E'
  7613. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7614. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7615. # default) and relocated if they conflict, which is a slow very memory
  7616. # consuming and fragmenting process. To avoid this, we pick a random,
  7617. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7618. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7619. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7620. 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'
  7621. ;;
  7622. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7623. tmp_diet=no
  7624. if test "$host_os" = linux-dietlibc; then
  7625. case $cc_basename in
  7626. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7627. esac
  7628. fi
  7629. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7630. && test "$tmp_diet" = no
  7631. then
  7632. tmp_addflag=' $pic_flag'
  7633. tmp_sharedflag='-shared'
  7634. case $cc_basename,$host_cpu in
  7635. pgcc*) # Portland Group C compiler
  7636. 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'
  7637. tmp_addflag=' $pic_flag'
  7638. ;;
  7639. pgf77* | pgf90* | pgf95* | pgfortran*)
  7640. # Portland Group f77 and f90 compilers
  7641. 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'
  7642. tmp_addflag=' $pic_flag -Mnomain' ;;
  7643. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7644. tmp_addflag=' -i_dynamic' ;;
  7645. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7646. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7647. ifc* | ifort*) # Intel Fortran compiler
  7648. tmp_addflag=' -nofor_main' ;;
  7649. lf95*) # Lahey Fortran 8.1
  7650. whole_archive_flag_spec=
  7651. tmp_sharedflag='--shared' ;;
  7652. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7653. tmp_sharedflag='-qmkshrobj'
  7654. tmp_addflag= ;;
  7655. nvcc*) # Cuda Compiler Driver 2.2
  7656. 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'
  7657. compiler_needs_object=yes
  7658. ;;
  7659. esac
  7660. case `$CC -V 2>&1 | sed 5q` in
  7661. *Sun\ C*) # Sun C 5.9
  7662. 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'
  7663. compiler_needs_object=yes
  7664. tmp_sharedflag='-G' ;;
  7665. *Sun\ F*) # Sun Fortran 8.3
  7666. tmp_sharedflag='-G' ;;
  7667. esac
  7668. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7669. if test "x$supports_anon_versioning" = xyes; then
  7670. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7671. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7672. echo "local: *; };" >> $output_objdir/$libname.ver~
  7673. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7674. fi
  7675. case $cc_basename in
  7676. xlf* | bgf* | bgxlf* | mpixlf*)
  7677. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7678. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7679. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7680. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7681. if test "x$supports_anon_versioning" = xyes; then
  7682. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7683. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7684. echo "local: *; };" >> $output_objdir/$libname.ver~
  7685. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7686. fi
  7687. ;;
  7688. esac
  7689. else
  7690. ld_shlibs=no
  7691. fi
  7692. ;;
  7693. netbsd*)
  7694. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7695. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7696. wlarc=
  7697. else
  7698. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7699. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7700. fi
  7701. ;;
  7702. solaris*)
  7703. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7704. ld_shlibs=no
  7705. cat <<_LT_EOF 1>&2
  7706. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7707. *** create shared libraries on Solaris systems. Therefore, libtool
  7708. *** is disabling shared libraries support. We urge you to upgrade GNU
  7709. *** binutils to release 2.9.1 or newer. Another option is to modify
  7710. *** your PATH or compiler configuration so that the native linker is
  7711. *** used, and then restart.
  7712. _LT_EOF
  7713. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7714. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7715. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7716. else
  7717. ld_shlibs=no
  7718. fi
  7719. ;;
  7720. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7721. case `$LD -v 2>&1` in
  7722. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7723. ld_shlibs=no
  7724. cat <<_LT_EOF 1>&2
  7725. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7726. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7727. *** is disabling shared libraries support. We urge you to upgrade GNU
  7728. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7729. *** your PATH or compiler configuration so that the native linker is
  7730. *** used, and then restart.
  7731. _LT_EOF
  7732. ;;
  7733. *)
  7734. # For security reasons, it is highly recommended that you always
  7735. # use absolute paths for naming shared libraries, and exclude the
  7736. # DT_RUNPATH tag from executables and libraries. But doing so
  7737. # requires that you compile everything twice, which is a pain.
  7738. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7739. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7740. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7741. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7742. else
  7743. ld_shlibs=no
  7744. fi
  7745. ;;
  7746. esac
  7747. ;;
  7748. sunos4*)
  7749. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7750. wlarc=
  7751. hardcode_direct=yes
  7752. hardcode_shlibpath_var=no
  7753. ;;
  7754. *)
  7755. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7756. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7757. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7758. else
  7759. ld_shlibs=no
  7760. fi
  7761. ;;
  7762. esac
  7763. if test "$ld_shlibs" = no; then
  7764. runpath_var=
  7765. hardcode_libdir_flag_spec=
  7766. export_dynamic_flag_spec=
  7767. whole_archive_flag_spec=
  7768. fi
  7769. else
  7770. # PORTME fill in a description of your system's linker (not GNU ld)
  7771. case $host_os in
  7772. aix3*)
  7773. allow_undefined_flag=unsupported
  7774. always_export_symbols=yes
  7775. 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'
  7776. # Note: this linker hardcodes the directories in LIBPATH if there
  7777. # are no directories specified by -L.
  7778. hardcode_minus_L=yes
  7779. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7780. # Neither direct hardcoding nor static linking is supported with a
  7781. # broken collect2.
  7782. hardcode_direct=unsupported
  7783. fi
  7784. ;;
  7785. aix[4-9]*)
  7786. if test "$host_cpu" = ia64; then
  7787. # On IA64, the linker does run time linking by default, so we don't
  7788. # have to do anything special.
  7789. aix_use_runtimelinking=no
  7790. exp_sym_flag='-Bexport'
  7791. no_entry_flag=""
  7792. else
  7793. # If we're using GNU nm, then we don't want the "-C" option.
  7794. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7795. # Also, AIX nm treats weak defined symbols like other global
  7796. # defined symbols, whereas GNU nm marks them as "W".
  7797. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7798. 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'
  7799. else
  7800. 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'
  7801. fi
  7802. aix_use_runtimelinking=no
  7803. # Test if we are trying to use run time linking or normal
  7804. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7805. # need to do runtime linking.
  7806. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7807. for ld_flag in $LDFLAGS; do
  7808. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7809. aix_use_runtimelinking=yes
  7810. break
  7811. fi
  7812. done
  7813. ;;
  7814. esac
  7815. exp_sym_flag='-bexport'
  7816. no_entry_flag='-bnoentry'
  7817. fi
  7818. # When large executables or shared objects are built, AIX ld can
  7819. # have problems creating the table of contents. If linking a library
  7820. # or program results in "error TOC overflow" add -mminimal-toc to
  7821. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7822. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7823. archive_cmds=''
  7824. hardcode_direct=yes
  7825. hardcode_direct_absolute=yes
  7826. hardcode_libdir_separator=':'
  7827. link_all_deplibs=yes
  7828. file_list_spec='${wl}-f,'
  7829. if test "$GCC" = yes; then
  7830. case $host_os in aix4.[012]|aix4.[012].*)
  7831. # We only want to do this on AIX 4.2 and lower, the check
  7832. # below for broken collect2 doesn't work under 4.3+
  7833. collect2name=`${CC} -print-prog-name=collect2`
  7834. if test -f "$collect2name" &&
  7835. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7836. then
  7837. # We have reworked collect2
  7838. :
  7839. else
  7840. # We have old collect2
  7841. hardcode_direct=unsupported
  7842. # It fails to find uninstalled libraries when the uninstalled
  7843. # path is not listed in the libpath. Setting hardcode_minus_L
  7844. # to unsupported forces relinking
  7845. hardcode_minus_L=yes
  7846. hardcode_libdir_flag_spec='-L$libdir'
  7847. hardcode_libdir_separator=
  7848. fi
  7849. ;;
  7850. esac
  7851. shared_flag='-shared'
  7852. if test "$aix_use_runtimelinking" = yes; then
  7853. shared_flag="$shared_flag "'${wl}-G'
  7854. fi
  7855. else
  7856. # not using gcc
  7857. if test "$host_cpu" = ia64; then
  7858. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7859. # chokes on -Wl,-G. The following line is correct:
  7860. shared_flag='-G'
  7861. else
  7862. if test "$aix_use_runtimelinking" = yes; then
  7863. shared_flag='${wl}-G'
  7864. else
  7865. shared_flag='${wl}-bM:SRE'
  7866. fi
  7867. fi
  7868. fi
  7869. export_dynamic_flag_spec='${wl}-bexpall'
  7870. # It seems that -bexpall does not export symbols beginning with
  7871. # underscore (_), so it is better to generate a list of symbols to export.
  7872. always_export_symbols=yes
  7873. if test "$aix_use_runtimelinking" = yes; then
  7874. # Warning - without using the other runtime loading flags (-brtl),
  7875. # -berok will link without error, but may produce a broken library.
  7876. allow_undefined_flag='-berok'
  7877. # Determine the default libpath from the value encoded in an
  7878. # empty executable.
  7879. if test "${lt_cv_aix_libpath+set}" = set; then
  7880. aix_libpath=$lt_cv_aix_libpath
  7881. else
  7882. if ${lt_cv_aix_libpath_+:} false; then :
  7883. $as_echo_n "(cached) " >&6
  7884. else
  7885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7886. /* end confdefs.h. */
  7887. int
  7888. main ()
  7889. {
  7890. ;
  7891. return 0;
  7892. }
  7893. _ACEOF
  7894. if ac_fn_c_try_link "$LINENO"; then :
  7895. lt_aix_libpath_sed='
  7896. /Import File Strings/,/^$/ {
  7897. /^0/ {
  7898. s/^0 *\([^ ]*\) *$/\1/
  7899. p
  7900. }
  7901. }'
  7902. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7903. # Check for a 64-bit object if we didn't find anything.
  7904. if test -z "$lt_cv_aix_libpath_"; then
  7905. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7906. fi
  7907. fi
  7908. rm -f core conftest.err conftest.$ac_objext \
  7909. conftest$ac_exeext conftest.$ac_ext
  7910. if test -z "$lt_cv_aix_libpath_"; then
  7911. lt_cv_aix_libpath_="/usr/lib:/lib"
  7912. fi
  7913. fi
  7914. aix_libpath=$lt_cv_aix_libpath_
  7915. fi
  7916. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7917. 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"
  7918. else
  7919. if test "$host_cpu" = ia64; then
  7920. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7921. allow_undefined_flag="-z nodefs"
  7922. 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"
  7923. else
  7924. # Determine the default libpath from the value encoded in an
  7925. # empty executable.
  7926. if test "${lt_cv_aix_libpath+set}" = set; then
  7927. aix_libpath=$lt_cv_aix_libpath
  7928. else
  7929. if ${lt_cv_aix_libpath_+:} false; then :
  7930. $as_echo_n "(cached) " >&6
  7931. else
  7932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7933. /* end confdefs.h. */
  7934. int
  7935. main ()
  7936. {
  7937. ;
  7938. return 0;
  7939. }
  7940. _ACEOF
  7941. if ac_fn_c_try_link "$LINENO"; then :
  7942. lt_aix_libpath_sed='
  7943. /Import File Strings/,/^$/ {
  7944. /^0/ {
  7945. s/^0 *\([^ ]*\) *$/\1/
  7946. p
  7947. }
  7948. }'
  7949. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7950. # Check for a 64-bit object if we didn't find anything.
  7951. if test -z "$lt_cv_aix_libpath_"; then
  7952. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7953. fi
  7954. fi
  7955. rm -f core conftest.err conftest.$ac_objext \
  7956. conftest$ac_exeext conftest.$ac_ext
  7957. if test -z "$lt_cv_aix_libpath_"; then
  7958. lt_cv_aix_libpath_="/usr/lib:/lib"
  7959. fi
  7960. fi
  7961. aix_libpath=$lt_cv_aix_libpath_
  7962. fi
  7963. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7964. # Warning - without using the other run time loading flags,
  7965. # -berok will link without error, but may produce a broken library.
  7966. no_undefined_flag=' ${wl}-bernotok'
  7967. allow_undefined_flag=' ${wl}-berok'
  7968. if test "$with_gnu_ld" = yes; then
  7969. # We only use this code for GNU lds that support --whole-archive.
  7970. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7971. else
  7972. # Exported symbols can be pulled into shared objects from archives
  7973. whole_archive_flag_spec='$convenience'
  7974. fi
  7975. archive_cmds_need_lc=yes
  7976. # This is similar to how AIX traditionally builds its shared libraries.
  7977. 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'
  7978. fi
  7979. fi
  7980. ;;
  7981. amigaos*)
  7982. case $host_cpu in
  7983. powerpc)
  7984. # see comment about AmigaOS4 .so support
  7985. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7986. archive_expsym_cmds=''
  7987. ;;
  7988. m68k)
  7989. 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)'
  7990. hardcode_libdir_flag_spec='-L$libdir'
  7991. hardcode_minus_L=yes
  7992. ;;
  7993. esac
  7994. ;;
  7995. bsdi[45]*)
  7996. export_dynamic_flag_spec=-rdynamic
  7997. ;;
  7998. cygwin* | mingw* | pw32* | cegcc*)
  7999. # When not using gcc, we currently assume that we are using
  8000. # Microsoft Visual C++.
  8001. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8002. # no search path for DLLs.
  8003. case $cc_basename in
  8004. cl*)
  8005. # Native MSVC
  8006. hardcode_libdir_flag_spec=' '
  8007. allow_undefined_flag=unsupported
  8008. always_export_symbols=yes
  8009. file_list_spec='@'
  8010. # Tell ltmain to make .lib files, not .a files.
  8011. libext=lib
  8012. # Tell ltmain to make .dll files, not .so files.
  8013. shrext_cmds=".dll"
  8014. # FIXME: Setting linknames here is a bad hack.
  8015. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8016. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8017. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8018. else
  8019. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8020. fi~
  8021. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8022. linknames='
  8023. # The linker will not automatically build a static lib if we build a DLL.
  8024. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8025. enable_shared_with_static_runtimes=yes
  8026. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8027. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8028. # Don't use ranlib
  8029. old_postinstall_cmds='chmod 644 $oldlib'
  8030. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8031. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8032. case $lt_outputfile in
  8033. *.exe|*.EXE) ;;
  8034. *)
  8035. lt_outputfile="$lt_outputfile.exe"
  8036. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8037. ;;
  8038. esac~
  8039. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8040. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8041. $RM "$lt_outputfile.manifest";
  8042. fi'
  8043. ;;
  8044. *)
  8045. # Assume MSVC wrapper
  8046. hardcode_libdir_flag_spec=' '
  8047. allow_undefined_flag=unsupported
  8048. # Tell ltmain to make .lib files, not .a files.
  8049. libext=lib
  8050. # Tell ltmain to make .dll files, not .so files.
  8051. shrext_cmds=".dll"
  8052. # FIXME: Setting linknames here is a bad hack.
  8053. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8054. # The linker will automatically build a .lib file if we build a DLL.
  8055. old_archive_from_new_cmds='true'
  8056. # FIXME: Should let the user specify the lib program.
  8057. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8058. enable_shared_with_static_runtimes=yes
  8059. ;;
  8060. esac
  8061. ;;
  8062. darwin* | rhapsody*)
  8063. archive_cmds_need_lc=no
  8064. hardcode_direct=no
  8065. hardcode_automatic=yes
  8066. hardcode_shlibpath_var=unsupported
  8067. if test "$lt_cv_ld_force_load" = "yes"; then
  8068. 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\"`'
  8069. else
  8070. whole_archive_flag_spec=''
  8071. fi
  8072. link_all_deplibs=yes
  8073. allow_undefined_flag="$_lt_dar_allow_undefined"
  8074. case $cc_basename in
  8075. ifort*) _lt_dar_can_shared=yes ;;
  8076. *) _lt_dar_can_shared=$GCC ;;
  8077. esac
  8078. if test "$_lt_dar_can_shared" = "yes"; then
  8079. output_verbose_link_cmd=func_echo_all
  8080. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8081. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8082. 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}"
  8083. 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}"
  8084. else
  8085. ld_shlibs=no
  8086. fi
  8087. ;;
  8088. dgux*)
  8089. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8090. hardcode_libdir_flag_spec='-L$libdir'
  8091. hardcode_shlibpath_var=no
  8092. ;;
  8093. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8094. # support. Future versions do this automatically, but an explicit c++rt0.o
  8095. # does not break anything, and helps significantly (at the cost of a little
  8096. # extra space).
  8097. freebsd2.2*)
  8098. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8099. hardcode_libdir_flag_spec='-R$libdir'
  8100. hardcode_direct=yes
  8101. hardcode_shlibpath_var=no
  8102. ;;
  8103. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8104. freebsd2.*)
  8105. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8106. hardcode_direct=yes
  8107. hardcode_minus_L=yes
  8108. hardcode_shlibpath_var=no
  8109. ;;
  8110. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8111. freebsd* | dragonfly*)
  8112. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8113. hardcode_libdir_flag_spec='-R$libdir'
  8114. hardcode_direct=yes
  8115. hardcode_shlibpath_var=no
  8116. ;;
  8117. hpux9*)
  8118. if test "$GCC" = yes; then
  8119. 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'
  8120. else
  8121. 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'
  8122. fi
  8123. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8124. hardcode_libdir_separator=:
  8125. hardcode_direct=yes
  8126. # hardcode_minus_L: Not really in the search PATH,
  8127. # but as the default location of the library.
  8128. hardcode_minus_L=yes
  8129. export_dynamic_flag_spec='${wl}-E'
  8130. ;;
  8131. hpux10*)
  8132. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8133. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8134. else
  8135. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8136. fi
  8137. if test "$with_gnu_ld" = no; then
  8138. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8139. hardcode_libdir_separator=:
  8140. hardcode_direct=yes
  8141. hardcode_direct_absolute=yes
  8142. export_dynamic_flag_spec='${wl}-E'
  8143. # hardcode_minus_L: Not really in the search PATH,
  8144. # but as the default location of the library.
  8145. hardcode_minus_L=yes
  8146. fi
  8147. ;;
  8148. hpux11*)
  8149. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8150. case $host_cpu in
  8151. hppa*64*)
  8152. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8153. ;;
  8154. ia64*)
  8155. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8156. ;;
  8157. *)
  8158. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8159. ;;
  8160. esac
  8161. else
  8162. case $host_cpu in
  8163. hppa*64*)
  8164. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8165. ;;
  8166. ia64*)
  8167. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8168. ;;
  8169. *)
  8170. # Older versions of the 11.00 compiler do not understand -b yet
  8171. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8173. $as_echo_n "checking if $CC understands -b... " >&6; }
  8174. if ${lt_cv_prog_compiler__b+:} false; then :
  8175. $as_echo_n "(cached) " >&6
  8176. else
  8177. lt_cv_prog_compiler__b=no
  8178. save_LDFLAGS="$LDFLAGS"
  8179. LDFLAGS="$LDFLAGS -b"
  8180. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8181. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8182. # The linker can only warn and ignore the option if not recognized
  8183. # So say no if there are warnings
  8184. if test -s conftest.err; then
  8185. # Append any errors to the config.log.
  8186. cat conftest.err 1>&5
  8187. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8188. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8189. if diff conftest.exp conftest.er2 >/dev/null; then
  8190. lt_cv_prog_compiler__b=yes
  8191. fi
  8192. else
  8193. lt_cv_prog_compiler__b=yes
  8194. fi
  8195. fi
  8196. $RM -r conftest*
  8197. LDFLAGS="$save_LDFLAGS"
  8198. fi
  8199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8200. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8201. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8202. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8203. else
  8204. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8205. fi
  8206. ;;
  8207. esac
  8208. fi
  8209. if test "$with_gnu_ld" = no; then
  8210. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8211. hardcode_libdir_separator=:
  8212. case $host_cpu in
  8213. hppa*64*|ia64*)
  8214. hardcode_direct=no
  8215. hardcode_shlibpath_var=no
  8216. ;;
  8217. *)
  8218. hardcode_direct=yes
  8219. hardcode_direct_absolute=yes
  8220. export_dynamic_flag_spec='${wl}-E'
  8221. # hardcode_minus_L: Not really in the search PATH,
  8222. # but as the default location of the library.
  8223. hardcode_minus_L=yes
  8224. ;;
  8225. esac
  8226. fi
  8227. ;;
  8228. irix5* | irix6* | nonstopux*)
  8229. if test "$GCC" = yes; then
  8230. 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'
  8231. # Try to use the -exported_symbol ld option, if it does not
  8232. # work, assume that -exports_file does not work either and
  8233. # implicitly export all symbols.
  8234. # This should be the same for all languages, so no per-tag cache variable.
  8235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8236. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8237. if ${lt_cv_irix_exported_symbol+:} false; then :
  8238. $as_echo_n "(cached) " >&6
  8239. else
  8240. save_LDFLAGS="$LDFLAGS"
  8241. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8243. /* end confdefs.h. */
  8244. int foo (void) { return 0; }
  8245. _ACEOF
  8246. if ac_fn_c_try_link "$LINENO"; then :
  8247. lt_cv_irix_exported_symbol=yes
  8248. else
  8249. lt_cv_irix_exported_symbol=no
  8250. fi
  8251. rm -f core conftest.err conftest.$ac_objext \
  8252. conftest$ac_exeext conftest.$ac_ext
  8253. LDFLAGS="$save_LDFLAGS"
  8254. fi
  8255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8256. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8257. if test "$lt_cv_irix_exported_symbol" = yes; then
  8258. 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'
  8259. fi
  8260. else
  8261. 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'
  8262. 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'
  8263. fi
  8264. archive_cmds_need_lc='no'
  8265. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8266. hardcode_libdir_separator=:
  8267. inherit_rpath=yes
  8268. link_all_deplibs=yes
  8269. ;;
  8270. netbsd*)
  8271. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8272. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8273. else
  8274. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8275. fi
  8276. hardcode_libdir_flag_spec='-R$libdir'
  8277. hardcode_direct=yes
  8278. hardcode_shlibpath_var=no
  8279. ;;
  8280. newsos6)
  8281. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8282. hardcode_direct=yes
  8283. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8284. hardcode_libdir_separator=:
  8285. hardcode_shlibpath_var=no
  8286. ;;
  8287. *nto* | *qnx*)
  8288. ;;
  8289. openbsd*)
  8290. if test -f /usr/libexec/ld.so; then
  8291. hardcode_direct=yes
  8292. hardcode_shlibpath_var=no
  8293. hardcode_direct_absolute=yes
  8294. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8295. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8296. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8297. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8298. export_dynamic_flag_spec='${wl}-E'
  8299. else
  8300. case $host_os in
  8301. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8302. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8303. hardcode_libdir_flag_spec='-R$libdir'
  8304. ;;
  8305. *)
  8306. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8307. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8308. ;;
  8309. esac
  8310. fi
  8311. else
  8312. ld_shlibs=no
  8313. fi
  8314. ;;
  8315. os2*)
  8316. hardcode_libdir_flag_spec='-L$libdir'
  8317. hardcode_minus_L=yes
  8318. allow_undefined_flag=unsupported
  8319. 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'
  8320. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8321. ;;
  8322. osf3*)
  8323. if test "$GCC" = yes; then
  8324. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8325. 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'
  8326. else
  8327. allow_undefined_flag=' -expect_unresolved \*'
  8328. 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'
  8329. fi
  8330. archive_cmds_need_lc='no'
  8331. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8332. hardcode_libdir_separator=:
  8333. ;;
  8334. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8335. if test "$GCC" = yes; then
  8336. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8337. 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'
  8338. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8339. else
  8340. allow_undefined_flag=' -expect_unresolved \*'
  8341. 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'
  8342. 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~
  8343. $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'
  8344. # Both c and cxx compiler support -rpath directly
  8345. hardcode_libdir_flag_spec='-rpath $libdir'
  8346. fi
  8347. archive_cmds_need_lc='no'
  8348. hardcode_libdir_separator=:
  8349. ;;
  8350. solaris*)
  8351. no_undefined_flag=' -z defs'
  8352. if test "$GCC" = yes; then
  8353. wlarc='${wl}'
  8354. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8355. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8356. $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'
  8357. else
  8358. case `$CC -V 2>&1` in
  8359. *"Compilers 5.0"*)
  8360. wlarc=''
  8361. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8362. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8363. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8364. ;;
  8365. *)
  8366. wlarc='${wl}'
  8367. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8368. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8369. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8370. ;;
  8371. esac
  8372. fi
  8373. hardcode_libdir_flag_spec='-R$libdir'
  8374. hardcode_shlibpath_var=no
  8375. case $host_os in
  8376. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8377. *)
  8378. # The compiler driver will combine and reorder linker options,
  8379. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8380. # but is careful enough not to reorder.
  8381. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8382. if test "$GCC" = yes; then
  8383. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8384. else
  8385. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8386. fi
  8387. ;;
  8388. esac
  8389. link_all_deplibs=yes
  8390. ;;
  8391. sunos4*)
  8392. if test "x$host_vendor" = xsequent; then
  8393. # Use $CC to link under sequent, because it throws in some extra .o
  8394. # files that make .init and .fini sections work.
  8395. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8396. else
  8397. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8398. fi
  8399. hardcode_libdir_flag_spec='-L$libdir'
  8400. hardcode_direct=yes
  8401. hardcode_minus_L=yes
  8402. hardcode_shlibpath_var=no
  8403. ;;
  8404. sysv4)
  8405. case $host_vendor in
  8406. sni)
  8407. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8408. hardcode_direct=yes # is this really true???
  8409. ;;
  8410. siemens)
  8411. ## LD is ld it makes a PLAMLIB
  8412. ## CC just makes a GrossModule.
  8413. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8414. reload_cmds='$CC -r -o $output$reload_objs'
  8415. hardcode_direct=no
  8416. ;;
  8417. motorola)
  8418. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8419. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8420. ;;
  8421. esac
  8422. runpath_var='LD_RUN_PATH'
  8423. hardcode_shlibpath_var=no
  8424. ;;
  8425. sysv4.3*)
  8426. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8427. hardcode_shlibpath_var=no
  8428. export_dynamic_flag_spec='-Bexport'
  8429. ;;
  8430. sysv4*MP*)
  8431. if test -d /usr/nec; then
  8432. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8433. hardcode_shlibpath_var=no
  8434. runpath_var=LD_RUN_PATH
  8435. hardcode_runpath_var=yes
  8436. ld_shlibs=yes
  8437. fi
  8438. ;;
  8439. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8440. no_undefined_flag='${wl}-z,text'
  8441. archive_cmds_need_lc=no
  8442. hardcode_shlibpath_var=no
  8443. runpath_var='LD_RUN_PATH'
  8444. if test "$GCC" = yes; then
  8445. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8446. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8447. else
  8448. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8449. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8450. fi
  8451. ;;
  8452. sysv5* | sco3.2v5* | sco5v6*)
  8453. # Note: We can NOT use -z defs as we might desire, because we do not
  8454. # link with -lc, and that would cause any symbols used from libc to
  8455. # always be unresolved, which means just about no library would
  8456. # ever link correctly. If we're not using GNU ld we use -z text
  8457. # though, which does catch some bad symbols but isn't as heavy-handed
  8458. # as -z defs.
  8459. no_undefined_flag='${wl}-z,text'
  8460. allow_undefined_flag='${wl}-z,nodefs'
  8461. archive_cmds_need_lc=no
  8462. hardcode_shlibpath_var=no
  8463. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8464. hardcode_libdir_separator=':'
  8465. link_all_deplibs=yes
  8466. export_dynamic_flag_spec='${wl}-Bexport'
  8467. runpath_var='LD_RUN_PATH'
  8468. if test "$GCC" = yes; then
  8469. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8470. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8471. else
  8472. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8473. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8474. fi
  8475. ;;
  8476. uts4*)
  8477. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8478. hardcode_libdir_flag_spec='-L$libdir'
  8479. hardcode_shlibpath_var=no
  8480. ;;
  8481. *)
  8482. ld_shlibs=no
  8483. ;;
  8484. esac
  8485. if test x$host_vendor = xsni; then
  8486. case $host in
  8487. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8488. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8489. ;;
  8490. esac
  8491. fi
  8492. fi
  8493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8494. $as_echo "$ld_shlibs" >&6; }
  8495. test "$ld_shlibs" = no && can_build_shared=no
  8496. with_gnu_ld=$with_gnu_ld
  8497. #
  8498. # Do we need to explicitly link libc?
  8499. #
  8500. case "x$archive_cmds_need_lc" in
  8501. x|xyes)
  8502. # Assume -lc should be added
  8503. archive_cmds_need_lc=yes
  8504. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8505. case $archive_cmds in
  8506. *'~'*)
  8507. # FIXME: we may have to deal with multi-command sequences.
  8508. ;;
  8509. '$CC '*)
  8510. # Test whether the compiler implicitly links with -lc since on some
  8511. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8512. # to ld, don't add -lc before -lgcc.
  8513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8514. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8515. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8516. $as_echo_n "(cached) " >&6
  8517. else
  8518. $RM conftest*
  8519. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8520. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8521. (eval $ac_compile) 2>&5
  8522. ac_status=$?
  8523. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8524. test $ac_status = 0; } 2>conftest.err; then
  8525. soname=conftest
  8526. lib=conftest
  8527. libobjs=conftest.$ac_objext
  8528. deplibs=
  8529. wl=$lt_prog_compiler_wl
  8530. pic_flag=$lt_prog_compiler_pic
  8531. compiler_flags=-v
  8532. linker_flags=-v
  8533. verstring=
  8534. output_objdir=.
  8535. libname=conftest
  8536. lt_save_allow_undefined_flag=$allow_undefined_flag
  8537. allow_undefined_flag=
  8538. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8539. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8540. ac_status=$?
  8541. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8542. test $ac_status = 0; }
  8543. then
  8544. lt_cv_archive_cmds_need_lc=no
  8545. else
  8546. lt_cv_archive_cmds_need_lc=yes
  8547. fi
  8548. allow_undefined_flag=$lt_save_allow_undefined_flag
  8549. else
  8550. cat conftest.err 1>&5
  8551. fi
  8552. $RM conftest*
  8553. fi
  8554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8555. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8556. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8557. ;;
  8558. esac
  8559. fi
  8560. ;;
  8561. esac
  8562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8563. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8564. if test "$GCC" = yes; then
  8565. case $host_os in
  8566. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8567. *) lt_awk_arg="/^libraries:/" ;;
  8568. esac
  8569. case $host_os in
  8570. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8571. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8572. esac
  8573. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8574. case $lt_search_path_spec in
  8575. *\;*)
  8576. # if the path contains ";" then we assume it to be the separator
  8577. # otherwise default to the standard path separator (i.e. ":") - it is
  8578. # assumed that no part of a normal pathname contains ";" but that should
  8579. # okay in the real world where ";" in dirpaths is itself problematic.
  8580. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8581. ;;
  8582. *)
  8583. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8584. ;;
  8585. esac
  8586. # Ok, now we have the path, separated by spaces, we can step through it
  8587. # and add multilib dir if necessary...
  8588. lt_tmp_lt_search_path_spec=
  8589. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8590. # ...but if some path already ends with the multilib dir we assume
  8591. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8592. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8593. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8594. lt_multi_os_dir=
  8595. ;;
  8596. esac
  8597. for lt_sys_path in $lt_search_path_spec; do
  8598. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8599. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8600. elif test -n "$lt_multi_os_dir"; then
  8601. test -d "$lt_sys_path" && \
  8602. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8603. fi
  8604. done
  8605. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8606. BEGIN {RS=" "; FS="/|\n";} {
  8607. lt_foo="";
  8608. lt_count=0;
  8609. for (lt_i = NF; lt_i > 0; lt_i--) {
  8610. if ($lt_i != "" && $lt_i != ".") {
  8611. if ($lt_i == "..") {
  8612. lt_count++;
  8613. } else {
  8614. if (lt_count == 0) {
  8615. lt_foo="/" $lt_i lt_foo;
  8616. } else {
  8617. lt_count--;
  8618. }
  8619. }
  8620. }
  8621. }
  8622. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8623. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8624. }'`
  8625. # AWK program above erroneously prepends '/' to C:/dos/paths
  8626. # for these hosts.
  8627. case $host_os in
  8628. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8629. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8630. esac
  8631. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8632. else
  8633. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8634. fi
  8635. library_names_spec=
  8636. libname_spec='lib$name'
  8637. soname_spec=
  8638. shrext_cmds=".so"
  8639. postinstall_cmds=
  8640. postuninstall_cmds=
  8641. finish_cmds=
  8642. finish_eval=
  8643. shlibpath_var=
  8644. shlibpath_overrides_runpath=unknown
  8645. version_type=none
  8646. dynamic_linker="$host_os ld.so"
  8647. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8648. need_lib_prefix=unknown
  8649. hardcode_into_libs=no
  8650. # when you set need_version to no, make sure it does not cause -set_version
  8651. # flags to be left without arguments
  8652. need_version=unknown
  8653. case $host_os in
  8654. aix3*)
  8655. version_type=linux # correct to gnu/linux during the next big refactor
  8656. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8657. shlibpath_var=LIBPATH
  8658. # AIX 3 has no versioning support, so we append a major version to the name.
  8659. soname_spec='${libname}${release}${shared_ext}$major'
  8660. ;;
  8661. aix[4-9]*)
  8662. version_type=linux # correct to gnu/linux during the next big refactor
  8663. need_lib_prefix=no
  8664. need_version=no
  8665. hardcode_into_libs=yes
  8666. if test "$host_cpu" = ia64; then
  8667. # AIX 5 supports IA64
  8668. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8669. shlibpath_var=LD_LIBRARY_PATH
  8670. else
  8671. # With GCC up to 2.95.x, collect2 would create an import file
  8672. # for dependence libraries. The import file would start with
  8673. # the line `#! .'. This would cause the generated library to
  8674. # depend on `.', always an invalid library. This was fixed in
  8675. # development snapshots of GCC prior to 3.0.
  8676. case $host_os in
  8677. aix4 | aix4.[01] | aix4.[01].*)
  8678. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8679. echo ' yes '
  8680. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8681. :
  8682. else
  8683. can_build_shared=no
  8684. fi
  8685. ;;
  8686. esac
  8687. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8688. # soname into executable. Probably we can add versioning support to
  8689. # collect2, so additional links can be useful in future.
  8690. if test "$aix_use_runtimelinking" = yes; then
  8691. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8692. # instead of lib<name>.a to let people know that these are not
  8693. # typical AIX shared libraries.
  8694. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8695. else
  8696. # We preserve .a as extension for shared libraries through AIX4.2
  8697. # and later when we are not doing run time linking.
  8698. library_names_spec='${libname}${release}.a $libname.a'
  8699. soname_spec='${libname}${release}${shared_ext}$major'
  8700. fi
  8701. shlibpath_var=LIBPATH
  8702. fi
  8703. ;;
  8704. amigaos*)
  8705. case $host_cpu in
  8706. powerpc)
  8707. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8708. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8709. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8710. ;;
  8711. m68k)
  8712. library_names_spec='$libname.ixlibrary $libname.a'
  8713. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8714. 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'
  8715. ;;
  8716. esac
  8717. ;;
  8718. beos*)
  8719. library_names_spec='${libname}${shared_ext}'
  8720. dynamic_linker="$host_os ld.so"
  8721. shlibpath_var=LIBRARY_PATH
  8722. ;;
  8723. bsdi[45]*)
  8724. version_type=linux # correct to gnu/linux during the next big refactor
  8725. need_version=no
  8726. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8727. soname_spec='${libname}${release}${shared_ext}$major'
  8728. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8729. shlibpath_var=LD_LIBRARY_PATH
  8730. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8731. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8732. # the default ld.so.conf also contains /usr/contrib/lib and
  8733. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8734. # libtool to hard-code these into programs
  8735. ;;
  8736. cygwin* | mingw* | pw32* | cegcc*)
  8737. version_type=windows
  8738. shrext_cmds=".dll"
  8739. need_version=no
  8740. need_lib_prefix=no
  8741. case $GCC,$cc_basename in
  8742. yes,*)
  8743. # gcc
  8744. library_names_spec='$libname.dll.a'
  8745. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8746. postinstall_cmds='base_file=`basename \${file}`~
  8747. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8748. dldir=$destdir/`dirname \$dlpath`~
  8749. test -d \$dldir || mkdir -p \$dldir~
  8750. $install_prog $dir/$dlname \$dldir/$dlname~
  8751. chmod a+x \$dldir/$dlname~
  8752. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8753. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8754. fi'
  8755. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8756. dlpath=$dir/\$dldll~
  8757. $RM \$dlpath'
  8758. shlibpath_overrides_runpath=yes
  8759. case $host_os in
  8760. cygwin*)
  8761. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8762. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8763. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8764. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8765. ;;
  8766. mingw* | cegcc*)
  8767. # MinGW DLLs use traditional 'lib' prefix
  8768. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8769. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8770. ;;
  8771. pw32*)
  8772. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8773. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8774. ;;
  8775. esac
  8776. dynamic_linker='Win32 ld.exe'
  8777. ;;
  8778. *,cl*)
  8779. # Native MSVC
  8780. libname_spec='$name'
  8781. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8782. library_names_spec='${libname}.dll.lib'
  8783. case $build_os in
  8784. mingw*)
  8785. sys_lib_search_path_spec=
  8786. lt_save_ifs=$IFS
  8787. IFS=';'
  8788. for lt_path in $LIB
  8789. do
  8790. IFS=$lt_save_ifs
  8791. # Let DOS variable expansion print the short 8.3 style file name.
  8792. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8793. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8794. done
  8795. IFS=$lt_save_ifs
  8796. # Convert to MSYS style.
  8797. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8798. ;;
  8799. cygwin*)
  8800. # Convert to unix form, then to dos form, then back to unix form
  8801. # but this time dos style (no spaces!) so that the unix form looks
  8802. # like /cygdrive/c/PROGRA~1:/cygdr...
  8803. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8804. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8805. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8806. ;;
  8807. *)
  8808. sys_lib_search_path_spec="$LIB"
  8809. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8810. # It is most probably a Windows format PATH.
  8811. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8812. else
  8813. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8814. fi
  8815. # FIXME: find the short name or the path components, as spaces are
  8816. # common. (e.g. "Program Files" -> "PROGRA~1")
  8817. ;;
  8818. esac
  8819. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8820. postinstall_cmds='base_file=`basename \${file}`~
  8821. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8822. dldir=$destdir/`dirname \$dlpath`~
  8823. test -d \$dldir || mkdir -p \$dldir~
  8824. $install_prog $dir/$dlname \$dldir/$dlname'
  8825. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8826. dlpath=$dir/\$dldll~
  8827. $RM \$dlpath'
  8828. shlibpath_overrides_runpath=yes
  8829. dynamic_linker='Win32 link.exe'
  8830. ;;
  8831. *)
  8832. # Assume MSVC wrapper
  8833. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8834. dynamic_linker='Win32 ld.exe'
  8835. ;;
  8836. esac
  8837. # FIXME: first we should search . and the directory the executable is in
  8838. shlibpath_var=PATH
  8839. ;;
  8840. darwin* | rhapsody*)
  8841. dynamic_linker="$host_os dyld"
  8842. version_type=darwin
  8843. need_lib_prefix=no
  8844. need_version=no
  8845. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8846. soname_spec='${libname}${release}${major}$shared_ext'
  8847. shlibpath_overrides_runpath=yes
  8848. shlibpath_var=DYLD_LIBRARY_PATH
  8849. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8850. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8851. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8852. ;;
  8853. dgux*)
  8854. version_type=linux # correct to gnu/linux during the next big refactor
  8855. need_lib_prefix=no
  8856. need_version=no
  8857. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8858. soname_spec='${libname}${release}${shared_ext}$major'
  8859. shlibpath_var=LD_LIBRARY_PATH
  8860. ;;
  8861. freebsd* | dragonfly*)
  8862. # DragonFly does not have aout. When/if they implement a new
  8863. # versioning mechanism, adjust this.
  8864. if test -x /usr/bin/objformat; then
  8865. objformat=`/usr/bin/objformat`
  8866. else
  8867. case $host_os in
  8868. freebsd[23].*) objformat=aout ;;
  8869. *) objformat=elf ;;
  8870. esac
  8871. fi
  8872. version_type=freebsd-$objformat
  8873. case $version_type in
  8874. freebsd-elf*)
  8875. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8876. need_version=no
  8877. need_lib_prefix=no
  8878. ;;
  8879. freebsd-*)
  8880. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8881. need_version=yes
  8882. ;;
  8883. esac
  8884. shlibpath_var=LD_LIBRARY_PATH
  8885. case $host_os in
  8886. freebsd2.*)
  8887. shlibpath_overrides_runpath=yes
  8888. ;;
  8889. freebsd3.[01]* | freebsdelf3.[01]*)
  8890. shlibpath_overrides_runpath=yes
  8891. hardcode_into_libs=yes
  8892. ;;
  8893. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8894. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8895. shlibpath_overrides_runpath=no
  8896. hardcode_into_libs=yes
  8897. ;;
  8898. *) # from 4.6 on, and DragonFly
  8899. shlibpath_overrides_runpath=yes
  8900. hardcode_into_libs=yes
  8901. ;;
  8902. esac
  8903. ;;
  8904. gnu*)
  8905. version_type=linux # correct to gnu/linux during the next big refactor
  8906. need_lib_prefix=no
  8907. need_version=no
  8908. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8909. soname_spec='${libname}${release}${shared_ext}$major'
  8910. shlibpath_var=LD_LIBRARY_PATH
  8911. shlibpath_overrides_runpath=no
  8912. hardcode_into_libs=yes
  8913. ;;
  8914. haiku*)
  8915. version_type=linux # correct to gnu/linux during the next big refactor
  8916. need_lib_prefix=no
  8917. need_version=no
  8918. dynamic_linker="$host_os runtime_loader"
  8919. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8920. soname_spec='${libname}${release}${shared_ext}$major'
  8921. shlibpath_var=LIBRARY_PATH
  8922. shlibpath_overrides_runpath=yes
  8923. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8924. hardcode_into_libs=yes
  8925. ;;
  8926. hpux9* | hpux10* | hpux11*)
  8927. # Give a soname corresponding to the major version so that dld.sl refuses to
  8928. # link against other versions.
  8929. version_type=sunos
  8930. need_lib_prefix=no
  8931. need_version=no
  8932. case $host_cpu in
  8933. ia64*)
  8934. shrext_cmds='.so'
  8935. hardcode_into_libs=yes
  8936. dynamic_linker="$host_os dld.so"
  8937. shlibpath_var=LD_LIBRARY_PATH
  8938. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8939. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8940. soname_spec='${libname}${release}${shared_ext}$major'
  8941. if test "X$HPUX_IA64_MODE" = X32; then
  8942. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8943. else
  8944. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8945. fi
  8946. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8947. ;;
  8948. hppa*64*)
  8949. shrext_cmds='.sl'
  8950. hardcode_into_libs=yes
  8951. dynamic_linker="$host_os dld.sl"
  8952. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8953. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8954. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8955. soname_spec='${libname}${release}${shared_ext}$major'
  8956. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8957. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8958. ;;
  8959. *)
  8960. shrext_cmds='.sl'
  8961. dynamic_linker="$host_os dld.sl"
  8962. shlibpath_var=SHLIB_PATH
  8963. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8965. soname_spec='${libname}${release}${shared_ext}$major'
  8966. ;;
  8967. esac
  8968. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8969. postinstall_cmds='chmod 555 $lib'
  8970. # or fails outright, so override atomically:
  8971. install_override_mode=555
  8972. ;;
  8973. interix[3-9]*)
  8974. version_type=linux # correct to gnu/linux during the next big refactor
  8975. need_lib_prefix=no
  8976. need_version=no
  8977. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8978. soname_spec='${libname}${release}${shared_ext}$major'
  8979. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8980. shlibpath_var=LD_LIBRARY_PATH
  8981. shlibpath_overrides_runpath=no
  8982. hardcode_into_libs=yes
  8983. ;;
  8984. irix5* | irix6* | nonstopux*)
  8985. case $host_os in
  8986. nonstopux*) version_type=nonstopux ;;
  8987. *)
  8988. if test "$lt_cv_prog_gnu_ld" = yes; then
  8989. version_type=linux # correct to gnu/linux during the next big refactor
  8990. else
  8991. version_type=irix
  8992. fi ;;
  8993. esac
  8994. need_lib_prefix=no
  8995. need_version=no
  8996. soname_spec='${libname}${release}${shared_ext}$major'
  8997. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8998. case $host_os in
  8999. irix5* | nonstopux*)
  9000. libsuff= shlibsuff=
  9001. ;;
  9002. *)
  9003. case $LD in # libtool.m4 will add one of these switches to LD
  9004. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9005. libsuff= shlibsuff= libmagic=32-bit;;
  9006. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9007. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9008. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9009. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9010. *) libsuff= shlibsuff= libmagic=never-match;;
  9011. esac
  9012. ;;
  9013. esac
  9014. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9015. shlibpath_overrides_runpath=no
  9016. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9017. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9018. hardcode_into_libs=yes
  9019. ;;
  9020. # No shared lib support for Linux oldld, aout, or coff.
  9021. linux*oldld* | linux*aout* | linux*coff*)
  9022. dynamic_linker=no
  9023. ;;
  9024. # This must be glibc/ELF.
  9025. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9026. version_type=linux # correct to gnu/linux during the next big refactor
  9027. need_lib_prefix=no
  9028. need_version=no
  9029. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9030. soname_spec='${libname}${release}${shared_ext}$major'
  9031. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9032. shlibpath_var=LD_LIBRARY_PATH
  9033. shlibpath_overrides_runpath=no
  9034. # Some binutils ld are patched to set DT_RUNPATH
  9035. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9036. $as_echo_n "(cached) " >&6
  9037. else
  9038. lt_cv_shlibpath_overrides_runpath=no
  9039. save_LDFLAGS=$LDFLAGS
  9040. save_libdir=$libdir
  9041. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9042. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9044. /* end confdefs.h. */
  9045. int
  9046. main ()
  9047. {
  9048. ;
  9049. return 0;
  9050. }
  9051. _ACEOF
  9052. if ac_fn_c_try_link "$LINENO"; then :
  9053. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9054. lt_cv_shlibpath_overrides_runpath=yes
  9055. fi
  9056. fi
  9057. rm -f core conftest.err conftest.$ac_objext \
  9058. conftest$ac_exeext conftest.$ac_ext
  9059. LDFLAGS=$save_LDFLAGS
  9060. libdir=$save_libdir
  9061. fi
  9062. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9063. # This implies no fast_install, which is unacceptable.
  9064. # Some rework will be needed to allow for fast_install
  9065. # before this can be enabled.
  9066. hardcode_into_libs=yes
  9067. # Append ld.so.conf contents to the search path
  9068. if test -f /etc/ld.so.conf; then
  9069. 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' ' '`
  9070. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9071. fi
  9072. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9073. # powerpc, because MkLinux only supported shared libraries with the
  9074. # GNU dynamic linker. Since this was broken with cross compilers,
  9075. # most powerpc-linux boxes support dynamic linking these days and
  9076. # people can always --disable-shared, the test was removed, and we
  9077. # assume the GNU/Linux dynamic linker is in use.
  9078. dynamic_linker='GNU/Linux ld.so'
  9079. ;;
  9080. netbsd*)
  9081. version_type=sunos
  9082. need_lib_prefix=no
  9083. need_version=no
  9084. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9086. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9087. dynamic_linker='NetBSD (a.out) ld.so'
  9088. else
  9089. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9090. soname_spec='${libname}${release}${shared_ext}$major'
  9091. dynamic_linker='NetBSD ld.elf_so'
  9092. fi
  9093. shlibpath_var=LD_LIBRARY_PATH
  9094. shlibpath_overrides_runpath=yes
  9095. hardcode_into_libs=yes
  9096. ;;
  9097. newsos6)
  9098. version_type=linux # correct to gnu/linux during the next big refactor
  9099. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9100. shlibpath_var=LD_LIBRARY_PATH
  9101. shlibpath_overrides_runpath=yes
  9102. ;;
  9103. *nto* | *qnx*)
  9104. version_type=qnx
  9105. need_lib_prefix=no
  9106. need_version=no
  9107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9108. soname_spec='${libname}${release}${shared_ext}$major'
  9109. shlibpath_var=LD_LIBRARY_PATH
  9110. shlibpath_overrides_runpath=no
  9111. hardcode_into_libs=yes
  9112. dynamic_linker='ldqnx.so'
  9113. ;;
  9114. openbsd*)
  9115. version_type=sunos
  9116. sys_lib_dlsearch_path_spec="/usr/lib"
  9117. need_lib_prefix=no
  9118. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9119. case $host_os in
  9120. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9121. *) need_version=no ;;
  9122. esac
  9123. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9124. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9125. shlibpath_var=LD_LIBRARY_PATH
  9126. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9127. case $host_os in
  9128. openbsd2.[89] | openbsd2.[89].*)
  9129. shlibpath_overrides_runpath=no
  9130. ;;
  9131. *)
  9132. shlibpath_overrides_runpath=yes
  9133. ;;
  9134. esac
  9135. else
  9136. shlibpath_overrides_runpath=yes
  9137. fi
  9138. ;;
  9139. os2*)
  9140. libname_spec='$name'
  9141. shrext_cmds=".dll"
  9142. need_lib_prefix=no
  9143. library_names_spec='$libname${shared_ext} $libname.a'
  9144. dynamic_linker='OS/2 ld.exe'
  9145. shlibpath_var=LIBPATH
  9146. ;;
  9147. osf3* | osf4* | osf5*)
  9148. version_type=osf
  9149. need_lib_prefix=no
  9150. need_version=no
  9151. soname_spec='${libname}${release}${shared_ext}$major'
  9152. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9153. shlibpath_var=LD_LIBRARY_PATH
  9154. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9155. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9156. ;;
  9157. rdos*)
  9158. dynamic_linker=no
  9159. ;;
  9160. solaris*)
  9161. version_type=linux # correct to gnu/linux during the next big refactor
  9162. need_lib_prefix=no
  9163. need_version=no
  9164. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9165. soname_spec='${libname}${release}${shared_ext}$major'
  9166. shlibpath_var=LD_LIBRARY_PATH
  9167. shlibpath_overrides_runpath=yes
  9168. hardcode_into_libs=yes
  9169. # ldd complains unless libraries are executable
  9170. postinstall_cmds='chmod +x $lib'
  9171. ;;
  9172. sunos4*)
  9173. version_type=sunos
  9174. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9175. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9176. shlibpath_var=LD_LIBRARY_PATH
  9177. shlibpath_overrides_runpath=yes
  9178. if test "$with_gnu_ld" = yes; then
  9179. need_lib_prefix=no
  9180. fi
  9181. need_version=yes
  9182. ;;
  9183. sysv4 | sysv4.3*)
  9184. version_type=linux # correct to gnu/linux during the next big refactor
  9185. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9186. soname_spec='${libname}${release}${shared_ext}$major'
  9187. shlibpath_var=LD_LIBRARY_PATH
  9188. case $host_vendor in
  9189. sni)
  9190. shlibpath_overrides_runpath=no
  9191. need_lib_prefix=no
  9192. runpath_var=LD_RUN_PATH
  9193. ;;
  9194. siemens)
  9195. need_lib_prefix=no
  9196. ;;
  9197. motorola)
  9198. need_lib_prefix=no
  9199. need_version=no
  9200. shlibpath_overrides_runpath=no
  9201. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9202. ;;
  9203. esac
  9204. ;;
  9205. sysv4*MP*)
  9206. if test -d /usr/nec ;then
  9207. version_type=linux # correct to gnu/linux during the next big refactor
  9208. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9209. soname_spec='$libname${shared_ext}.$major'
  9210. shlibpath_var=LD_LIBRARY_PATH
  9211. fi
  9212. ;;
  9213. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9214. version_type=freebsd-elf
  9215. need_lib_prefix=no
  9216. need_version=no
  9217. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9218. soname_spec='${libname}${release}${shared_ext}$major'
  9219. shlibpath_var=LD_LIBRARY_PATH
  9220. shlibpath_overrides_runpath=yes
  9221. hardcode_into_libs=yes
  9222. if test "$with_gnu_ld" = yes; then
  9223. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9224. else
  9225. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9226. case $host_os in
  9227. sco3.2v5*)
  9228. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9229. ;;
  9230. esac
  9231. fi
  9232. sys_lib_dlsearch_path_spec='/usr/lib'
  9233. ;;
  9234. tpf*)
  9235. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9236. version_type=linux # correct to gnu/linux during the next big refactor
  9237. need_lib_prefix=no
  9238. need_version=no
  9239. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9240. shlibpath_var=LD_LIBRARY_PATH
  9241. shlibpath_overrides_runpath=no
  9242. hardcode_into_libs=yes
  9243. ;;
  9244. uts4*)
  9245. version_type=linux # correct to gnu/linux during the next big refactor
  9246. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9247. soname_spec='${libname}${release}${shared_ext}$major'
  9248. shlibpath_var=LD_LIBRARY_PATH
  9249. ;;
  9250. *)
  9251. dynamic_linker=no
  9252. ;;
  9253. esac
  9254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9255. $as_echo "$dynamic_linker" >&6; }
  9256. test "$dynamic_linker" = no && can_build_shared=no
  9257. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9258. if test "$GCC" = yes; then
  9259. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9260. fi
  9261. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9262. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9263. fi
  9264. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9265. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9266. fi
  9267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9268. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9269. hardcode_action=
  9270. if test -n "$hardcode_libdir_flag_spec" ||
  9271. test -n "$runpath_var" ||
  9272. test "X$hardcode_automatic" = "Xyes" ; then
  9273. # We can hardcode non-existent directories.
  9274. if test "$hardcode_direct" != no &&
  9275. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9276. # have to relink, otherwise we might link with an installed library
  9277. # when we should be linking with a yet-to-be-installed one
  9278. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9279. test "$hardcode_minus_L" != no; then
  9280. # Linking always hardcodes the temporary library directory.
  9281. hardcode_action=relink
  9282. else
  9283. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9284. hardcode_action=immediate
  9285. fi
  9286. else
  9287. # We cannot hardcode anything, or else we can only hardcode existing
  9288. # directories.
  9289. hardcode_action=unsupported
  9290. fi
  9291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9292. $as_echo "$hardcode_action" >&6; }
  9293. if test "$hardcode_action" = relink ||
  9294. test "$inherit_rpath" = yes; then
  9295. # Fast installation is not supported
  9296. enable_fast_install=no
  9297. elif test "$shlibpath_overrides_runpath" = yes ||
  9298. test "$enable_shared" = no; then
  9299. # Fast installation is not necessary
  9300. enable_fast_install=needless
  9301. fi
  9302. if test "x$enable_dlopen" != xyes; then
  9303. enable_dlopen=unknown
  9304. enable_dlopen_self=unknown
  9305. enable_dlopen_self_static=unknown
  9306. else
  9307. lt_cv_dlopen=no
  9308. lt_cv_dlopen_libs=
  9309. case $host_os in
  9310. beos*)
  9311. lt_cv_dlopen="load_add_on"
  9312. lt_cv_dlopen_libs=
  9313. lt_cv_dlopen_self=yes
  9314. ;;
  9315. mingw* | pw32* | cegcc*)
  9316. lt_cv_dlopen="LoadLibrary"
  9317. lt_cv_dlopen_libs=
  9318. ;;
  9319. cygwin*)
  9320. lt_cv_dlopen="dlopen"
  9321. lt_cv_dlopen_libs=
  9322. ;;
  9323. darwin*)
  9324. # if libdl is installed we need to link against it
  9325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9326. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9327. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9328. $as_echo_n "(cached) " >&6
  9329. else
  9330. ac_check_lib_save_LIBS=$LIBS
  9331. LIBS="-ldl $LIBS"
  9332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9333. /* end confdefs.h. */
  9334. /* Override any GCC internal prototype to avoid an error.
  9335. Use char because int might match the return type of a GCC
  9336. builtin and then its argument prototype would still apply. */
  9337. #ifdef __cplusplus
  9338. extern "C"
  9339. #endif
  9340. char dlopen ();
  9341. int
  9342. main ()
  9343. {
  9344. return dlopen ();
  9345. ;
  9346. return 0;
  9347. }
  9348. _ACEOF
  9349. if ac_fn_c_try_link "$LINENO"; then :
  9350. ac_cv_lib_dl_dlopen=yes
  9351. else
  9352. ac_cv_lib_dl_dlopen=no
  9353. fi
  9354. rm -f core conftest.err conftest.$ac_objext \
  9355. conftest$ac_exeext conftest.$ac_ext
  9356. LIBS=$ac_check_lib_save_LIBS
  9357. fi
  9358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9359. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9360. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9361. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9362. else
  9363. lt_cv_dlopen="dyld"
  9364. lt_cv_dlopen_libs=
  9365. lt_cv_dlopen_self=yes
  9366. fi
  9367. ;;
  9368. *)
  9369. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9370. if test "x$ac_cv_func_shl_load" = xyes; then :
  9371. lt_cv_dlopen="shl_load"
  9372. else
  9373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9374. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9375. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9376. $as_echo_n "(cached) " >&6
  9377. else
  9378. ac_check_lib_save_LIBS=$LIBS
  9379. LIBS="-ldld $LIBS"
  9380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9381. /* end confdefs.h. */
  9382. /* Override any GCC internal prototype to avoid an error.
  9383. Use char because int might match the return type of a GCC
  9384. builtin and then its argument prototype would still apply. */
  9385. #ifdef __cplusplus
  9386. extern "C"
  9387. #endif
  9388. char shl_load ();
  9389. int
  9390. main ()
  9391. {
  9392. return shl_load ();
  9393. ;
  9394. return 0;
  9395. }
  9396. _ACEOF
  9397. if ac_fn_c_try_link "$LINENO"; then :
  9398. ac_cv_lib_dld_shl_load=yes
  9399. else
  9400. ac_cv_lib_dld_shl_load=no
  9401. fi
  9402. rm -f core conftest.err conftest.$ac_objext \
  9403. conftest$ac_exeext conftest.$ac_ext
  9404. LIBS=$ac_check_lib_save_LIBS
  9405. fi
  9406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9407. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9408. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9409. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9410. else
  9411. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9412. if test "x$ac_cv_func_dlopen" = xyes; then :
  9413. lt_cv_dlopen="dlopen"
  9414. else
  9415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9416. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9417. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9418. $as_echo_n "(cached) " >&6
  9419. else
  9420. ac_check_lib_save_LIBS=$LIBS
  9421. LIBS="-ldl $LIBS"
  9422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9423. /* end confdefs.h. */
  9424. /* Override any GCC internal prototype to avoid an error.
  9425. Use char because int might match the return type of a GCC
  9426. builtin and then its argument prototype would still apply. */
  9427. #ifdef __cplusplus
  9428. extern "C"
  9429. #endif
  9430. char dlopen ();
  9431. int
  9432. main ()
  9433. {
  9434. return dlopen ();
  9435. ;
  9436. return 0;
  9437. }
  9438. _ACEOF
  9439. if ac_fn_c_try_link "$LINENO"; then :
  9440. ac_cv_lib_dl_dlopen=yes
  9441. else
  9442. ac_cv_lib_dl_dlopen=no
  9443. fi
  9444. rm -f core conftest.err conftest.$ac_objext \
  9445. conftest$ac_exeext conftest.$ac_ext
  9446. LIBS=$ac_check_lib_save_LIBS
  9447. fi
  9448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9449. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9450. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9451. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9452. else
  9453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9454. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9455. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9456. $as_echo_n "(cached) " >&6
  9457. else
  9458. ac_check_lib_save_LIBS=$LIBS
  9459. LIBS="-lsvld $LIBS"
  9460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9461. /* end confdefs.h. */
  9462. /* Override any GCC internal prototype to avoid an error.
  9463. Use char because int might match the return type of a GCC
  9464. builtin and then its argument prototype would still apply. */
  9465. #ifdef __cplusplus
  9466. extern "C"
  9467. #endif
  9468. char dlopen ();
  9469. int
  9470. main ()
  9471. {
  9472. return dlopen ();
  9473. ;
  9474. return 0;
  9475. }
  9476. _ACEOF
  9477. if ac_fn_c_try_link "$LINENO"; then :
  9478. ac_cv_lib_svld_dlopen=yes
  9479. else
  9480. ac_cv_lib_svld_dlopen=no
  9481. fi
  9482. rm -f core conftest.err conftest.$ac_objext \
  9483. conftest$ac_exeext conftest.$ac_ext
  9484. LIBS=$ac_check_lib_save_LIBS
  9485. fi
  9486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9487. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9488. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9489. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9490. else
  9491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9492. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9493. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9494. $as_echo_n "(cached) " >&6
  9495. else
  9496. ac_check_lib_save_LIBS=$LIBS
  9497. LIBS="-ldld $LIBS"
  9498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9499. /* end confdefs.h. */
  9500. /* Override any GCC internal prototype to avoid an error.
  9501. Use char because int might match the return type of a GCC
  9502. builtin and then its argument prototype would still apply. */
  9503. #ifdef __cplusplus
  9504. extern "C"
  9505. #endif
  9506. char dld_link ();
  9507. int
  9508. main ()
  9509. {
  9510. return dld_link ();
  9511. ;
  9512. return 0;
  9513. }
  9514. _ACEOF
  9515. if ac_fn_c_try_link "$LINENO"; then :
  9516. ac_cv_lib_dld_dld_link=yes
  9517. else
  9518. ac_cv_lib_dld_dld_link=no
  9519. fi
  9520. rm -f core conftest.err conftest.$ac_objext \
  9521. conftest$ac_exeext conftest.$ac_ext
  9522. LIBS=$ac_check_lib_save_LIBS
  9523. fi
  9524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9525. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9526. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9527. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9528. fi
  9529. fi
  9530. fi
  9531. fi
  9532. fi
  9533. fi
  9534. ;;
  9535. esac
  9536. if test "x$lt_cv_dlopen" != xno; then
  9537. enable_dlopen=yes
  9538. else
  9539. enable_dlopen=no
  9540. fi
  9541. case $lt_cv_dlopen in
  9542. dlopen)
  9543. save_CPPFLAGS="$CPPFLAGS"
  9544. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9545. save_LDFLAGS="$LDFLAGS"
  9546. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9547. save_LIBS="$LIBS"
  9548. LIBS="$lt_cv_dlopen_libs $LIBS"
  9549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9550. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9551. if ${lt_cv_dlopen_self+:} false; then :
  9552. $as_echo_n "(cached) " >&6
  9553. else
  9554. if test "$cross_compiling" = yes; then :
  9555. lt_cv_dlopen_self=cross
  9556. else
  9557. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9558. lt_status=$lt_dlunknown
  9559. cat > conftest.$ac_ext <<_LT_EOF
  9560. #line $LINENO "configure"
  9561. #include "confdefs.h"
  9562. #if HAVE_DLFCN_H
  9563. #include <dlfcn.h>
  9564. #endif
  9565. #include <stdio.h>
  9566. #ifdef RTLD_GLOBAL
  9567. # define LT_DLGLOBAL RTLD_GLOBAL
  9568. #else
  9569. # ifdef DL_GLOBAL
  9570. # define LT_DLGLOBAL DL_GLOBAL
  9571. # else
  9572. # define LT_DLGLOBAL 0
  9573. # endif
  9574. #endif
  9575. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9576. find out it does not work in some platform. */
  9577. #ifndef LT_DLLAZY_OR_NOW
  9578. # ifdef RTLD_LAZY
  9579. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9580. # else
  9581. # ifdef DL_LAZY
  9582. # define LT_DLLAZY_OR_NOW DL_LAZY
  9583. # else
  9584. # ifdef RTLD_NOW
  9585. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9586. # else
  9587. # ifdef DL_NOW
  9588. # define LT_DLLAZY_OR_NOW DL_NOW
  9589. # else
  9590. # define LT_DLLAZY_OR_NOW 0
  9591. # endif
  9592. # endif
  9593. # endif
  9594. # endif
  9595. #endif
  9596. /* When -fvisbility=hidden is used, assume the code has been annotated
  9597. correspondingly for the symbols needed. */
  9598. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9599. int fnord () __attribute__((visibility("default")));
  9600. #endif
  9601. int fnord () { return 42; }
  9602. int main ()
  9603. {
  9604. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9605. int status = $lt_dlunknown;
  9606. if (self)
  9607. {
  9608. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9609. else
  9610. {
  9611. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9612. else puts (dlerror ());
  9613. }
  9614. /* dlclose (self); */
  9615. }
  9616. else
  9617. puts (dlerror ());
  9618. return status;
  9619. }
  9620. _LT_EOF
  9621. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9622. (eval $ac_link) 2>&5
  9623. ac_status=$?
  9624. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9625. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9626. (./conftest; exit; ) >&5 2>/dev/null
  9627. lt_status=$?
  9628. case x$lt_status in
  9629. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9630. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9631. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9632. esac
  9633. else :
  9634. # compilation failed
  9635. lt_cv_dlopen_self=no
  9636. fi
  9637. fi
  9638. rm -fr conftest*
  9639. fi
  9640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9641. $as_echo "$lt_cv_dlopen_self" >&6; }
  9642. if test "x$lt_cv_dlopen_self" = xyes; then
  9643. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9645. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9646. if ${lt_cv_dlopen_self_static+:} false; then :
  9647. $as_echo_n "(cached) " >&6
  9648. else
  9649. if test "$cross_compiling" = yes; then :
  9650. lt_cv_dlopen_self_static=cross
  9651. else
  9652. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9653. lt_status=$lt_dlunknown
  9654. cat > conftest.$ac_ext <<_LT_EOF
  9655. #line $LINENO "configure"
  9656. #include "confdefs.h"
  9657. #if HAVE_DLFCN_H
  9658. #include <dlfcn.h>
  9659. #endif
  9660. #include <stdio.h>
  9661. #ifdef RTLD_GLOBAL
  9662. # define LT_DLGLOBAL RTLD_GLOBAL
  9663. #else
  9664. # ifdef DL_GLOBAL
  9665. # define LT_DLGLOBAL DL_GLOBAL
  9666. # else
  9667. # define LT_DLGLOBAL 0
  9668. # endif
  9669. #endif
  9670. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9671. find out it does not work in some platform. */
  9672. #ifndef LT_DLLAZY_OR_NOW
  9673. # ifdef RTLD_LAZY
  9674. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9675. # else
  9676. # ifdef DL_LAZY
  9677. # define LT_DLLAZY_OR_NOW DL_LAZY
  9678. # else
  9679. # ifdef RTLD_NOW
  9680. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9681. # else
  9682. # ifdef DL_NOW
  9683. # define LT_DLLAZY_OR_NOW DL_NOW
  9684. # else
  9685. # define LT_DLLAZY_OR_NOW 0
  9686. # endif
  9687. # endif
  9688. # endif
  9689. # endif
  9690. #endif
  9691. /* When -fvisbility=hidden is used, assume the code has been annotated
  9692. correspondingly for the symbols needed. */
  9693. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9694. int fnord () __attribute__((visibility("default")));
  9695. #endif
  9696. int fnord () { return 42; }
  9697. int main ()
  9698. {
  9699. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9700. int status = $lt_dlunknown;
  9701. if (self)
  9702. {
  9703. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9704. else
  9705. {
  9706. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9707. else puts (dlerror ());
  9708. }
  9709. /* dlclose (self); */
  9710. }
  9711. else
  9712. puts (dlerror ());
  9713. return status;
  9714. }
  9715. _LT_EOF
  9716. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9717. (eval $ac_link) 2>&5
  9718. ac_status=$?
  9719. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9720. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9721. (./conftest; exit; ) >&5 2>/dev/null
  9722. lt_status=$?
  9723. case x$lt_status in
  9724. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9725. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9726. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9727. esac
  9728. else :
  9729. # compilation failed
  9730. lt_cv_dlopen_self_static=no
  9731. fi
  9732. fi
  9733. rm -fr conftest*
  9734. fi
  9735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9736. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9737. fi
  9738. CPPFLAGS="$save_CPPFLAGS"
  9739. LDFLAGS="$save_LDFLAGS"
  9740. LIBS="$save_LIBS"
  9741. ;;
  9742. esac
  9743. case $lt_cv_dlopen_self in
  9744. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9745. *) enable_dlopen_self=unknown ;;
  9746. esac
  9747. case $lt_cv_dlopen_self_static in
  9748. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9749. *) enable_dlopen_self_static=unknown ;;
  9750. esac
  9751. fi
  9752. striplib=
  9753. old_striplib=
  9754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9755. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9756. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9757. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9758. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9760. $as_echo "yes" >&6; }
  9761. else
  9762. # FIXME - insert some real tests, host_os isn't really good enough
  9763. case $host_os in
  9764. darwin*)
  9765. if test -n "$STRIP" ; then
  9766. striplib="$STRIP -x"
  9767. old_striplib="$STRIP -S"
  9768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9769. $as_echo "yes" >&6; }
  9770. else
  9771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9772. $as_echo "no" >&6; }
  9773. fi
  9774. ;;
  9775. *)
  9776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9777. $as_echo "no" >&6; }
  9778. ;;
  9779. esac
  9780. fi
  9781. # Report which library types will actually be built
  9782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9783. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9785. $as_echo "$can_build_shared" >&6; }
  9786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9787. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9788. test "$can_build_shared" = "no" && enable_shared=no
  9789. # On AIX, shared libraries and static libraries use the same namespace, and
  9790. # are all built from PIC.
  9791. case $host_os in
  9792. aix3*)
  9793. test "$enable_shared" = yes && enable_static=no
  9794. if test -n "$RANLIB"; then
  9795. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9796. postinstall_cmds='$RANLIB $lib'
  9797. fi
  9798. ;;
  9799. aix[4-9]*)
  9800. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9801. test "$enable_shared" = yes && enable_static=no
  9802. fi
  9803. ;;
  9804. esac
  9805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9806. $as_echo "$enable_shared" >&6; }
  9807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9808. $as_echo_n "checking whether to build static libraries... " >&6; }
  9809. # Make sure either enable_shared or enable_static is yes.
  9810. test "$enable_shared" = yes || enable_static=yes
  9811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9812. $as_echo "$enable_static" >&6; }
  9813. fi
  9814. ac_ext=c
  9815. ac_cpp='$CPP $CPPFLAGS'
  9816. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9817. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9818. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9819. CC="$lt_save_CC"
  9820. ac_config_commands="$ac_config_commands libtool"
  9821. # Only expand once:
  9822. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9823. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9824. LT_REVISION=$SDL_INTERFACE_AGE
  9825. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9826. ac_ext=c
  9827. ac_cpp='$CPP $CPPFLAGS'
  9828. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9829. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9830. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9831. if test -n "$ac_tool_prefix"; then
  9832. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9833. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9835. $as_echo_n "checking for $ac_word... " >&6; }
  9836. if ${ac_cv_prog_CC+:} false; then :
  9837. $as_echo_n "(cached) " >&6
  9838. else
  9839. if test -n "$CC"; then
  9840. ac_cv_prog_CC="$CC" # Let the user override the test.
  9841. else
  9842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9843. for as_dir in $PATH
  9844. do
  9845. IFS=$as_save_IFS
  9846. test -z "$as_dir" && as_dir=.
  9847. for ac_exec_ext in '' $ac_executable_extensions; do
  9848. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9849. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9850. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9851. break 2
  9852. fi
  9853. done
  9854. done
  9855. IFS=$as_save_IFS
  9856. fi
  9857. fi
  9858. CC=$ac_cv_prog_CC
  9859. if test -n "$CC"; then
  9860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9861. $as_echo "$CC" >&6; }
  9862. else
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9864. $as_echo "no" >&6; }
  9865. fi
  9866. fi
  9867. if test -z "$ac_cv_prog_CC"; then
  9868. ac_ct_CC=$CC
  9869. # Extract the first word of "gcc", so it can be a program name with args.
  9870. set dummy gcc; ac_word=$2
  9871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9872. $as_echo_n "checking for $ac_word... " >&6; }
  9873. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9874. $as_echo_n "(cached) " >&6
  9875. else
  9876. if test -n "$ac_ct_CC"; then
  9877. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9878. else
  9879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9880. for as_dir in $PATH
  9881. do
  9882. IFS=$as_save_IFS
  9883. test -z "$as_dir" && as_dir=.
  9884. for ac_exec_ext in '' $ac_executable_extensions; do
  9885. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9886. ac_cv_prog_ac_ct_CC="gcc"
  9887. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9888. break 2
  9889. fi
  9890. done
  9891. done
  9892. IFS=$as_save_IFS
  9893. fi
  9894. fi
  9895. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9896. if test -n "$ac_ct_CC"; then
  9897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9898. $as_echo "$ac_ct_CC" >&6; }
  9899. else
  9900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9901. $as_echo "no" >&6; }
  9902. fi
  9903. if test "x$ac_ct_CC" = x; then
  9904. CC=""
  9905. else
  9906. case $cross_compiling:$ac_tool_warned in
  9907. yes:)
  9908. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9909. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9910. ac_tool_warned=yes ;;
  9911. esac
  9912. CC=$ac_ct_CC
  9913. fi
  9914. else
  9915. CC="$ac_cv_prog_CC"
  9916. fi
  9917. if test -z "$CC"; then
  9918. if test -n "$ac_tool_prefix"; then
  9919. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9920. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9922. $as_echo_n "checking for $ac_word... " >&6; }
  9923. if ${ac_cv_prog_CC+:} false; then :
  9924. $as_echo_n "(cached) " >&6
  9925. else
  9926. if test -n "$CC"; then
  9927. ac_cv_prog_CC="$CC" # Let the user override the test.
  9928. else
  9929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9930. for as_dir in $PATH
  9931. do
  9932. IFS=$as_save_IFS
  9933. test -z "$as_dir" && as_dir=.
  9934. for ac_exec_ext in '' $ac_executable_extensions; do
  9935. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9936. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9937. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9938. break 2
  9939. fi
  9940. done
  9941. done
  9942. IFS=$as_save_IFS
  9943. fi
  9944. fi
  9945. CC=$ac_cv_prog_CC
  9946. if test -n "$CC"; then
  9947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9948. $as_echo "$CC" >&6; }
  9949. else
  9950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9951. $as_echo "no" >&6; }
  9952. fi
  9953. fi
  9954. fi
  9955. if test -z "$CC"; then
  9956. # Extract the first word of "cc", so it can be a program name with args.
  9957. set dummy cc; ac_word=$2
  9958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9959. $as_echo_n "checking for $ac_word... " >&6; }
  9960. if ${ac_cv_prog_CC+:} false; then :
  9961. $as_echo_n "(cached) " >&6
  9962. else
  9963. if test -n "$CC"; then
  9964. ac_cv_prog_CC="$CC" # Let the user override the test.
  9965. else
  9966. ac_prog_rejected=no
  9967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9968. for as_dir in $PATH
  9969. do
  9970. IFS=$as_save_IFS
  9971. test -z "$as_dir" && as_dir=.
  9972. for ac_exec_ext in '' $ac_executable_extensions; do
  9973. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9974. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9975. ac_prog_rejected=yes
  9976. continue
  9977. fi
  9978. ac_cv_prog_CC="cc"
  9979. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9980. break 2
  9981. fi
  9982. done
  9983. done
  9984. IFS=$as_save_IFS
  9985. if test $ac_prog_rejected = yes; then
  9986. # We found a bogon in the path, so make sure we never use it.
  9987. set dummy $ac_cv_prog_CC
  9988. shift
  9989. if test $# != 0; then
  9990. # We chose a different compiler from the bogus one.
  9991. # However, it has the same basename, so the bogon will be chosen
  9992. # first if we set CC to just the basename; use the full file name.
  9993. shift
  9994. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9995. fi
  9996. fi
  9997. fi
  9998. fi
  9999. CC=$ac_cv_prog_CC
  10000. if test -n "$CC"; then
  10001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10002. $as_echo "$CC" >&6; }
  10003. else
  10004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10005. $as_echo "no" >&6; }
  10006. fi
  10007. fi
  10008. if test -z "$CC"; then
  10009. if test -n "$ac_tool_prefix"; then
  10010. for ac_prog in cl.exe
  10011. do
  10012. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10013. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10015. $as_echo_n "checking for $ac_word... " >&6; }
  10016. if ${ac_cv_prog_CC+:} false; then :
  10017. $as_echo_n "(cached) " >&6
  10018. else
  10019. if test -n "$CC"; then
  10020. ac_cv_prog_CC="$CC" # Let the user override the test.
  10021. else
  10022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10023. for as_dir in $PATH
  10024. do
  10025. IFS=$as_save_IFS
  10026. test -z "$as_dir" && as_dir=.
  10027. for ac_exec_ext in '' $ac_executable_extensions; do
  10028. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10029. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10030. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10031. break 2
  10032. fi
  10033. done
  10034. done
  10035. IFS=$as_save_IFS
  10036. fi
  10037. fi
  10038. CC=$ac_cv_prog_CC
  10039. if test -n "$CC"; then
  10040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10041. $as_echo "$CC" >&6; }
  10042. else
  10043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10044. $as_echo "no" >&6; }
  10045. fi
  10046. test -n "$CC" && break
  10047. done
  10048. fi
  10049. if test -z "$CC"; then
  10050. ac_ct_CC=$CC
  10051. for ac_prog in cl.exe
  10052. do
  10053. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10054. set dummy $ac_prog; ac_word=$2
  10055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10056. $as_echo_n "checking for $ac_word... " >&6; }
  10057. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10058. $as_echo_n "(cached) " >&6
  10059. else
  10060. if test -n "$ac_ct_CC"; then
  10061. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10062. else
  10063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10064. for as_dir in $PATH
  10065. do
  10066. IFS=$as_save_IFS
  10067. test -z "$as_dir" && as_dir=.
  10068. for ac_exec_ext in '' $ac_executable_extensions; do
  10069. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10070. ac_cv_prog_ac_ct_CC="$ac_prog"
  10071. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10072. break 2
  10073. fi
  10074. done
  10075. done
  10076. IFS=$as_save_IFS
  10077. fi
  10078. fi
  10079. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10080. if test -n "$ac_ct_CC"; then
  10081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10082. $as_echo "$ac_ct_CC" >&6; }
  10083. else
  10084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10085. $as_echo "no" >&6; }
  10086. fi
  10087. test -n "$ac_ct_CC" && break
  10088. done
  10089. if test "x$ac_ct_CC" = x; then
  10090. CC=""
  10091. else
  10092. case $cross_compiling:$ac_tool_warned in
  10093. yes:)
  10094. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10095. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10096. ac_tool_warned=yes ;;
  10097. esac
  10098. CC=$ac_ct_CC
  10099. fi
  10100. fi
  10101. fi
  10102. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10103. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10104. as_fn_error $? "no acceptable C compiler found in \$PATH
  10105. See \`config.log' for more details" "$LINENO" 5; }
  10106. # Provide some information about the compiler.
  10107. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10108. set X $ac_compile
  10109. ac_compiler=$2
  10110. for ac_option in --version -v -V -qversion; do
  10111. { { ac_try="$ac_compiler $ac_option >&5"
  10112. case "(($ac_try" in
  10113. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10114. *) ac_try_echo=$ac_try;;
  10115. esac
  10116. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10117. $as_echo "$ac_try_echo"; } >&5
  10118. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10119. ac_status=$?
  10120. if test -s conftest.err; then
  10121. sed '10a\
  10122. ... rest of stderr output deleted ...
  10123. 10q' conftest.err >conftest.er1
  10124. cat conftest.er1 >&5
  10125. fi
  10126. rm -f conftest.er1 conftest.err
  10127. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10128. test $ac_status = 0; }
  10129. done
  10130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10131. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10132. if ${ac_cv_c_compiler_gnu+:} false; then :
  10133. $as_echo_n "(cached) " >&6
  10134. else
  10135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10136. /* end confdefs.h. */
  10137. int
  10138. main ()
  10139. {
  10140. #ifndef __GNUC__
  10141. choke me
  10142. #endif
  10143. ;
  10144. return 0;
  10145. }
  10146. _ACEOF
  10147. if ac_fn_c_try_compile "$LINENO"; then :
  10148. ac_compiler_gnu=yes
  10149. else
  10150. ac_compiler_gnu=no
  10151. fi
  10152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10153. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10154. fi
  10155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10156. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10157. if test $ac_compiler_gnu = yes; then
  10158. GCC=yes
  10159. else
  10160. GCC=
  10161. fi
  10162. ac_test_CFLAGS=${CFLAGS+set}
  10163. ac_save_CFLAGS=$CFLAGS
  10164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10165. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10166. if ${ac_cv_prog_cc_g+:} false; then :
  10167. $as_echo_n "(cached) " >&6
  10168. else
  10169. ac_save_c_werror_flag=$ac_c_werror_flag
  10170. ac_c_werror_flag=yes
  10171. ac_cv_prog_cc_g=no
  10172. CFLAGS="-g"
  10173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10174. /* end confdefs.h. */
  10175. int
  10176. main ()
  10177. {
  10178. ;
  10179. return 0;
  10180. }
  10181. _ACEOF
  10182. if ac_fn_c_try_compile "$LINENO"; then :
  10183. ac_cv_prog_cc_g=yes
  10184. else
  10185. CFLAGS=""
  10186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10187. /* end confdefs.h. */
  10188. int
  10189. main ()
  10190. {
  10191. ;
  10192. return 0;
  10193. }
  10194. _ACEOF
  10195. if ac_fn_c_try_compile "$LINENO"; then :
  10196. else
  10197. ac_c_werror_flag=$ac_save_c_werror_flag
  10198. CFLAGS="-g"
  10199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10200. /* end confdefs.h. */
  10201. int
  10202. main ()
  10203. {
  10204. ;
  10205. return 0;
  10206. }
  10207. _ACEOF
  10208. if ac_fn_c_try_compile "$LINENO"; then :
  10209. ac_cv_prog_cc_g=yes
  10210. fi
  10211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10212. fi
  10213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10214. fi
  10215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10216. ac_c_werror_flag=$ac_save_c_werror_flag
  10217. fi
  10218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10219. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10220. if test "$ac_test_CFLAGS" = set; then
  10221. CFLAGS=$ac_save_CFLAGS
  10222. elif test $ac_cv_prog_cc_g = yes; then
  10223. if test "$GCC" = yes; then
  10224. CFLAGS="-g -O2"
  10225. else
  10226. CFLAGS="-g"
  10227. fi
  10228. else
  10229. if test "$GCC" = yes; then
  10230. CFLAGS="-O2"
  10231. else
  10232. CFLAGS=
  10233. fi
  10234. fi
  10235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10236. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10237. if ${ac_cv_prog_cc_c89+:} false; then :
  10238. $as_echo_n "(cached) " >&6
  10239. else
  10240. ac_cv_prog_cc_c89=no
  10241. ac_save_CC=$CC
  10242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10243. /* end confdefs.h. */
  10244. #include <stdarg.h>
  10245. #include <stdio.h>
  10246. struct stat;
  10247. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10248. struct buf { int x; };
  10249. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10250. static char *e (p, i)
  10251. char **p;
  10252. int i;
  10253. {
  10254. return p[i];
  10255. }
  10256. static char *f (char * (*g) (char **, int), char **p, ...)
  10257. {
  10258. char *s;
  10259. va_list v;
  10260. va_start (v,p);
  10261. s = g (p, va_arg (v,int));
  10262. va_end (v);
  10263. return s;
  10264. }
  10265. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10266. function prototypes and stuff, but not '\xHH' hex character constants.
  10267. These don't provoke an error unfortunately, instead are silently treated
  10268. as 'x'. The following induces an error, until -std is added to get
  10269. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10270. array size at least. It's necessary to write '\x00'==0 to get something
  10271. that's true only with -std. */
  10272. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10273. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10274. inside strings and character constants. */
  10275. #define FOO(x) 'x'
  10276. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10277. int test (int i, double x);
  10278. struct s1 {int (*f) (int a);};
  10279. struct s2 {int (*f) (double a);};
  10280. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10281. int argc;
  10282. char **argv;
  10283. int
  10284. main ()
  10285. {
  10286. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10287. ;
  10288. return 0;
  10289. }
  10290. _ACEOF
  10291. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10292. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10293. do
  10294. CC="$ac_save_CC $ac_arg"
  10295. if ac_fn_c_try_compile "$LINENO"; then :
  10296. ac_cv_prog_cc_c89=$ac_arg
  10297. fi
  10298. rm -f core conftest.err conftest.$ac_objext
  10299. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10300. done
  10301. rm -f conftest.$ac_ext
  10302. CC=$ac_save_CC
  10303. fi
  10304. # AC_CACHE_VAL
  10305. case "x$ac_cv_prog_cc_c89" in
  10306. x)
  10307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10308. $as_echo "none needed" >&6; } ;;
  10309. xno)
  10310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10311. $as_echo "unsupported" >&6; } ;;
  10312. *)
  10313. CC="$CC $ac_cv_prog_cc_c89"
  10314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10315. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10316. esac
  10317. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10318. fi
  10319. ac_ext=c
  10320. ac_cpp='$CPP $CPPFLAGS'
  10321. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10322. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10323. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10324. ac_ext=cpp
  10325. ac_cpp='$CXXCPP $CPPFLAGS'
  10326. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10327. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10328. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10329. if test -z "$CXX"; then
  10330. if test -n "$CCC"; then
  10331. CXX=$CCC
  10332. else
  10333. if test -n "$ac_tool_prefix"; then
  10334. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10335. do
  10336. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10337. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10339. $as_echo_n "checking for $ac_word... " >&6; }
  10340. if ${ac_cv_prog_CXX+:} false; then :
  10341. $as_echo_n "(cached) " >&6
  10342. else
  10343. if test -n "$CXX"; then
  10344. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10345. else
  10346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10347. for as_dir in $PATH
  10348. do
  10349. IFS=$as_save_IFS
  10350. test -z "$as_dir" && as_dir=.
  10351. for ac_exec_ext in '' $ac_executable_extensions; do
  10352. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10353. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10354. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10355. break 2
  10356. fi
  10357. done
  10358. done
  10359. IFS=$as_save_IFS
  10360. fi
  10361. fi
  10362. CXX=$ac_cv_prog_CXX
  10363. if test -n "$CXX"; then
  10364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10365. $as_echo "$CXX" >&6; }
  10366. else
  10367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10368. $as_echo "no" >&6; }
  10369. fi
  10370. test -n "$CXX" && break
  10371. done
  10372. fi
  10373. if test -z "$CXX"; then
  10374. ac_ct_CXX=$CXX
  10375. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10376. do
  10377. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10378. set dummy $ac_prog; ac_word=$2
  10379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10380. $as_echo_n "checking for $ac_word... " >&6; }
  10381. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10382. $as_echo_n "(cached) " >&6
  10383. else
  10384. if test -n "$ac_ct_CXX"; then
  10385. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10386. else
  10387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10388. for as_dir in $PATH
  10389. do
  10390. IFS=$as_save_IFS
  10391. test -z "$as_dir" && as_dir=.
  10392. for ac_exec_ext in '' $ac_executable_extensions; do
  10393. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10394. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10395. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10396. break 2
  10397. fi
  10398. done
  10399. done
  10400. IFS=$as_save_IFS
  10401. fi
  10402. fi
  10403. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10404. if test -n "$ac_ct_CXX"; then
  10405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10406. $as_echo "$ac_ct_CXX" >&6; }
  10407. else
  10408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10409. $as_echo "no" >&6; }
  10410. fi
  10411. test -n "$ac_ct_CXX" && break
  10412. done
  10413. if test "x$ac_ct_CXX" = x; then
  10414. CXX="g++"
  10415. else
  10416. case $cross_compiling:$ac_tool_warned in
  10417. yes:)
  10418. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10419. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10420. ac_tool_warned=yes ;;
  10421. esac
  10422. CXX=$ac_ct_CXX
  10423. fi
  10424. fi
  10425. fi
  10426. fi
  10427. # Provide some information about the compiler.
  10428. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10429. set X $ac_compile
  10430. ac_compiler=$2
  10431. for ac_option in --version -v -V -qversion; do
  10432. { { ac_try="$ac_compiler $ac_option >&5"
  10433. case "(($ac_try" in
  10434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10435. *) ac_try_echo=$ac_try;;
  10436. esac
  10437. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10438. $as_echo "$ac_try_echo"; } >&5
  10439. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10440. ac_status=$?
  10441. if test -s conftest.err; then
  10442. sed '10a\
  10443. ... rest of stderr output deleted ...
  10444. 10q' conftest.err >conftest.er1
  10445. cat conftest.er1 >&5
  10446. fi
  10447. rm -f conftest.er1 conftest.err
  10448. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10449. test $ac_status = 0; }
  10450. done
  10451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10452. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10453. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10454. $as_echo_n "(cached) " >&6
  10455. else
  10456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10457. /* end confdefs.h. */
  10458. int
  10459. main ()
  10460. {
  10461. #ifndef __GNUC__
  10462. choke me
  10463. #endif
  10464. ;
  10465. return 0;
  10466. }
  10467. _ACEOF
  10468. if ac_fn_cxx_try_compile "$LINENO"; then :
  10469. ac_compiler_gnu=yes
  10470. else
  10471. ac_compiler_gnu=no
  10472. fi
  10473. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10474. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10475. fi
  10476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10477. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10478. if test $ac_compiler_gnu = yes; then
  10479. GXX=yes
  10480. else
  10481. GXX=
  10482. fi
  10483. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10484. ac_save_CXXFLAGS=$CXXFLAGS
  10485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10486. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10487. if ${ac_cv_prog_cxx_g+:} false; then :
  10488. $as_echo_n "(cached) " >&6
  10489. else
  10490. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10491. ac_cxx_werror_flag=yes
  10492. ac_cv_prog_cxx_g=no
  10493. CXXFLAGS="-g"
  10494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10495. /* end confdefs.h. */
  10496. int
  10497. main ()
  10498. {
  10499. ;
  10500. return 0;
  10501. }
  10502. _ACEOF
  10503. if ac_fn_cxx_try_compile "$LINENO"; then :
  10504. ac_cv_prog_cxx_g=yes
  10505. else
  10506. CXXFLAGS=""
  10507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10508. /* end confdefs.h. */
  10509. int
  10510. main ()
  10511. {
  10512. ;
  10513. return 0;
  10514. }
  10515. _ACEOF
  10516. if ac_fn_cxx_try_compile "$LINENO"; then :
  10517. else
  10518. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10519. CXXFLAGS="-g"
  10520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10521. /* end confdefs.h. */
  10522. int
  10523. main ()
  10524. {
  10525. ;
  10526. return 0;
  10527. }
  10528. _ACEOF
  10529. if ac_fn_cxx_try_compile "$LINENO"; then :
  10530. ac_cv_prog_cxx_g=yes
  10531. fi
  10532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10533. fi
  10534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10535. fi
  10536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10537. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10538. fi
  10539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10540. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10541. if test "$ac_test_CXXFLAGS" = set; then
  10542. CXXFLAGS=$ac_save_CXXFLAGS
  10543. elif test $ac_cv_prog_cxx_g = yes; then
  10544. if test "$GXX" = yes; then
  10545. CXXFLAGS="-g -O2"
  10546. else
  10547. CXXFLAGS="-g"
  10548. fi
  10549. else
  10550. if test "$GXX" = yes; then
  10551. CXXFLAGS="-O2"
  10552. else
  10553. CXXFLAGS=
  10554. fi
  10555. fi
  10556. ac_ext=c
  10557. ac_cpp='$CPP $CPPFLAGS'
  10558. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10559. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10560. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10561. func_stripname_cnf ()
  10562. {
  10563. case ${2} in
  10564. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10565. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10566. esac
  10567. } # func_stripname_cnf
  10568. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10569. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10570. (test "X$CXX" != "Xg++"))) ; then
  10571. ac_ext=cpp
  10572. ac_cpp='$CXXCPP $CPPFLAGS'
  10573. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10574. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10575. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10577. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10578. if test -z "$CXXCPP"; then
  10579. if ${ac_cv_prog_CXXCPP+:} false; then :
  10580. $as_echo_n "(cached) " >&6
  10581. else
  10582. # Double quotes because CXXCPP needs to be expanded
  10583. for CXXCPP in "$CXX -E" "/lib/cpp"
  10584. do
  10585. ac_preproc_ok=false
  10586. for ac_cxx_preproc_warn_flag in '' yes
  10587. do
  10588. # Use a header file that comes with gcc, so configuring glibc
  10589. # with a fresh cross-compiler works.
  10590. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10591. # <limits.h> exists even on freestanding compilers.
  10592. # On the NeXT, cc -E runs the code through the compiler's parser,
  10593. # not just through cpp. "Syntax error" is here to catch this case.
  10594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10595. /* end confdefs.h. */
  10596. #ifdef __STDC__
  10597. # include <limits.h>
  10598. #else
  10599. # include <assert.h>
  10600. #endif
  10601. Syntax error
  10602. _ACEOF
  10603. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10604. else
  10605. # Broken: fails on valid input.
  10606. continue
  10607. fi
  10608. rm -f conftest.err conftest.i conftest.$ac_ext
  10609. # OK, works on sane cases. Now check whether nonexistent headers
  10610. # can be detected and how.
  10611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10612. /* end confdefs.h. */
  10613. #include <ac_nonexistent.h>
  10614. _ACEOF
  10615. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10616. # Broken: success on invalid input.
  10617. continue
  10618. else
  10619. # Passes both tests.
  10620. ac_preproc_ok=:
  10621. break
  10622. fi
  10623. rm -f conftest.err conftest.i conftest.$ac_ext
  10624. done
  10625. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10626. rm -f conftest.i conftest.err conftest.$ac_ext
  10627. if $ac_preproc_ok; then :
  10628. break
  10629. fi
  10630. done
  10631. ac_cv_prog_CXXCPP=$CXXCPP
  10632. fi
  10633. CXXCPP=$ac_cv_prog_CXXCPP
  10634. else
  10635. ac_cv_prog_CXXCPP=$CXXCPP
  10636. fi
  10637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10638. $as_echo "$CXXCPP" >&6; }
  10639. ac_preproc_ok=false
  10640. for ac_cxx_preproc_warn_flag in '' yes
  10641. do
  10642. # Use a header file that comes with gcc, so configuring glibc
  10643. # with a fresh cross-compiler works.
  10644. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10645. # <limits.h> exists even on freestanding compilers.
  10646. # On the NeXT, cc -E runs the code through the compiler's parser,
  10647. # not just through cpp. "Syntax error" is here to catch this case.
  10648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10649. /* end confdefs.h. */
  10650. #ifdef __STDC__
  10651. # include <limits.h>
  10652. #else
  10653. # include <assert.h>
  10654. #endif
  10655. Syntax error
  10656. _ACEOF
  10657. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10658. else
  10659. # Broken: fails on valid input.
  10660. continue
  10661. fi
  10662. rm -f conftest.err conftest.i conftest.$ac_ext
  10663. # OK, works on sane cases. Now check whether nonexistent headers
  10664. # can be detected and how.
  10665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10666. /* end confdefs.h. */
  10667. #include <ac_nonexistent.h>
  10668. _ACEOF
  10669. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10670. # Broken: success on invalid input.
  10671. continue
  10672. else
  10673. # Passes both tests.
  10674. ac_preproc_ok=:
  10675. break
  10676. fi
  10677. rm -f conftest.err conftest.i conftest.$ac_ext
  10678. done
  10679. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10680. rm -f conftest.i conftest.err conftest.$ac_ext
  10681. if $ac_preproc_ok; then :
  10682. else
  10683. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10684. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10685. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10686. See \`config.log' for more details" "$LINENO" 5; }
  10687. fi
  10688. ac_ext=c
  10689. ac_cpp='$CPP $CPPFLAGS'
  10690. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10691. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10692. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10693. else
  10694. _lt_caught_CXX_error=yes
  10695. fi
  10696. ac_ext=cpp
  10697. ac_cpp='$CXXCPP $CPPFLAGS'
  10698. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10699. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10700. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10701. archive_cmds_need_lc_CXX=no
  10702. allow_undefined_flag_CXX=
  10703. always_export_symbols_CXX=no
  10704. archive_expsym_cmds_CXX=
  10705. compiler_needs_object_CXX=no
  10706. export_dynamic_flag_spec_CXX=
  10707. hardcode_direct_CXX=no
  10708. hardcode_direct_absolute_CXX=no
  10709. hardcode_libdir_flag_spec_CXX=
  10710. hardcode_libdir_separator_CXX=
  10711. hardcode_minus_L_CXX=no
  10712. hardcode_shlibpath_var_CXX=unsupported
  10713. hardcode_automatic_CXX=no
  10714. inherit_rpath_CXX=no
  10715. module_cmds_CXX=
  10716. module_expsym_cmds_CXX=
  10717. link_all_deplibs_CXX=unknown
  10718. old_archive_cmds_CXX=$old_archive_cmds
  10719. reload_flag_CXX=$reload_flag
  10720. reload_cmds_CXX=$reload_cmds
  10721. no_undefined_flag_CXX=
  10722. whole_archive_flag_spec_CXX=
  10723. enable_shared_with_static_runtimes_CXX=no
  10724. # Source file extension for C++ test sources.
  10725. ac_ext=cpp
  10726. # Object file extension for compiled C++ test sources.
  10727. objext=o
  10728. objext_CXX=$objext
  10729. # No sense in running all these tests if we already determined that
  10730. # the CXX compiler isn't working. Some variables (like enable_shared)
  10731. # are currently assumed to apply to all compilers on this platform,
  10732. # and will be corrupted by setting them based on a non-working compiler.
  10733. if test "$_lt_caught_CXX_error" != yes; then
  10734. # Code to be used in simple compile tests
  10735. lt_simple_compile_test_code="int some_variable = 0;"
  10736. # Code to be used in simple link tests
  10737. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10738. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10739. # If no C compiler was specified, use CC.
  10740. LTCC=${LTCC-"$CC"}
  10741. # If no C compiler flags were specified, use CFLAGS.
  10742. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10743. # Allow CC to be a program name with arguments.
  10744. compiler=$CC
  10745. # save warnings/boilerplate of simple test code
  10746. ac_outfile=conftest.$ac_objext
  10747. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10748. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10749. _lt_compiler_boilerplate=`cat conftest.err`
  10750. $RM conftest*
  10751. ac_outfile=conftest.$ac_objext
  10752. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10753. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10754. _lt_linker_boilerplate=`cat conftest.err`
  10755. $RM -r conftest*
  10756. # Allow CC to be a program name with arguments.
  10757. lt_save_CC=$CC
  10758. lt_save_CFLAGS=$CFLAGS
  10759. lt_save_LD=$LD
  10760. lt_save_GCC=$GCC
  10761. GCC=$GXX
  10762. lt_save_with_gnu_ld=$with_gnu_ld
  10763. lt_save_path_LD=$lt_cv_path_LD
  10764. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10765. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10766. else
  10767. $as_unset lt_cv_prog_gnu_ld
  10768. fi
  10769. if test -n "${lt_cv_path_LDCXX+set}"; then
  10770. lt_cv_path_LD=$lt_cv_path_LDCXX
  10771. else
  10772. $as_unset lt_cv_path_LD
  10773. fi
  10774. test -z "${LDCXX+set}" || LD=$LDCXX
  10775. CC=${CXX-"c++"}
  10776. CFLAGS=$CXXFLAGS
  10777. compiler=$CC
  10778. compiler_CXX=$CC
  10779. for cc_temp in $compiler""; do
  10780. case $cc_temp in
  10781. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10782. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10783. \-*) ;;
  10784. *) break;;
  10785. esac
  10786. done
  10787. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10788. if test -n "$compiler"; then
  10789. # We don't want -fno-exception when compiling C++ code, so set the
  10790. # no_builtin_flag separately
  10791. if test "$GXX" = yes; then
  10792. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10793. else
  10794. lt_prog_compiler_no_builtin_flag_CXX=
  10795. fi
  10796. if test "$GXX" = yes; then
  10797. # Set up default GNU C++ configuration
  10798. # Check whether --with-gnu-ld was given.
  10799. if test "${with_gnu_ld+set}" = set; then :
  10800. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10801. else
  10802. with_gnu_ld=no
  10803. fi
  10804. ac_prog=ld
  10805. if test "$GCC" = yes; then
  10806. # Check if gcc -print-prog-name=ld gives a path.
  10807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10808. $as_echo_n "checking for ld used by $CC... " >&6; }
  10809. case $host in
  10810. *-*-mingw*)
  10811. # gcc leaves a trailing carriage return which upsets mingw
  10812. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10813. *)
  10814. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10815. esac
  10816. case $ac_prog in
  10817. # Accept absolute paths.
  10818. [\\/]* | ?:[\\/]*)
  10819. re_direlt='/[^/][^/]*/\.\./'
  10820. # Canonicalize the pathname of ld
  10821. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10822. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10823. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10824. done
  10825. test -z "$LD" && LD="$ac_prog"
  10826. ;;
  10827. "")
  10828. # If it fails, then pretend we aren't using GCC.
  10829. ac_prog=ld
  10830. ;;
  10831. *)
  10832. # If it is relative, then search for the first ld in PATH.
  10833. with_gnu_ld=unknown
  10834. ;;
  10835. esac
  10836. elif test "$with_gnu_ld" = yes; then
  10837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10838. $as_echo_n "checking for GNU ld... " >&6; }
  10839. else
  10840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10841. $as_echo_n "checking for non-GNU ld... " >&6; }
  10842. fi
  10843. if ${lt_cv_path_LD+:} false; then :
  10844. $as_echo_n "(cached) " >&6
  10845. else
  10846. if test -z "$LD"; then
  10847. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10848. for ac_dir in $PATH; do
  10849. IFS="$lt_save_ifs"
  10850. test -z "$ac_dir" && ac_dir=.
  10851. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10852. lt_cv_path_LD="$ac_dir/$ac_prog"
  10853. # Check to see if the program is GNU ld. I'd rather use --version,
  10854. # but apparently some variants of GNU ld only accept -v.
  10855. # Break only if it was the GNU/non-GNU ld that we prefer.
  10856. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10857. *GNU* | *'with BFD'*)
  10858. test "$with_gnu_ld" != no && break
  10859. ;;
  10860. *)
  10861. test "$with_gnu_ld" != yes && break
  10862. ;;
  10863. esac
  10864. fi
  10865. done
  10866. IFS="$lt_save_ifs"
  10867. else
  10868. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10869. fi
  10870. fi
  10871. LD="$lt_cv_path_LD"
  10872. if test -n "$LD"; then
  10873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10874. $as_echo "$LD" >&6; }
  10875. else
  10876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10877. $as_echo "no" >&6; }
  10878. fi
  10879. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10881. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10882. if ${lt_cv_prog_gnu_ld+:} false; then :
  10883. $as_echo_n "(cached) " >&6
  10884. else
  10885. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10886. case `$LD -v 2>&1 </dev/null` in
  10887. *GNU* | *'with BFD'*)
  10888. lt_cv_prog_gnu_ld=yes
  10889. ;;
  10890. *)
  10891. lt_cv_prog_gnu_ld=no
  10892. ;;
  10893. esac
  10894. fi
  10895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10896. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10897. with_gnu_ld=$lt_cv_prog_gnu_ld
  10898. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10899. # archiving commands below assume that GNU ld is being used.
  10900. if test "$with_gnu_ld" = yes; then
  10901. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10902. 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'
  10903. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10904. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10905. # If archive_cmds runs LD, not CC, wlarc should be empty
  10906. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10907. # investigate it a little bit more. (MM)
  10908. wlarc='${wl}'
  10909. # ancient GNU ld didn't support --whole-archive et. al.
  10910. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10911. $GREP 'no-whole-archive' > /dev/null; then
  10912. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10913. else
  10914. whole_archive_flag_spec_CXX=
  10915. fi
  10916. else
  10917. with_gnu_ld=no
  10918. wlarc=
  10919. # A generic and very simple default shared library creation
  10920. # command for GNU C++ for the case where it uses the native
  10921. # linker, instead of GNU ld. If possible, this setting should
  10922. # overridden to take advantage of the native linker features on
  10923. # the platform it is being used on.
  10924. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10925. fi
  10926. # Commands to make compiler produce verbose output that lists
  10927. # what "hidden" libraries, object files and flags are used when
  10928. # linking a shared library.
  10929. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10930. else
  10931. GXX=no
  10932. with_gnu_ld=no
  10933. wlarc=
  10934. fi
  10935. # PORTME: fill in a description of your system's C++ link characteristics
  10936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10937. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10938. ld_shlibs_CXX=yes
  10939. case $host_os in
  10940. aix3*)
  10941. # FIXME: insert proper C++ library support
  10942. ld_shlibs_CXX=no
  10943. ;;
  10944. aix[4-9]*)
  10945. if test "$host_cpu" = ia64; then
  10946. # On IA64, the linker does run time linking by default, so we don't
  10947. # have to do anything special.
  10948. aix_use_runtimelinking=no
  10949. exp_sym_flag='-Bexport'
  10950. no_entry_flag=""
  10951. else
  10952. aix_use_runtimelinking=no
  10953. # Test if we are trying to use run time linking or normal
  10954. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10955. # need to do runtime linking.
  10956. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10957. for ld_flag in $LDFLAGS; do
  10958. case $ld_flag in
  10959. *-brtl*)
  10960. aix_use_runtimelinking=yes
  10961. break
  10962. ;;
  10963. esac
  10964. done
  10965. ;;
  10966. esac
  10967. exp_sym_flag='-bexport'
  10968. no_entry_flag='-bnoentry'
  10969. fi
  10970. # When large executables or shared objects are built, AIX ld can
  10971. # have problems creating the table of contents. If linking a library
  10972. # or program results in "error TOC overflow" add -mminimal-toc to
  10973. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10974. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10975. archive_cmds_CXX=''
  10976. hardcode_direct_CXX=yes
  10977. hardcode_direct_absolute_CXX=yes
  10978. hardcode_libdir_separator_CXX=':'
  10979. link_all_deplibs_CXX=yes
  10980. file_list_spec_CXX='${wl}-f,'
  10981. if test "$GXX" = yes; then
  10982. case $host_os in aix4.[012]|aix4.[012].*)
  10983. # We only want to do this on AIX 4.2 and lower, the check
  10984. # below for broken collect2 doesn't work under 4.3+
  10985. collect2name=`${CC} -print-prog-name=collect2`
  10986. if test -f "$collect2name" &&
  10987. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10988. then
  10989. # We have reworked collect2
  10990. :
  10991. else
  10992. # We have old collect2
  10993. hardcode_direct_CXX=unsupported
  10994. # It fails to find uninstalled libraries when the uninstalled
  10995. # path is not listed in the libpath. Setting hardcode_minus_L
  10996. # to unsupported forces relinking
  10997. hardcode_minus_L_CXX=yes
  10998. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10999. hardcode_libdir_separator_CXX=
  11000. fi
  11001. esac
  11002. shared_flag='-shared'
  11003. if test "$aix_use_runtimelinking" = yes; then
  11004. shared_flag="$shared_flag "'${wl}-G'
  11005. fi
  11006. else
  11007. # not using gcc
  11008. if test "$host_cpu" = ia64; then
  11009. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11010. # chokes on -Wl,-G. The following line is correct:
  11011. shared_flag='-G'
  11012. else
  11013. if test "$aix_use_runtimelinking" = yes; then
  11014. shared_flag='${wl}-G'
  11015. else
  11016. shared_flag='${wl}-bM:SRE'
  11017. fi
  11018. fi
  11019. fi
  11020. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11021. # It seems that -bexpall does not export symbols beginning with
  11022. # underscore (_), so it is better to generate a list of symbols to
  11023. # export.
  11024. always_export_symbols_CXX=yes
  11025. if test "$aix_use_runtimelinking" = yes; then
  11026. # Warning - without using the other runtime loading flags (-brtl),
  11027. # -berok will link without error, but may produce a broken library.
  11028. allow_undefined_flag_CXX='-berok'
  11029. # Determine the default libpath from the value encoded in an empty
  11030. # executable.
  11031. if test "${lt_cv_aix_libpath+set}" = set; then
  11032. aix_libpath=$lt_cv_aix_libpath
  11033. else
  11034. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11035. $as_echo_n "(cached) " >&6
  11036. else
  11037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11038. /* end confdefs.h. */
  11039. int
  11040. main ()
  11041. {
  11042. ;
  11043. return 0;
  11044. }
  11045. _ACEOF
  11046. if ac_fn_cxx_try_link "$LINENO"; then :
  11047. lt_aix_libpath_sed='
  11048. /Import File Strings/,/^$/ {
  11049. /^0/ {
  11050. s/^0 *\([^ ]*\) *$/\1/
  11051. p
  11052. }
  11053. }'
  11054. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11055. # Check for a 64-bit object if we didn't find anything.
  11056. if test -z "$lt_cv_aix_libpath__CXX"; then
  11057. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11058. fi
  11059. fi
  11060. rm -f core conftest.err conftest.$ac_objext \
  11061. conftest$ac_exeext conftest.$ac_ext
  11062. if test -z "$lt_cv_aix_libpath__CXX"; then
  11063. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11064. fi
  11065. fi
  11066. aix_libpath=$lt_cv_aix_libpath__CXX
  11067. fi
  11068. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11069. 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"
  11070. else
  11071. if test "$host_cpu" = ia64; then
  11072. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11073. allow_undefined_flag_CXX="-z nodefs"
  11074. 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"
  11075. else
  11076. # Determine the default libpath from the value encoded in an
  11077. # empty executable.
  11078. if test "${lt_cv_aix_libpath+set}" = set; then
  11079. aix_libpath=$lt_cv_aix_libpath
  11080. else
  11081. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11082. $as_echo_n "(cached) " >&6
  11083. else
  11084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11085. /* end confdefs.h. */
  11086. int
  11087. main ()
  11088. {
  11089. ;
  11090. return 0;
  11091. }
  11092. _ACEOF
  11093. if ac_fn_cxx_try_link "$LINENO"; then :
  11094. lt_aix_libpath_sed='
  11095. /Import File Strings/,/^$/ {
  11096. /^0/ {
  11097. s/^0 *\([^ ]*\) *$/\1/
  11098. p
  11099. }
  11100. }'
  11101. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11102. # Check for a 64-bit object if we didn't find anything.
  11103. if test -z "$lt_cv_aix_libpath__CXX"; then
  11104. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11105. fi
  11106. fi
  11107. rm -f core conftest.err conftest.$ac_objext \
  11108. conftest$ac_exeext conftest.$ac_ext
  11109. if test -z "$lt_cv_aix_libpath__CXX"; then
  11110. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11111. fi
  11112. fi
  11113. aix_libpath=$lt_cv_aix_libpath__CXX
  11114. fi
  11115. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11116. # Warning - without using the other run time loading flags,
  11117. # -berok will link without error, but may produce a broken library.
  11118. no_undefined_flag_CXX=' ${wl}-bernotok'
  11119. allow_undefined_flag_CXX=' ${wl}-berok'
  11120. if test "$with_gnu_ld" = yes; then
  11121. # We only use this code for GNU lds that support --whole-archive.
  11122. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11123. else
  11124. # Exported symbols can be pulled into shared objects from archives
  11125. whole_archive_flag_spec_CXX='$convenience'
  11126. fi
  11127. archive_cmds_need_lc_CXX=yes
  11128. # This is similar to how AIX traditionally builds its shared
  11129. # libraries.
  11130. 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'
  11131. fi
  11132. fi
  11133. ;;
  11134. beos*)
  11135. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11136. allow_undefined_flag_CXX=unsupported
  11137. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11138. # support --undefined. This deserves some investigation. FIXME
  11139. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11140. else
  11141. ld_shlibs_CXX=no
  11142. fi
  11143. ;;
  11144. chorus*)
  11145. case $cc_basename in
  11146. *)
  11147. # FIXME: insert proper C++ library support
  11148. ld_shlibs_CXX=no
  11149. ;;
  11150. esac
  11151. ;;
  11152. cygwin* | mingw* | pw32* | cegcc*)
  11153. case $GXX,$cc_basename in
  11154. ,cl* | no,cl*)
  11155. # Native MSVC
  11156. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11157. # no search path for DLLs.
  11158. hardcode_libdir_flag_spec_CXX=' '
  11159. allow_undefined_flag_CXX=unsupported
  11160. always_export_symbols_CXX=yes
  11161. file_list_spec_CXX='@'
  11162. # Tell ltmain to make .lib files, not .a files.
  11163. libext=lib
  11164. # Tell ltmain to make .dll files, not .so files.
  11165. shrext_cmds=".dll"
  11166. # FIXME: Setting linknames here is a bad hack.
  11167. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11168. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11169. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11170. else
  11171. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11172. fi~
  11173. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11174. linknames='
  11175. # The linker will not automatically build a static lib if we build a DLL.
  11176. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11177. enable_shared_with_static_runtimes_CXX=yes
  11178. # Don't use ranlib
  11179. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11180. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11181. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11182. case $lt_outputfile in
  11183. *.exe|*.EXE) ;;
  11184. *)
  11185. lt_outputfile="$lt_outputfile.exe"
  11186. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11187. ;;
  11188. esac~
  11189. func_to_tool_file "$lt_outputfile"~
  11190. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11191. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11192. $RM "$lt_outputfile.manifest";
  11193. fi'
  11194. ;;
  11195. *)
  11196. # g++
  11197. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11198. # as there is no search path for DLLs.
  11199. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11200. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11201. allow_undefined_flag_CXX=unsupported
  11202. always_export_symbols_CXX=no
  11203. enable_shared_with_static_runtimes_CXX=yes
  11204. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11205. 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'
  11206. # If the export-symbols file already is a .def file (1st line
  11207. # is EXPORTS), use it as is; otherwise, prepend...
  11208. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11209. cp $export_symbols $output_objdir/$soname.def;
  11210. else
  11211. echo EXPORTS > $output_objdir/$soname.def;
  11212. cat $export_symbols >> $output_objdir/$soname.def;
  11213. fi~
  11214. $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'
  11215. else
  11216. ld_shlibs_CXX=no
  11217. fi
  11218. ;;
  11219. esac
  11220. ;;
  11221. darwin* | rhapsody*)
  11222. archive_cmds_need_lc_CXX=no
  11223. hardcode_direct_CXX=no
  11224. hardcode_automatic_CXX=yes
  11225. hardcode_shlibpath_var_CXX=unsupported
  11226. if test "$lt_cv_ld_force_load" = "yes"; then
  11227. 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\"`'
  11228. else
  11229. whole_archive_flag_spec_CXX=''
  11230. fi
  11231. link_all_deplibs_CXX=yes
  11232. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11233. case $cc_basename in
  11234. ifort*) _lt_dar_can_shared=yes ;;
  11235. *) _lt_dar_can_shared=$GCC ;;
  11236. esac
  11237. if test "$_lt_dar_can_shared" = "yes"; then
  11238. output_verbose_link_cmd=func_echo_all
  11239. 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}"
  11240. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11241. 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}"
  11242. 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}"
  11243. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11244. 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}"
  11245. 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}"
  11246. fi
  11247. else
  11248. ld_shlibs_CXX=no
  11249. fi
  11250. ;;
  11251. dgux*)
  11252. case $cc_basename in
  11253. ec++*)
  11254. # FIXME: insert proper C++ library support
  11255. ld_shlibs_CXX=no
  11256. ;;
  11257. ghcx*)
  11258. # Green Hills C++ Compiler
  11259. # FIXME: insert proper C++ library support
  11260. ld_shlibs_CXX=no
  11261. ;;
  11262. *)
  11263. # FIXME: insert proper C++ library support
  11264. ld_shlibs_CXX=no
  11265. ;;
  11266. esac
  11267. ;;
  11268. freebsd2.*)
  11269. # C++ shared libraries reported to be fairly broken before
  11270. # switch to ELF
  11271. ld_shlibs_CXX=no
  11272. ;;
  11273. freebsd-elf*)
  11274. archive_cmds_need_lc_CXX=no
  11275. ;;
  11276. freebsd* | dragonfly*)
  11277. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11278. # conventions
  11279. ld_shlibs_CXX=yes
  11280. ;;
  11281. gnu*)
  11282. ;;
  11283. haiku*)
  11284. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11285. link_all_deplibs_CXX=yes
  11286. ;;
  11287. hpux9*)
  11288. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11289. hardcode_libdir_separator_CXX=:
  11290. export_dynamic_flag_spec_CXX='${wl}-E'
  11291. hardcode_direct_CXX=yes
  11292. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11293. # but as the default
  11294. # location of the library.
  11295. case $cc_basename in
  11296. CC*)
  11297. # FIXME: insert proper C++ library support
  11298. ld_shlibs_CXX=no
  11299. ;;
  11300. aCC*)
  11301. 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'
  11302. # Commands to make compiler produce verbose output that lists
  11303. # what "hidden" libraries, object files and flags are used when
  11304. # linking a shared library.
  11305. #
  11306. # There doesn't appear to be a way to prevent this compiler from
  11307. # explicitly linking system object files so we need to strip them
  11308. # from the output so that they don't get included in the library
  11309. # dependencies.
  11310. 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"'
  11311. ;;
  11312. *)
  11313. if test "$GXX" = yes; then
  11314. 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'
  11315. else
  11316. # FIXME: insert proper C++ library support
  11317. ld_shlibs_CXX=no
  11318. fi
  11319. ;;
  11320. esac
  11321. ;;
  11322. hpux10*|hpux11*)
  11323. if test $with_gnu_ld = no; then
  11324. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11325. hardcode_libdir_separator_CXX=:
  11326. case $host_cpu in
  11327. hppa*64*|ia64*)
  11328. ;;
  11329. *)
  11330. export_dynamic_flag_spec_CXX='${wl}-E'
  11331. ;;
  11332. esac
  11333. fi
  11334. case $host_cpu in
  11335. hppa*64*|ia64*)
  11336. hardcode_direct_CXX=no
  11337. hardcode_shlibpath_var_CXX=no
  11338. ;;
  11339. *)
  11340. hardcode_direct_CXX=yes
  11341. hardcode_direct_absolute_CXX=yes
  11342. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11343. # but as the default
  11344. # location of the library.
  11345. ;;
  11346. esac
  11347. case $cc_basename in
  11348. CC*)
  11349. # FIXME: insert proper C++ library support
  11350. ld_shlibs_CXX=no
  11351. ;;
  11352. aCC*)
  11353. case $host_cpu in
  11354. hppa*64*)
  11355. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11356. ;;
  11357. ia64*)
  11358. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11359. ;;
  11360. *)
  11361. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11362. ;;
  11363. esac
  11364. # Commands to make compiler produce verbose output that lists
  11365. # what "hidden" libraries, object files and flags are used when
  11366. # linking a shared library.
  11367. #
  11368. # There doesn't appear to be a way to prevent this compiler from
  11369. # explicitly linking system object files so we need to strip them
  11370. # from the output so that they don't get included in the library
  11371. # dependencies.
  11372. 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"'
  11373. ;;
  11374. *)
  11375. if test "$GXX" = yes; then
  11376. if test $with_gnu_ld = no; then
  11377. case $host_cpu in
  11378. hppa*64*)
  11379. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11380. ;;
  11381. ia64*)
  11382. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11383. ;;
  11384. *)
  11385. 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'
  11386. ;;
  11387. esac
  11388. fi
  11389. else
  11390. # FIXME: insert proper C++ library support
  11391. ld_shlibs_CXX=no
  11392. fi
  11393. ;;
  11394. esac
  11395. ;;
  11396. interix[3-9]*)
  11397. hardcode_direct_CXX=no
  11398. hardcode_shlibpath_var_CXX=no
  11399. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11400. export_dynamic_flag_spec_CXX='${wl}-E'
  11401. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11402. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11403. # default) and relocated if they conflict, which is a slow very memory
  11404. # consuming and fragmenting process. To avoid this, we pick a random,
  11405. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11406. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11407. 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'
  11408. 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'
  11409. ;;
  11410. irix5* | irix6*)
  11411. case $cc_basename in
  11412. CC*)
  11413. # SGI C++
  11414. 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'
  11415. # Archives containing C++ object files must be created using
  11416. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11417. # necessary to make sure instantiated templates are included
  11418. # in the archive.
  11419. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11420. ;;
  11421. *)
  11422. if test "$GXX" = yes; then
  11423. if test "$with_gnu_ld" = no; then
  11424. 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'
  11425. else
  11426. 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'
  11427. fi
  11428. fi
  11429. link_all_deplibs_CXX=yes
  11430. ;;
  11431. esac
  11432. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11433. hardcode_libdir_separator_CXX=:
  11434. inherit_rpath_CXX=yes
  11435. ;;
  11436. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11437. case $cc_basename in
  11438. KCC*)
  11439. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11440. # KCC will only create a shared library if the output file
  11441. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11442. # to its proper name (with version) after linking.
  11443. 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'
  11444. 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'
  11445. # Commands to make compiler produce verbose output that lists
  11446. # what "hidden" libraries, object files and flags are used when
  11447. # linking a shared library.
  11448. #
  11449. # There doesn't appear to be a way to prevent this compiler from
  11450. # explicitly linking system object files so we need to strip them
  11451. # from the output so that they don't get included in the library
  11452. # dependencies.
  11453. 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"'
  11454. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11455. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11456. # Archives containing C++ object files must be created using
  11457. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11458. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11459. ;;
  11460. icpc* | ecpc* )
  11461. # Intel C++
  11462. with_gnu_ld=yes
  11463. # version 8.0 and above of icpc choke on multiply defined symbols
  11464. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11465. # earlier do not add the objects themselves.
  11466. case `$CC -V 2>&1` in
  11467. *"Version 7."*)
  11468. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11469. 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'
  11470. ;;
  11471. *) # Version 8.0 or newer
  11472. tmp_idyn=
  11473. case $host_cpu in
  11474. ia64*) tmp_idyn=' -i_dynamic';;
  11475. esac
  11476. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11477. 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'
  11478. ;;
  11479. esac
  11480. archive_cmds_need_lc_CXX=no
  11481. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11482. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11483. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11484. ;;
  11485. pgCC* | pgcpp*)
  11486. # Portland Group C++ compiler
  11487. case `$CC -V` in
  11488. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11489. prelink_cmds_CXX='tpldir=Template.dir~
  11490. rm -rf $tpldir~
  11491. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11492. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11493. old_archive_cmds_CXX='tpldir=Template.dir~
  11494. rm -rf $tpldir~
  11495. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11496. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11497. $RANLIB $oldlib'
  11498. archive_cmds_CXX='tpldir=Template.dir~
  11499. rm -rf $tpldir~
  11500. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11501. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11502. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11503. rm -rf $tpldir~
  11504. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11505. $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'
  11506. ;;
  11507. *) # Version 6 and above use weak symbols
  11508. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11509. 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'
  11510. ;;
  11511. esac
  11512. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11513. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11514. 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'
  11515. ;;
  11516. cxx*)
  11517. # Compaq C++
  11518. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11519. 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'
  11520. runpath_var=LD_RUN_PATH
  11521. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11522. hardcode_libdir_separator_CXX=:
  11523. # Commands to make compiler produce verbose output that lists
  11524. # what "hidden" libraries, object files and flags are used when
  11525. # linking a shared library.
  11526. #
  11527. # There doesn't appear to be a way to prevent this compiler from
  11528. # explicitly linking system object files so we need to strip them
  11529. # from the output so that they don't get included in the library
  11530. # dependencies.
  11531. 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'
  11532. ;;
  11533. xl* | mpixl* | bgxl*)
  11534. # IBM XL 8.0 on PPC, with GNU ld
  11535. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11536. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11537. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11538. if test "x$supports_anon_versioning" = xyes; then
  11539. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11540. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11541. echo "local: *; };" >> $output_objdir/$libname.ver~
  11542. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11543. fi
  11544. ;;
  11545. *)
  11546. case `$CC -V 2>&1 | sed 5q` in
  11547. *Sun\ C*)
  11548. # Sun C++ 5.9
  11549. no_undefined_flag_CXX=' -zdefs'
  11550. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11551. 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'
  11552. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11553. 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'
  11554. compiler_needs_object_CXX=yes
  11555. # Not sure whether something based on
  11556. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11557. # would be better.
  11558. output_verbose_link_cmd='func_echo_all'
  11559. # Archives containing C++ object files must be created using
  11560. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11561. # necessary to make sure instantiated templates are included
  11562. # in the archive.
  11563. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11564. ;;
  11565. esac
  11566. ;;
  11567. esac
  11568. ;;
  11569. lynxos*)
  11570. # FIXME: insert proper C++ library support
  11571. ld_shlibs_CXX=no
  11572. ;;
  11573. m88k*)
  11574. # FIXME: insert proper C++ library support
  11575. ld_shlibs_CXX=no
  11576. ;;
  11577. mvs*)
  11578. case $cc_basename in
  11579. cxx*)
  11580. # FIXME: insert proper C++ library support
  11581. ld_shlibs_CXX=no
  11582. ;;
  11583. *)
  11584. # FIXME: insert proper C++ library support
  11585. ld_shlibs_CXX=no
  11586. ;;
  11587. esac
  11588. ;;
  11589. netbsd*)
  11590. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11591. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11592. wlarc=
  11593. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11594. hardcode_direct_CXX=yes
  11595. hardcode_shlibpath_var_CXX=no
  11596. fi
  11597. # Workaround some broken pre-1.5 toolchains
  11598. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11599. ;;
  11600. *nto* | *qnx*)
  11601. ld_shlibs_CXX=yes
  11602. ;;
  11603. openbsd2*)
  11604. # C++ shared libraries are fairly broken
  11605. ld_shlibs_CXX=no
  11606. ;;
  11607. openbsd*)
  11608. if test -f /usr/libexec/ld.so; then
  11609. hardcode_direct_CXX=yes
  11610. hardcode_shlibpath_var_CXX=no
  11611. hardcode_direct_absolute_CXX=yes
  11612. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11613. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11614. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11615. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11616. export_dynamic_flag_spec_CXX='${wl}-E'
  11617. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11618. fi
  11619. output_verbose_link_cmd=func_echo_all
  11620. else
  11621. ld_shlibs_CXX=no
  11622. fi
  11623. ;;
  11624. osf3* | osf4* | osf5*)
  11625. case $cc_basename in
  11626. KCC*)
  11627. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11628. # KCC will only create a shared library if the output file
  11629. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11630. # to its proper name (with version) after linking.
  11631. 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'
  11632. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11633. hardcode_libdir_separator_CXX=:
  11634. # Archives containing C++ object files must be created using
  11635. # the KAI C++ compiler.
  11636. case $host in
  11637. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11638. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11639. esac
  11640. ;;
  11641. RCC*)
  11642. # Rational C++ 2.4.1
  11643. # FIXME: insert proper C++ library support
  11644. ld_shlibs_CXX=no
  11645. ;;
  11646. cxx*)
  11647. case $host in
  11648. osf3*)
  11649. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11650. 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'
  11651. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11652. ;;
  11653. *)
  11654. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11655. 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'
  11656. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11657. echo "-hidden">> $lib.exp~
  11658. $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~
  11659. $RM $lib.exp'
  11660. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11661. ;;
  11662. esac
  11663. hardcode_libdir_separator_CXX=:
  11664. # Commands to make compiler produce verbose output that lists
  11665. # what "hidden" libraries, object files and flags are used when
  11666. # linking a shared library.
  11667. #
  11668. # There doesn't appear to be a way to prevent this compiler from
  11669. # explicitly linking system object files so we need to strip them
  11670. # from the output so that they don't get included in the library
  11671. # dependencies.
  11672. 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"'
  11673. ;;
  11674. *)
  11675. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11676. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11677. case $host in
  11678. osf3*)
  11679. 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'
  11680. ;;
  11681. *)
  11682. 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'
  11683. ;;
  11684. esac
  11685. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11686. hardcode_libdir_separator_CXX=:
  11687. # Commands to make compiler produce verbose output that lists
  11688. # what "hidden" libraries, object files and flags are used when
  11689. # linking a shared library.
  11690. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11691. else
  11692. # FIXME: insert proper C++ library support
  11693. ld_shlibs_CXX=no
  11694. fi
  11695. ;;
  11696. esac
  11697. ;;
  11698. psos*)
  11699. # FIXME: insert proper C++ library support
  11700. ld_shlibs_CXX=no
  11701. ;;
  11702. sunos4*)
  11703. case $cc_basename in
  11704. CC*)
  11705. # Sun C++ 4.x
  11706. # FIXME: insert proper C++ library support
  11707. ld_shlibs_CXX=no
  11708. ;;
  11709. lcc*)
  11710. # Lucid
  11711. # FIXME: insert proper C++ library support
  11712. ld_shlibs_CXX=no
  11713. ;;
  11714. *)
  11715. # FIXME: insert proper C++ library support
  11716. ld_shlibs_CXX=no
  11717. ;;
  11718. esac
  11719. ;;
  11720. solaris*)
  11721. case $cc_basename in
  11722. CC* | sunCC*)
  11723. # Sun C++ 4.2, 5.x and Centerline C++
  11724. archive_cmds_need_lc_CXX=yes
  11725. no_undefined_flag_CXX=' -zdefs'
  11726. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11727. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11728. $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'
  11729. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11730. hardcode_shlibpath_var_CXX=no
  11731. case $host_os in
  11732. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11733. *)
  11734. # The compiler driver will combine and reorder linker options,
  11735. # but understands `-z linker_flag'.
  11736. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11737. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11738. ;;
  11739. esac
  11740. link_all_deplibs_CXX=yes
  11741. output_verbose_link_cmd='func_echo_all'
  11742. # Archives containing C++ object files must be created using
  11743. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11744. # necessary to make sure instantiated templates are included
  11745. # in the archive.
  11746. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11747. ;;
  11748. gcx*)
  11749. # Green Hills C++ Compiler
  11750. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11751. # The C++ compiler must be used to create the archive.
  11752. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11753. ;;
  11754. *)
  11755. # GNU C++ compiler with Solaris linker
  11756. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11757. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11758. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11759. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11760. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11761. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11762. # Commands to make compiler produce verbose output that lists
  11763. # what "hidden" libraries, object files and flags are used when
  11764. # linking a shared library.
  11765. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11766. else
  11767. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11768. # platform.
  11769. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11770. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11771. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11772. # Commands to make compiler produce verbose output that lists
  11773. # what "hidden" libraries, object files and flags are used when
  11774. # linking a shared library.
  11775. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11776. fi
  11777. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11778. case $host_os in
  11779. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11780. *)
  11781. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11782. ;;
  11783. esac
  11784. fi
  11785. ;;
  11786. esac
  11787. ;;
  11788. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11789. no_undefined_flag_CXX='${wl}-z,text'
  11790. archive_cmds_need_lc_CXX=no
  11791. hardcode_shlibpath_var_CXX=no
  11792. runpath_var='LD_RUN_PATH'
  11793. case $cc_basename in
  11794. CC*)
  11795. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11796. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11797. ;;
  11798. *)
  11799. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11800. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11801. ;;
  11802. esac
  11803. ;;
  11804. sysv5* | sco3.2v5* | sco5v6*)
  11805. # Note: We can NOT use -z defs as we might desire, because we do not
  11806. # link with -lc, and that would cause any symbols used from libc to
  11807. # always be unresolved, which means just about no library would
  11808. # ever link correctly. If we're not using GNU ld we use -z text
  11809. # though, which does catch some bad symbols but isn't as heavy-handed
  11810. # as -z defs.
  11811. no_undefined_flag_CXX='${wl}-z,text'
  11812. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11813. archive_cmds_need_lc_CXX=no
  11814. hardcode_shlibpath_var_CXX=no
  11815. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11816. hardcode_libdir_separator_CXX=':'
  11817. link_all_deplibs_CXX=yes
  11818. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11819. runpath_var='LD_RUN_PATH'
  11820. case $cc_basename in
  11821. CC*)
  11822. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11823. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11824. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11825. '"$old_archive_cmds_CXX"
  11826. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11827. '"$reload_cmds_CXX"
  11828. ;;
  11829. *)
  11830. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11831. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11832. ;;
  11833. esac
  11834. ;;
  11835. tandem*)
  11836. case $cc_basename in
  11837. NCC*)
  11838. # NonStop-UX NCC 3.20
  11839. # FIXME: insert proper C++ library support
  11840. ld_shlibs_CXX=no
  11841. ;;
  11842. *)
  11843. # FIXME: insert proper C++ library support
  11844. ld_shlibs_CXX=no
  11845. ;;
  11846. esac
  11847. ;;
  11848. vxworks*)
  11849. # FIXME: insert proper C++ library support
  11850. ld_shlibs_CXX=no
  11851. ;;
  11852. *)
  11853. # FIXME: insert proper C++ library support
  11854. ld_shlibs_CXX=no
  11855. ;;
  11856. esac
  11857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11858. $as_echo "$ld_shlibs_CXX" >&6; }
  11859. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11860. GCC_CXX="$GXX"
  11861. LD_CXX="$LD"
  11862. ## CAVEAT EMPTOR:
  11863. ## There is no encapsulation within the following macros, do not change
  11864. ## the running order or otherwise move them around unless you know exactly
  11865. ## what you are doing...
  11866. # Dependencies to place before and after the object being linked:
  11867. predep_objects_CXX=
  11868. postdep_objects_CXX=
  11869. predeps_CXX=
  11870. postdeps_CXX=
  11871. compiler_lib_search_path_CXX=
  11872. cat > conftest.$ac_ext <<_LT_EOF
  11873. class Foo
  11874. {
  11875. public:
  11876. Foo (void) { a = 0; }
  11877. private:
  11878. int a;
  11879. };
  11880. _LT_EOF
  11881. _lt_libdeps_save_CFLAGS=$CFLAGS
  11882. case "$CC $CFLAGS " in #(
  11883. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11884. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11885. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11886. esac
  11887. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11888. (eval $ac_compile) 2>&5
  11889. ac_status=$?
  11890. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11891. test $ac_status = 0; }; then
  11892. # Parse the compiler output and extract the necessary
  11893. # objects, libraries and library flags.
  11894. # Sentinel used to keep track of whether or not we are before
  11895. # the conftest object file.
  11896. pre_test_object_deps_done=no
  11897. for p in `eval "$output_verbose_link_cmd"`; do
  11898. case ${prev}${p} in
  11899. -L* | -R* | -l*)
  11900. # Some compilers place space between "-{L,R}" and the path.
  11901. # Remove the space.
  11902. if test $p = "-L" ||
  11903. test $p = "-R"; then
  11904. prev=$p
  11905. continue
  11906. fi
  11907. # Expand the sysroot to ease extracting the directories later.
  11908. if test -z "$prev"; then
  11909. case $p in
  11910. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11911. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11912. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11913. esac
  11914. fi
  11915. case $p in
  11916. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11917. esac
  11918. if test "$pre_test_object_deps_done" = no; then
  11919. case ${prev} in
  11920. -L | -R)
  11921. # Internal compiler library paths should come after those
  11922. # provided the user. The postdeps already come after the
  11923. # user supplied libs so there is no need to process them.
  11924. if test -z "$compiler_lib_search_path_CXX"; then
  11925. compiler_lib_search_path_CXX="${prev}${p}"
  11926. else
  11927. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11928. fi
  11929. ;;
  11930. # The "-l" case would never come before the object being
  11931. # linked, so don't bother handling this case.
  11932. esac
  11933. else
  11934. if test -z "$postdeps_CXX"; then
  11935. postdeps_CXX="${prev}${p}"
  11936. else
  11937. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11938. fi
  11939. fi
  11940. prev=
  11941. ;;
  11942. *.lto.$objext) ;; # Ignore GCC LTO objects
  11943. *.$objext)
  11944. # This assumes that the test object file only shows up
  11945. # once in the compiler output.
  11946. if test "$p" = "conftest.$objext"; then
  11947. pre_test_object_deps_done=yes
  11948. continue
  11949. fi
  11950. if test "$pre_test_object_deps_done" = no; then
  11951. if test -z "$predep_objects_CXX"; then
  11952. predep_objects_CXX="$p"
  11953. else
  11954. predep_objects_CXX="$predep_objects_CXX $p"
  11955. fi
  11956. else
  11957. if test -z "$postdep_objects_CXX"; then
  11958. postdep_objects_CXX="$p"
  11959. else
  11960. postdep_objects_CXX="$postdep_objects_CXX $p"
  11961. fi
  11962. fi
  11963. ;;
  11964. *) ;; # Ignore the rest.
  11965. esac
  11966. done
  11967. # Clean up.
  11968. rm -f a.out a.exe
  11969. else
  11970. echo "libtool.m4: error: problem compiling CXX test program"
  11971. fi
  11972. $RM -f confest.$objext
  11973. CFLAGS=$_lt_libdeps_save_CFLAGS
  11974. # PORTME: override above test on systems where it is broken
  11975. case $host_os in
  11976. interix[3-9]*)
  11977. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11978. # hack all around it, let's just trust "g++" to DTRT.
  11979. predep_objects_CXX=
  11980. postdep_objects_CXX=
  11981. postdeps_CXX=
  11982. ;;
  11983. linux*)
  11984. case `$CC -V 2>&1 | sed 5q` in
  11985. *Sun\ C*)
  11986. # Sun C++ 5.9
  11987. # The more standards-conforming stlport4 library is
  11988. # incompatible with the Cstd library. Avoid specifying
  11989. # it if it's in CXXFLAGS. Ignore libCrun as
  11990. # -library=stlport4 depends on it.
  11991. case " $CXX $CXXFLAGS " in
  11992. *" -library=stlport4 "*)
  11993. solaris_use_stlport4=yes
  11994. ;;
  11995. esac
  11996. if test "$solaris_use_stlport4" != yes; then
  11997. postdeps_CXX='-library=Cstd -library=Crun'
  11998. fi
  11999. ;;
  12000. esac
  12001. ;;
  12002. solaris*)
  12003. case $cc_basename in
  12004. CC* | sunCC*)
  12005. # The more standards-conforming stlport4 library is
  12006. # incompatible with the Cstd library. Avoid specifying
  12007. # it if it's in CXXFLAGS. Ignore libCrun as
  12008. # -library=stlport4 depends on it.
  12009. case " $CXX $CXXFLAGS " in
  12010. *" -library=stlport4 "*)
  12011. solaris_use_stlport4=yes
  12012. ;;
  12013. esac
  12014. # Adding this requires a known-good setup of shared libraries for
  12015. # Sun compiler versions before 5.6, else PIC objects from an old
  12016. # archive will be linked into the output, leading to subtle bugs.
  12017. if test "$solaris_use_stlport4" != yes; then
  12018. postdeps_CXX='-library=Cstd -library=Crun'
  12019. fi
  12020. ;;
  12021. esac
  12022. ;;
  12023. esac
  12024. case " $postdeps_CXX " in
  12025. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12026. esac
  12027. compiler_lib_search_dirs_CXX=
  12028. if test -n "${compiler_lib_search_path_CXX}"; then
  12029. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12030. fi
  12031. lt_prog_compiler_wl_CXX=
  12032. lt_prog_compiler_pic_CXX=
  12033. lt_prog_compiler_static_CXX=
  12034. # C++ specific cases for pic, static, wl, etc.
  12035. if test "$GXX" = yes; then
  12036. lt_prog_compiler_wl_CXX='-Wl,'
  12037. lt_prog_compiler_static_CXX='-static'
  12038. case $host_os in
  12039. aix*)
  12040. # All AIX code is PIC.
  12041. if test "$host_cpu" = ia64; then
  12042. # AIX 5 now supports IA64 processor
  12043. lt_prog_compiler_static_CXX='-Bstatic'
  12044. fi
  12045. ;;
  12046. amigaos*)
  12047. case $host_cpu in
  12048. powerpc)
  12049. # see comment about AmigaOS4 .so support
  12050. lt_prog_compiler_pic_CXX='-fPIC'
  12051. ;;
  12052. m68k)
  12053. # FIXME: we need at least 68020 code to build shared libraries, but
  12054. # adding the `-m68020' flag to GCC prevents building anything better,
  12055. # like `-m68040'.
  12056. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12057. ;;
  12058. esac
  12059. ;;
  12060. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12061. # PIC is the default for these OSes.
  12062. ;;
  12063. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12064. # This hack is so that the source file can tell whether it is being
  12065. # built for inclusion in a dll (and should export symbols for example).
  12066. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12067. # (--disable-auto-import) libraries
  12068. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12069. ;;
  12070. darwin* | rhapsody*)
  12071. # PIC is the default on this platform
  12072. # Common symbols not allowed in MH_DYLIB files
  12073. lt_prog_compiler_pic_CXX='-fno-common'
  12074. ;;
  12075. *djgpp*)
  12076. # DJGPP does not support shared libraries at all
  12077. lt_prog_compiler_pic_CXX=
  12078. ;;
  12079. haiku*)
  12080. # PIC is the default for Haiku.
  12081. # The "-static" flag exists, but is broken.
  12082. lt_prog_compiler_static_CXX=
  12083. ;;
  12084. interix[3-9]*)
  12085. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12086. # Instead, we relocate shared libraries at runtime.
  12087. ;;
  12088. sysv4*MP*)
  12089. if test -d /usr/nec; then
  12090. lt_prog_compiler_pic_CXX=-Kconform_pic
  12091. fi
  12092. ;;
  12093. hpux*)
  12094. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12095. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12096. # sets the default TLS model and affects inlining.
  12097. case $host_cpu in
  12098. hppa*64*)
  12099. ;;
  12100. *)
  12101. lt_prog_compiler_pic_CXX='-fPIC'
  12102. ;;
  12103. esac
  12104. ;;
  12105. *qnx* | *nto*)
  12106. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12107. # it will coredump.
  12108. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12109. ;;
  12110. *)
  12111. lt_prog_compiler_pic_CXX='-fPIC'
  12112. ;;
  12113. esac
  12114. else
  12115. case $host_os in
  12116. aix[4-9]*)
  12117. # All AIX code is PIC.
  12118. if test "$host_cpu" = ia64; then
  12119. # AIX 5 now supports IA64 processor
  12120. lt_prog_compiler_static_CXX='-Bstatic'
  12121. else
  12122. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12123. fi
  12124. ;;
  12125. chorus*)
  12126. case $cc_basename in
  12127. cxch68*)
  12128. # Green Hills C++ Compiler
  12129. # _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"
  12130. ;;
  12131. esac
  12132. ;;
  12133. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12134. # This hack is so that the source file can tell whether it is being
  12135. # built for inclusion in a dll (and should export symbols for example).
  12136. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12137. ;;
  12138. dgux*)
  12139. case $cc_basename in
  12140. ec++*)
  12141. lt_prog_compiler_pic_CXX='-KPIC'
  12142. ;;
  12143. ghcx*)
  12144. # Green Hills C++ Compiler
  12145. lt_prog_compiler_pic_CXX='-pic'
  12146. ;;
  12147. *)
  12148. ;;
  12149. esac
  12150. ;;
  12151. freebsd* | dragonfly*)
  12152. # FreeBSD uses GNU C++
  12153. ;;
  12154. hpux9* | hpux10* | hpux11*)
  12155. case $cc_basename in
  12156. CC*)
  12157. lt_prog_compiler_wl_CXX='-Wl,'
  12158. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12159. if test "$host_cpu" != ia64; then
  12160. lt_prog_compiler_pic_CXX='+Z'
  12161. fi
  12162. ;;
  12163. aCC*)
  12164. lt_prog_compiler_wl_CXX='-Wl,'
  12165. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12166. case $host_cpu in
  12167. hppa*64*|ia64*)
  12168. # +Z the default
  12169. ;;
  12170. *)
  12171. lt_prog_compiler_pic_CXX='+Z'
  12172. ;;
  12173. esac
  12174. ;;
  12175. *)
  12176. ;;
  12177. esac
  12178. ;;
  12179. interix*)
  12180. # This is c89, which is MS Visual C++ (no shared libs)
  12181. # Anyone wants to do a port?
  12182. ;;
  12183. irix5* | irix6* | nonstopux*)
  12184. case $cc_basename in
  12185. CC*)
  12186. lt_prog_compiler_wl_CXX='-Wl,'
  12187. lt_prog_compiler_static_CXX='-non_shared'
  12188. # CC pic flag -KPIC is the default.
  12189. ;;
  12190. *)
  12191. ;;
  12192. esac
  12193. ;;
  12194. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12195. case $cc_basename in
  12196. KCC*)
  12197. # KAI C++ Compiler
  12198. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12199. lt_prog_compiler_pic_CXX='-fPIC'
  12200. ;;
  12201. ecpc* )
  12202. # old Intel C++ for x86_64 which still supported -KPIC.
  12203. lt_prog_compiler_wl_CXX='-Wl,'
  12204. lt_prog_compiler_pic_CXX='-KPIC'
  12205. lt_prog_compiler_static_CXX='-static'
  12206. ;;
  12207. icpc* )
  12208. # Intel C++, used to be incompatible with GCC.
  12209. # ICC 10 doesn't accept -KPIC any more.
  12210. lt_prog_compiler_wl_CXX='-Wl,'
  12211. lt_prog_compiler_pic_CXX='-fPIC'
  12212. lt_prog_compiler_static_CXX='-static'
  12213. ;;
  12214. pgCC* | pgcpp*)
  12215. # Portland Group C++ compiler
  12216. lt_prog_compiler_wl_CXX='-Wl,'
  12217. lt_prog_compiler_pic_CXX='-fpic'
  12218. lt_prog_compiler_static_CXX='-Bstatic'
  12219. ;;
  12220. cxx*)
  12221. # Compaq C++
  12222. # Make sure the PIC flag is empty. It appears that all Alpha
  12223. # Linux and Compaq Tru64 Unix objects are PIC.
  12224. lt_prog_compiler_pic_CXX=
  12225. lt_prog_compiler_static_CXX='-non_shared'
  12226. ;;
  12227. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12228. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12229. lt_prog_compiler_wl_CXX='-Wl,'
  12230. lt_prog_compiler_pic_CXX='-qpic'
  12231. lt_prog_compiler_static_CXX='-qstaticlink'
  12232. ;;
  12233. *)
  12234. case `$CC -V 2>&1 | sed 5q` in
  12235. *Sun\ C*)
  12236. # Sun C++ 5.9
  12237. lt_prog_compiler_pic_CXX='-KPIC'
  12238. lt_prog_compiler_static_CXX='-Bstatic'
  12239. lt_prog_compiler_wl_CXX='-Qoption ld '
  12240. ;;
  12241. esac
  12242. ;;
  12243. esac
  12244. ;;
  12245. lynxos*)
  12246. ;;
  12247. m88k*)
  12248. ;;
  12249. mvs*)
  12250. case $cc_basename in
  12251. cxx*)
  12252. lt_prog_compiler_pic_CXX='-W c,exportall'
  12253. ;;
  12254. *)
  12255. ;;
  12256. esac
  12257. ;;
  12258. netbsd*)
  12259. ;;
  12260. *qnx* | *nto*)
  12261. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12262. # it will coredump.
  12263. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12264. ;;
  12265. osf3* | osf4* | osf5*)
  12266. case $cc_basename in
  12267. KCC*)
  12268. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12269. ;;
  12270. RCC*)
  12271. # Rational C++ 2.4.1
  12272. lt_prog_compiler_pic_CXX='-pic'
  12273. ;;
  12274. cxx*)
  12275. # Digital/Compaq C++
  12276. lt_prog_compiler_wl_CXX='-Wl,'
  12277. # Make sure the PIC flag is empty. It appears that all Alpha
  12278. # Linux and Compaq Tru64 Unix objects are PIC.
  12279. lt_prog_compiler_pic_CXX=
  12280. lt_prog_compiler_static_CXX='-non_shared'
  12281. ;;
  12282. *)
  12283. ;;
  12284. esac
  12285. ;;
  12286. psos*)
  12287. ;;
  12288. solaris*)
  12289. case $cc_basename in
  12290. CC* | sunCC*)
  12291. # Sun C++ 4.2, 5.x and Centerline C++
  12292. lt_prog_compiler_pic_CXX='-KPIC'
  12293. lt_prog_compiler_static_CXX='-Bstatic'
  12294. lt_prog_compiler_wl_CXX='-Qoption ld '
  12295. ;;
  12296. gcx*)
  12297. # Green Hills C++ Compiler
  12298. lt_prog_compiler_pic_CXX='-PIC'
  12299. ;;
  12300. *)
  12301. ;;
  12302. esac
  12303. ;;
  12304. sunos4*)
  12305. case $cc_basename in
  12306. CC*)
  12307. # Sun C++ 4.x
  12308. lt_prog_compiler_pic_CXX='-pic'
  12309. lt_prog_compiler_static_CXX='-Bstatic'
  12310. ;;
  12311. lcc*)
  12312. # Lucid
  12313. lt_prog_compiler_pic_CXX='-pic'
  12314. ;;
  12315. *)
  12316. ;;
  12317. esac
  12318. ;;
  12319. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12320. case $cc_basename in
  12321. CC*)
  12322. lt_prog_compiler_wl_CXX='-Wl,'
  12323. lt_prog_compiler_pic_CXX='-KPIC'
  12324. lt_prog_compiler_static_CXX='-Bstatic'
  12325. ;;
  12326. esac
  12327. ;;
  12328. tandem*)
  12329. case $cc_basename in
  12330. NCC*)
  12331. # NonStop-UX NCC 3.20
  12332. lt_prog_compiler_pic_CXX='-KPIC'
  12333. ;;
  12334. *)
  12335. ;;
  12336. esac
  12337. ;;
  12338. vxworks*)
  12339. ;;
  12340. *)
  12341. lt_prog_compiler_can_build_shared_CXX=no
  12342. ;;
  12343. esac
  12344. fi
  12345. case $host_os in
  12346. # For platforms which do not support PIC, -DPIC is meaningless:
  12347. *djgpp*)
  12348. lt_prog_compiler_pic_CXX=
  12349. ;;
  12350. *)
  12351. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12352. ;;
  12353. esac
  12354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12355. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12356. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12357. $as_echo_n "(cached) " >&6
  12358. else
  12359. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12360. fi
  12361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12362. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12363. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12364. #
  12365. # Check to make sure the PIC flag actually works.
  12366. #
  12367. if test -n "$lt_prog_compiler_pic_CXX"; then
  12368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12369. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12370. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12371. $as_echo_n "(cached) " >&6
  12372. else
  12373. lt_cv_prog_compiler_pic_works_CXX=no
  12374. ac_outfile=conftest.$ac_objext
  12375. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12376. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12377. # Insert the option either (1) after the last *FLAGS variable, or
  12378. # (2) before a word containing "conftest.", or (3) at the end.
  12379. # Note that $ac_compile itself does not contain backslashes and begins
  12380. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12381. # The option is referenced via a variable to avoid confusing sed.
  12382. lt_compile=`echo "$ac_compile" | $SED \
  12383. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12384. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12385. -e 's:$: $lt_compiler_flag:'`
  12386. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12387. (eval "$lt_compile" 2>conftest.err)
  12388. ac_status=$?
  12389. cat conftest.err >&5
  12390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12391. if (exit $ac_status) && test -s "$ac_outfile"; then
  12392. # The compiler can only warn and ignore the option if not recognized
  12393. # So say no if there are warnings other than the usual output.
  12394. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12395. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12396. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12397. lt_cv_prog_compiler_pic_works_CXX=yes
  12398. fi
  12399. fi
  12400. $RM conftest*
  12401. fi
  12402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12403. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12404. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12405. case $lt_prog_compiler_pic_CXX in
  12406. "" | " "*) ;;
  12407. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12408. esac
  12409. else
  12410. lt_prog_compiler_pic_CXX=
  12411. lt_prog_compiler_can_build_shared_CXX=no
  12412. fi
  12413. fi
  12414. #
  12415. # Check to make sure the static flag actually works.
  12416. #
  12417. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12419. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12420. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12421. $as_echo_n "(cached) " >&6
  12422. else
  12423. lt_cv_prog_compiler_static_works_CXX=no
  12424. save_LDFLAGS="$LDFLAGS"
  12425. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12426. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12427. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12428. # The linker can only warn and ignore the option if not recognized
  12429. # So say no if there are warnings
  12430. if test -s conftest.err; then
  12431. # Append any errors to the config.log.
  12432. cat conftest.err 1>&5
  12433. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12434. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12435. if diff conftest.exp conftest.er2 >/dev/null; then
  12436. lt_cv_prog_compiler_static_works_CXX=yes
  12437. fi
  12438. else
  12439. lt_cv_prog_compiler_static_works_CXX=yes
  12440. fi
  12441. fi
  12442. $RM -r conftest*
  12443. LDFLAGS="$save_LDFLAGS"
  12444. fi
  12445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12446. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12447. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12448. :
  12449. else
  12450. lt_prog_compiler_static_CXX=
  12451. fi
  12452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12453. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12454. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12455. $as_echo_n "(cached) " >&6
  12456. else
  12457. lt_cv_prog_compiler_c_o_CXX=no
  12458. $RM -r conftest 2>/dev/null
  12459. mkdir conftest
  12460. cd conftest
  12461. mkdir out
  12462. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12463. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12464. # Insert the option either (1) after the last *FLAGS variable, or
  12465. # (2) before a word containing "conftest.", or (3) at the end.
  12466. # Note that $ac_compile itself does not contain backslashes and begins
  12467. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12468. lt_compile=`echo "$ac_compile" | $SED \
  12469. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12470. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12471. -e 's:$: $lt_compiler_flag:'`
  12472. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12473. (eval "$lt_compile" 2>out/conftest.err)
  12474. ac_status=$?
  12475. cat out/conftest.err >&5
  12476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12477. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12478. then
  12479. # The compiler can only warn and ignore the option if not recognized
  12480. # So say no if there are warnings
  12481. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12482. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12483. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12484. lt_cv_prog_compiler_c_o_CXX=yes
  12485. fi
  12486. fi
  12487. chmod u+w . 2>&5
  12488. $RM conftest*
  12489. # SGI C++ compiler will create directory out/ii_files/ for
  12490. # template instantiation
  12491. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12492. $RM out/* && rmdir out
  12493. cd ..
  12494. $RM -r conftest
  12495. $RM conftest*
  12496. fi
  12497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12498. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12500. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12501. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12502. $as_echo_n "(cached) " >&6
  12503. else
  12504. lt_cv_prog_compiler_c_o_CXX=no
  12505. $RM -r conftest 2>/dev/null
  12506. mkdir conftest
  12507. cd conftest
  12508. mkdir out
  12509. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12510. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12511. # Insert the option either (1) after the last *FLAGS variable, or
  12512. # (2) before a word containing "conftest.", or (3) at the end.
  12513. # Note that $ac_compile itself does not contain backslashes and begins
  12514. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12515. lt_compile=`echo "$ac_compile" | $SED \
  12516. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12517. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12518. -e 's:$: $lt_compiler_flag:'`
  12519. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12520. (eval "$lt_compile" 2>out/conftest.err)
  12521. ac_status=$?
  12522. cat out/conftest.err >&5
  12523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12524. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12525. then
  12526. # The compiler can only warn and ignore the option if not recognized
  12527. # So say no if there are warnings
  12528. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12529. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12530. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12531. lt_cv_prog_compiler_c_o_CXX=yes
  12532. fi
  12533. fi
  12534. chmod u+w . 2>&5
  12535. $RM conftest*
  12536. # SGI C++ compiler will create directory out/ii_files/ for
  12537. # template instantiation
  12538. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12539. $RM out/* && rmdir out
  12540. cd ..
  12541. $RM -r conftest
  12542. $RM conftest*
  12543. fi
  12544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12545. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12546. hard_links="nottested"
  12547. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12548. # do not overwrite the value of need_locks provided by the user
  12549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12550. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12551. hard_links=yes
  12552. $RM conftest*
  12553. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12554. touch conftest.a
  12555. ln conftest.a conftest.b 2>&5 || hard_links=no
  12556. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12558. $as_echo "$hard_links" >&6; }
  12559. if test "$hard_links" = no; then
  12560. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12561. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12562. need_locks=warn
  12563. fi
  12564. else
  12565. need_locks=no
  12566. fi
  12567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12568. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12569. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12570. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12571. case $host_os in
  12572. aix[4-9]*)
  12573. # If we're using GNU nm, then we don't want the "-C" option.
  12574. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12575. # Also, AIX nm treats weak defined symbols like other global defined
  12576. # symbols, whereas GNU nm marks them as "W".
  12577. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12578. 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'
  12579. else
  12580. 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'
  12581. fi
  12582. ;;
  12583. pw32*)
  12584. export_symbols_cmds_CXX="$ltdll_cmds"
  12585. ;;
  12586. cygwin* | mingw* | cegcc*)
  12587. case $cc_basename in
  12588. cl*)
  12589. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12590. ;;
  12591. *)
  12592. 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'
  12593. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12594. ;;
  12595. esac
  12596. ;;
  12597. *)
  12598. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12599. ;;
  12600. esac
  12601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12602. $as_echo "$ld_shlibs_CXX" >&6; }
  12603. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12604. with_gnu_ld_CXX=$with_gnu_ld
  12605. #
  12606. # Do we need to explicitly link libc?
  12607. #
  12608. case "x$archive_cmds_need_lc_CXX" in
  12609. x|xyes)
  12610. # Assume -lc should be added
  12611. archive_cmds_need_lc_CXX=yes
  12612. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12613. case $archive_cmds_CXX in
  12614. *'~'*)
  12615. # FIXME: we may have to deal with multi-command sequences.
  12616. ;;
  12617. '$CC '*)
  12618. # Test whether the compiler implicitly links with -lc since on some
  12619. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12620. # to ld, don't add -lc before -lgcc.
  12621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12622. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12623. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12624. $as_echo_n "(cached) " >&6
  12625. else
  12626. $RM conftest*
  12627. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12628. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12629. (eval $ac_compile) 2>&5
  12630. ac_status=$?
  12631. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12632. test $ac_status = 0; } 2>conftest.err; then
  12633. soname=conftest
  12634. lib=conftest
  12635. libobjs=conftest.$ac_objext
  12636. deplibs=
  12637. wl=$lt_prog_compiler_wl_CXX
  12638. pic_flag=$lt_prog_compiler_pic_CXX
  12639. compiler_flags=-v
  12640. linker_flags=-v
  12641. verstring=
  12642. output_objdir=.
  12643. libname=conftest
  12644. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12645. allow_undefined_flag_CXX=
  12646. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12647. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12648. ac_status=$?
  12649. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12650. test $ac_status = 0; }
  12651. then
  12652. lt_cv_archive_cmds_need_lc_CXX=no
  12653. else
  12654. lt_cv_archive_cmds_need_lc_CXX=yes
  12655. fi
  12656. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12657. else
  12658. cat conftest.err 1>&5
  12659. fi
  12660. $RM conftest*
  12661. fi
  12662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12663. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12664. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12665. ;;
  12666. esac
  12667. fi
  12668. ;;
  12669. esac
  12670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12671. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12672. library_names_spec=
  12673. libname_spec='lib$name'
  12674. soname_spec=
  12675. shrext_cmds=".so"
  12676. postinstall_cmds=
  12677. postuninstall_cmds=
  12678. finish_cmds=
  12679. finish_eval=
  12680. shlibpath_var=
  12681. shlibpath_overrides_runpath=unknown
  12682. version_type=none
  12683. dynamic_linker="$host_os ld.so"
  12684. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12685. need_lib_prefix=unknown
  12686. hardcode_into_libs=no
  12687. # when you set need_version to no, make sure it does not cause -set_version
  12688. # flags to be left without arguments
  12689. need_version=unknown
  12690. case $host_os in
  12691. aix3*)
  12692. version_type=linux # correct to gnu/linux during the next big refactor
  12693. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12694. shlibpath_var=LIBPATH
  12695. # AIX 3 has no versioning support, so we append a major version to the name.
  12696. soname_spec='${libname}${release}${shared_ext}$major'
  12697. ;;
  12698. aix[4-9]*)
  12699. version_type=linux # correct to gnu/linux during the next big refactor
  12700. need_lib_prefix=no
  12701. need_version=no
  12702. hardcode_into_libs=yes
  12703. if test "$host_cpu" = ia64; then
  12704. # AIX 5 supports IA64
  12705. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12706. shlibpath_var=LD_LIBRARY_PATH
  12707. else
  12708. # With GCC up to 2.95.x, collect2 would create an import file
  12709. # for dependence libraries. The import file would start with
  12710. # the line `#! .'. This would cause the generated library to
  12711. # depend on `.', always an invalid library. This was fixed in
  12712. # development snapshots of GCC prior to 3.0.
  12713. case $host_os in
  12714. aix4 | aix4.[01] | aix4.[01].*)
  12715. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12716. echo ' yes '
  12717. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12718. :
  12719. else
  12720. can_build_shared=no
  12721. fi
  12722. ;;
  12723. esac
  12724. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12725. # soname into executable. Probably we can add versioning support to
  12726. # collect2, so additional links can be useful in future.
  12727. if test "$aix_use_runtimelinking" = yes; then
  12728. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12729. # instead of lib<name>.a to let people know that these are not
  12730. # typical AIX shared libraries.
  12731. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12732. else
  12733. # We preserve .a as extension for shared libraries through AIX4.2
  12734. # and later when we are not doing run time linking.
  12735. library_names_spec='${libname}${release}.a $libname.a'
  12736. soname_spec='${libname}${release}${shared_ext}$major'
  12737. fi
  12738. shlibpath_var=LIBPATH
  12739. fi
  12740. ;;
  12741. amigaos*)
  12742. case $host_cpu in
  12743. powerpc)
  12744. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12745. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12746. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12747. ;;
  12748. m68k)
  12749. library_names_spec='$libname.ixlibrary $libname.a'
  12750. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12751. 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'
  12752. ;;
  12753. esac
  12754. ;;
  12755. beos*)
  12756. library_names_spec='${libname}${shared_ext}'
  12757. dynamic_linker="$host_os ld.so"
  12758. shlibpath_var=LIBRARY_PATH
  12759. ;;
  12760. bsdi[45]*)
  12761. version_type=linux # correct to gnu/linux during the next big refactor
  12762. need_version=no
  12763. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12764. soname_spec='${libname}${release}${shared_ext}$major'
  12765. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12766. shlibpath_var=LD_LIBRARY_PATH
  12767. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12768. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12769. # the default ld.so.conf also contains /usr/contrib/lib and
  12770. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12771. # libtool to hard-code these into programs
  12772. ;;
  12773. cygwin* | mingw* | pw32* | cegcc*)
  12774. version_type=windows
  12775. shrext_cmds=".dll"
  12776. need_version=no
  12777. need_lib_prefix=no
  12778. case $GCC,$cc_basename in
  12779. yes,*)
  12780. # gcc
  12781. library_names_spec='$libname.dll.a'
  12782. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12783. postinstall_cmds='base_file=`basename \${file}`~
  12784. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12785. dldir=$destdir/`dirname \$dlpath`~
  12786. test -d \$dldir || mkdir -p \$dldir~
  12787. $install_prog $dir/$dlname \$dldir/$dlname~
  12788. chmod a+x \$dldir/$dlname~
  12789. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12790. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12791. fi'
  12792. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12793. dlpath=$dir/\$dldll~
  12794. $RM \$dlpath'
  12795. shlibpath_overrides_runpath=yes
  12796. case $host_os in
  12797. cygwin*)
  12798. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12799. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12800. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12801. ;;
  12802. mingw* | cegcc*)
  12803. # MinGW DLLs use traditional 'lib' prefix
  12804. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12805. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12806. ;;
  12807. pw32*)
  12808. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12809. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12810. ;;
  12811. esac
  12812. dynamic_linker='Win32 ld.exe'
  12813. ;;
  12814. *,cl*)
  12815. # Native MSVC
  12816. libname_spec='$name'
  12817. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12818. library_names_spec='${libname}.dll.lib'
  12819. case $build_os in
  12820. mingw*)
  12821. sys_lib_search_path_spec=
  12822. lt_save_ifs=$IFS
  12823. IFS=';'
  12824. for lt_path in $LIB
  12825. do
  12826. IFS=$lt_save_ifs
  12827. # Let DOS variable expansion print the short 8.3 style file name.
  12828. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12829. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12830. done
  12831. IFS=$lt_save_ifs
  12832. # Convert to MSYS style.
  12833. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12834. ;;
  12835. cygwin*)
  12836. # Convert to unix form, then to dos form, then back to unix form
  12837. # but this time dos style (no spaces!) so that the unix form looks
  12838. # like /cygdrive/c/PROGRA~1:/cygdr...
  12839. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12840. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12841. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12842. ;;
  12843. *)
  12844. sys_lib_search_path_spec="$LIB"
  12845. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12846. # It is most probably a Windows format PATH.
  12847. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12848. else
  12849. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12850. fi
  12851. # FIXME: find the short name or the path components, as spaces are
  12852. # common. (e.g. "Program Files" -> "PROGRA~1")
  12853. ;;
  12854. esac
  12855. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12856. postinstall_cmds='base_file=`basename \${file}`~
  12857. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12858. dldir=$destdir/`dirname \$dlpath`~
  12859. test -d \$dldir || mkdir -p \$dldir~
  12860. $install_prog $dir/$dlname \$dldir/$dlname'
  12861. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12862. dlpath=$dir/\$dldll~
  12863. $RM \$dlpath'
  12864. shlibpath_overrides_runpath=yes
  12865. dynamic_linker='Win32 link.exe'
  12866. ;;
  12867. *)
  12868. # Assume MSVC wrapper
  12869. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12870. dynamic_linker='Win32 ld.exe'
  12871. ;;
  12872. esac
  12873. # FIXME: first we should search . and the directory the executable is in
  12874. shlibpath_var=PATH
  12875. ;;
  12876. darwin* | rhapsody*)
  12877. dynamic_linker="$host_os dyld"
  12878. version_type=darwin
  12879. need_lib_prefix=no
  12880. need_version=no
  12881. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12882. soname_spec='${libname}${release}${major}$shared_ext'
  12883. shlibpath_overrides_runpath=yes
  12884. shlibpath_var=DYLD_LIBRARY_PATH
  12885. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12886. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12887. ;;
  12888. dgux*)
  12889. version_type=linux # correct to gnu/linux during the next big refactor
  12890. need_lib_prefix=no
  12891. need_version=no
  12892. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12893. soname_spec='${libname}${release}${shared_ext}$major'
  12894. shlibpath_var=LD_LIBRARY_PATH
  12895. ;;
  12896. freebsd* | dragonfly*)
  12897. # DragonFly does not have aout. When/if they implement a new
  12898. # versioning mechanism, adjust this.
  12899. if test -x /usr/bin/objformat; then
  12900. objformat=`/usr/bin/objformat`
  12901. else
  12902. case $host_os in
  12903. freebsd[23].*) objformat=aout ;;
  12904. *) objformat=elf ;;
  12905. esac
  12906. fi
  12907. version_type=freebsd-$objformat
  12908. case $version_type in
  12909. freebsd-elf*)
  12910. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12911. need_version=no
  12912. need_lib_prefix=no
  12913. ;;
  12914. freebsd-*)
  12915. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12916. need_version=yes
  12917. ;;
  12918. esac
  12919. shlibpath_var=LD_LIBRARY_PATH
  12920. case $host_os in
  12921. freebsd2.*)
  12922. shlibpath_overrides_runpath=yes
  12923. ;;
  12924. freebsd3.[01]* | freebsdelf3.[01]*)
  12925. shlibpath_overrides_runpath=yes
  12926. hardcode_into_libs=yes
  12927. ;;
  12928. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12929. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12930. shlibpath_overrides_runpath=no
  12931. hardcode_into_libs=yes
  12932. ;;
  12933. *) # from 4.6 on, and DragonFly
  12934. shlibpath_overrides_runpath=yes
  12935. hardcode_into_libs=yes
  12936. ;;
  12937. esac
  12938. ;;
  12939. gnu*)
  12940. version_type=linux # correct to gnu/linux during the next big refactor
  12941. need_lib_prefix=no
  12942. need_version=no
  12943. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12944. soname_spec='${libname}${release}${shared_ext}$major'
  12945. shlibpath_var=LD_LIBRARY_PATH
  12946. shlibpath_overrides_runpath=no
  12947. hardcode_into_libs=yes
  12948. ;;
  12949. haiku*)
  12950. version_type=linux # correct to gnu/linux during the next big refactor
  12951. need_lib_prefix=no
  12952. need_version=no
  12953. dynamic_linker="$host_os runtime_loader"
  12954. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12955. soname_spec='${libname}${release}${shared_ext}$major'
  12956. shlibpath_var=LIBRARY_PATH
  12957. shlibpath_overrides_runpath=yes
  12958. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12959. hardcode_into_libs=yes
  12960. ;;
  12961. hpux9* | hpux10* | hpux11*)
  12962. # Give a soname corresponding to the major version so that dld.sl refuses to
  12963. # link against other versions.
  12964. version_type=sunos
  12965. need_lib_prefix=no
  12966. need_version=no
  12967. case $host_cpu in
  12968. ia64*)
  12969. shrext_cmds='.so'
  12970. hardcode_into_libs=yes
  12971. dynamic_linker="$host_os dld.so"
  12972. shlibpath_var=LD_LIBRARY_PATH
  12973. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12974. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12975. soname_spec='${libname}${release}${shared_ext}$major'
  12976. if test "X$HPUX_IA64_MODE" = X32; then
  12977. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12978. else
  12979. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12980. fi
  12981. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12982. ;;
  12983. hppa*64*)
  12984. shrext_cmds='.sl'
  12985. hardcode_into_libs=yes
  12986. dynamic_linker="$host_os dld.sl"
  12987. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12988. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12989. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12990. soname_spec='${libname}${release}${shared_ext}$major'
  12991. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12992. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12993. ;;
  12994. *)
  12995. shrext_cmds='.sl'
  12996. dynamic_linker="$host_os dld.sl"
  12997. shlibpath_var=SHLIB_PATH
  12998. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12999. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13000. soname_spec='${libname}${release}${shared_ext}$major'
  13001. ;;
  13002. esac
  13003. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13004. postinstall_cmds='chmod 555 $lib'
  13005. # or fails outright, so override atomically:
  13006. install_override_mode=555
  13007. ;;
  13008. interix[3-9]*)
  13009. version_type=linux # correct to gnu/linux during the next big refactor
  13010. need_lib_prefix=no
  13011. need_version=no
  13012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13013. soname_spec='${libname}${release}${shared_ext}$major'
  13014. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13015. shlibpath_var=LD_LIBRARY_PATH
  13016. shlibpath_overrides_runpath=no
  13017. hardcode_into_libs=yes
  13018. ;;
  13019. irix5* | irix6* | nonstopux*)
  13020. case $host_os in
  13021. nonstopux*) version_type=nonstopux ;;
  13022. *)
  13023. if test "$lt_cv_prog_gnu_ld" = yes; then
  13024. version_type=linux # correct to gnu/linux during the next big refactor
  13025. else
  13026. version_type=irix
  13027. fi ;;
  13028. esac
  13029. need_lib_prefix=no
  13030. need_version=no
  13031. soname_spec='${libname}${release}${shared_ext}$major'
  13032. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13033. case $host_os in
  13034. irix5* | nonstopux*)
  13035. libsuff= shlibsuff=
  13036. ;;
  13037. *)
  13038. case $LD in # libtool.m4 will add one of these switches to LD
  13039. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13040. libsuff= shlibsuff= libmagic=32-bit;;
  13041. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13042. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13043. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13044. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13045. *) libsuff= shlibsuff= libmagic=never-match;;
  13046. esac
  13047. ;;
  13048. esac
  13049. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13050. shlibpath_overrides_runpath=no
  13051. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13052. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13053. hardcode_into_libs=yes
  13054. ;;
  13055. # No shared lib support for Linux oldld, aout, or coff.
  13056. linux*oldld* | linux*aout* | linux*coff*)
  13057. dynamic_linker=no
  13058. ;;
  13059. # This must be glibc/ELF.
  13060. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13061. version_type=linux # correct to gnu/linux during the next big refactor
  13062. need_lib_prefix=no
  13063. need_version=no
  13064. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13065. soname_spec='${libname}${release}${shared_ext}$major'
  13066. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13067. shlibpath_var=LD_LIBRARY_PATH
  13068. shlibpath_overrides_runpath=no
  13069. # Some binutils ld are patched to set DT_RUNPATH
  13070. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13071. $as_echo_n "(cached) " >&6
  13072. else
  13073. lt_cv_shlibpath_overrides_runpath=no
  13074. save_LDFLAGS=$LDFLAGS
  13075. save_libdir=$libdir
  13076. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13077. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13079. /* end confdefs.h. */
  13080. int
  13081. main ()
  13082. {
  13083. ;
  13084. return 0;
  13085. }
  13086. _ACEOF
  13087. if ac_fn_cxx_try_link "$LINENO"; then :
  13088. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13089. lt_cv_shlibpath_overrides_runpath=yes
  13090. fi
  13091. fi
  13092. rm -f core conftest.err conftest.$ac_objext \
  13093. conftest$ac_exeext conftest.$ac_ext
  13094. LDFLAGS=$save_LDFLAGS
  13095. libdir=$save_libdir
  13096. fi
  13097. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13098. # This implies no fast_install, which is unacceptable.
  13099. # Some rework will be needed to allow for fast_install
  13100. # before this can be enabled.
  13101. hardcode_into_libs=yes
  13102. # Append ld.so.conf contents to the search path
  13103. if test -f /etc/ld.so.conf; then
  13104. 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' ' '`
  13105. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13106. fi
  13107. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13108. # powerpc, because MkLinux only supported shared libraries with the
  13109. # GNU dynamic linker. Since this was broken with cross compilers,
  13110. # most powerpc-linux boxes support dynamic linking these days and
  13111. # people can always --disable-shared, the test was removed, and we
  13112. # assume the GNU/Linux dynamic linker is in use.
  13113. dynamic_linker='GNU/Linux ld.so'
  13114. ;;
  13115. netbsd*)
  13116. version_type=sunos
  13117. need_lib_prefix=no
  13118. need_version=no
  13119. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13121. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13122. dynamic_linker='NetBSD (a.out) ld.so'
  13123. else
  13124. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13125. soname_spec='${libname}${release}${shared_ext}$major'
  13126. dynamic_linker='NetBSD ld.elf_so'
  13127. fi
  13128. shlibpath_var=LD_LIBRARY_PATH
  13129. shlibpath_overrides_runpath=yes
  13130. hardcode_into_libs=yes
  13131. ;;
  13132. newsos6)
  13133. version_type=linux # correct to gnu/linux during the next big refactor
  13134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13135. shlibpath_var=LD_LIBRARY_PATH
  13136. shlibpath_overrides_runpath=yes
  13137. ;;
  13138. *nto* | *qnx*)
  13139. version_type=qnx
  13140. need_lib_prefix=no
  13141. need_version=no
  13142. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13143. soname_spec='${libname}${release}${shared_ext}$major'
  13144. shlibpath_var=LD_LIBRARY_PATH
  13145. shlibpath_overrides_runpath=no
  13146. hardcode_into_libs=yes
  13147. dynamic_linker='ldqnx.so'
  13148. ;;
  13149. openbsd*)
  13150. version_type=sunos
  13151. sys_lib_dlsearch_path_spec="/usr/lib"
  13152. need_lib_prefix=no
  13153. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13154. case $host_os in
  13155. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13156. *) need_version=no ;;
  13157. esac
  13158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13159. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13160. shlibpath_var=LD_LIBRARY_PATH
  13161. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13162. case $host_os in
  13163. openbsd2.[89] | openbsd2.[89].*)
  13164. shlibpath_overrides_runpath=no
  13165. ;;
  13166. *)
  13167. shlibpath_overrides_runpath=yes
  13168. ;;
  13169. esac
  13170. else
  13171. shlibpath_overrides_runpath=yes
  13172. fi
  13173. ;;
  13174. os2*)
  13175. libname_spec='$name'
  13176. shrext_cmds=".dll"
  13177. need_lib_prefix=no
  13178. library_names_spec='$libname${shared_ext} $libname.a'
  13179. dynamic_linker='OS/2 ld.exe'
  13180. shlibpath_var=LIBPATH
  13181. ;;
  13182. osf3* | osf4* | osf5*)
  13183. version_type=osf
  13184. need_lib_prefix=no
  13185. need_version=no
  13186. soname_spec='${libname}${release}${shared_ext}$major'
  13187. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13188. shlibpath_var=LD_LIBRARY_PATH
  13189. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13190. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13191. ;;
  13192. rdos*)
  13193. dynamic_linker=no
  13194. ;;
  13195. solaris*)
  13196. version_type=linux # correct to gnu/linux during the next big refactor
  13197. need_lib_prefix=no
  13198. need_version=no
  13199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13200. soname_spec='${libname}${release}${shared_ext}$major'
  13201. shlibpath_var=LD_LIBRARY_PATH
  13202. shlibpath_overrides_runpath=yes
  13203. hardcode_into_libs=yes
  13204. # ldd complains unless libraries are executable
  13205. postinstall_cmds='chmod +x $lib'
  13206. ;;
  13207. sunos4*)
  13208. version_type=sunos
  13209. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13210. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13211. shlibpath_var=LD_LIBRARY_PATH
  13212. shlibpath_overrides_runpath=yes
  13213. if test "$with_gnu_ld" = yes; then
  13214. need_lib_prefix=no
  13215. fi
  13216. need_version=yes
  13217. ;;
  13218. sysv4 | sysv4.3*)
  13219. version_type=linux # correct to gnu/linux during the next big refactor
  13220. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13221. soname_spec='${libname}${release}${shared_ext}$major'
  13222. shlibpath_var=LD_LIBRARY_PATH
  13223. case $host_vendor in
  13224. sni)
  13225. shlibpath_overrides_runpath=no
  13226. need_lib_prefix=no
  13227. runpath_var=LD_RUN_PATH
  13228. ;;
  13229. siemens)
  13230. need_lib_prefix=no
  13231. ;;
  13232. motorola)
  13233. need_lib_prefix=no
  13234. need_version=no
  13235. shlibpath_overrides_runpath=no
  13236. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13237. ;;
  13238. esac
  13239. ;;
  13240. sysv4*MP*)
  13241. if test -d /usr/nec ;then
  13242. version_type=linux # correct to gnu/linux during the next big refactor
  13243. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13244. soname_spec='$libname${shared_ext}.$major'
  13245. shlibpath_var=LD_LIBRARY_PATH
  13246. fi
  13247. ;;
  13248. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13249. version_type=freebsd-elf
  13250. need_lib_prefix=no
  13251. need_version=no
  13252. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13253. soname_spec='${libname}${release}${shared_ext}$major'
  13254. shlibpath_var=LD_LIBRARY_PATH
  13255. shlibpath_overrides_runpath=yes
  13256. hardcode_into_libs=yes
  13257. if test "$with_gnu_ld" = yes; then
  13258. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13259. else
  13260. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13261. case $host_os in
  13262. sco3.2v5*)
  13263. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13264. ;;
  13265. esac
  13266. fi
  13267. sys_lib_dlsearch_path_spec='/usr/lib'
  13268. ;;
  13269. tpf*)
  13270. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13271. version_type=linux # correct to gnu/linux during the next big refactor
  13272. need_lib_prefix=no
  13273. need_version=no
  13274. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13275. shlibpath_var=LD_LIBRARY_PATH
  13276. shlibpath_overrides_runpath=no
  13277. hardcode_into_libs=yes
  13278. ;;
  13279. uts4*)
  13280. version_type=linux # correct to gnu/linux during the next big refactor
  13281. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13282. soname_spec='${libname}${release}${shared_ext}$major'
  13283. shlibpath_var=LD_LIBRARY_PATH
  13284. ;;
  13285. *)
  13286. dynamic_linker=no
  13287. ;;
  13288. esac
  13289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13290. $as_echo "$dynamic_linker" >&6; }
  13291. test "$dynamic_linker" = no && can_build_shared=no
  13292. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13293. if test "$GCC" = yes; then
  13294. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13295. fi
  13296. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13297. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13298. fi
  13299. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13300. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13301. fi
  13302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13303. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13304. hardcode_action_CXX=
  13305. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13306. test -n "$runpath_var_CXX" ||
  13307. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13308. # We can hardcode non-existent directories.
  13309. if test "$hardcode_direct_CXX" != no &&
  13310. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13311. # have to relink, otherwise we might link with an installed library
  13312. # when we should be linking with a yet-to-be-installed one
  13313. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13314. test "$hardcode_minus_L_CXX" != no; then
  13315. # Linking always hardcodes the temporary library directory.
  13316. hardcode_action_CXX=relink
  13317. else
  13318. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13319. hardcode_action_CXX=immediate
  13320. fi
  13321. else
  13322. # We cannot hardcode anything, or else we can only hardcode existing
  13323. # directories.
  13324. hardcode_action_CXX=unsupported
  13325. fi
  13326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13327. $as_echo "$hardcode_action_CXX" >&6; }
  13328. if test "$hardcode_action_CXX" = relink ||
  13329. test "$inherit_rpath_CXX" = yes; then
  13330. # Fast installation is not supported
  13331. enable_fast_install=no
  13332. elif test "$shlibpath_overrides_runpath" = yes ||
  13333. test "$enable_shared" = no; then
  13334. # Fast installation is not necessary
  13335. enable_fast_install=needless
  13336. fi
  13337. fi # test -n "$compiler"
  13338. CC=$lt_save_CC
  13339. CFLAGS=$lt_save_CFLAGS
  13340. LDCXX=$LD
  13341. LD=$lt_save_LD
  13342. GCC=$lt_save_GCC
  13343. with_gnu_ld=$lt_save_with_gnu_ld
  13344. lt_cv_path_LDCXX=$lt_cv_path_LD
  13345. lt_cv_path_LD=$lt_save_path_LD
  13346. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13347. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13348. fi # test "$_lt_caught_CXX_error" != yes
  13349. ac_ext=c
  13350. ac_cpp='$CPP $CPPFLAGS'
  13351. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13352. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13353. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13354. # Find a good install program. We prefer a C program (faster),
  13355. # so one script is as good as another. But avoid the broken or
  13356. # incompatible versions:
  13357. # SysV /etc/install, /usr/sbin/install
  13358. # SunOS /usr/etc/install
  13359. # IRIX /sbin/install
  13360. # AIX /bin/install
  13361. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13362. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13363. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13364. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13365. # OS/2's system install, which has a completely different semantic
  13366. # ./install, which can be erroneously created by make from ./install.sh.
  13367. # Reject install programs that cannot install multiple files.
  13368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13369. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13370. if test -z "$INSTALL"; then
  13371. if ${ac_cv_path_install+:} false; then :
  13372. $as_echo_n "(cached) " >&6
  13373. else
  13374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13375. for as_dir in $PATH
  13376. do
  13377. IFS=$as_save_IFS
  13378. test -z "$as_dir" && as_dir=.
  13379. # Account for people who put trailing slashes in PATH elements.
  13380. case $as_dir/ in #((
  13381. ./ | .// | /[cC]/* | \
  13382. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13383. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13384. /usr/ucb/* ) ;;
  13385. *)
  13386. # OSF1 and SCO ODT 3.0 have their own names for install.
  13387. # Don't use installbsd from OSF since it installs stuff as root
  13388. # by default.
  13389. for ac_prog in ginstall scoinst install; do
  13390. for ac_exec_ext in '' $ac_executable_extensions; do
  13391. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13392. if test $ac_prog = install &&
  13393. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13394. # AIX install. It has an incompatible calling convention.
  13395. :
  13396. elif test $ac_prog = install &&
  13397. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13398. # program-specific install script used by HP pwplus--don't use.
  13399. :
  13400. else
  13401. rm -rf conftest.one conftest.two conftest.dir
  13402. echo one > conftest.one
  13403. echo two > conftest.two
  13404. mkdir conftest.dir
  13405. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13406. test -s conftest.one && test -s conftest.two &&
  13407. test -s conftest.dir/conftest.one &&
  13408. test -s conftest.dir/conftest.two
  13409. then
  13410. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13411. break 3
  13412. fi
  13413. fi
  13414. fi
  13415. done
  13416. done
  13417. ;;
  13418. esac
  13419. done
  13420. IFS=$as_save_IFS
  13421. rm -rf conftest.one conftest.two conftest.dir
  13422. fi
  13423. if test "${ac_cv_path_install+set}" = set; then
  13424. INSTALL=$ac_cv_path_install
  13425. else
  13426. # As a last resort, use the slow shell script. Don't cache a
  13427. # value for INSTALL within a source directory, because that will
  13428. # break other packages using the cache if that directory is
  13429. # removed, or if the value is a relative name.
  13430. INSTALL=$ac_install_sh
  13431. fi
  13432. fi
  13433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13434. $as_echo "$INSTALL" >&6; }
  13435. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13436. # It thinks the first close brace ends the variable substitution.
  13437. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13438. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13439. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13441. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13442. set x ${MAKE-make}
  13443. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13444. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13445. $as_echo_n "(cached) " >&6
  13446. else
  13447. cat >conftest.make <<\_ACEOF
  13448. SHELL = /bin/sh
  13449. all:
  13450. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13451. _ACEOF
  13452. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13453. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13454. *@@@%%%=?*=@@@%%%*)
  13455. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13456. *)
  13457. eval ac_cv_prog_make_${ac_make}_set=no;;
  13458. esac
  13459. rm -f conftest.make
  13460. fi
  13461. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13463. $as_echo "yes" >&6; }
  13464. SET_MAKE=
  13465. else
  13466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13467. $as_echo "no" >&6; }
  13468. SET_MAKE="MAKE=${MAKE-make}"
  13469. fi
  13470. if test -n "$ac_tool_prefix"; then
  13471. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13472. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13474. $as_echo_n "checking for $ac_word... " >&6; }
  13475. if ${ac_cv_prog_WINDRES+:} false; then :
  13476. $as_echo_n "(cached) " >&6
  13477. else
  13478. if test -n "$WINDRES"; then
  13479. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13480. else
  13481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13482. for as_dir in $PATH
  13483. do
  13484. IFS=$as_save_IFS
  13485. test -z "$as_dir" && as_dir=.
  13486. for ac_exec_ext in '' $ac_executable_extensions; do
  13487. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13488. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13489. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13490. break 2
  13491. fi
  13492. done
  13493. done
  13494. IFS=$as_save_IFS
  13495. fi
  13496. fi
  13497. WINDRES=$ac_cv_prog_WINDRES
  13498. if test -n "$WINDRES"; then
  13499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13500. $as_echo "$WINDRES" >&6; }
  13501. else
  13502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13503. $as_echo "no" >&6; }
  13504. fi
  13505. fi
  13506. if test -z "$ac_cv_prog_WINDRES"; then
  13507. ac_ct_WINDRES=$WINDRES
  13508. # Extract the first word of "windres", so it can be a program name with args.
  13509. set dummy windres; ac_word=$2
  13510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13511. $as_echo_n "checking for $ac_word... " >&6; }
  13512. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13513. $as_echo_n "(cached) " >&6
  13514. else
  13515. if test -n "$ac_ct_WINDRES"; then
  13516. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13517. else
  13518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13519. for as_dir in $PATH
  13520. do
  13521. IFS=$as_save_IFS
  13522. test -z "$as_dir" && as_dir=.
  13523. for ac_exec_ext in '' $ac_executable_extensions; do
  13524. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13525. ac_cv_prog_ac_ct_WINDRES="windres"
  13526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13527. break 2
  13528. fi
  13529. done
  13530. done
  13531. IFS=$as_save_IFS
  13532. fi
  13533. fi
  13534. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13535. if test -n "$ac_ct_WINDRES"; then
  13536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13537. $as_echo "$ac_ct_WINDRES" >&6; }
  13538. else
  13539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13540. $as_echo "no" >&6; }
  13541. fi
  13542. if test "x$ac_ct_WINDRES" = x; then
  13543. WINDRES=":"
  13544. else
  13545. case $cross_compiling:$ac_tool_warned in
  13546. yes:)
  13547. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13548. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13549. ac_tool_warned=yes ;;
  13550. esac
  13551. WINDRES=$ac_ct_WINDRES
  13552. fi
  13553. else
  13554. WINDRES="$ac_cv_prog_WINDRES"
  13555. fi
  13556. case "$host" in
  13557. *-*-mingw32*)
  13558. # Except on msys, where make can't handle full pathnames (bug 1972)
  13559. ;;
  13560. *)
  13561. srcdir=`cd $srcdir && pwd`
  13562. ;;
  13563. esac
  13564. INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
  13565. if test x$srcdir != x.; then
  13566. INCLUDE="-Iinclude $INCLUDE"
  13567. elif test -d .hg; then
  13568. as_fn_error $? "
  13569. *** When building from Mercurial you should configure and build in a
  13570. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13571. " "$LINENO" 5
  13572. fi
  13573. BASE_CFLAGS=""
  13574. BASE_LDFLAGS=""
  13575. case "$host" in
  13576. *-*-cygwin*)
  13577. # We build SDL on cygwin without the UNIX emulation layer
  13578. save_CFLAGS="$CFLAGS"
  13579. have_no_cygwin=no
  13580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13581. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13582. CFLAGS="$save_CFLAGS -mno-cygwin"
  13583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13584. /* end confdefs.h. */
  13585. int
  13586. main ()
  13587. {
  13588. ;
  13589. return 0;
  13590. }
  13591. _ACEOF
  13592. if ac_fn_c_try_compile "$LINENO"; then :
  13593. have_no_cygwin=yes
  13594. fi
  13595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13597. $as_echo "$have_no_cygwin" >&6; }
  13598. CFLAGS="$save_CFLAGS"
  13599. if test x$have_no_cygwin = xyes; then
  13600. BASE_CFLAGS="-mno-cygwin"
  13601. BASE_LDFLAGS="-mno-cygwin"
  13602. fi
  13603. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13604. ;;
  13605. esac
  13606. # Uncomment the following line if you want to force SDL and applications
  13607. # built with it to be compiled for a particular architecture.
  13608. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13609. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13610. # The default optimization for SDL is -O3 (Bug #31)
  13611. if test "x$orig_CFLAGS" = x; then
  13612. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13613. fi
  13614. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13615. BUILD_LDFLAGS="$LDFLAGS"
  13616. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13617. ## These are common directories to find software packages
  13618. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13619. # if test -d $path/include; then
  13620. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13621. # fi
  13622. # if test -d $path/lib; then
  13623. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13624. # fi
  13625. #done
  13626. SDL_CFLAGS="$BASE_CFLAGS"
  13627. SDL_LIBS="-lSDL2"
  13628. if test "x$BASE_LDFLAGS" != x; then
  13629. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13630. fi
  13631. if test "x$EXTRA_CFLAGS" != x; then
  13632. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13633. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13634. fi
  13635. if test "x$EXTRA_LDFLAGS" != x; then
  13636. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13637. fi
  13638. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13639. find_lib()
  13640. {
  13641. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13642. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13643. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13644. if test "$cross_compiling" = yes; then
  13645. host_lib_path=""
  13646. else
  13647. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13648. fi
  13649. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13650. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13651. if test x$lib != x; then
  13652. echo $lib
  13653. return
  13654. fi
  13655. done
  13656. # Try again, this time allowing more than one version digit after the .so
  13657. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13658. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13659. if test x$lib != x; then
  13660. echo $lib
  13661. return
  13662. fi
  13663. done
  13664. }
  13665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13666. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13667. if ${ac_cv_c_const+:} false; then :
  13668. $as_echo_n "(cached) " >&6
  13669. else
  13670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13671. /* end confdefs.h. */
  13672. int
  13673. main ()
  13674. {
  13675. #ifndef __cplusplus
  13676. /* Ultrix mips cc rejects this sort of thing. */
  13677. typedef int charset[2];
  13678. const charset cs = { 0, 0 };
  13679. /* SunOS 4.1.1 cc rejects this. */
  13680. char const *const *pcpcc;
  13681. char **ppc;
  13682. /* NEC SVR4.0.2 mips cc rejects this. */
  13683. struct point {int x, y;};
  13684. static struct point const zero = {0,0};
  13685. /* AIX XL C 1.02.0.0 rejects this.
  13686. It does not let you subtract one const X* pointer from another in
  13687. an arm of an if-expression whose if-part is not a constant
  13688. expression */
  13689. const char *g = "string";
  13690. pcpcc = &g + (g ? g-g : 0);
  13691. /* HPUX 7.0 cc rejects these. */
  13692. ++pcpcc;
  13693. ppc = (char**) pcpcc;
  13694. pcpcc = (char const *const *) ppc;
  13695. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13696. char tx;
  13697. char *t = &tx;
  13698. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13699. *t++ = 0;
  13700. if (s) return 0;
  13701. }
  13702. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13703. int x[] = {25, 17};
  13704. const int *foo = &x[0];
  13705. ++foo;
  13706. }
  13707. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13708. typedef const int *iptr;
  13709. iptr p = 0;
  13710. ++p;
  13711. }
  13712. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13713. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13714. struct s { int j; const int *ap[3]; } bx;
  13715. struct s *b = &bx; b->j = 5;
  13716. }
  13717. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13718. const int foo = 10;
  13719. if (!foo) return 0;
  13720. }
  13721. return !cs[0] && !zero.x;
  13722. #endif
  13723. ;
  13724. return 0;
  13725. }
  13726. _ACEOF
  13727. if ac_fn_c_try_compile "$LINENO"; then :
  13728. ac_cv_c_const=yes
  13729. else
  13730. ac_cv_c_const=no
  13731. fi
  13732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13733. fi
  13734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13735. $as_echo "$ac_cv_c_const" >&6; }
  13736. if test $ac_cv_c_const = no; then
  13737. $as_echo "#define const /**/" >>confdefs.h
  13738. fi
  13739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13740. $as_echo_n "checking for inline... " >&6; }
  13741. if ${ac_cv_c_inline+:} false; then :
  13742. $as_echo_n "(cached) " >&6
  13743. else
  13744. ac_cv_c_inline=no
  13745. for ac_kw in inline __inline__ __inline; do
  13746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13747. /* end confdefs.h. */
  13748. #ifndef __cplusplus
  13749. typedef int foo_t;
  13750. static $ac_kw foo_t static_foo () {return 0; }
  13751. $ac_kw foo_t foo () {return 0; }
  13752. #endif
  13753. _ACEOF
  13754. if ac_fn_c_try_compile "$LINENO"; then :
  13755. ac_cv_c_inline=$ac_kw
  13756. fi
  13757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13758. test "$ac_cv_c_inline" != no && break
  13759. done
  13760. fi
  13761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13762. $as_echo "$ac_cv_c_inline" >&6; }
  13763. case $ac_cv_c_inline in
  13764. inline | yes) ;;
  13765. *)
  13766. case $ac_cv_c_inline in
  13767. no) ac_val=;;
  13768. *) ac_val=$ac_cv_c_inline;;
  13769. esac
  13770. cat >>confdefs.h <<_ACEOF
  13771. #ifndef __cplusplus
  13772. #define inline $ac_val
  13773. #endif
  13774. _ACEOF
  13775. ;;
  13776. esac
  13777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13778. $as_echo_n "checking for working volatile... " >&6; }
  13779. if ${ac_cv_c_volatile+:} false; then :
  13780. $as_echo_n "(cached) " >&6
  13781. else
  13782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13783. /* end confdefs.h. */
  13784. int
  13785. main ()
  13786. {
  13787. volatile int x;
  13788. int * volatile y = (int *) 0;
  13789. return !x && !y;
  13790. ;
  13791. return 0;
  13792. }
  13793. _ACEOF
  13794. if ac_fn_c_try_compile "$LINENO"; then :
  13795. ac_cv_c_volatile=yes
  13796. else
  13797. ac_cv_c_volatile=no
  13798. fi
  13799. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13800. fi
  13801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13802. $as_echo "$ac_cv_c_volatile" >&6; }
  13803. if test $ac_cv_c_volatile = no; then
  13804. $as_echo "#define volatile /**/" >>confdefs.h
  13805. fi
  13806. # Check whether --enable-assertions was given.
  13807. if test "${enable_assertions+set}" = set; then :
  13808. enableval=$enable_assertions;
  13809. else
  13810. enable_assertions=auto
  13811. fi
  13812. case "$enable_assertions" in
  13813. auto) # Use optimization settings to determine assertion level
  13814. ;;
  13815. disabled)
  13816. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13817. ;;
  13818. release)
  13819. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13820. ;;
  13821. enabled)
  13822. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13823. ;;
  13824. paranoid)
  13825. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13826. ;;
  13827. *)
  13828. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13829. ;;
  13830. esac
  13831. # Check whether --enable-dependency-tracking was given.
  13832. if test "${enable_dependency_tracking+set}" = set; then :
  13833. enableval=$enable_dependency_tracking;
  13834. else
  13835. enable_dependency_tracking=yes
  13836. fi
  13837. if test x$enable_dependency_tracking = xyes; then
  13838. have_gcc_mmd_mt=no
  13839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13840. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13842. /* end confdefs.h. */
  13843. #if !defined(__GNUC__) || __GNUC__ < 3
  13844. #error Dependency tracking requires GCC 3.0 or newer
  13845. #endif
  13846. int
  13847. main ()
  13848. {
  13849. ;
  13850. return 0;
  13851. }
  13852. _ACEOF
  13853. if ac_fn_c_try_compile "$LINENO"; then :
  13854. have_gcc_mmd_mt=yes
  13855. fi
  13856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13858. $as_echo "$have_gcc_mmd_mt" >&6; }
  13859. if test x$have_gcc_mmd_mt = xyes; then
  13860. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13861. fi
  13862. fi
  13863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13864. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13865. have_no_undefined=no
  13866. case "$host" in
  13867. *-*-openbsd*)
  13868. ;;
  13869. *)
  13870. save_LDFLAGS="$LDFLAGS"
  13871. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13873. /* end confdefs.h. */
  13874. int
  13875. main ()
  13876. {
  13877. ;
  13878. return 0;
  13879. }
  13880. _ACEOF
  13881. if ac_fn_c_try_link "$LINENO"; then :
  13882. have_no_undefined=yes
  13883. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13884. fi
  13885. rm -f core conftest.err conftest.$ac_objext \
  13886. conftest$ac_exeext conftest.$ac_ext
  13887. LDFLAGS="$save_LDFLAGS"
  13888. ;;
  13889. esac
  13890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13891. $as_echo "$have_no_undefined" >&6; }
  13892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  13893. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  13894. have_dynamicbase=no
  13895. case "$host" in
  13896. *)
  13897. save_LDFLAGS="$LDFLAGS"
  13898. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  13899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13900. /* end confdefs.h. */
  13901. int
  13902. main ()
  13903. {
  13904. ;
  13905. return 0;
  13906. }
  13907. _ACEOF
  13908. if ac_fn_c_try_link "$LINENO"; then :
  13909. have_dynamicbase=yes
  13910. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  13911. fi
  13912. rm -f core conftest.err conftest.$ac_objext \
  13913. conftest$ac_exeext conftest.$ac_ext
  13914. LDFLAGS="$save_LDFLAGS"
  13915. ;;
  13916. esac
  13917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  13918. $as_echo "$have_dynamicbase" >&6; }
  13919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  13920. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  13921. have_nxcompat=no
  13922. case "$host" in
  13923. *)
  13924. save_LDFLAGS="$LDFLAGS"
  13925. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  13926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13927. /* end confdefs.h. */
  13928. int
  13929. main ()
  13930. {
  13931. ;
  13932. return 0;
  13933. }
  13934. _ACEOF
  13935. if ac_fn_c_try_link "$LINENO"; then :
  13936. have_nxcompat=yes
  13937. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  13938. fi
  13939. rm -f core conftest.err conftest.$ac_objext \
  13940. conftest$ac_exeext conftest.$ac_ext
  13941. LDFLAGS="$save_LDFLAGS"
  13942. ;;
  13943. esac
  13944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  13945. $as_echo "$have_nxcompat" >&6; }
  13946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  13947. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  13948. have_high_entropy_va=no
  13949. case "$host" in
  13950. *)
  13951. save_LDFLAGS="$LDFLAGS"
  13952. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  13953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13954. /* end confdefs.h. */
  13955. int
  13956. main ()
  13957. {
  13958. ;
  13959. return 0;
  13960. }
  13961. _ACEOF
  13962. if ac_fn_c_try_link "$LINENO"; then :
  13963. have_high_entropy_va=yes
  13964. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  13965. fi
  13966. rm -f core conftest.err conftest.$ac_objext \
  13967. conftest$ac_exeext conftest.$ac_ext
  13968. LDFLAGS="$save_LDFLAGS"
  13969. ;;
  13970. esac
  13971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  13972. $as_echo "$have_high_entropy_va" >&6; }
  13973. # Check whether --enable-libc was given.
  13974. if test "${enable_libc+set}" = set; then :
  13975. enableval=$enable_libc;
  13976. else
  13977. enable_libc=yes
  13978. fi
  13979. if test x$enable_libc = xyes; then
  13980. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13982. $as_echo_n "checking for ANSI C header files... " >&6; }
  13983. if ${ac_cv_header_stdc+:} false; then :
  13984. $as_echo_n "(cached) " >&6
  13985. else
  13986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13987. /* end confdefs.h. */
  13988. #include <stdlib.h>
  13989. #include <stdarg.h>
  13990. #include <string.h>
  13991. #include <float.h>
  13992. int
  13993. main ()
  13994. {
  13995. ;
  13996. return 0;
  13997. }
  13998. _ACEOF
  13999. if ac_fn_c_try_compile "$LINENO"; then :
  14000. ac_cv_header_stdc=yes
  14001. else
  14002. ac_cv_header_stdc=no
  14003. fi
  14004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14005. if test $ac_cv_header_stdc = yes; then
  14006. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14008. /* end confdefs.h. */
  14009. #include <string.h>
  14010. _ACEOF
  14011. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14012. $EGREP "memchr" >/dev/null 2>&1; then :
  14013. else
  14014. ac_cv_header_stdc=no
  14015. fi
  14016. rm -f conftest*
  14017. fi
  14018. if test $ac_cv_header_stdc = yes; then
  14019. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14021. /* end confdefs.h. */
  14022. #include <stdlib.h>
  14023. _ACEOF
  14024. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14025. $EGREP "free" >/dev/null 2>&1; then :
  14026. else
  14027. ac_cv_header_stdc=no
  14028. fi
  14029. rm -f conftest*
  14030. fi
  14031. if test $ac_cv_header_stdc = yes; then
  14032. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14033. if test "$cross_compiling" = yes; then :
  14034. :
  14035. else
  14036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14037. /* end confdefs.h. */
  14038. #include <ctype.h>
  14039. #include <stdlib.h>
  14040. #if ((' ' & 0x0FF) == 0x020)
  14041. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14042. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14043. #else
  14044. # define ISLOWER(c) \
  14045. (('a' <= (c) && (c) <= 'i') \
  14046. || ('j' <= (c) && (c) <= 'r') \
  14047. || ('s' <= (c) && (c) <= 'z'))
  14048. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14049. #endif
  14050. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14051. int
  14052. main ()
  14053. {
  14054. int i;
  14055. for (i = 0; i < 256; i++)
  14056. if (XOR (islower (i), ISLOWER (i))
  14057. || toupper (i) != TOUPPER (i))
  14058. return 2;
  14059. return 0;
  14060. }
  14061. _ACEOF
  14062. if ac_fn_c_try_run "$LINENO"; then :
  14063. else
  14064. ac_cv_header_stdc=no
  14065. fi
  14066. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14067. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14068. fi
  14069. fi
  14070. fi
  14071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14072. $as_echo "$ac_cv_header_stdc" >&6; }
  14073. if test $ac_cv_header_stdc = yes; then
  14074. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14075. fi
  14076. for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h limits.h ctype.h math.h float.h iconv.h signal.h
  14077. do :
  14078. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14079. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14080. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14081. cat >>confdefs.h <<_ACEOF
  14082. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14083. _ACEOF
  14084. fi
  14085. done
  14086. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14087. if test "x$ac_cv_type_size_t" = xyes; then :
  14088. else
  14089. cat >>confdefs.h <<_ACEOF
  14090. #define size_t unsigned int
  14091. _ACEOF
  14092. fi
  14093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14094. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14095. if ${ac_cv_define_M_PI+:} false; then :
  14096. $as_echo_n "(cached) " >&6
  14097. else
  14098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14099. /* end confdefs.h. */
  14100. #include <math.h>
  14101. #ifdef M_PI
  14102. YES_IS_DEFINED
  14103. #endif
  14104. _ACEOF
  14105. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14106. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14107. ac_cv_define_M_PI=yes
  14108. else
  14109. ac_cv_define_M_PI=no
  14110. fi
  14111. rm -f conftest*
  14112. fi
  14113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14114. $as_echo "$ac_cv_define_M_PI" >&6; }
  14115. if test "$ac_cv_define_M_PI" = "yes" ; then
  14116. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14117. fi
  14118. case "$host" in
  14119. *-*-cygwin* | *-*-mingw32*)
  14120. ;;
  14121. *)
  14122. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14123. # for constant arguments. Useless!
  14124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14125. $as_echo_n "checking for working alloca.h... " >&6; }
  14126. if ${ac_cv_working_alloca_h+:} false; then :
  14127. $as_echo_n "(cached) " >&6
  14128. else
  14129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14130. /* end confdefs.h. */
  14131. #include <alloca.h>
  14132. int
  14133. main ()
  14134. {
  14135. char *p = (char *) alloca (2 * sizeof (int));
  14136. if (p) return 0;
  14137. ;
  14138. return 0;
  14139. }
  14140. _ACEOF
  14141. if ac_fn_c_try_link "$LINENO"; then :
  14142. ac_cv_working_alloca_h=yes
  14143. else
  14144. ac_cv_working_alloca_h=no
  14145. fi
  14146. rm -f core conftest.err conftest.$ac_objext \
  14147. conftest$ac_exeext conftest.$ac_ext
  14148. fi
  14149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14150. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14151. if test $ac_cv_working_alloca_h = yes; then
  14152. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14153. fi
  14154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14155. $as_echo_n "checking for alloca... " >&6; }
  14156. if ${ac_cv_func_alloca_works+:} false; then :
  14157. $as_echo_n "(cached) " >&6
  14158. else
  14159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14160. /* end confdefs.h. */
  14161. #ifdef __GNUC__
  14162. # define alloca __builtin_alloca
  14163. #else
  14164. # ifdef _MSC_VER
  14165. # include <malloc.h>
  14166. # define alloca _alloca
  14167. # else
  14168. # ifdef HAVE_ALLOCA_H
  14169. # include <alloca.h>
  14170. # else
  14171. # ifdef _AIX
  14172. #pragma alloca
  14173. # else
  14174. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14175. void *alloca (size_t);
  14176. # endif
  14177. # endif
  14178. # endif
  14179. # endif
  14180. #endif
  14181. int
  14182. main ()
  14183. {
  14184. char *p = (char *) alloca (1);
  14185. if (p) return 0;
  14186. ;
  14187. return 0;
  14188. }
  14189. _ACEOF
  14190. if ac_fn_c_try_link "$LINENO"; then :
  14191. ac_cv_func_alloca_works=yes
  14192. else
  14193. ac_cv_func_alloca_works=no
  14194. fi
  14195. rm -f core conftest.err conftest.$ac_objext \
  14196. conftest$ac_exeext conftest.$ac_ext
  14197. fi
  14198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14199. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14200. if test $ac_cv_func_alloca_works = yes; then
  14201. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14202. else
  14203. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14204. # that cause trouble. Some versions do not even contain alloca or
  14205. # contain a buggy version. If you still want to use their alloca,
  14206. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14207. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14208. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14210. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14211. if ${ac_cv_os_cray+:} false; then :
  14212. $as_echo_n "(cached) " >&6
  14213. else
  14214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14215. /* end confdefs.h. */
  14216. #if defined CRAY && ! defined CRAY2
  14217. webecray
  14218. #else
  14219. wenotbecray
  14220. #endif
  14221. _ACEOF
  14222. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14223. $EGREP "webecray" >/dev/null 2>&1; then :
  14224. ac_cv_os_cray=yes
  14225. else
  14226. ac_cv_os_cray=no
  14227. fi
  14228. rm -f conftest*
  14229. fi
  14230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14231. $as_echo "$ac_cv_os_cray" >&6; }
  14232. if test $ac_cv_os_cray = yes; then
  14233. for ac_func in _getb67 GETB67 getb67; do
  14234. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14235. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14236. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14237. cat >>confdefs.h <<_ACEOF
  14238. #define CRAY_STACKSEG_END $ac_func
  14239. _ACEOF
  14240. break
  14241. fi
  14242. done
  14243. fi
  14244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14245. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14246. if ${ac_cv_c_stack_direction+:} false; then :
  14247. $as_echo_n "(cached) " >&6
  14248. else
  14249. if test "$cross_compiling" = yes; then :
  14250. ac_cv_c_stack_direction=0
  14251. else
  14252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14253. /* end confdefs.h. */
  14254. $ac_includes_default
  14255. int
  14256. find_stack_direction (int *addr, int depth)
  14257. {
  14258. int dir, dummy = 0;
  14259. if (! addr)
  14260. addr = &dummy;
  14261. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14262. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14263. return dir + dummy;
  14264. }
  14265. int
  14266. main (int argc, char **argv)
  14267. {
  14268. return find_stack_direction (0, argc + !argv + 20) < 0;
  14269. }
  14270. _ACEOF
  14271. if ac_fn_c_try_run "$LINENO"; then :
  14272. ac_cv_c_stack_direction=1
  14273. else
  14274. ac_cv_c_stack_direction=-1
  14275. fi
  14276. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14277. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14278. fi
  14279. fi
  14280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14281. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14282. cat >>confdefs.h <<_ACEOF
  14283. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14284. _ACEOF
  14285. fi
  14286. ;;
  14287. esac
  14288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14289. $as_echo_n "checking for working memcmp... " >&6; }
  14290. if ${ac_cv_func_memcmp_working+:} false; then :
  14291. $as_echo_n "(cached) " >&6
  14292. else
  14293. if test "$cross_compiling" = yes; then :
  14294. ac_cv_func_memcmp_working=no
  14295. else
  14296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14297. /* end confdefs.h. */
  14298. $ac_includes_default
  14299. int
  14300. main ()
  14301. {
  14302. /* Some versions of memcmp are not 8-bit clean. */
  14303. char c0 = '\100', c1 = '\200', c2 = '\201';
  14304. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14305. return 1;
  14306. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14307. or more and with at least one buffer not starting on a 4-byte boundary.
  14308. William Lewis provided this test program. */
  14309. {
  14310. char foo[21];
  14311. char bar[21];
  14312. int i;
  14313. for (i = 0; i < 4; i++)
  14314. {
  14315. char *a = foo + i;
  14316. char *b = bar + i;
  14317. strcpy (a, "--------01111111");
  14318. strcpy (b, "--------10000000");
  14319. if (memcmp (a, b, 16) >= 0)
  14320. return 1;
  14321. }
  14322. return 0;
  14323. }
  14324. ;
  14325. return 0;
  14326. }
  14327. _ACEOF
  14328. if ac_fn_c_try_run "$LINENO"; then :
  14329. ac_cv_func_memcmp_working=yes
  14330. else
  14331. ac_cv_func_memcmp_working=no
  14332. fi
  14333. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14334. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14335. fi
  14336. fi
  14337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14338. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14339. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14340. *" memcmp.$ac_objext "* ) ;;
  14341. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14342. ;;
  14343. esac
  14344. if test x$ac_cv_func_memcmp_working = xyes; then
  14345. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14346. fi
  14347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14348. $as_echo_n "checking for working strtod... " >&6; }
  14349. if ${ac_cv_func_strtod+:} false; then :
  14350. $as_echo_n "(cached) " >&6
  14351. else
  14352. if test "$cross_compiling" = yes; then :
  14353. ac_cv_func_strtod=no
  14354. else
  14355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14356. /* end confdefs.h. */
  14357. $ac_includes_default
  14358. #ifndef strtod
  14359. double strtod ();
  14360. #endif
  14361. int
  14362. main()
  14363. {
  14364. {
  14365. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14366. char *string = " +69";
  14367. char *term;
  14368. double value;
  14369. value = strtod (string, &term);
  14370. if (value != 69 || term != (string + 4))
  14371. return 1;
  14372. }
  14373. {
  14374. /* Under Solaris 2.4, strtod returns the wrong value for the
  14375. terminating character under some conditions. */
  14376. char *string = "NaN";
  14377. char *term;
  14378. strtod (string, &term);
  14379. if (term != string && *(term - 1) == 0)
  14380. return 1;
  14381. }
  14382. return 0;
  14383. }
  14384. _ACEOF
  14385. if ac_fn_c_try_run "$LINENO"; then :
  14386. ac_cv_func_strtod=yes
  14387. else
  14388. ac_cv_func_strtod=no
  14389. fi
  14390. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14391. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14392. fi
  14393. fi
  14394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14395. $as_echo "$ac_cv_func_strtod" >&6; }
  14396. if test $ac_cv_func_strtod = no; then
  14397. case " $LIBOBJS " in
  14398. *" strtod.$ac_objext "* ) ;;
  14399. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14400. ;;
  14401. esac
  14402. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14403. if test "x$ac_cv_func_pow" = xyes; then :
  14404. fi
  14405. if test $ac_cv_func_pow = no; then
  14406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14407. $as_echo_n "checking for pow in -lm... " >&6; }
  14408. if ${ac_cv_lib_m_pow+:} false; then :
  14409. $as_echo_n "(cached) " >&6
  14410. else
  14411. ac_check_lib_save_LIBS=$LIBS
  14412. LIBS="-lm $LIBS"
  14413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14414. /* end confdefs.h. */
  14415. /* Override any GCC internal prototype to avoid an error.
  14416. Use char because int might match the return type of a GCC
  14417. builtin and then its argument prototype would still apply. */
  14418. #ifdef __cplusplus
  14419. extern "C"
  14420. #endif
  14421. char pow ();
  14422. int
  14423. main ()
  14424. {
  14425. return pow ();
  14426. ;
  14427. return 0;
  14428. }
  14429. _ACEOF
  14430. if ac_fn_c_try_link "$LINENO"; then :
  14431. ac_cv_lib_m_pow=yes
  14432. else
  14433. ac_cv_lib_m_pow=no
  14434. fi
  14435. rm -f core conftest.err conftest.$ac_objext \
  14436. conftest$ac_exeext conftest.$ac_ext
  14437. LIBS=$ac_check_lib_save_LIBS
  14438. fi
  14439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14440. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14441. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14442. POW_LIB=-lm
  14443. else
  14444. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14445. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14446. fi
  14447. fi
  14448. fi
  14449. if test x$ac_cv_func_strtod = xyes; then
  14450. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14451. fi
  14452. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14453. if test "x$ac_cv_func_mprotect" = xyes; then :
  14454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14455. /* end confdefs.h. */
  14456. #include <sys/types.h>
  14457. #include <sys/mman.h>
  14458. int
  14459. main ()
  14460. {
  14461. ;
  14462. return 0;
  14463. }
  14464. _ACEOF
  14465. if ac_fn_c_try_compile "$LINENO"; then :
  14466. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14467. fi
  14468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14469. fi
  14470. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcscmp strlen strlcpy strlcat _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 fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll
  14471. do :
  14472. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14473. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14474. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14475. cat >>confdefs.h <<_ACEOF
  14476. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14477. _ACEOF
  14478. fi
  14479. done
  14480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14481. $as_echo_n "checking for pow in -lm... " >&6; }
  14482. if ${ac_cv_lib_m_pow+:} false; then :
  14483. $as_echo_n "(cached) " >&6
  14484. else
  14485. ac_check_lib_save_LIBS=$LIBS
  14486. LIBS="-lm $LIBS"
  14487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14488. /* end confdefs.h. */
  14489. /* Override any GCC internal prototype to avoid an error.
  14490. Use char because int might match the return type of a GCC
  14491. builtin and then its argument prototype would still apply. */
  14492. #ifdef __cplusplus
  14493. extern "C"
  14494. #endif
  14495. char pow ();
  14496. int
  14497. main ()
  14498. {
  14499. return pow ();
  14500. ;
  14501. return 0;
  14502. }
  14503. _ACEOF
  14504. if ac_fn_c_try_link "$LINENO"; then :
  14505. ac_cv_lib_m_pow=yes
  14506. else
  14507. ac_cv_lib_m_pow=no
  14508. fi
  14509. rm -f core conftest.err conftest.$ac_objext \
  14510. conftest$ac_exeext conftest.$ac_ext
  14511. LIBS=$ac_check_lib_save_LIBS
  14512. fi
  14513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14514. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14515. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14516. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14517. fi
  14518. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf fmod fmodf log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  14519. do :
  14520. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14521. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14522. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14523. cat >>confdefs.h <<_ACEOF
  14524. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14525. _ACEOF
  14526. fi
  14527. done
  14528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14529. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14530. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14531. $as_echo_n "(cached) " >&6
  14532. else
  14533. ac_check_lib_save_LIBS=$LIBS
  14534. LIBS="-liconv $LIBS"
  14535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14536. /* end confdefs.h. */
  14537. /* Override any GCC internal prototype to avoid an error.
  14538. Use char because int might match the return type of a GCC
  14539. builtin and then its argument prototype would still apply. */
  14540. #ifdef __cplusplus
  14541. extern "C"
  14542. #endif
  14543. char iconv_open ();
  14544. int
  14545. main ()
  14546. {
  14547. return iconv_open ();
  14548. ;
  14549. return 0;
  14550. }
  14551. _ACEOF
  14552. if ac_fn_c_try_link "$LINENO"; then :
  14553. ac_cv_lib_iconv_iconv_open=yes
  14554. else
  14555. ac_cv_lib_iconv_iconv_open=no
  14556. fi
  14557. rm -f core conftest.err conftest.$ac_objext \
  14558. conftest$ac_exeext conftest.$ac_ext
  14559. LIBS=$ac_check_lib_save_LIBS
  14560. fi
  14561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14562. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14563. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14564. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14565. fi
  14566. for ac_func in iconv
  14567. do :
  14568. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14569. if test "x$ac_cv_func_iconv" = xyes; then :
  14570. cat >>confdefs.h <<_ACEOF
  14571. #define HAVE_ICONV 1
  14572. _ACEOF
  14573. fi
  14574. done
  14575. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14576. "
  14577. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14578. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14579. fi
  14580. for ac_header in libunwind.h
  14581. do :
  14582. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14583. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14584. cat >>confdefs.h <<_ACEOF
  14585. #define HAVE_LIBUNWIND_H 1
  14586. _ACEOF
  14587. fi
  14588. done
  14589. fi
  14590. # Check whether --enable-gcc-atomics was given.
  14591. if test "${enable_gcc_atomics+set}" = set; then :
  14592. enableval=$enable_gcc_atomics;
  14593. else
  14594. enable_gcc_atomics=yes
  14595. fi
  14596. if test x$enable_gcc_atomics = xyes; then
  14597. have_gcc_atomics=no
  14598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14599. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14601. /* end confdefs.h. */
  14602. int
  14603. main ()
  14604. {
  14605. int a;
  14606. void *x, *y, *z;
  14607. __sync_lock_test_and_set(&a, 4);
  14608. __sync_lock_test_and_set(&x, y);
  14609. __sync_fetch_and_add(&a, 1);
  14610. __sync_bool_compare_and_swap(&a, 5, 10);
  14611. __sync_bool_compare_and_swap(&x, y, z);
  14612. ;
  14613. return 0;
  14614. }
  14615. _ACEOF
  14616. if ac_fn_c_try_link "$LINENO"; then :
  14617. have_gcc_atomics=yes
  14618. fi
  14619. rm -f core conftest.err conftest.$ac_objext \
  14620. conftest$ac_exeext conftest.$ac_ext
  14621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14622. $as_echo "$have_gcc_atomics" >&6; }
  14623. if test x$have_gcc_atomics = xyes; then
  14624. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14625. else
  14626. # See if we have the minimum operation needed for GCC atomics
  14627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14628. /* end confdefs.h. */
  14629. int
  14630. main ()
  14631. {
  14632. int a;
  14633. __sync_lock_test_and_set(&a, 1);
  14634. __sync_lock_release(&a);
  14635. ;
  14636. return 0;
  14637. }
  14638. _ACEOF
  14639. if ac_fn_c_try_link "$LINENO"; then :
  14640. have_gcc_sync_lock_test_and_set=yes
  14641. fi
  14642. rm -f core conftest.err conftest.$ac_objext \
  14643. conftest$ac_exeext conftest.$ac_ext
  14644. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14645. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14646. fi
  14647. fi
  14648. fi
  14649. # Standard C sources
  14650. SOURCES="$SOURCES $srcdir/src/*.c"
  14651. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14652. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14653. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14654. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14655. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14656. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14657. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14658. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14659. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14660. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14661. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14662. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14663. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14664. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14665. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14666. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14667. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14668. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14669. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14670. # Check whether --enable-atomic was given.
  14671. if test "${enable_atomic+set}" = set; then :
  14672. enableval=$enable_atomic;
  14673. else
  14674. enable_atomic=yes
  14675. fi
  14676. if test x$enable_atomic != xyes; then
  14677. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14678. else
  14679. SUMMARY_modules="${SUMMARY_modules} atomic"
  14680. fi
  14681. # Check whether --enable-audio was given.
  14682. if test "${enable_audio+set}" = set; then :
  14683. enableval=$enable_audio;
  14684. else
  14685. enable_audio=yes
  14686. fi
  14687. if test x$enable_audio != xyes; then
  14688. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14689. else
  14690. SUMMARY_modules="${SUMMARY_modules} audio"
  14691. fi
  14692. # Check whether --enable-video was given.
  14693. if test "${enable_video+set}" = set; then :
  14694. enableval=$enable_video;
  14695. else
  14696. enable_video=yes
  14697. fi
  14698. if test x$enable_video != xyes; then
  14699. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14700. else
  14701. SUMMARY_modules="${SUMMARY_modules} video"
  14702. fi
  14703. # Check whether --enable-render was given.
  14704. if test "${enable_render+set}" = set; then :
  14705. enableval=$enable_render;
  14706. else
  14707. enable_render=yes
  14708. fi
  14709. if test x$enable_render != xyes; then
  14710. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14711. else
  14712. SUMMARY_modules="${SUMMARY_modules} render"
  14713. fi
  14714. # Check whether --enable-events was given.
  14715. if test "${enable_events+set}" = set; then :
  14716. enableval=$enable_events;
  14717. else
  14718. enable_events=yes
  14719. fi
  14720. if test x$enable_events != xyes; then
  14721. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14722. else
  14723. SUMMARY_modules="${SUMMARY_modules} events"
  14724. fi
  14725. # Check whether --enable-joystick was given.
  14726. if test "${enable_joystick+set}" = set; then :
  14727. enableval=$enable_joystick;
  14728. else
  14729. enable_joystick=yes
  14730. fi
  14731. if test x$enable_joystick != xyes; then
  14732. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14733. else
  14734. SUMMARY_modules="${SUMMARY_modules} joystick"
  14735. fi
  14736. # Check whether --enable-haptic was given.
  14737. if test "${enable_haptic+set}" = set; then :
  14738. enableval=$enable_haptic;
  14739. else
  14740. enable_haptic=yes
  14741. fi
  14742. if test x$enable_haptic != xyes; then
  14743. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14744. else
  14745. SUMMARY_modules="${SUMMARY_modules} haptic"
  14746. fi
  14747. # Check whether --enable-sensor was given.
  14748. if test "${enable_sensor+set}" = set; then :
  14749. enableval=$enable_sensor;
  14750. else
  14751. enable_sensor=yes
  14752. fi
  14753. if test x$enable_sensor != xyes; then
  14754. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  14755. else
  14756. SUMMARY_modules="${SUMMARY_modules} sensor"
  14757. fi
  14758. # Check whether --enable-power was given.
  14759. if test "${enable_power+set}" = set; then :
  14760. enableval=$enable_power;
  14761. else
  14762. enable_power=yes
  14763. fi
  14764. if test x$enable_power != xyes; then
  14765. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14766. else
  14767. SUMMARY_modules="${SUMMARY_modules} power"
  14768. fi
  14769. # Check whether --enable-filesystem was given.
  14770. if test "${enable_filesystem+set}" = set; then :
  14771. enableval=$enable_filesystem;
  14772. else
  14773. enable_filesystem=yes
  14774. fi
  14775. if test x$enable_filesystem != xyes; then
  14776. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14777. else
  14778. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14779. fi
  14780. # Check whether --enable-threads was given.
  14781. if test "${enable_threads+set}" = set; then :
  14782. enableval=$enable_threads;
  14783. else
  14784. enable_threads=yes
  14785. fi
  14786. if test x$enable_threads != xyes; then
  14787. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14788. else
  14789. SUMMARY_modules="${SUMMARY_modules} threads"
  14790. fi
  14791. # Check whether --enable-timers was given.
  14792. if test "${enable_timers+set}" = set; then :
  14793. enableval=$enable_timers;
  14794. else
  14795. enable_timers=yes
  14796. fi
  14797. if test x$enable_timers != xyes; then
  14798. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14799. else
  14800. SUMMARY_modules="${SUMMARY_modules} timers"
  14801. fi
  14802. # Check whether --enable-file was given.
  14803. if test "${enable_file+set}" = set; then :
  14804. enableval=$enable_file;
  14805. else
  14806. enable_file=yes
  14807. fi
  14808. if test x$enable_file != xyes; then
  14809. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14810. else
  14811. SUMMARY_modules="${SUMMARY_modules} file"
  14812. fi
  14813. # Check whether --enable-loadso was given.
  14814. if test "${enable_loadso+set}" = set; then :
  14815. enableval=$enable_loadso;
  14816. else
  14817. enable_loadso=yes
  14818. fi
  14819. if test x$enable_loadso != xyes; then
  14820. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14821. else
  14822. SUMMARY_modules="${SUMMARY_modules} loadso"
  14823. fi
  14824. # Check whether --enable-cpuinfo was given.
  14825. if test "${enable_cpuinfo+set}" = set; then :
  14826. enableval=$enable_cpuinfo;
  14827. else
  14828. enable_cpuinfo=yes
  14829. fi
  14830. if test x$enable_cpuinfo != xyes; then
  14831. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14832. else
  14833. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14834. fi
  14835. # Check whether --enable-assembly was given.
  14836. if test "${enable_assembly+set}" = set; then :
  14837. enableval=$enable_assembly;
  14838. else
  14839. enable_assembly=yes
  14840. fi
  14841. if test x$enable_assembly = xyes; then
  14842. SUMMARY_modules="${SUMMARY_modules} assembly"
  14843. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14844. # Make sure that we don't generate floating point code that would
  14845. # cause illegal instruction exceptions on older processors
  14846. case "$host" in
  14847. *-*-darwin*)
  14848. # Don't need to worry about Apple hardware, it's all SSE capable
  14849. default_ssemath=yes
  14850. ;;
  14851. *64-*-*)
  14852. # x86 64-bit architectures all have SSE instructions
  14853. default_ssemath=yes
  14854. ;;
  14855. *)
  14856. default_ssemath=no
  14857. ;;
  14858. esac
  14859. # Check whether --enable-ssemath was given.
  14860. if test "${enable_ssemath+set}" = set; then :
  14861. enableval=$enable_ssemath;
  14862. else
  14863. enable_ssemath=$default_ssemath
  14864. fi
  14865. if test x$enable_ssemath = xno; then
  14866. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  14867. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14868. fi
  14869. fi
  14870. # Check whether --enable-mmx was given.
  14871. if test "${enable_mmx+set}" = set; then :
  14872. enableval=$enable_mmx;
  14873. else
  14874. enable_mmx=yes
  14875. fi
  14876. if test x$enable_mmx = xyes; then
  14877. save_CFLAGS="$CFLAGS"
  14878. have_gcc_mmx=no
  14879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14880. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14881. mmx_CFLAGS="-mmmx"
  14882. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14884. /* end confdefs.h. */
  14885. #ifdef __MINGW32__
  14886. #include <_mingw.h>
  14887. #ifdef __MINGW64_VERSION_MAJOR
  14888. #include <intrin.h>
  14889. #else
  14890. #include <mmintrin.h>
  14891. #endif
  14892. #else
  14893. #include <mmintrin.h>
  14894. #endif
  14895. #ifndef __MMX__
  14896. #error Assembler CPP flag not enabled
  14897. #endif
  14898. int
  14899. main ()
  14900. {
  14901. ;
  14902. return 0;
  14903. }
  14904. _ACEOF
  14905. if ac_fn_c_try_compile "$LINENO"; then :
  14906. have_gcc_mmx=yes
  14907. fi
  14908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14910. $as_echo "$have_gcc_mmx" >&6; }
  14911. CFLAGS="$save_CFLAGS"
  14912. if test x$have_gcc_mmx = xyes; then
  14913. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14914. SUMMARY_math="${SUMMARY_math} mmx"
  14915. fi
  14916. fi
  14917. # Check whether --enable-3dnow was given.
  14918. if test "${enable_3dnow+set}" = set; then :
  14919. enableval=$enable_3dnow;
  14920. else
  14921. enable_3dnow=yes
  14922. fi
  14923. if test x$enable_3dnow = xyes; then
  14924. save_CFLAGS="$CFLAGS"
  14925. have_gcc_3dnow=no
  14926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14927. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14928. amd3dnow_CFLAGS="-m3dnow"
  14929. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14931. /* end confdefs.h. */
  14932. #include <mm3dnow.h>
  14933. #ifndef __3dNOW__
  14934. #error Assembler CPP flag not enabled
  14935. #endif
  14936. int
  14937. main ()
  14938. {
  14939. void *p = 0;
  14940. _m_prefetch(p);
  14941. ;
  14942. return 0;
  14943. }
  14944. _ACEOF
  14945. if ac_fn_c_try_link "$LINENO"; then :
  14946. have_gcc_3dnow=yes
  14947. fi
  14948. rm -f core conftest.err conftest.$ac_objext \
  14949. conftest$ac_exeext conftest.$ac_ext
  14950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14951. $as_echo "$have_gcc_3dnow" >&6; }
  14952. CFLAGS="$save_CFLAGS"
  14953. if test x$have_gcc_3dnow = xyes; then
  14954. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14955. SUMMARY_math="${SUMMARY_math} 3dnow"
  14956. fi
  14957. fi
  14958. # Check whether --enable-sse was given.
  14959. if test "${enable_sse+set}" = set; then :
  14960. enableval=$enable_sse;
  14961. else
  14962. enable_sse=yes
  14963. fi
  14964. if test x$enable_sse = xyes; then
  14965. save_CFLAGS="$CFLAGS"
  14966. have_gcc_sse=no
  14967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14968. $as_echo_n "checking for GCC -msse option... " >&6; }
  14969. sse_CFLAGS="-msse"
  14970. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14972. /* end confdefs.h. */
  14973. #ifdef __MINGW32__
  14974. #include <_mingw.h>
  14975. #ifdef __MINGW64_VERSION_MAJOR
  14976. #include <intrin.h>
  14977. #else
  14978. #include <xmmintrin.h>
  14979. #endif
  14980. #else
  14981. #include <xmmintrin.h>
  14982. #endif
  14983. #ifndef __SSE__
  14984. #error Assembler CPP flag not enabled
  14985. #endif
  14986. int
  14987. main ()
  14988. {
  14989. ;
  14990. return 0;
  14991. }
  14992. _ACEOF
  14993. if ac_fn_c_try_compile "$LINENO"; then :
  14994. have_gcc_sse=yes
  14995. fi
  14996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14998. $as_echo "$have_gcc_sse" >&6; }
  14999. CFLAGS="$save_CFLAGS"
  15000. if test x$have_gcc_sse = xyes; then
  15001. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15002. SUMMARY_math="${SUMMARY_math} sse"
  15003. fi
  15004. fi
  15005. # Check whether --enable-sse2 was given.
  15006. if test "${enable_sse2+set}" = set; then :
  15007. enableval=$enable_sse2;
  15008. else
  15009. enable_sse2=$default_ssemath
  15010. fi
  15011. if test x$enable_sse2 = xyes; then
  15012. save_CFLAGS="$CFLAGS"
  15013. have_gcc_sse2=no
  15014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15015. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15016. sse2_CFLAGS="-msse2"
  15017. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15019. /* end confdefs.h. */
  15020. #ifdef __MINGW32__
  15021. #include <_mingw.h>
  15022. #ifdef __MINGW64_VERSION_MAJOR
  15023. #include <intrin.h>
  15024. #else
  15025. #include <emmintrin.h>
  15026. #endif
  15027. #else
  15028. #include <emmintrin.h>
  15029. #endif
  15030. #ifndef __SSE2__
  15031. #error Assembler CPP flag not enabled
  15032. #endif
  15033. int
  15034. main ()
  15035. {
  15036. ;
  15037. return 0;
  15038. }
  15039. _ACEOF
  15040. if ac_fn_c_try_compile "$LINENO"; then :
  15041. have_gcc_sse2=yes
  15042. fi
  15043. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15045. $as_echo "$have_gcc_sse2" >&6; }
  15046. CFLAGS="$save_CFLAGS"
  15047. if test x$have_gcc_sse2 = xyes; then
  15048. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15049. SUMMARY_math="${SUMMARY_math} sse2"
  15050. fi
  15051. fi
  15052. # Check whether --enable-sse3 was given.
  15053. if test "${enable_sse3+set}" = set; then :
  15054. enableval=$enable_sse3;
  15055. else
  15056. enable_sse3=$default_ssemath
  15057. fi
  15058. if test x$enable_sse3 = xyes; then
  15059. save_CFLAGS="$CFLAGS"
  15060. have_gcc_sse3=no
  15061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15062. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15063. sse3_CFLAGS="-msse3"
  15064. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15066. /* end confdefs.h. */
  15067. #ifdef __MINGW32__
  15068. #include <_mingw.h>
  15069. #ifdef __MINGW64_VERSION_MAJOR
  15070. #include <intrin.h>
  15071. #else
  15072. #include <pmmintrin.h>
  15073. #endif
  15074. #else
  15075. #include <pmmintrin.h>
  15076. #endif
  15077. #ifndef __SSE2__
  15078. #error Assembler CPP flag not enabled
  15079. #endif
  15080. int
  15081. main ()
  15082. {
  15083. ;
  15084. return 0;
  15085. }
  15086. _ACEOF
  15087. if ac_fn_c_try_compile "$LINENO"; then :
  15088. have_gcc_sse3=yes
  15089. fi
  15090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15092. $as_echo "$have_gcc_sse3" >&6; }
  15093. CFLAGS="$save_CFLAGS"
  15094. if test x$have_gcc_sse3 = xyes; then
  15095. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15096. SUMMARY_math="${SUMMARY_math} sse3"
  15097. fi
  15098. fi
  15099. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15100. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15101. have_immintrin_h_hdr=yes
  15102. else
  15103. have_immintrin_h_hdr=no
  15104. fi
  15105. if test x$have_immintrin_h_hdr = xyes; then
  15106. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15107. fi
  15108. # Check whether --enable-altivec was given.
  15109. if test "${enable_altivec+set}" = set; then :
  15110. enableval=$enable_altivec;
  15111. else
  15112. enable_altivec=yes
  15113. fi
  15114. if test x$enable_altivec = xyes; then
  15115. save_CFLAGS="$CFLAGS"
  15116. have_gcc_altivec=no
  15117. have_altivec_h_hdr=no
  15118. altivec_CFLAGS="-maltivec"
  15119. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15121. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15123. /* end confdefs.h. */
  15124. #include <altivec.h>
  15125. vector unsigned int vzero() {
  15126. return vec_splat_u32(0);
  15127. }
  15128. int
  15129. main ()
  15130. {
  15131. ;
  15132. return 0;
  15133. }
  15134. _ACEOF
  15135. if ac_fn_c_try_compile "$LINENO"; then :
  15136. have_gcc_altivec=yes
  15137. have_altivec_h_hdr=yes
  15138. fi
  15139. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15141. $as_echo "$have_gcc_altivec" >&6; }
  15142. if test x$have_gcc_altivec = xno; then
  15143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15144. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15146. /* end confdefs.h. */
  15147. vector unsigned int vzero() {
  15148. return vec_splat_u32(0);
  15149. }
  15150. int
  15151. main ()
  15152. {
  15153. ;
  15154. return 0;
  15155. }
  15156. _ACEOF
  15157. if ac_fn_c_try_compile "$LINENO"; then :
  15158. have_gcc_altivec=yes
  15159. fi
  15160. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15162. $as_echo "$have_gcc_altivec" >&6; }
  15163. fi
  15164. if test x$have_gcc_altivec = xno; then
  15165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15166. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15167. altivec_CFLAGS="-faltivec"
  15168. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15170. /* end confdefs.h. */
  15171. #include <altivec.h>
  15172. vector unsigned int vzero() {
  15173. return vec_splat_u32(0);
  15174. }
  15175. int
  15176. main ()
  15177. {
  15178. ;
  15179. return 0;
  15180. }
  15181. _ACEOF
  15182. if ac_fn_c_try_compile "$LINENO"; then :
  15183. have_gcc_altivec=yes
  15184. have_altivec_h_hdr=yes
  15185. fi
  15186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15188. $as_echo "$have_gcc_altivec" >&6; }
  15189. fi
  15190. if test x$have_gcc_altivec = xno; then
  15191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15192. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15194. /* end confdefs.h. */
  15195. vector unsigned int vzero() {
  15196. return vec_splat_u32(0);
  15197. }
  15198. int
  15199. main ()
  15200. {
  15201. ;
  15202. return 0;
  15203. }
  15204. _ACEOF
  15205. if ac_fn_c_try_compile "$LINENO"; then :
  15206. have_gcc_altivec=yes
  15207. fi
  15208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15210. $as_echo "$have_gcc_altivec" >&6; }
  15211. fi
  15212. CFLAGS="$save_CFLAGS"
  15213. if test x$have_gcc_altivec = xyes; then
  15214. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15215. if test x$have_altivec_h_hdr = xyes; then
  15216. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15217. fi
  15218. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15219. SUMMARY_math="${SUMMARY_math} altivec"
  15220. fi
  15221. fi
  15222. fi
  15223. CheckOSS()
  15224. {
  15225. # Check whether --enable-oss was given.
  15226. if test "${enable_oss+set}" = set; then :
  15227. enableval=$enable_oss;
  15228. else
  15229. enable_oss=maybe
  15230. fi
  15231. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15232. # use sndio instead. So on there, we default to disabled. You can force
  15233. # it on if you really want, though.
  15234. if test x$enable_oss = xmaybe; then
  15235. enable_oss=yes
  15236. case "$host" in
  15237. *-*-openbsd*)
  15238. enable_oss=no;;
  15239. esac
  15240. fi
  15241. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15243. $as_echo_n "checking for OSS audio support... " >&6; }
  15244. have_oss=no
  15245. if test x$have_oss != xyes; then
  15246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15247. /* end confdefs.h. */
  15248. #include <sys/soundcard.h>
  15249. int
  15250. main ()
  15251. {
  15252. int arg = SNDCTL_DSP_SETFRAGMENT;
  15253. ;
  15254. return 0;
  15255. }
  15256. _ACEOF
  15257. if ac_fn_c_try_compile "$LINENO"; then :
  15258. have_oss=yes
  15259. fi
  15260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15261. fi
  15262. if test x$have_oss != xyes; then
  15263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15264. /* end confdefs.h. */
  15265. #include <soundcard.h>
  15266. int
  15267. main ()
  15268. {
  15269. int arg = SNDCTL_DSP_SETFRAGMENT;
  15270. ;
  15271. return 0;
  15272. }
  15273. _ACEOF
  15274. if ac_fn_c_try_compile "$LINENO"; then :
  15275. have_oss=yes
  15276. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15277. fi
  15278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15279. fi
  15280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15281. $as_echo "$have_oss" >&6; }
  15282. if test x$have_oss = xyes; then
  15283. SUMMARY_audio="${SUMMARY_audio} oss"
  15284. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15285. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15286. have_audio=yes
  15287. # We may need to link with ossaudio emulation library
  15288. case "$host" in
  15289. *-*-openbsd*|*-*-netbsd*)
  15290. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15291. esac
  15292. fi
  15293. fi
  15294. }
  15295. CheckALSA()
  15296. {
  15297. # Check whether --enable-alsa was given.
  15298. if test "${enable_alsa+set}" = set; then :
  15299. enableval=$enable_alsa;
  15300. else
  15301. enable_alsa=yes
  15302. fi
  15303. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15304. alsa_save_CFLAGS="$CFLAGS"
  15305. alsa_save_LDFLAGS="$LDFLAGS"
  15306. alsa_save_LIBS="$LIBS"
  15307. alsa_found=yes
  15308. # Check whether --with-alsa-prefix was given.
  15309. if test "${with_alsa_prefix+set}" = set; then :
  15310. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15311. else
  15312. alsa_prefix=""
  15313. fi
  15314. # Check whether --with-alsa-inc-prefix was given.
  15315. if test "${with_alsa_inc_prefix+set}" = set; then :
  15316. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15317. else
  15318. alsa_inc_prefix=""
  15319. fi
  15320. # Check whether --enable-alsatest was given.
  15321. if test "${enable_alsatest+set}" = set; then :
  15322. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15323. else
  15324. enable_alsatest=yes
  15325. fi
  15326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15327. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15328. if test "$alsa_inc_prefix" != "" ; then
  15329. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15330. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15331. fi
  15332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15333. $as_echo "$ALSA_CFLAGS" >&6; }
  15334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15335. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15336. if test "$alsa_prefix" != "" ; then
  15337. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15338. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15339. fi
  15340. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15341. LIBS=`echo $LIBS | sed 's/-lm//'`
  15342. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15343. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15344. LIBS=`echo $LIBS | sed 's/ //'`
  15345. LIBS="$ALSA_LIBS $LIBS"
  15346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15347. $as_echo "$ALSA_LIBS" >&6; }
  15348. min_alsa_version=1.0.11
  15349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15350. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15351. no_alsa=""
  15352. alsa_min_major_version=`echo $min_alsa_version | \
  15353. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15354. alsa_min_minor_version=`echo $min_alsa_version | \
  15355. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15356. alsa_min_micro_version=`echo $min_alsa_version | \
  15357. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15358. ac_ext=c
  15359. ac_cpp='$CPP $CPPFLAGS'
  15360. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15361. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15362. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15364. /* end confdefs.h. */
  15365. #include <alsa/asoundlib.h>
  15366. int
  15367. main ()
  15368. {
  15369. /* ensure backward compatibility */
  15370. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15371. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15372. #endif
  15373. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15374. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15375. #endif
  15376. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15377. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15378. #endif
  15379. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15380. exit(0);
  15381. # else
  15382. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15383. # error not present
  15384. # endif
  15385. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15386. exit(0);
  15387. # else
  15388. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15389. # error not present
  15390. # endif
  15391. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15392. # error not present
  15393. # endif
  15394. # endif
  15395. # endif
  15396. exit(0);
  15397. ;
  15398. return 0;
  15399. }
  15400. _ACEOF
  15401. if ac_fn_c_try_compile "$LINENO"; then :
  15402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15403. $as_echo "found." >&6; }
  15404. else
  15405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15406. $as_echo "not present." >&6; }
  15407. alsa_found=no
  15408. fi
  15409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15410. ac_ext=c
  15411. ac_cpp='$CPP $CPPFLAGS'
  15412. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15413. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15414. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15415. if test "x$enable_alsatest" = "xyes"; then
  15416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15417. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15418. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15419. $as_echo_n "(cached) " >&6
  15420. else
  15421. ac_check_lib_save_LIBS=$LIBS
  15422. LIBS="-lasound $LIBS"
  15423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15424. /* end confdefs.h. */
  15425. /* Override any GCC internal prototype to avoid an error.
  15426. Use char because int might match the return type of a GCC
  15427. builtin and then its argument prototype would still apply. */
  15428. #ifdef __cplusplus
  15429. extern "C"
  15430. #endif
  15431. char snd_ctl_open ();
  15432. int
  15433. main ()
  15434. {
  15435. return snd_ctl_open ();
  15436. ;
  15437. return 0;
  15438. }
  15439. _ACEOF
  15440. if ac_fn_c_try_link "$LINENO"; then :
  15441. ac_cv_lib_asound_snd_ctl_open=yes
  15442. else
  15443. ac_cv_lib_asound_snd_ctl_open=no
  15444. fi
  15445. rm -f core conftest.err conftest.$ac_objext \
  15446. conftest$ac_exeext conftest.$ac_ext
  15447. LIBS=$ac_check_lib_save_LIBS
  15448. fi
  15449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15450. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15451. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15452. cat >>confdefs.h <<_ACEOF
  15453. #define HAVE_LIBASOUND 1
  15454. _ACEOF
  15455. LIBS="-lasound $LIBS"
  15456. else
  15457. alsa_found=no
  15458. fi
  15459. fi
  15460. if test "x$alsa_found" = "xyes" ; then
  15461. have_alsa=yes
  15462. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15463. LIBS=`echo $LIBS | sed 's/ //'`
  15464. LIBS="-lasound $LIBS"
  15465. fi
  15466. if test "x$alsa_found" = "xno" ; then
  15467. have_alsa=no
  15468. CFLAGS="$alsa_save_CFLAGS"
  15469. LDFLAGS="$alsa_save_LDFLAGS"
  15470. LIBS="$alsa_save_LIBS"
  15471. ALSA_CFLAGS=""
  15472. ALSA_LIBS=""
  15473. fi
  15474. # Restore all flags from before the ALSA detection runs
  15475. CFLAGS="$alsa_save_CFLAGS"
  15476. LDFLAGS="$alsa_save_LDFLAGS"
  15477. LIBS="$alsa_save_LIBS"
  15478. if test x$have_alsa = xyes; then
  15479. # Check whether --enable-alsa-shared was given.
  15480. if test "${enable_alsa_shared+set}" = set; then :
  15481. enableval=$enable_alsa_shared;
  15482. else
  15483. enable_alsa_shared=yes
  15484. fi
  15485. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15486. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15487. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15488. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15489. if test x$have_loadso != xyes && \
  15490. test x$enable_alsa_shared = xyes; then
  15491. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15492. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15493. fi
  15494. if test x$have_loadso = xyes && \
  15495. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15496. echo "-- dynamic libasound -> $alsa_lib"
  15497. cat >>confdefs.h <<_ACEOF
  15498. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15499. _ACEOF
  15500. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15501. else
  15502. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15503. SUMMARY_audio="${SUMMARY_audio} alsa"
  15504. fi
  15505. have_audio=yes
  15506. fi
  15507. fi
  15508. }
  15509. CheckJACK()
  15510. {
  15511. # Check whether --enable-jack was given.
  15512. if test "${enable_jack+set}" = set; then :
  15513. enableval=$enable_jack;
  15514. else
  15515. enable_jack=yes
  15516. fi
  15517. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15518. audio_jack=no
  15519. JACK_REQUIRED_VERSION=0.125
  15520. # Extract the first word of "pkg-config", so it can be a program name with args.
  15521. set dummy pkg-config; ac_word=$2
  15522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15523. $as_echo_n "checking for $ac_word... " >&6; }
  15524. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15525. $as_echo_n "(cached) " >&6
  15526. else
  15527. case $PKG_CONFIG in
  15528. [\\/]* | ?:[\\/]*)
  15529. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15530. ;;
  15531. *)
  15532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15533. for as_dir in $PATH
  15534. do
  15535. IFS=$as_save_IFS
  15536. test -z "$as_dir" && as_dir=.
  15537. for ac_exec_ext in '' $ac_executable_extensions; do
  15538. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15539. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15540. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15541. break 2
  15542. fi
  15543. done
  15544. done
  15545. IFS=$as_save_IFS
  15546. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15547. ;;
  15548. esac
  15549. fi
  15550. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15551. if test -n "$PKG_CONFIG"; then
  15552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15553. $as_echo "$PKG_CONFIG" >&6; }
  15554. else
  15555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15556. $as_echo "no" >&6; }
  15557. fi
  15558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK $JACK_REQUIRED_VERSION support" >&5
  15559. $as_echo_n "checking for JACK $JACK_REQUIRED_VERSION support... " >&6; }
  15560. if test x$PKG_CONFIG != xno; then
  15561. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $JACK_REQUIRED_VERSION jack; then
  15562. JACK_CFLAGS=`$PKG_CONFIG --cflags jack`
  15563. JACK_LIBS=`$PKG_CONFIG --libs jack`
  15564. audio_jack=yes
  15565. fi
  15566. fi
  15567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_jack" >&5
  15568. $as_echo "$audio_jack" >&6; }
  15569. if test x$audio_jack = xyes; then
  15570. # Check whether --enable-jack-shared was given.
  15571. if test "${enable_jack_shared+set}" = set; then :
  15572. enableval=$enable_jack_shared;
  15573. else
  15574. enable_jack_shared=yes
  15575. fi
  15576. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15577. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15578. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15579. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15580. if test x$have_loadso != xyes && \
  15581. test x$enable_jack_shared = xyes; then
  15582. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15583. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15584. fi
  15585. if test x$have_loadso = xyes && \
  15586. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15587. echo "-- dynamic libjack -> $jack_lib"
  15588. cat >>confdefs.h <<_ACEOF
  15589. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15590. _ACEOF
  15591. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15592. case "$host" in
  15593. # On Solaris, jack must be linked deferred explicitly
  15594. # to prevent undefined symbol failures.
  15595. *-*-solaris*)
  15596. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15597. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15598. esac
  15599. else
  15600. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15601. SUMMARY_audio="${SUMMARY_audio} jack"
  15602. fi
  15603. have_audio=yes
  15604. fi
  15605. fi
  15606. }
  15607. CheckESD()
  15608. {
  15609. # Check whether --enable-esd was given.
  15610. if test "${enable_esd+set}" = set; then :
  15611. enableval=$enable_esd;
  15612. else
  15613. enable_esd=yes
  15614. fi
  15615. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15616. # Check whether --with-esd-prefix was given.
  15617. if test "${with_esd_prefix+set}" = set; then :
  15618. withval=$with_esd_prefix; esd_prefix="$withval"
  15619. else
  15620. esd_prefix=""
  15621. fi
  15622. # Check whether --with-esd-exec-prefix was given.
  15623. if test "${with_esd_exec_prefix+set}" = set; then :
  15624. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15625. else
  15626. esd_exec_prefix=""
  15627. fi
  15628. # Check whether --enable-esdtest was given.
  15629. if test "${enable_esdtest+set}" = set; then :
  15630. enableval=$enable_esdtest;
  15631. else
  15632. enable_esdtest=yes
  15633. fi
  15634. if test x$esd_exec_prefix != x ; then
  15635. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15636. if test x${ESD_CONFIG+set} != xset ; then
  15637. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15638. fi
  15639. fi
  15640. if test x$esd_prefix != x ; then
  15641. esd_args="$esd_args --prefix=$esd_prefix"
  15642. if test x${ESD_CONFIG+set} != xset ; then
  15643. ESD_CONFIG=$esd_prefix/bin/esd-config
  15644. fi
  15645. fi
  15646. # Extract the first word of "esd-config", so it can be a program name with args.
  15647. set dummy esd-config; ac_word=$2
  15648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15649. $as_echo_n "checking for $ac_word... " >&6; }
  15650. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15651. $as_echo_n "(cached) " >&6
  15652. else
  15653. case $ESD_CONFIG in
  15654. [\\/]* | ?:[\\/]*)
  15655. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15656. ;;
  15657. *)
  15658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15659. for as_dir in $PATH
  15660. do
  15661. IFS=$as_save_IFS
  15662. test -z "$as_dir" && as_dir=.
  15663. for ac_exec_ext in '' $ac_executable_extensions; do
  15664. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15665. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15667. break 2
  15668. fi
  15669. done
  15670. done
  15671. IFS=$as_save_IFS
  15672. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15673. ;;
  15674. esac
  15675. fi
  15676. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15677. if test -n "$ESD_CONFIG"; then
  15678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15679. $as_echo "$ESD_CONFIG" >&6; }
  15680. else
  15681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15682. $as_echo "no" >&6; }
  15683. fi
  15684. min_esd_version=0.2.8
  15685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15686. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15687. no_esd=""
  15688. if test "$ESD_CONFIG" = "no" ; then
  15689. no_esd=yes
  15690. else
  15691. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15692. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15693. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15694. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15695. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15696. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15697. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15698. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15699. if test "x$enable_esdtest" = "xyes" ; then
  15700. ac_save_CFLAGS="$CFLAGS"
  15701. ac_save_LIBS="$LIBS"
  15702. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15703. LIBS="$LIBS $ESD_LIBS"
  15704. rm -f conf.esdtest
  15705. if test "$cross_compiling" = yes; then :
  15706. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15707. else
  15708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15709. /* end confdefs.h. */
  15710. #include <stdio.h>
  15711. #include <stdlib.h>
  15712. #include <string.h>
  15713. #include <esd.h>
  15714. char*
  15715. my_strdup (char *str)
  15716. {
  15717. char *new_str;
  15718. if (str)
  15719. {
  15720. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15721. strcpy (new_str, str);
  15722. }
  15723. else
  15724. new_str = NULL;
  15725. return new_str;
  15726. }
  15727. int main ()
  15728. {
  15729. int major, minor, micro;
  15730. char *tmp_version;
  15731. system ("touch conf.esdtest");
  15732. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15733. tmp_version = my_strdup("$min_esd_version");
  15734. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15735. printf("%s, bad version string\n", "$min_esd_version");
  15736. exit(1);
  15737. }
  15738. if (($esd_major_version > major) ||
  15739. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15740. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15741. {
  15742. return 0;
  15743. }
  15744. else
  15745. {
  15746. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15747. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15748. printf("*** best to upgrade to the required version.\n");
  15749. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15750. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15751. printf("*** config.cache before re-running configure\n");
  15752. return 1;
  15753. }
  15754. }
  15755. _ACEOF
  15756. if ac_fn_c_try_run "$LINENO"; then :
  15757. else
  15758. no_esd=yes
  15759. fi
  15760. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15761. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15762. fi
  15763. CFLAGS="$ac_save_CFLAGS"
  15764. LIBS="$ac_save_LIBS"
  15765. fi
  15766. fi
  15767. if test "x$no_esd" = x ; then
  15768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15769. $as_echo "yes" >&6; }
  15770. have_esd=yes
  15771. else
  15772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15773. $as_echo "no" >&6; }
  15774. if test "$ESD_CONFIG" = "no" ; then
  15775. echo "*** The esd-config script installed by ESD could not be found"
  15776. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15777. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15778. echo "*** full path to esd-config."
  15779. else
  15780. if test -f conf.esdtest ; then
  15781. :
  15782. else
  15783. echo "*** Could not run ESD test program, checking why..."
  15784. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15785. LIBS="$LIBS $ESD_LIBS"
  15786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15787. /* end confdefs.h. */
  15788. #include <stdio.h>
  15789. #include <esd.h>
  15790. int
  15791. main ()
  15792. {
  15793. return 0;
  15794. ;
  15795. return 0;
  15796. }
  15797. _ACEOF
  15798. if ac_fn_c_try_link "$LINENO"; then :
  15799. echo "*** The test program compiled, but did not run. This usually means"
  15800. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15801. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15802. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15803. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15804. echo "*** is required on your system"
  15805. echo "***"
  15806. echo "*** If you have an old version installed, it is best to remove it, although"
  15807. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15808. else
  15809. echo "*** The test program failed to compile or link. See the file config.log for the"
  15810. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15811. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15812. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15813. fi
  15814. rm -f core conftest.err conftest.$ac_objext \
  15815. conftest$ac_exeext conftest.$ac_ext
  15816. CFLAGS="$ac_save_CFLAGS"
  15817. LIBS="$ac_save_LIBS"
  15818. fi
  15819. fi
  15820. ESD_CFLAGS=""
  15821. ESD_LIBS=""
  15822. have_esd=no
  15823. fi
  15824. rm -f conf.esdtest
  15825. if test x$have_esd = xyes; then
  15826. # Check whether --enable-esd-shared was given.
  15827. if test "${enable_esd_shared+set}" = set; then :
  15828. enableval=$enable_esd_shared;
  15829. else
  15830. enable_esd_shared=yes
  15831. fi
  15832. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15833. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15834. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15835. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15836. if test x$have_loadso != xyes && \
  15837. test x$enable_esd_shared = xyes; then
  15838. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15839. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15840. fi
  15841. if test x$have_loadso = xyes && \
  15842. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15843. echo "-- dynamic libesd -> $esd_lib"
  15844. cat >>confdefs.h <<_ACEOF
  15845. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15846. _ACEOF
  15847. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15848. else
  15849. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15850. SUMMARY_audio="${SUMMARY_audio} esd"
  15851. fi
  15852. have_audio=yes
  15853. fi
  15854. fi
  15855. }
  15856. CheckPulseAudio()
  15857. {
  15858. # Check whether --enable-pulseaudio was given.
  15859. if test "${enable_pulseaudio+set}" = set; then :
  15860. enableval=$enable_pulseaudio;
  15861. else
  15862. enable_pulseaudio=yes
  15863. fi
  15864. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15865. audio_pulseaudio=no
  15866. PULSEAUDIO_REQUIRED_VERSION=0.9
  15867. # Extract the first word of "pkg-config", so it can be a program name with args.
  15868. set dummy pkg-config; ac_word=$2
  15869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15870. $as_echo_n "checking for $ac_word... " >&6; }
  15871. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15872. $as_echo_n "(cached) " >&6
  15873. else
  15874. case $PKG_CONFIG in
  15875. [\\/]* | ?:[\\/]*)
  15876. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15877. ;;
  15878. *)
  15879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15880. for as_dir in $PATH
  15881. do
  15882. IFS=$as_save_IFS
  15883. test -z "$as_dir" && as_dir=.
  15884. for ac_exec_ext in '' $ac_executable_extensions; do
  15885. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15886. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15887. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15888. break 2
  15889. fi
  15890. done
  15891. done
  15892. IFS=$as_save_IFS
  15893. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15894. ;;
  15895. esac
  15896. fi
  15897. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15898. if test -n "$PKG_CONFIG"; then
  15899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15900. $as_echo "$PKG_CONFIG" >&6; }
  15901. else
  15902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15903. $as_echo "no" >&6; }
  15904. fi
  15905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15906. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15907. if test x$PKG_CONFIG != xno; then
  15908. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15909. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15910. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15911. audio_pulseaudio=yes
  15912. fi
  15913. fi
  15914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15915. $as_echo "$audio_pulseaudio" >&6; }
  15916. if test x$audio_pulseaudio = xyes; then
  15917. # Check whether --enable-pulseaudio-shared was given.
  15918. if test "${enable_pulseaudio_shared+set}" = set; then :
  15919. enableval=$enable_pulseaudio_shared;
  15920. else
  15921. enable_pulseaudio_shared=yes
  15922. fi
  15923. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15924. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15925. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15926. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15927. if test x$have_loadso != xyes && \
  15928. test x$enable_pulseaudio_shared = xyes; then
  15929. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15930. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15931. fi
  15932. if test x$have_loadso = xyes && \
  15933. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15934. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15935. cat >>confdefs.h <<_ACEOF
  15936. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15937. _ACEOF
  15938. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15939. case "$host" in
  15940. # On Solaris, pulseaudio must be linked deferred explicitly
  15941. # to prevent undefined symbol failures.
  15942. *-*-solaris*)
  15943. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15944. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15945. esac
  15946. else
  15947. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15948. SUMMARY_audio="${SUMMARY_audio} pulse"
  15949. fi
  15950. have_audio=yes
  15951. fi
  15952. fi
  15953. }
  15954. CheckARTSC()
  15955. {
  15956. # Check whether --enable-arts was given.
  15957. if test "${enable_arts+set}" = set; then :
  15958. enableval=$enable_arts;
  15959. else
  15960. enable_arts=yes
  15961. fi
  15962. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15963. # Extract the first word of "artsc-config", so it can be a program name with args.
  15964. set dummy artsc-config; ac_word=$2
  15965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15966. $as_echo_n "checking for $ac_word... " >&6; }
  15967. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15968. $as_echo_n "(cached) " >&6
  15969. else
  15970. case $ARTSCONFIG in
  15971. [\\/]* | ?:[\\/]*)
  15972. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15973. ;;
  15974. *)
  15975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15976. for as_dir in $PATH
  15977. do
  15978. IFS=$as_save_IFS
  15979. test -z "$as_dir" && as_dir=.
  15980. for ac_exec_ext in '' $ac_executable_extensions; do
  15981. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15982. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15983. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15984. break 2
  15985. fi
  15986. done
  15987. done
  15988. IFS=$as_save_IFS
  15989. ;;
  15990. esac
  15991. fi
  15992. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15993. if test -n "$ARTSCONFIG"; then
  15994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15995. $as_echo "$ARTSCONFIG" >&6; }
  15996. else
  15997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15998. $as_echo "no" >&6; }
  15999. fi
  16000. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16001. : # arts isn't installed
  16002. else
  16003. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16004. ARTS_LIBS=`$ARTSCONFIG --libs`
  16005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16006. $as_echo_n "checking for aRts development environment... " >&6; }
  16007. audio_arts=no
  16008. save_CFLAGS="$CFLAGS"
  16009. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16011. /* end confdefs.h. */
  16012. #include <artsc.h>
  16013. int
  16014. main ()
  16015. {
  16016. arts_stream_t stream;
  16017. ;
  16018. return 0;
  16019. }
  16020. _ACEOF
  16021. if ac_fn_c_try_compile "$LINENO"; then :
  16022. audio_arts=yes
  16023. fi
  16024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16025. CFLAGS="$save_CFLAGS"
  16026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16027. $as_echo "$audio_arts" >&6; }
  16028. if test x$audio_arts = xyes; then
  16029. # Check whether --enable-arts-shared was given.
  16030. if test "${enable_arts_shared+set}" = set; then :
  16031. enableval=$enable_arts_shared;
  16032. else
  16033. enable_arts_shared=yes
  16034. fi
  16035. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16036. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16037. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16038. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16039. if test x$have_loadso != xyes && \
  16040. test x$enable_arts_shared = xyes; then
  16041. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16042. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16043. fi
  16044. if test x$have_loadso = xyes && \
  16045. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16046. echo "-- dynamic libartsc -> $arts_lib"
  16047. cat >>confdefs.h <<_ACEOF
  16048. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16049. _ACEOF
  16050. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16051. else
  16052. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16053. SUMMARY_audio="${SUMMARY_audio} arts"
  16054. fi
  16055. have_audio=yes
  16056. fi
  16057. fi
  16058. fi
  16059. }
  16060. CheckNAS()
  16061. {
  16062. # Check whether --enable-nas was given.
  16063. if test "${enable_nas+set}" = set; then :
  16064. enableval=$enable_nas;
  16065. else
  16066. enable_nas=yes
  16067. fi
  16068. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16069. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16070. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16071. have_nas_hdr=yes
  16072. fi
  16073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16074. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16075. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16076. $as_echo_n "(cached) " >&6
  16077. else
  16078. ac_check_lib_save_LIBS=$LIBS
  16079. LIBS="-laudio $LIBS"
  16080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16081. /* end confdefs.h. */
  16082. /* Override any GCC internal prototype to avoid an error.
  16083. Use char because int might match the return type of a GCC
  16084. builtin and then its argument prototype would still apply. */
  16085. #ifdef __cplusplus
  16086. extern "C"
  16087. #endif
  16088. char AuOpenServer ();
  16089. int
  16090. main ()
  16091. {
  16092. return AuOpenServer ();
  16093. ;
  16094. return 0;
  16095. }
  16096. _ACEOF
  16097. if ac_fn_c_try_link "$LINENO"; then :
  16098. ac_cv_lib_audio_AuOpenServer=yes
  16099. else
  16100. ac_cv_lib_audio_AuOpenServer=no
  16101. fi
  16102. rm -f core conftest.err conftest.$ac_objext \
  16103. conftest$ac_exeext conftest.$ac_ext
  16104. LIBS=$ac_check_lib_save_LIBS
  16105. fi
  16106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16107. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16108. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16109. have_nas_lib=yes
  16110. fi
  16111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16112. $as_echo_n "checking for NAS audio support... " >&6; }
  16113. have_nas=no
  16114. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16115. have_nas=yes
  16116. NAS_LIBS="-laudio"
  16117. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16118. have_nas=yes
  16119. NAS_CFLAGS="-I/usr/X11R6/include/"
  16120. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16121. fi
  16122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16123. $as_echo "$have_nas" >&6; }
  16124. if test x$have_nas = xyes; then
  16125. # Check whether --enable-nas-shared was given.
  16126. if test "${enable_nas_shared+set}" = set; then :
  16127. enableval=$enable_nas_shared;
  16128. else
  16129. enable_nas_shared=yes
  16130. fi
  16131. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16132. if test x$have_loadso != xyes && \
  16133. test x$enable_nas_shared = xyes; then
  16134. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16135. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16136. fi
  16137. if test x$have_loadso = xyes && \
  16138. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16139. echo "-- dynamic libaudio -> $nas_lib"
  16140. cat >>confdefs.h <<_ACEOF
  16141. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16142. _ACEOF
  16143. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16144. else
  16145. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16146. SUMMARY_audio="${SUMMARY_audio} nas"
  16147. fi
  16148. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16149. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16150. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16151. have_audio=yes
  16152. fi
  16153. fi
  16154. }
  16155. CheckSNDIO()
  16156. {
  16157. # Check whether --enable-sndio was given.
  16158. if test "${enable_sndio+set}" = set; then :
  16159. enableval=$enable_sndio;
  16160. else
  16161. enable_sndio=yes
  16162. fi
  16163. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16164. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16165. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16166. have_sndio_hdr=yes
  16167. fi
  16168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16169. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16170. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16171. $as_echo_n "(cached) " >&6
  16172. else
  16173. ac_check_lib_save_LIBS=$LIBS
  16174. LIBS="-lsndio $LIBS"
  16175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16176. /* end confdefs.h. */
  16177. /* Override any GCC internal prototype to avoid an error.
  16178. Use char because int might match the return type of a GCC
  16179. builtin and then its argument prototype would still apply. */
  16180. #ifdef __cplusplus
  16181. extern "C"
  16182. #endif
  16183. char sio_open ();
  16184. int
  16185. main ()
  16186. {
  16187. return sio_open ();
  16188. ;
  16189. return 0;
  16190. }
  16191. _ACEOF
  16192. if ac_fn_c_try_link "$LINENO"; then :
  16193. ac_cv_lib_sndio_sio_open=yes
  16194. else
  16195. ac_cv_lib_sndio_sio_open=no
  16196. fi
  16197. rm -f core conftest.err conftest.$ac_objext \
  16198. conftest$ac_exeext conftest.$ac_ext
  16199. LIBS=$ac_check_lib_save_LIBS
  16200. fi
  16201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16202. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16203. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16204. have_sndio_lib=yes
  16205. fi
  16206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16207. $as_echo_n "checking for sndio audio support... " >&6; }
  16208. have_sndio=no
  16209. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16210. have_sndio=yes
  16211. SNDIO_LIBS="-lsndio"
  16212. fi
  16213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16214. $as_echo "$have_sndio" >&6; }
  16215. if test x$have_sndio = xyes; then
  16216. # Check whether --enable-sndio-shared was given.
  16217. if test "${enable_sndio_shared+set}" = set; then :
  16218. enableval=$enable_sndio_shared;
  16219. else
  16220. enable_sndio_shared=yes
  16221. fi
  16222. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16223. if test x$have_loadso != xyes && \
  16224. test x$enable_sndio_shared = xyes; then
  16225. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16226. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16227. fi
  16228. if test x$have_loadso = xyes && \
  16229. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16230. echo "-- dynamic libsndio -> $sndio_lib"
  16231. cat >>confdefs.h <<_ACEOF
  16232. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16233. _ACEOF
  16234. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16235. else
  16236. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16237. SUMMARY_audio="${SUMMARY_audio} sndio"
  16238. fi
  16239. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16240. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16241. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16242. have_audio=yes
  16243. fi
  16244. fi
  16245. }
  16246. CheckFusionSound()
  16247. {
  16248. # Check whether --enable-fusionsound was given.
  16249. if test "${enable_fusionsound+set}" = set; then :
  16250. enableval=$enable_fusionsound;
  16251. else
  16252. enable_fusionsound=no
  16253. fi
  16254. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16255. fusionsound=no
  16256. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  16257. # Extract the first word of "pkg-config", so it can be a program name with args.
  16258. set dummy pkg-config; ac_word=$2
  16259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16260. $as_echo_n "checking for $ac_word... " >&6; }
  16261. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16262. $as_echo_n "(cached) " >&6
  16263. else
  16264. case $PKG_CONFIG in
  16265. [\\/]* | ?:[\\/]*)
  16266. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16267. ;;
  16268. *)
  16269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16270. for as_dir in $PATH
  16271. do
  16272. IFS=$as_save_IFS
  16273. test -z "$as_dir" && as_dir=.
  16274. for ac_exec_ext in '' $ac_executable_extensions; do
  16275. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16276. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16277. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16278. break 2
  16279. fi
  16280. done
  16281. done
  16282. IFS=$as_save_IFS
  16283. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16284. ;;
  16285. esac
  16286. fi
  16287. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16288. if test -n "$PKG_CONFIG"; then
  16289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16290. $as_echo "$PKG_CONFIG" >&6; }
  16291. else
  16292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16293. $as_echo "no" >&6; }
  16294. fi
  16295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  16296. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  16297. if test x$PKG_CONFIG != xno; then
  16298. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  16299. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  16300. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  16301. fusionsound=yes
  16302. fi
  16303. fi
  16304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  16305. $as_echo "$fusionsound" >&6; }
  16306. if test x$fusionsound = xyes; then
  16307. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16308. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16309. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16310. # Check whether --enable-fusionsound-shared was given.
  16311. if test "${enable_fusionsound_shared+set}" = set; then :
  16312. enableval=$enable_fusionsound_shared;
  16313. else
  16314. enable_fusionsound_shared=yes
  16315. fi
  16316. fusionsound_shared=no
  16317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16318. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16319. if test x$have_loadso != xyes && \
  16320. test x$enable_fusionsound_shared = xyes; then
  16321. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16322. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16323. fi
  16324. if test x$have_loadso = xyes && \
  16325. test x$enable_fusionsound_shared = xyes; then
  16326. cat >>confdefs.h <<_ACEOF
  16327. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16328. _ACEOF
  16329. fusionsound_shared=yes
  16330. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16331. else
  16332. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16333. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16334. fi
  16335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16336. $as_echo "$fusionsound_shared" >&6; }
  16337. have_audio=yes
  16338. fi
  16339. fi
  16340. }
  16341. CheckDiskAudio()
  16342. {
  16343. # Check whether --enable-diskaudio was given.
  16344. if test "${enable_diskaudio+set}" = set; then :
  16345. enableval=$enable_diskaudio;
  16346. else
  16347. enable_diskaudio=yes
  16348. fi
  16349. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16350. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16351. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16352. SUMMARY_audio="${SUMMARY_audio} disk"
  16353. fi
  16354. }
  16355. CheckDummyAudio()
  16356. {
  16357. # Check whether --enable-dummyaudio was given.
  16358. if test "${enable_dummyaudio+set}" = set; then :
  16359. enableval=$enable_dummyaudio;
  16360. else
  16361. enable_dummyaudio=yes
  16362. fi
  16363. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16364. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16365. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16366. SUMMARY_audio="${SUMMARY_audio} dummy"
  16367. fi
  16368. }
  16369. CheckLibSampleRate()
  16370. {
  16371. # Check whether --enable-libsamplerate was given.
  16372. if test "${enable_libsamplerate+set}" = set; then :
  16373. enableval=$enable_libsamplerate;
  16374. else
  16375. enable_libsamplerate=yes
  16376. fi
  16377. if test x$enable_libsamplerate = xyes; then
  16378. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16379. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16380. have_samplerate_h_hdr=yes
  16381. else
  16382. have_samplerate_h_hdr=no
  16383. fi
  16384. if test x$have_samplerate_h_hdr = xyes; then
  16385. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16386. # Check whether --enable-libsamplerate-shared was given.
  16387. if test "${enable_libsamplerate_shared+set}" = set; then :
  16388. enableval=$enable_libsamplerate_shared;
  16389. else
  16390. enable_libsamplerate_shared=yes
  16391. fi
  16392. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16393. if test x$have_loadso != xyes && \
  16394. test x$enable_libsamplerate_shared = xyes; then
  16395. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16396. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16397. fi
  16398. if test x$have_loadso = xyes && \
  16399. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16400. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16401. cat >>confdefs.h <<_ACEOF
  16402. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16403. _ACEOF
  16404. else
  16405. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16406. fi
  16407. fi
  16408. fi
  16409. }
  16410. CheckVisibilityHidden()
  16411. {
  16412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16413. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16414. have_gcc_fvisibility=no
  16415. visibility_CFLAGS="-fvisibility=hidden"
  16416. save_CFLAGS="$CFLAGS"
  16417. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16419. /* end confdefs.h. */
  16420. #if !defined(__GNUC__) || __GNUC__ < 4
  16421. #error SDL only uses visibility attributes in GCC 4 or newer
  16422. #endif
  16423. int
  16424. main ()
  16425. {
  16426. ;
  16427. return 0;
  16428. }
  16429. _ACEOF
  16430. if ac_fn_c_try_compile "$LINENO"; then :
  16431. have_gcc_fvisibility=yes
  16432. fi
  16433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16435. $as_echo "$have_gcc_fvisibility" >&6; }
  16436. CFLAGS="$save_CFLAGS"
  16437. if test x$have_gcc_fvisibility = xyes; then
  16438. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16439. fi
  16440. }
  16441. CheckStackBoundary()
  16442. {
  16443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16444. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16445. have_gcc_preferred_stack_boundary=no
  16446. save_CFLAGS="$CFLAGS"
  16447. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16449. /* end confdefs.h. */
  16450. int x = 0;
  16451. int
  16452. main ()
  16453. {
  16454. ;
  16455. return 0;
  16456. }
  16457. _ACEOF
  16458. if ac_fn_c_try_compile "$LINENO"; then :
  16459. have_gcc_preferred_stack_boundary=yes
  16460. fi
  16461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16463. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16464. CFLAGS="$save_CFLAGS"
  16465. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16466. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16467. fi
  16468. }
  16469. CheckDeclarationAfterStatement()
  16470. {
  16471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16472. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16473. have_gcc_declaration_after_statement=no
  16474. save_CFLAGS="$CFLAGS"
  16475. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16477. /* end confdefs.h. */
  16478. int x = 0;
  16479. int
  16480. main ()
  16481. {
  16482. ;
  16483. return 0;
  16484. }
  16485. _ACEOF
  16486. if ac_fn_c_try_compile "$LINENO"; then :
  16487. have_gcc_declaration_after_statement=yes
  16488. fi
  16489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16491. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16492. CFLAGS="$save_CFLAGS"
  16493. if test x$have_gcc_declaration_after_statement = xyes; then
  16494. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16495. fi
  16496. }
  16497. CheckWarnAll()
  16498. {
  16499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16500. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16501. have_gcc_Wall=no
  16502. save_CFLAGS="$CFLAGS"
  16503. CFLAGS="$save_CFLAGS -Wall"
  16504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16505. /* end confdefs.h. */
  16506. int x = 0;
  16507. int
  16508. main ()
  16509. {
  16510. ;
  16511. return 0;
  16512. }
  16513. _ACEOF
  16514. if ac_fn_c_try_compile "$LINENO"; then :
  16515. have_gcc_Wall=yes
  16516. fi
  16517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16519. $as_echo "$have_gcc_Wall" >&6; }
  16520. CFLAGS="$save_CFLAGS"
  16521. if test x$have_gcc_Wall = xyes; then
  16522. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16524. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16525. need_gcc_Wno_multichar=no
  16526. case "$host" in
  16527. *-*-haiku*)
  16528. need_gcc_Wno_multichar=yes
  16529. ;;
  16530. esac
  16531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16532. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16533. if test x$need_gcc_Wno_multichar = xyes; then
  16534. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16535. fi
  16536. fi
  16537. }
  16538. CheckWayland()
  16539. {
  16540. # Check whether --enable-video-wayland was given.
  16541. if test "${enable_video_wayland+set}" = set; then :
  16542. enableval=$enable_video_wayland;
  16543. else
  16544. enable_video_wayland=yes
  16545. fi
  16546. # Check whether --enable-video-wayland-qt-touch was given.
  16547. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16548. enableval=$enable_video_wayland_qt_touch;
  16549. else
  16550. enable_video_wayland_qt_touch=yes
  16551. fi
  16552. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16553. # Extract the first word of "pkg-config", so it can be a program name with args.
  16554. set dummy pkg-config; ac_word=$2
  16555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16556. $as_echo_n "checking for $ac_word... " >&6; }
  16557. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16558. $as_echo_n "(cached) " >&6
  16559. else
  16560. case $PKG_CONFIG in
  16561. [\\/]* | ?:[\\/]*)
  16562. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16563. ;;
  16564. *)
  16565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16566. for as_dir in $PATH
  16567. do
  16568. IFS=$as_save_IFS
  16569. test -z "$as_dir" && as_dir=.
  16570. for ac_exec_ext in '' $ac_executable_extensions; do
  16571. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16572. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16574. break 2
  16575. fi
  16576. done
  16577. done
  16578. IFS=$as_save_IFS
  16579. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16580. ;;
  16581. esac
  16582. fi
  16583. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16584. if test -n "$PKG_CONFIG"; then
  16585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16586. $as_echo "$PKG_CONFIG" >&6; }
  16587. else
  16588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16589. $as_echo "no" >&6; }
  16590. fi
  16591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16592. $as_echo_n "checking for Wayland support... " >&6; }
  16593. video_wayland=no
  16594. if test x$PKG_CONFIG != xno && \
  16595. test x$video_opengl_egl = xyes && \
  16596. test x$video_opengles_v2 = xyes; then
  16597. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16598. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16599. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16600. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16601. video_wayland=yes
  16602. fi
  16603. fi
  16604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16605. $as_echo "$video_wayland" >&6; }
  16606. if test x$video_wayland = xyes; then
  16607. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16608. if test x$enable_video_wayland_qt_touch = xyes; then
  16609. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16610. fi
  16611. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  16612. SOURCES="$SOURCES $WAYLAND_SOURCES"
  16613. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16614. # Check whether --enable-wayland-shared was given.
  16615. if test "${enable_wayland_shared+set}" = set; then :
  16616. enableval=$enable_wayland_shared;
  16617. else
  16618. enable_wayland_shared=maybe
  16619. fi
  16620. case "$host" in
  16621. *)
  16622. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16623. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16624. if test x$wayland_egl_lib = x; then
  16625. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16626. fi
  16627. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16628. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16629. ;;
  16630. esac
  16631. if test x$enable_wayland_shared = xmaybe; then
  16632. enable_wayland_shared=yes
  16633. fi
  16634. if test x$have_loadso != xyes && \
  16635. test x$enable_wayland_shared = xyes; then
  16636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16637. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16638. enable_wayland_shared=no
  16639. fi
  16640. if test x$have_loadso = xyes && \
  16641. test x$enable_wayland_shared = xyes && \
  16642. test x$wayland_client_lib != x && \
  16643. test x$wayland_egl_lib != x && \
  16644. test x$wayland_cursor_lib != x && \
  16645. test x$xkbcommon_lib != x; then
  16646. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16647. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16648. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16649. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16650. cat >>confdefs.h <<_ACEOF
  16651. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16652. _ACEOF
  16653. cat >>confdefs.h <<_ACEOF
  16654. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16655. _ACEOF
  16656. cat >>confdefs.h <<_ACEOF
  16657. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16658. _ACEOF
  16659. cat >>confdefs.h <<_ACEOF
  16660. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16661. _ACEOF
  16662. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16663. else
  16664. enable_wayland_shared=no
  16665. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16666. SUMMARY_video="${SUMMARY_video} wayland"
  16667. fi
  16668. have_video=yes
  16669. fi
  16670. fi
  16671. }
  16672. CheckNativeClient()
  16673. {
  16674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16675. /* end confdefs.h. */
  16676. #if !defined(__native_client__)
  16677. #error "NO NACL"
  16678. #endif
  16679. int
  16680. main ()
  16681. {
  16682. ;
  16683. return 0;
  16684. }
  16685. _ACEOF
  16686. if ac_fn_c_try_compile "$LINENO"; then :
  16687. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16688. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16689. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16690. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16691. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16692. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16693. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16694. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16695. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16696. SUMMARY_audio="${SUMMARY_audio} nacl"
  16697. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16698. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16699. fi
  16700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16701. }
  16702. CheckRPI()
  16703. {
  16704. # Check whether --enable-video-rpi was given.
  16705. if test "${enable_video_rpi+set}" = set; then :
  16706. enableval=$enable_video_rpi;
  16707. else
  16708. enable_video_rpi=yes
  16709. fi
  16710. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  16711. # Extract the first word of "pkg-config", so it can be a program name with args.
  16712. set dummy pkg-config; ac_word=$2
  16713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16714. $as_echo_n "checking for $ac_word... " >&6; }
  16715. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16716. $as_echo_n "(cached) " >&6
  16717. else
  16718. case $PKG_CONFIG in
  16719. [\\/]* | ?:[\\/]*)
  16720. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16721. ;;
  16722. *)
  16723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16724. for as_dir in $PATH
  16725. do
  16726. IFS=$as_save_IFS
  16727. test -z "$as_dir" && as_dir=.
  16728. for ac_exec_ext in '' $ac_executable_extensions; do
  16729. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16730. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16731. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16732. break 2
  16733. fi
  16734. done
  16735. done
  16736. IFS=$as_save_IFS
  16737. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16738. ;;
  16739. esac
  16740. fi
  16741. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16742. if test -n "$PKG_CONFIG"; then
  16743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16744. $as_echo "$PKG_CONFIG" >&6; }
  16745. else
  16746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16747. $as_echo "no" >&6; }
  16748. fi
  16749. if test x$PKG_CONFIG != xno && $PKG_CONFIG --exists bcm_host; then
  16750. RPI_CFLAGS=`$PKG_CONFIG --cflags bcm_host brcmegl`
  16751. RPI_LDFLAGS=`$PKG_CONFIG --libs bcm_host brcmegl`
  16752. elif test x$ARCH = xnetbsd; then
  16753. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  16754. RPI_LDFLAGS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  16755. else
  16756. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  16757. RPI_LDFLAGS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  16758. fi
  16759. # Save the original compiler flags and libraries
  16760. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  16761. # Add the Raspberry Pi compiler flags and libraries
  16762. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LDFLAGS"
  16763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  16764. $as_echo_n "checking for Raspberry Pi... " >&6; }
  16765. have_video_rpi=no
  16766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16767. /* end confdefs.h. */
  16768. #include <bcm_host.h>
  16769. int
  16770. main ()
  16771. {
  16772. bcm_host_init();
  16773. ;
  16774. return 0;
  16775. }
  16776. _ACEOF
  16777. if ac_fn_c_try_link "$LINENO"; then :
  16778. have_video_rpi=yes
  16779. fi
  16780. rm -f core conftest.err conftest.$ac_objext \
  16781. conftest$ac_exeext conftest.$ac_ext
  16782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  16783. $as_echo "$have_video_rpi" >&6; }
  16784. # Restore the compiler flags and libraries
  16785. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  16786. if test x$have_video_rpi = xyes; then
  16787. CFLAGS="$CFLAGS $RPI_CFLAGS"
  16788. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  16789. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  16790. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LDFLAGS"
  16791. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  16792. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  16793. SUMMARY_video="${SUMMARY_video} rpi"
  16794. fi
  16795. fi
  16796. }
  16797. CheckX11()
  16798. {
  16799. # Check whether --enable-video-x11 was given.
  16800. if test "${enable_video_x11+set}" = set; then :
  16801. enableval=$enable_video_x11;
  16802. else
  16803. enable_video_x11=yes
  16804. fi
  16805. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16806. case "$host" in
  16807. *-*-darwin*)
  16808. # This isn't necessary for X11, but fixes GLX detection
  16809. if test "x$x_includes" = xNONE && \
  16810. test "x$x_libraries" = xNONE && \
  16811. test -d /usr/X11R6/include && \
  16812. test -d /usr/X11R6/lib; then
  16813. x_includes="/usr/X11R6/include"
  16814. x_libraries="/usr/X11R6/lib"
  16815. fi
  16816. ;;
  16817. esac
  16818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16819. $as_echo_n "checking for X... " >&6; }
  16820. # Check whether --with-x was given.
  16821. if test "${with_x+set}" = set; then :
  16822. withval=$with_x;
  16823. fi
  16824. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16825. if test "x$with_x" = xno; then
  16826. # The user explicitly disabled X.
  16827. have_x=disabled
  16828. else
  16829. case $x_includes,$x_libraries in #(
  16830. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16831. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16832. $as_echo_n "(cached) " >&6
  16833. else
  16834. # One or both of the vars are not set, and there is no cached value.
  16835. ac_x_includes=no ac_x_libraries=no
  16836. rm -f -r conftest.dir
  16837. if mkdir conftest.dir; then
  16838. cd conftest.dir
  16839. cat >Imakefile <<'_ACEOF'
  16840. incroot:
  16841. @echo incroot='${INCROOT}'
  16842. usrlibdir:
  16843. @echo usrlibdir='${USRLIBDIR}'
  16844. libdir:
  16845. @echo libdir='${LIBDIR}'
  16846. _ACEOF
  16847. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16848. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16849. for ac_var in incroot usrlibdir libdir; do
  16850. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16851. done
  16852. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16853. for ac_extension in a so sl dylib la dll; do
  16854. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16855. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16856. ac_im_usrlibdir=$ac_im_libdir; break
  16857. fi
  16858. done
  16859. # Screen out bogus values from the imake configuration. They are
  16860. # bogus both because they are the default anyway, and because
  16861. # using them would break gcc on systems where it needs fixed includes.
  16862. case $ac_im_incroot in
  16863. /usr/include) ac_x_includes= ;;
  16864. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16865. esac
  16866. case $ac_im_usrlibdir in
  16867. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16868. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16869. esac
  16870. fi
  16871. cd ..
  16872. rm -f -r conftest.dir
  16873. fi
  16874. # Standard set of common directories for X headers.
  16875. # Check X11 before X11Rn because it is often a symlink to the current release.
  16876. ac_x_header_dirs='
  16877. /usr/X11/include
  16878. /usr/X11R7/include
  16879. /usr/X11R6/include
  16880. /usr/X11R5/include
  16881. /usr/X11R4/include
  16882. /usr/include/X11
  16883. /usr/include/X11R7
  16884. /usr/include/X11R6
  16885. /usr/include/X11R5
  16886. /usr/include/X11R4
  16887. /usr/local/X11/include
  16888. /usr/local/X11R7/include
  16889. /usr/local/X11R6/include
  16890. /usr/local/X11R5/include
  16891. /usr/local/X11R4/include
  16892. /usr/local/include/X11
  16893. /usr/local/include/X11R7
  16894. /usr/local/include/X11R6
  16895. /usr/local/include/X11R5
  16896. /usr/local/include/X11R4
  16897. /usr/X386/include
  16898. /usr/x386/include
  16899. /usr/XFree86/include/X11
  16900. /usr/include
  16901. /usr/local/include
  16902. /usr/unsupported/include
  16903. /usr/athena/include
  16904. /usr/local/x11r5/include
  16905. /usr/lpp/Xamples/include
  16906. /usr/openwin/include
  16907. /usr/openwin/share/include'
  16908. if test "$ac_x_includes" = no; then
  16909. # Guess where to find include files, by looking for Xlib.h.
  16910. # First, try using that file with no special directory specified.
  16911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16912. /* end confdefs.h. */
  16913. #include <X11/Xlib.h>
  16914. _ACEOF
  16915. if ac_fn_c_try_cpp "$LINENO"; then :
  16916. # We can compile using X headers with no special include directory.
  16917. ac_x_includes=
  16918. else
  16919. for ac_dir in $ac_x_header_dirs; do
  16920. if test -r "$ac_dir/X11/Xlib.h"; then
  16921. ac_x_includes=$ac_dir
  16922. break
  16923. fi
  16924. done
  16925. fi
  16926. rm -f conftest.err conftest.i conftest.$ac_ext
  16927. fi # $ac_x_includes = no
  16928. if test "$ac_x_libraries" = no; then
  16929. # Check for the libraries.
  16930. # See if we find them without any special options.
  16931. # Don't add to $LIBS permanently.
  16932. ac_save_LIBS=$LIBS
  16933. LIBS="-lX11 $LIBS"
  16934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16935. /* end confdefs.h. */
  16936. #include <X11/Xlib.h>
  16937. int
  16938. main ()
  16939. {
  16940. XrmInitialize ()
  16941. ;
  16942. return 0;
  16943. }
  16944. _ACEOF
  16945. if ac_fn_c_try_link "$LINENO"; then :
  16946. LIBS=$ac_save_LIBS
  16947. # We can link X programs with no special library path.
  16948. ac_x_libraries=
  16949. else
  16950. LIBS=$ac_save_LIBS
  16951. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16952. do
  16953. # Don't even attempt the hair of trying to link an X program!
  16954. for ac_extension in a so sl dylib la dll; do
  16955. if test -r "$ac_dir/libX11.$ac_extension"; then
  16956. ac_x_libraries=$ac_dir
  16957. break 2
  16958. fi
  16959. done
  16960. done
  16961. fi
  16962. rm -f core conftest.err conftest.$ac_objext \
  16963. conftest$ac_exeext conftest.$ac_ext
  16964. fi # $ac_x_libraries = no
  16965. case $ac_x_includes,$ac_x_libraries in #(
  16966. no,* | *,no | *\'*)
  16967. # Didn't find X, or a directory has "'" in its name.
  16968. ac_cv_have_x="have_x=no";; #(
  16969. *)
  16970. # Record where we found X for the cache.
  16971. ac_cv_have_x="have_x=yes\
  16972. ac_x_includes='$ac_x_includes'\
  16973. ac_x_libraries='$ac_x_libraries'"
  16974. esac
  16975. fi
  16976. ;; #(
  16977. *) have_x=yes;;
  16978. esac
  16979. eval "$ac_cv_have_x"
  16980. fi # $with_x != no
  16981. if test "$have_x" != yes; then
  16982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16983. $as_echo "$have_x" >&6; }
  16984. no_x=yes
  16985. else
  16986. # If each of the values was on the command line, it overrides each guess.
  16987. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16988. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16989. # Update the cache value to reflect the command line values.
  16990. ac_cv_have_x="have_x=yes\
  16991. ac_x_includes='$x_includes'\
  16992. ac_x_libraries='$x_libraries'"
  16993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16994. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16995. fi
  16996. if test "$no_x" = yes; then
  16997. # Not all programs may use this symbol, but it does not hurt to define it.
  16998. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16999. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17000. else
  17001. if test -n "$x_includes"; then
  17002. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17003. fi
  17004. # It would also be nice to do this for all -L options, not just this one.
  17005. if test -n "$x_libraries"; then
  17006. X_LIBS="$X_LIBS -L$x_libraries"
  17007. # For Solaris; some versions of Sun CC require a space after -R and
  17008. # others require no space. Words are not sufficient . . . .
  17009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17010. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17011. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17012. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17013. ac_c_werror_flag=yes
  17014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17015. /* end confdefs.h. */
  17016. int
  17017. main ()
  17018. {
  17019. ;
  17020. return 0;
  17021. }
  17022. _ACEOF
  17023. if ac_fn_c_try_link "$LINENO"; then :
  17024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17025. $as_echo "no" >&6; }
  17026. X_LIBS="$X_LIBS -R$x_libraries"
  17027. else
  17028. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17030. /* end confdefs.h. */
  17031. int
  17032. main ()
  17033. {
  17034. ;
  17035. return 0;
  17036. }
  17037. _ACEOF
  17038. if ac_fn_c_try_link "$LINENO"; then :
  17039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17040. $as_echo "yes" >&6; }
  17041. X_LIBS="$X_LIBS -R $x_libraries"
  17042. else
  17043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17044. $as_echo "neither works" >&6; }
  17045. fi
  17046. rm -f core conftest.err conftest.$ac_objext \
  17047. conftest$ac_exeext conftest.$ac_ext
  17048. fi
  17049. rm -f core conftest.err conftest.$ac_objext \
  17050. conftest$ac_exeext conftest.$ac_ext
  17051. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17052. LIBS=$ac_xsave_LIBS
  17053. fi
  17054. # Check for system-dependent libraries X programs must link with.
  17055. # Do this before checking for the system-independent R6 libraries
  17056. # (-lICE), since we may need -lsocket or whatever for X linking.
  17057. if test "$ISC" = yes; then
  17058. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17059. else
  17060. # Martyn Johnson says this is needed for Ultrix, if the X
  17061. # libraries were built with DECnet support. And Karl Berry says
  17062. # the Alpha needs dnet_stub (dnet does not exist).
  17063. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17065. /* end confdefs.h. */
  17066. /* Override any GCC internal prototype to avoid an error.
  17067. Use char because int might match the return type of a GCC
  17068. builtin and then its argument prototype would still apply. */
  17069. #ifdef __cplusplus
  17070. extern "C"
  17071. #endif
  17072. char XOpenDisplay ();
  17073. int
  17074. main ()
  17075. {
  17076. return XOpenDisplay ();
  17077. ;
  17078. return 0;
  17079. }
  17080. _ACEOF
  17081. if ac_fn_c_try_link "$LINENO"; then :
  17082. else
  17083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17084. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17085. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17086. $as_echo_n "(cached) " >&6
  17087. else
  17088. ac_check_lib_save_LIBS=$LIBS
  17089. LIBS="-ldnet $LIBS"
  17090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17091. /* end confdefs.h. */
  17092. /* Override any GCC internal prototype to avoid an error.
  17093. Use char because int might match the return type of a GCC
  17094. builtin and then its argument prototype would still apply. */
  17095. #ifdef __cplusplus
  17096. extern "C"
  17097. #endif
  17098. char dnet_ntoa ();
  17099. int
  17100. main ()
  17101. {
  17102. return dnet_ntoa ();
  17103. ;
  17104. return 0;
  17105. }
  17106. _ACEOF
  17107. if ac_fn_c_try_link "$LINENO"; then :
  17108. ac_cv_lib_dnet_dnet_ntoa=yes
  17109. else
  17110. ac_cv_lib_dnet_dnet_ntoa=no
  17111. fi
  17112. rm -f core conftest.err conftest.$ac_objext \
  17113. conftest$ac_exeext conftest.$ac_ext
  17114. LIBS=$ac_check_lib_save_LIBS
  17115. fi
  17116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17117. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17118. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17119. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17120. fi
  17121. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17123. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17124. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17125. $as_echo_n "(cached) " >&6
  17126. else
  17127. ac_check_lib_save_LIBS=$LIBS
  17128. LIBS="-ldnet_stub $LIBS"
  17129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17130. /* end confdefs.h. */
  17131. /* Override any GCC internal prototype to avoid an error.
  17132. Use char because int might match the return type of a GCC
  17133. builtin and then its argument prototype would still apply. */
  17134. #ifdef __cplusplus
  17135. extern "C"
  17136. #endif
  17137. char dnet_ntoa ();
  17138. int
  17139. main ()
  17140. {
  17141. return dnet_ntoa ();
  17142. ;
  17143. return 0;
  17144. }
  17145. _ACEOF
  17146. if ac_fn_c_try_link "$LINENO"; then :
  17147. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17148. else
  17149. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17150. fi
  17151. rm -f core conftest.err conftest.$ac_objext \
  17152. conftest$ac_exeext conftest.$ac_ext
  17153. LIBS=$ac_check_lib_save_LIBS
  17154. fi
  17155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17156. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17157. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17158. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17159. fi
  17160. fi
  17161. fi
  17162. rm -f core conftest.err conftest.$ac_objext \
  17163. conftest$ac_exeext conftest.$ac_ext
  17164. LIBS="$ac_xsave_LIBS"
  17165. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17166. # to get the SysV transport functions.
  17167. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17168. # needs -lnsl.
  17169. # The nsl library prevents programs from opening the X display
  17170. # on Irix 5.2, according to T.E. Dickey.
  17171. # The functions gethostbyname, getservbyname, and inet_addr are
  17172. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17173. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17174. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17175. fi
  17176. if test $ac_cv_func_gethostbyname = no; then
  17177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17178. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17179. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17180. $as_echo_n "(cached) " >&6
  17181. else
  17182. ac_check_lib_save_LIBS=$LIBS
  17183. LIBS="-lnsl $LIBS"
  17184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17185. /* end confdefs.h. */
  17186. /* Override any GCC internal prototype to avoid an error.
  17187. Use char because int might match the return type of a GCC
  17188. builtin and then its argument prototype would still apply. */
  17189. #ifdef __cplusplus
  17190. extern "C"
  17191. #endif
  17192. char gethostbyname ();
  17193. int
  17194. main ()
  17195. {
  17196. return gethostbyname ();
  17197. ;
  17198. return 0;
  17199. }
  17200. _ACEOF
  17201. if ac_fn_c_try_link "$LINENO"; then :
  17202. ac_cv_lib_nsl_gethostbyname=yes
  17203. else
  17204. ac_cv_lib_nsl_gethostbyname=no
  17205. fi
  17206. rm -f core conftest.err conftest.$ac_objext \
  17207. conftest$ac_exeext conftest.$ac_ext
  17208. LIBS=$ac_check_lib_save_LIBS
  17209. fi
  17210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17211. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17212. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17213. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17214. fi
  17215. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17217. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17218. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17219. $as_echo_n "(cached) " >&6
  17220. else
  17221. ac_check_lib_save_LIBS=$LIBS
  17222. LIBS="-lbsd $LIBS"
  17223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17224. /* end confdefs.h. */
  17225. /* Override any GCC internal prototype to avoid an error.
  17226. Use char because int might match the return type of a GCC
  17227. builtin and then its argument prototype would still apply. */
  17228. #ifdef __cplusplus
  17229. extern "C"
  17230. #endif
  17231. char gethostbyname ();
  17232. int
  17233. main ()
  17234. {
  17235. return gethostbyname ();
  17236. ;
  17237. return 0;
  17238. }
  17239. _ACEOF
  17240. if ac_fn_c_try_link "$LINENO"; then :
  17241. ac_cv_lib_bsd_gethostbyname=yes
  17242. else
  17243. ac_cv_lib_bsd_gethostbyname=no
  17244. fi
  17245. rm -f core conftest.err conftest.$ac_objext \
  17246. conftest$ac_exeext conftest.$ac_ext
  17247. LIBS=$ac_check_lib_save_LIBS
  17248. fi
  17249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17250. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17251. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17252. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17253. fi
  17254. fi
  17255. fi
  17256. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17257. # socket/setsockopt and other routines are undefined under SCO ODT
  17258. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17259. # on later versions), says Simon Leinen: it contains gethostby*
  17260. # variants that don't use the name server (or something). -lsocket
  17261. # must be given before -lnsl if both are needed. We assume that
  17262. # if connect needs -lnsl, so does gethostbyname.
  17263. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17264. if test "x$ac_cv_func_connect" = xyes; then :
  17265. fi
  17266. if test $ac_cv_func_connect = no; then
  17267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17268. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17269. if ${ac_cv_lib_socket_connect+:} false; then :
  17270. $as_echo_n "(cached) " >&6
  17271. else
  17272. ac_check_lib_save_LIBS=$LIBS
  17273. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17275. /* end confdefs.h. */
  17276. /* Override any GCC internal prototype to avoid an error.
  17277. Use char because int might match the return type of a GCC
  17278. builtin and then its argument prototype would still apply. */
  17279. #ifdef __cplusplus
  17280. extern "C"
  17281. #endif
  17282. char connect ();
  17283. int
  17284. main ()
  17285. {
  17286. return connect ();
  17287. ;
  17288. return 0;
  17289. }
  17290. _ACEOF
  17291. if ac_fn_c_try_link "$LINENO"; then :
  17292. ac_cv_lib_socket_connect=yes
  17293. else
  17294. ac_cv_lib_socket_connect=no
  17295. fi
  17296. rm -f core conftest.err conftest.$ac_objext \
  17297. conftest$ac_exeext conftest.$ac_ext
  17298. LIBS=$ac_check_lib_save_LIBS
  17299. fi
  17300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17301. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17302. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17303. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17304. fi
  17305. fi
  17306. # Guillermo Gomez says -lposix is necessary on A/UX.
  17307. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17308. if test "x$ac_cv_func_remove" = xyes; then :
  17309. fi
  17310. if test $ac_cv_func_remove = no; then
  17311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17312. $as_echo_n "checking for remove in -lposix... " >&6; }
  17313. if ${ac_cv_lib_posix_remove+:} false; then :
  17314. $as_echo_n "(cached) " >&6
  17315. else
  17316. ac_check_lib_save_LIBS=$LIBS
  17317. LIBS="-lposix $LIBS"
  17318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17319. /* end confdefs.h. */
  17320. /* Override any GCC internal prototype to avoid an error.
  17321. Use char because int might match the return type of a GCC
  17322. builtin and then its argument prototype would still apply. */
  17323. #ifdef __cplusplus
  17324. extern "C"
  17325. #endif
  17326. char remove ();
  17327. int
  17328. main ()
  17329. {
  17330. return remove ();
  17331. ;
  17332. return 0;
  17333. }
  17334. _ACEOF
  17335. if ac_fn_c_try_link "$LINENO"; then :
  17336. ac_cv_lib_posix_remove=yes
  17337. else
  17338. ac_cv_lib_posix_remove=no
  17339. fi
  17340. rm -f core conftest.err conftest.$ac_objext \
  17341. conftest$ac_exeext conftest.$ac_ext
  17342. LIBS=$ac_check_lib_save_LIBS
  17343. fi
  17344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17345. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17346. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17347. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17348. fi
  17349. fi
  17350. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17351. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17352. if test "x$ac_cv_func_shmat" = xyes; then :
  17353. fi
  17354. if test $ac_cv_func_shmat = no; then
  17355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17356. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17357. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17358. $as_echo_n "(cached) " >&6
  17359. else
  17360. ac_check_lib_save_LIBS=$LIBS
  17361. LIBS="-lipc $LIBS"
  17362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17363. /* end confdefs.h. */
  17364. /* Override any GCC internal prototype to avoid an error.
  17365. Use char because int might match the return type of a GCC
  17366. builtin and then its argument prototype would still apply. */
  17367. #ifdef __cplusplus
  17368. extern "C"
  17369. #endif
  17370. char shmat ();
  17371. int
  17372. main ()
  17373. {
  17374. return shmat ();
  17375. ;
  17376. return 0;
  17377. }
  17378. _ACEOF
  17379. if ac_fn_c_try_link "$LINENO"; then :
  17380. ac_cv_lib_ipc_shmat=yes
  17381. else
  17382. ac_cv_lib_ipc_shmat=no
  17383. fi
  17384. rm -f core conftest.err conftest.$ac_objext \
  17385. conftest$ac_exeext conftest.$ac_ext
  17386. LIBS=$ac_check_lib_save_LIBS
  17387. fi
  17388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17389. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17390. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17391. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17392. fi
  17393. fi
  17394. fi
  17395. # Check for libraries that X11R6 Xt/Xaw programs need.
  17396. ac_save_LDFLAGS=$LDFLAGS
  17397. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17398. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17399. # check for ICE first), but we must link in the order -lSM -lICE or
  17400. # we get undefined symbols. So assume we have SM if we have ICE.
  17401. # These have to be linked with before -lX11, unlike the other
  17402. # libraries we check for below, so use a different variable.
  17403. # John Interrante, Karl Berry
  17404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17405. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17406. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17407. $as_echo_n "(cached) " >&6
  17408. else
  17409. ac_check_lib_save_LIBS=$LIBS
  17410. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17412. /* end confdefs.h. */
  17413. /* Override any GCC internal prototype to avoid an error.
  17414. Use char because int might match the return type of a GCC
  17415. builtin and then its argument prototype would still apply. */
  17416. #ifdef __cplusplus
  17417. extern "C"
  17418. #endif
  17419. char IceConnectionNumber ();
  17420. int
  17421. main ()
  17422. {
  17423. return IceConnectionNumber ();
  17424. ;
  17425. return 0;
  17426. }
  17427. _ACEOF
  17428. if ac_fn_c_try_link "$LINENO"; then :
  17429. ac_cv_lib_ICE_IceConnectionNumber=yes
  17430. else
  17431. ac_cv_lib_ICE_IceConnectionNumber=no
  17432. fi
  17433. rm -f core conftest.err conftest.$ac_objext \
  17434. conftest$ac_exeext conftest.$ac_ext
  17435. LIBS=$ac_check_lib_save_LIBS
  17436. fi
  17437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17438. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17439. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17440. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17441. fi
  17442. LDFLAGS=$ac_save_LDFLAGS
  17443. fi
  17444. if test x$have_x = xyes; then
  17445. # Check whether --enable-x11-shared was given.
  17446. if test "${enable_x11_shared+set}" = set; then :
  17447. enableval=$enable_x11_shared;
  17448. else
  17449. enable_x11_shared=maybe
  17450. fi
  17451. case "$host" in
  17452. *-*-darwin*)
  17453. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17454. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17455. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17456. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17457. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17458. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17459. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17460. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17461. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17462. ;;
  17463. *-*-openbsd*)
  17464. x11_lib='libX11.so'
  17465. x11ext_lib='libXext.so'
  17466. xcursor_lib='libXcursor.so'
  17467. xinerama_lib='libXinerama.so'
  17468. xinput_lib='libXi.so'
  17469. xrandr_lib='libXrandr.so'
  17470. xrender_lib='libXrender.so'
  17471. xss_lib='libXss.so'
  17472. xvidmode_lib='libXxf86vm.so'
  17473. ;;
  17474. *)
  17475. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17476. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17477. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17478. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17479. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17480. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17481. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17482. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17483. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17484. ;;
  17485. esac
  17486. if test x$ac_cv_func_shmat != xyes; then
  17487. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17488. fi
  17489. CFLAGS="$CFLAGS $X_CFLAGS"
  17490. LDFLAGS="$LDFLAGS $X_LIBS"
  17491. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17492. #include <X11/Xproto.h>
  17493. "
  17494. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17495. have_xext_h_hdr=yes
  17496. else
  17497. have_xext_h_hdr=no
  17498. fi
  17499. if test x$have_xext_h_hdr != xyes; then
  17500. as_fn_error $? "
  17501. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17502. " "$LINENO" 5
  17503. fi
  17504. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17505. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17506. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17507. # Needed so SDL applications can include SDL_syswm.h
  17508. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17509. if test x$enable_x11_shared = xmaybe; then
  17510. enable_x11_shared=yes
  17511. fi
  17512. if test x$have_loadso != xyes && \
  17513. test x$enable_x11_shared = xyes; then
  17514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17515. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17516. enable_x11_shared=no
  17517. fi
  17518. if test x$have_loadso = xyes && \
  17519. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17520. echo "-- dynamic libX11 -> $x11_lib"
  17521. echo "-- dynamic libX11ext -> $x11ext_lib"
  17522. cat >>confdefs.h <<_ACEOF
  17523. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17524. _ACEOF
  17525. cat >>confdefs.h <<_ACEOF
  17526. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17527. _ACEOF
  17528. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17529. else
  17530. enable_x11_shared=no
  17531. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17532. SUMMARY_video="${SUMMARY_video} x11"
  17533. fi
  17534. have_video=yes
  17535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17536. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17537. have_const_param_XextAddDisplay=no
  17538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17539. /* end confdefs.h. */
  17540. #include <X11/Xlib.h>
  17541. #include <X11/Xproto.h>
  17542. #include <X11/extensions/Xext.h>
  17543. #include <X11/extensions/extutil.h>
  17544. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17545. int
  17546. main ()
  17547. {
  17548. ;
  17549. return 0;
  17550. }
  17551. _ACEOF
  17552. if ac_fn_c_try_compile "$LINENO"; then :
  17553. have_const_param_XextAddDisplay=yes
  17554. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17555. fi
  17556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17558. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17560. $as_echo_n "checking for XGenericEvent... " >&6; }
  17561. have_XGenericEvent=no
  17562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17563. /* end confdefs.h. */
  17564. #include <X11/Xlib.h>
  17565. int
  17566. main ()
  17567. {
  17568. Display *display;
  17569. XEvent event;
  17570. XGenericEventCookie *cookie = &event.xcookie;
  17571. XNextEvent(display, &event);
  17572. XGetEventData(display, cookie);
  17573. XFreeEventData(display, cookie);
  17574. ;
  17575. return 0;
  17576. }
  17577. _ACEOF
  17578. if ac_fn_c_try_compile "$LINENO"; then :
  17579. have_XGenericEvent=yes
  17580. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17581. fi
  17582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17584. $as_echo "$have_XGenericEvent" >&6; }
  17585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17586. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17587. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17588. $as_echo_n "(cached) " >&6
  17589. else
  17590. ac_check_lib_save_LIBS=$LIBS
  17591. LIBS="-lX11 $LIBS"
  17592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17593. /* end confdefs.h. */
  17594. /* Override any GCC internal prototype to avoid an error.
  17595. Use char because int might match the return type of a GCC
  17596. builtin and then its argument prototype would still apply. */
  17597. #ifdef __cplusplus
  17598. extern "C"
  17599. #endif
  17600. char XkbKeycodeToKeysym ();
  17601. int
  17602. main ()
  17603. {
  17604. return XkbKeycodeToKeysym ();
  17605. ;
  17606. return 0;
  17607. }
  17608. _ACEOF
  17609. if ac_fn_c_try_link "$LINENO"; then :
  17610. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17611. else
  17612. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17613. fi
  17614. rm -f core conftest.err conftest.$ac_objext \
  17615. conftest$ac_exeext conftest.$ac_ext
  17616. LIBS=$ac_check_lib_save_LIBS
  17617. fi
  17618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17619. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17620. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17621. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17622. fi
  17623. # Check whether --enable-video-x11-xcursor was given.
  17624. if test "${enable_video_x11_xcursor+set}" = set; then :
  17625. enableval=$enable_video_x11_xcursor;
  17626. else
  17627. enable_video_x11_xcursor=yes
  17628. fi
  17629. if test x$enable_video_x11_xcursor = xyes; then
  17630. definitely_enable_video_x11_xcursor=no
  17631. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17632. "
  17633. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17634. have_xcursor_h_hdr=yes
  17635. else
  17636. have_xcursor_h_hdr=no
  17637. fi
  17638. if test x$have_xcursor_h_hdr = xyes; then
  17639. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17640. echo "-- dynamic libXcursor -> $xcursor_lib"
  17641. cat >>confdefs.h <<_ACEOF
  17642. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17643. _ACEOF
  17644. definitely_enable_video_x11_xcursor=yes
  17645. else
  17646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17647. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17648. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17649. $as_echo_n "(cached) " >&6
  17650. else
  17651. ac_check_lib_save_LIBS=$LIBS
  17652. LIBS="-lXcursor $LIBS"
  17653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17654. /* end confdefs.h. */
  17655. /* Override any GCC internal prototype to avoid an error.
  17656. Use char because int might match the return type of a GCC
  17657. builtin and then its argument prototype would still apply. */
  17658. #ifdef __cplusplus
  17659. extern "C"
  17660. #endif
  17661. char XcursorImageCreate ();
  17662. int
  17663. main ()
  17664. {
  17665. return XcursorImageCreate ();
  17666. ;
  17667. return 0;
  17668. }
  17669. _ACEOF
  17670. if ac_fn_c_try_link "$LINENO"; then :
  17671. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17672. else
  17673. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17674. fi
  17675. rm -f core conftest.err conftest.$ac_objext \
  17676. conftest$ac_exeext conftest.$ac_ext
  17677. LIBS=$ac_check_lib_save_LIBS
  17678. fi
  17679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17680. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17681. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17682. have_xcursor_lib=yes
  17683. fi
  17684. if test x$have_xcursor_lib = xyes ; then
  17685. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17686. definitely_enable_video_x11_xcursor=yes
  17687. fi
  17688. fi
  17689. fi
  17690. fi
  17691. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17692. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17693. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17694. fi
  17695. # Check whether --enable-video-x11-xdbe was given.
  17696. if test "${enable_video_x11_xdbe+set}" = set; then :
  17697. enableval=$enable_video_x11_xdbe;
  17698. else
  17699. enable_video_x11_xdbe=yes
  17700. fi
  17701. if test x$enable_video_x11_xdbe = xyes; then
  17702. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17703. "
  17704. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17705. have_dbe_h_hdr=yes
  17706. else
  17707. have_dbe_h_hdr=no
  17708. fi
  17709. if test x$have_dbe_h_hdr = xyes; then
  17710. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17711. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17712. fi
  17713. fi
  17714. # Check whether --enable-video-x11-xinerama was given.
  17715. if test "${enable_video_x11_xinerama+set}" = set; then :
  17716. enableval=$enable_video_x11_xinerama;
  17717. else
  17718. enable_video_x11_xinerama=yes
  17719. fi
  17720. if test x$enable_video_x11_xinerama = xyes; then
  17721. definitely_enable_video_x11_xinerama=no
  17722. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17723. "
  17724. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17725. have_xinerama_h_hdr=yes
  17726. else
  17727. have_xinerama_h_hdr=no
  17728. fi
  17729. if test x$have_xinerama_h_hdr = xyes; then
  17730. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17731. echo "-- dynamic libXinerama -> $xinerama_lib"
  17732. cat >>confdefs.h <<_ACEOF
  17733. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17734. _ACEOF
  17735. definitely_enable_video_x11_xinerama=yes
  17736. else
  17737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17738. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17739. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17740. $as_echo_n "(cached) " >&6
  17741. else
  17742. ac_check_lib_save_LIBS=$LIBS
  17743. LIBS="-lXinerama $LIBS"
  17744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17745. /* end confdefs.h. */
  17746. /* Override any GCC internal prototype to avoid an error.
  17747. Use char because int might match the return type of a GCC
  17748. builtin and then its argument prototype would still apply. */
  17749. #ifdef __cplusplus
  17750. extern "C"
  17751. #endif
  17752. char XineramaQueryExtension ();
  17753. int
  17754. main ()
  17755. {
  17756. return XineramaQueryExtension ();
  17757. ;
  17758. return 0;
  17759. }
  17760. _ACEOF
  17761. if ac_fn_c_try_link "$LINENO"; then :
  17762. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17763. else
  17764. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17765. fi
  17766. rm -f core conftest.err conftest.$ac_objext \
  17767. conftest$ac_exeext conftest.$ac_ext
  17768. LIBS=$ac_check_lib_save_LIBS
  17769. fi
  17770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17771. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17772. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17773. have_xinerama_lib=yes
  17774. fi
  17775. if test x$have_xinerama_lib = xyes ; then
  17776. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17777. definitely_enable_video_x11_xinerama=yes
  17778. fi
  17779. fi
  17780. fi
  17781. fi
  17782. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17783. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17784. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17785. fi
  17786. # Check whether --enable-video-x11-xinput was given.
  17787. if test "${enable_video_x11_xinput+set}" = set; then :
  17788. enableval=$enable_video_x11_xinput;
  17789. else
  17790. enable_video_x11_xinput=yes
  17791. fi
  17792. if test x$enable_video_x11_xinput = xyes; then
  17793. definitely_enable_video_x11_xinput=no
  17794. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17795. "
  17796. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17797. have_xinput_h_hdr=yes
  17798. else
  17799. have_xinput_h_hdr=no
  17800. fi
  17801. if test x$have_xinput_h_hdr = xyes; then
  17802. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17803. echo "-- dynamic libXi -> $xinput_lib"
  17804. cat >>confdefs.h <<_ACEOF
  17805. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17806. _ACEOF
  17807. definitely_enable_video_x11_xinput=yes
  17808. else
  17809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17810. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17811. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17812. $as_echo_n "(cached) " >&6
  17813. else
  17814. ac_check_lib_save_LIBS=$LIBS
  17815. LIBS="-lXi $LIBS"
  17816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17817. /* end confdefs.h. */
  17818. /* Override any GCC internal prototype to avoid an error.
  17819. Use char because int might match the return type of a GCC
  17820. builtin and then its argument prototype would still apply. */
  17821. #ifdef __cplusplus
  17822. extern "C"
  17823. #endif
  17824. char XOpenDevice ();
  17825. int
  17826. main ()
  17827. {
  17828. return XOpenDevice ();
  17829. ;
  17830. return 0;
  17831. }
  17832. _ACEOF
  17833. if ac_fn_c_try_link "$LINENO"; then :
  17834. ac_cv_lib_Xi_XOpenDevice=yes
  17835. else
  17836. ac_cv_lib_Xi_XOpenDevice=no
  17837. fi
  17838. rm -f core conftest.err conftest.$ac_objext \
  17839. conftest$ac_exeext conftest.$ac_ext
  17840. LIBS=$ac_check_lib_save_LIBS
  17841. fi
  17842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17843. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17844. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17845. have_xinput_lib=yes
  17846. fi
  17847. if test x$have_xinput_lib = xyes ; then
  17848. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17849. definitely_enable_video_x11_xinput=yes
  17850. fi
  17851. fi
  17852. fi
  17853. fi
  17854. if test x$definitely_enable_video_x11_xinput = xyes; then
  17855. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17856. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17858. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17859. have_xinput2_multitouch=no
  17860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17861. /* end confdefs.h. */
  17862. #include <X11/Xlib.h>
  17863. #include <X11/Xproto.h>
  17864. #include <X11/extensions/XInput2.h>
  17865. int
  17866. main ()
  17867. {
  17868. int event_type = XI_TouchBegin;
  17869. XITouchClassInfo *t;
  17870. ;
  17871. return 0;
  17872. }
  17873. _ACEOF
  17874. if ac_fn_c_try_compile "$LINENO"; then :
  17875. have_xinput2_multitouch=yes
  17876. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17877. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17878. fi
  17879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17881. $as_echo "$have_xinput2_multitouch" >&6; }
  17882. fi
  17883. # Check whether --enable-video-x11-xrandr was given.
  17884. if test "${enable_video_x11_xrandr+set}" = set; then :
  17885. enableval=$enable_video_x11_xrandr;
  17886. else
  17887. enable_video_x11_xrandr=yes
  17888. fi
  17889. if test x$enable_video_x11_xrandr = xyes; then
  17890. definitely_enable_video_x11_xrandr=no
  17891. have_xrandr_h_hdr=no
  17892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17893. /* end confdefs.h. */
  17894. #include <X11/Xlib.h>
  17895. #include <X11/extensions/Xrandr.h>
  17896. int
  17897. main ()
  17898. {
  17899. XRRScreenResources *res = NULL;
  17900. ;
  17901. return 0;
  17902. }
  17903. _ACEOF
  17904. if ac_fn_c_try_compile "$LINENO"; then :
  17905. have_xrandr_h_hdr=yes
  17906. fi
  17907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17908. if test x$have_xrandr_h_hdr = xyes; then
  17909. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17910. echo "-- dynamic libXrandr -> $xrandr_lib"
  17911. cat >>confdefs.h <<_ACEOF
  17912. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17913. _ACEOF
  17914. definitely_enable_video_x11_xrandr=yes
  17915. else
  17916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17917. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17918. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17919. $as_echo_n "(cached) " >&6
  17920. else
  17921. ac_check_lib_save_LIBS=$LIBS
  17922. LIBS="-lXrandr $LIBS"
  17923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17924. /* end confdefs.h. */
  17925. /* Override any GCC internal prototype to avoid an error.
  17926. Use char because int might match the return type of a GCC
  17927. builtin and then its argument prototype would still apply. */
  17928. #ifdef __cplusplus
  17929. extern "C"
  17930. #endif
  17931. char XRRQueryExtension ();
  17932. int
  17933. main ()
  17934. {
  17935. return XRRQueryExtension ();
  17936. ;
  17937. return 0;
  17938. }
  17939. _ACEOF
  17940. if ac_fn_c_try_link "$LINENO"; then :
  17941. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17942. else
  17943. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17944. fi
  17945. rm -f core conftest.err conftest.$ac_objext \
  17946. conftest$ac_exeext conftest.$ac_ext
  17947. LIBS=$ac_check_lib_save_LIBS
  17948. fi
  17949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17950. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17951. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17952. have_xrandr_lib=yes
  17953. fi
  17954. if test x$have_xrandr_lib = xyes ; then
  17955. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17956. definitely_enable_video_x11_xrandr=yes
  17957. fi
  17958. fi
  17959. fi
  17960. fi
  17961. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17962. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17963. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17964. fi
  17965. # Check whether --enable-video-x11-scrnsaver was given.
  17966. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17967. enableval=$enable_video_x11_scrnsaver;
  17968. else
  17969. enable_video_x11_scrnsaver=yes
  17970. fi
  17971. if test x$enable_video_x11_scrnsaver = xyes; then
  17972. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17973. "
  17974. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17975. have_scrnsaver_h_hdr=yes
  17976. else
  17977. have_scrnsaver_h_hdr=no
  17978. fi
  17979. if test x$have_scrnsaver_h_hdr = xyes; then
  17980. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17981. echo "-- dynamic libXss -> $xss_lib"
  17982. cat >>confdefs.h <<_ACEOF
  17983. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17984. _ACEOF
  17985. definitely_enable_video_x11_scrnsaver=yes
  17986. else
  17987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17988. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17989. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17990. $as_echo_n "(cached) " >&6
  17991. else
  17992. ac_check_lib_save_LIBS=$LIBS
  17993. LIBS="-lXss $LIBS"
  17994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17995. /* end confdefs.h. */
  17996. /* Override any GCC internal prototype to avoid an error.
  17997. Use char because int might match the return type of a GCC
  17998. builtin and then its argument prototype would still apply. */
  17999. #ifdef __cplusplus
  18000. extern "C"
  18001. #endif
  18002. char XScreenSaverSuspend ();
  18003. int
  18004. main ()
  18005. {
  18006. return XScreenSaverSuspend ();
  18007. ;
  18008. return 0;
  18009. }
  18010. _ACEOF
  18011. if ac_fn_c_try_link "$LINENO"; then :
  18012. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18013. else
  18014. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18015. fi
  18016. rm -f core conftest.err conftest.$ac_objext \
  18017. conftest$ac_exeext conftest.$ac_ext
  18018. LIBS=$ac_check_lib_save_LIBS
  18019. fi
  18020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18021. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18022. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18023. have_xss_lib=yes
  18024. fi
  18025. if test x$have_xss_lib = xyes ; then
  18026. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18027. definitely_enable_video_x11_scrnsaver=yes
  18028. fi
  18029. fi
  18030. fi
  18031. fi
  18032. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18033. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18034. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18035. fi
  18036. # Check whether --enable-video-x11-xshape was given.
  18037. if test "${enable_video_x11_xshape+set}" = set; then :
  18038. enableval=$enable_video_x11_xshape;
  18039. else
  18040. enable_video_x11_xshape=yes
  18041. fi
  18042. if test x$enable_video_x11_xshape = xyes; then
  18043. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18044. "
  18045. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18046. have_shape_h_hdr=yes
  18047. else
  18048. have_shape_h_hdr=no
  18049. fi
  18050. if test x$have_shape_h_hdr = xyes; then
  18051. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18052. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18053. fi
  18054. fi
  18055. # Check whether --enable-video-x11-vm was given.
  18056. if test "${enable_video_x11_vm+set}" = set; then :
  18057. enableval=$enable_video_x11_vm;
  18058. else
  18059. enable_video_x11_vm=yes
  18060. fi
  18061. if test x$enable_video_x11_vm = xyes; then
  18062. definitely_enable_video_x11_vm=no
  18063. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18064. "
  18065. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18066. have_vm_h_hdr=yes
  18067. else
  18068. have_vm_h_hdr=no
  18069. fi
  18070. if test x$have_vm_h_hdr = xyes; then
  18071. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18072. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18073. cat >>confdefs.h <<_ACEOF
  18074. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18075. _ACEOF
  18076. definitely_enable_video_x11_vm=yes
  18077. else
  18078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18079. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18080. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18081. $as_echo_n "(cached) " >&6
  18082. else
  18083. ac_check_lib_save_LIBS=$LIBS
  18084. LIBS="-lXxf86vm $LIBS"
  18085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18086. /* end confdefs.h. */
  18087. /* Override any GCC internal prototype to avoid an error.
  18088. Use char because int might match the return type of a GCC
  18089. builtin and then its argument prototype would still apply. */
  18090. #ifdef __cplusplus
  18091. extern "C"
  18092. #endif
  18093. char XF86VidModeQueryVersion ();
  18094. int
  18095. main ()
  18096. {
  18097. return XF86VidModeQueryVersion ();
  18098. ;
  18099. return 0;
  18100. }
  18101. _ACEOF
  18102. if ac_fn_c_try_link "$LINENO"; then :
  18103. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18104. else
  18105. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18106. fi
  18107. rm -f core conftest.err conftest.$ac_objext \
  18108. conftest$ac_exeext conftest.$ac_ext
  18109. LIBS=$ac_check_lib_save_LIBS
  18110. fi
  18111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18112. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18113. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18114. have_vm_lib=yes
  18115. fi
  18116. if test x$have_vm_lib = xyes ; then
  18117. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18118. definitely_enable_video_x11_vm=yes
  18119. fi
  18120. fi
  18121. fi
  18122. fi
  18123. if test x$definitely_enable_video_x11_vm = xyes; then
  18124. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18125. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18126. fi
  18127. fi
  18128. fi
  18129. }
  18130. CheckVivanteVideo()
  18131. {
  18132. # Check whether --enable-video-vivante was given.
  18133. if test "${enable_video_vivante+set}" = set; then :
  18134. enableval=$enable_video_vivante;
  18135. else
  18136. enable_video_vivante=yes
  18137. fi
  18138. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18140. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18141. have_vivante_vdk=no
  18142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18143. /* end confdefs.h. */
  18144. #define LINUX
  18145. #define EGL_API_FB
  18146. #include <gc_vdk.h>
  18147. int
  18148. main ()
  18149. {
  18150. ;
  18151. return 0;
  18152. }
  18153. _ACEOF
  18154. if ac_fn_c_try_compile "$LINENO"; then :
  18155. have_vivante_vdk=yes
  18156. fi
  18157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18159. $as_echo "$have_vivante_vdk" >&6; }
  18160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18161. $as_echo_n "checking for Vivante FB API... " >&6; }
  18162. have_vivante_egl=no
  18163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18164. /* end confdefs.h. */
  18165. #define LINUX
  18166. #define EGL_API_FB
  18167. #include <EGL/eglvivante.h>
  18168. int
  18169. main ()
  18170. {
  18171. ;
  18172. return 0;
  18173. }
  18174. _ACEOF
  18175. if ac_fn_c_try_compile "$LINENO"; then :
  18176. have_vivante_egl=yes
  18177. fi
  18178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18180. $as_echo "$have_vivante_egl" >&6; }
  18181. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18182. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18183. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18184. if test x$have_vivante_vdk = xyes; then
  18185. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18186. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18187. fi
  18188. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18189. SUMMARY_video="${SUMMARY_video} vivante"
  18190. have_video=yes
  18191. fi
  18192. fi
  18193. }
  18194. CheckHaikuVideo()
  18195. {
  18196. if test x$enable_video = xyes; then
  18197. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18198. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18199. have_video=yes
  18200. SUMMARY_video="${SUMMARY_video} haiku"
  18201. fi
  18202. }
  18203. CheckCOCOA()
  18204. {
  18205. # Check whether --enable-video-cocoa was given.
  18206. if test "${enable_video_cocoa+set}" = set; then :
  18207. enableval=$enable_video_cocoa;
  18208. else
  18209. enable_video_cocoa=yes
  18210. fi
  18211. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18212. save_CFLAGS="$CFLAGS"
  18213. CFLAGS="$CFLAGS -x objective-c"
  18214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18215. $as_echo_n "checking for Cocoa framework... " >&6; }
  18216. have_cocoa=no
  18217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18218. /* end confdefs.h. */
  18219. #import <Cocoa/Cocoa.h>
  18220. int
  18221. main ()
  18222. {
  18223. ;
  18224. return 0;
  18225. }
  18226. _ACEOF
  18227. if ac_fn_c_try_compile "$LINENO"; then :
  18228. have_cocoa=yes
  18229. fi
  18230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18232. $as_echo "$have_cocoa" >&6; }
  18233. CFLAGS="$save_CFLAGS"
  18234. if test x$have_cocoa = xyes; then
  18235. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18236. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18237. SUMMARY_video="${SUMMARY_video} cocoa"
  18238. have_video=yes
  18239. fi
  18240. fi
  18241. }
  18242. CheckMETAL()
  18243. {
  18244. # Check whether --enable-render-metal was given.
  18245. if test "${enable_render_metal+set}" = set; then :
  18246. enableval=$enable_render_metal;
  18247. else
  18248. enable_render_metal=yes
  18249. fi
  18250. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18251. save_CFLAGS="$CFLAGS"
  18252. CFLAGS="$CFLAGS -x objective-c"
  18253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18254. $as_echo_n "checking for Metal framework... " >&6; }
  18255. have_metal=no
  18256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18257. /* end confdefs.h. */
  18258. #import <Cocoa/Cocoa.h>
  18259. #import <Metal/Metal.h>
  18260. #import <QuartzCore/CAMetalLayer.h>
  18261. #if !TARGET_CPU_X86_64
  18262. #error Metal doesn't work on this configuration
  18263. #endif
  18264. int
  18265. main ()
  18266. {
  18267. ;
  18268. return 0;
  18269. }
  18270. _ACEOF
  18271. if ac_fn_c_try_compile "$LINENO"; then :
  18272. have_metal=yes
  18273. fi
  18274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18275. CFLAGS="$save_CFLAGS"
  18276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18277. $as_echo "$have_metal" >&6; }
  18278. if test x$have_metal = xyes; then
  18279. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18280. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18281. SUMMARY_video="${SUMMARY_video} metal"
  18282. else
  18283. enable_render_metal=no
  18284. fi
  18285. fi
  18286. }
  18287. CheckDirectFB()
  18288. {
  18289. # Check whether --enable-video-directfb was given.
  18290. if test "${enable_video_directfb+set}" = set; then :
  18291. enableval=$enable_video_directfb;
  18292. else
  18293. enable_video_directfb=no
  18294. fi
  18295. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18296. video_directfb=no
  18297. DIRECTFB_REQUIRED_VERSION=1.0.0
  18298. for ac_prog in directfb-config
  18299. do
  18300. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18301. set dummy $ac_prog; ac_word=$2
  18302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18303. $as_echo_n "checking for $ac_word... " >&6; }
  18304. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  18305. $as_echo_n "(cached) " >&6
  18306. else
  18307. case $DIRECTFBCONFIG in
  18308. [\\/]* | ?:[\\/]*)
  18309. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  18310. ;;
  18311. *)
  18312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18313. as_dummy="$prefix/bin:$PATH"
  18314. for as_dir in $as_dummy
  18315. do
  18316. IFS=$as_save_IFS
  18317. test -z "$as_dir" && as_dir=.
  18318. for ac_exec_ext in '' $ac_executable_extensions; do
  18319. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18320. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18321. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18322. break 2
  18323. fi
  18324. done
  18325. done
  18326. IFS=$as_save_IFS
  18327. ;;
  18328. esac
  18329. fi
  18330. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  18331. if test -n "$DIRECTFBCONFIG"; then
  18332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  18333. $as_echo "$DIRECTFBCONFIG" >&6; }
  18334. else
  18335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18336. $as_echo "no" >&6; }
  18337. fi
  18338. test -n "$DIRECTFBCONFIG" && break
  18339. done
  18340. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  18341. if test x$DIRECTFBCONFIG = xno; then
  18342. # Extract the first word of "pkg-config", so it can be a program name with args.
  18343. set dummy pkg-config; ac_word=$2
  18344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18345. $as_echo_n "checking for $ac_word... " >&6; }
  18346. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18347. $as_echo_n "(cached) " >&6
  18348. else
  18349. case $PKG_CONFIG in
  18350. [\\/]* | ?:[\\/]*)
  18351. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18352. ;;
  18353. *)
  18354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18355. for as_dir in $PATH
  18356. do
  18357. IFS=$as_save_IFS
  18358. test -z "$as_dir" && as_dir=.
  18359. for ac_exec_ext in '' $ac_executable_extensions; do
  18360. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18361. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18362. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18363. break 2
  18364. fi
  18365. done
  18366. done
  18367. IFS=$as_save_IFS
  18368. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18369. ;;
  18370. esac
  18371. fi
  18372. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18373. if test -n "$PKG_CONFIG"; then
  18374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18375. $as_echo "$PKG_CONFIG" >&6; }
  18376. else
  18377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18378. $as_echo "no" >&6; }
  18379. fi
  18380. if test x$PKG_CONFIG != xno; then
  18381. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  18382. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  18383. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  18384. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  18385. video_directfb=yes
  18386. fi
  18387. fi
  18388. else
  18389. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  18390. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18391. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  18392. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18393. if test $HAVE_VERSION -ge $NEED_VERSION; then
  18394. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  18395. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  18396. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  18397. video_directfb=yes
  18398. fi
  18399. fi
  18400. if test x$video_directfb = xyes; then
  18401. # SuSE 11.1 installs directfb-config without directfb-devel
  18402. save_CPPFLAGS="$CPPFLAGS"
  18403. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18404. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18405. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18406. have_directfb_hdr=yes
  18407. else
  18408. have_directfb_hdr=no
  18409. fi
  18410. CPPFLAGS="$save_CPPFLAGS"
  18411. video_directfb=$have_directfb_hdr
  18412. fi
  18413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  18414. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  18415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  18416. $as_echo "$video_directfb" >&6; }
  18417. if test x$video_directfb = xyes; then
  18418. # Check whether --enable-directfb-shared was given.
  18419. if test "${enable_directfb_shared+set}" = set; then :
  18420. enableval=$enable_directfb_shared;
  18421. else
  18422. enable_directfb_shared=yes
  18423. fi
  18424. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18425. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18426. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18427. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18429. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18430. directfb_shared=no
  18431. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18432. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18433. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18434. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18435. if test x$have_loadso != xyes && \
  18436. test x$enable_directfb_shared = xyes; then
  18437. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18438. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18439. fi
  18440. if test x$have_loadso = xyes && \
  18441. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18442. directfb_shared=yes
  18443. echo "-- $directfb_lib_spec -> $directfb_lib"
  18444. cat >>confdefs.h <<_ACEOF
  18445. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18446. _ACEOF
  18447. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18448. else
  18449. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18450. SUMMARY_video="${SUMMARY_video} directfb"
  18451. fi
  18452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18453. $as_echo "$directfb_shared" >&6; }
  18454. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18455. have_video=yes
  18456. fi
  18457. fi
  18458. }
  18459. CheckKMSDRM()
  18460. {
  18461. # Check whether --enable-video-kmsdrm was given.
  18462. if test "${enable_video_kmsdrm+set}" = set; then :
  18463. enableval=$enable_video_kmsdrm;
  18464. else
  18465. enable_video_kmsdrm=no
  18466. fi
  18467. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18468. video_kmsdrm=no
  18469. libdrm_avail=no
  18470. libgbm_avail=no
  18471. LIBDRM_REQUIRED_VERSION=2.4.46
  18472. LIBGBM_REQUIRED_VERSION=9.0.0
  18473. # Extract the first word of "pkg-config", so it can be a program name with args.
  18474. set dummy pkg-config; ac_word=$2
  18475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18476. $as_echo_n "checking for $ac_word... " >&6; }
  18477. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18478. $as_echo_n "(cached) " >&6
  18479. else
  18480. case $PKG_CONFIG in
  18481. [\\/]* | ?:[\\/]*)
  18482. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18483. ;;
  18484. *)
  18485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18486. for as_dir in $PATH
  18487. do
  18488. IFS=$as_save_IFS
  18489. test -z "$as_dir" && as_dir=.
  18490. for ac_exec_ext in '' $ac_executable_extensions; do
  18491. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18492. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18493. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18494. break 2
  18495. fi
  18496. done
  18497. done
  18498. IFS=$as_save_IFS
  18499. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18500. ;;
  18501. esac
  18502. fi
  18503. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18504. if test -n "$PKG_CONFIG"; then
  18505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18506. $as_echo "$PKG_CONFIG" >&6; }
  18507. else
  18508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18509. $as_echo "no" >&6; }
  18510. fi
  18511. if test x$PKG_CONFIG != xno; then
  18512. if $PKG_CONFIG --atleast-pkgconfig-version 0.7; then
  18513. if $PKG_CONFIG --atleast-version $LIBDRM_REQUIRED_VERSION libdrm; then
  18514. LIBDRM_CFLAGS=`$PKG_CONFIG --cflags libdrm`
  18515. LIBDRM_LIBS=`$PKG_CONFIG --libs libdrm`
  18516. LIBDRM_PREFIX=`$PKG_CONFIG --variable=prefix libdrm`
  18517. libdrm_avail=yes
  18518. fi
  18519. if $PKG_CONFIG --atleast-version $LIBGBM_REQUIRED_VERSION gbm; then
  18520. LIBGBM_CFLAGS=`$PKG_CONFIG --cflags gbm`
  18521. LIBGBM_LIBS=`$PKG_CONFIG --libs gbm`
  18522. LIBGBM_PREFIX=`$PKG_CONFIG --variable=prefix gbm`
  18523. libgbm_avail=yes
  18524. fi
  18525. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18526. video_kmsdrm=yes
  18527. fi
  18528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support" >&5
  18529. $as_echo_n "checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_avail" >&5
  18531. $as_echo "$libdrm_avail" >&6; }
  18532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support" >&5
  18533. $as_echo_n "checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgbm_avail" >&5
  18535. $as_echo "$libgbm_avail" >&6; }
  18536. if test x$video_kmsdrm = xyes; then
  18537. # Check whether --enable-kmsdrm-shared was given.
  18538. if test "${enable_kmsdrm_shared+set}" = set; then :
  18539. enableval=$enable_kmsdrm_shared;
  18540. else
  18541. enable_kmsdrm_shared=yes
  18542. fi
  18543. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18544. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18545. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18547. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18548. kmsdrm_shared=no
  18549. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18550. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18551. if test x$have_loadso != xyes && \
  18552. test x$enable_kmsdrm_shared = xyes; then
  18553. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18554. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18555. fi
  18556. if test x$have_loadso = xyes && \
  18557. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18558. kmsdrm_shared=yes
  18559. cat >>confdefs.h <<_ACEOF
  18560. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18561. _ACEOF
  18562. cat >>confdefs.h <<_ACEOF
  18563. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18564. _ACEOF
  18565. cat >>confdefs.h <<_ACEOF
  18566. #define HAVE_KMSDRM_SHARED "TRUE"
  18567. _ACEOF
  18568. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18569. else
  18570. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18571. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18572. fi
  18573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18574. $as_echo "$kmsdrm_shared" >&6; }
  18575. have_video=yes
  18576. fi
  18577. fi
  18578. fi
  18579. fi
  18580. }
  18581. CheckDummyVideo()
  18582. {
  18583. # Check whether --enable-video-dummy was given.
  18584. if test "${enable_video_dummy+set}" = set; then :
  18585. enableval=$enable_video_dummy;
  18586. else
  18587. enable_video_dummy=yes
  18588. fi
  18589. if test x$enable_video_dummy = xyes; then
  18590. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18591. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18592. have_video=yes
  18593. SUMMARY_video="${SUMMARY_video} dummy"
  18594. fi
  18595. }
  18596. CheckQNXVideo()
  18597. {
  18598. if test x$enable_video = xyes; then
  18599. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  18600. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  18601. have_video=yes
  18602. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  18603. SUMMARY_video="${SUMMARY_video} qnx"
  18604. fi
  18605. }
  18606. CheckQNXAudio()
  18607. {
  18608. if test x$enable_audio = xyes; then
  18609. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  18610. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  18611. have_audio=yes
  18612. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  18613. SUMMARY_audio="${SUMMARY_audio} qsa"
  18614. fi
  18615. }
  18616. # Check whether --enable-video-opengl was given.
  18617. if test "${enable_video_opengl+set}" = set; then :
  18618. enableval=$enable_video_opengl;
  18619. else
  18620. enable_video_opengl=yes
  18621. fi
  18622. CheckOpenGLX11()
  18623. {
  18624. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18626. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18627. video_opengl=no
  18628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18629. /* end confdefs.h. */
  18630. #include <GL/gl.h>
  18631. #include <GL/glx.h>
  18632. int
  18633. main ()
  18634. {
  18635. ;
  18636. return 0;
  18637. }
  18638. _ACEOF
  18639. if ac_fn_c_try_compile "$LINENO"; then :
  18640. video_opengl=yes
  18641. fi
  18642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18644. $as_echo "$video_opengl" >&6; }
  18645. if test x$video_opengl = xyes; then
  18646. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18647. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18648. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18649. SUMMARY_video="${SUMMARY_video} opengl"
  18650. fi
  18651. fi
  18652. }
  18653. # Check whether --enable-video-opengles was given.
  18654. if test "${enable_video_opengles+set}" = set; then :
  18655. enableval=$enable_video_opengles;
  18656. else
  18657. enable_video_opengles=yes
  18658. fi
  18659. # Check whether --enable-video-opengles1 was given.
  18660. if test "${enable_video_opengles1+set}" = set; then :
  18661. enableval=$enable_video_opengles1;
  18662. else
  18663. enable_video_opengles1=yes
  18664. fi
  18665. # Check whether --enable-video-opengles2 was given.
  18666. if test "${enable_video_opengles2+set}" = set; then :
  18667. enableval=$enable_video_opengles2;
  18668. else
  18669. enable_video_opengles2=yes
  18670. fi
  18671. CheckOpenGLESX11()
  18672. {
  18673. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18675. $as_echo_n "checking for EGL support... " >&6; }
  18676. video_opengl_egl=no
  18677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18678. /* end confdefs.h. */
  18679. #define LINUX
  18680. #define EGL_API_FB
  18681. #define MESA_EGL_NO_X11_HEADERS
  18682. #include <EGL/egl.h>
  18683. #include <EGL/eglext.h>
  18684. int
  18685. main ()
  18686. {
  18687. ;
  18688. return 0;
  18689. }
  18690. _ACEOF
  18691. if ac_fn_c_try_compile "$LINENO"; then :
  18692. video_opengl_egl=yes
  18693. fi
  18694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18696. $as_echo "$video_opengl_egl" >&6; }
  18697. if test x$video_opengl_egl = xyes; then
  18698. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18699. fi
  18700. if test x$enable_video_opengles1 = xyes; then
  18701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18702. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18703. video_opengles_v1=no
  18704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18705. /* end confdefs.h. */
  18706. #include <GLES/gl.h>
  18707. #include <GLES/glext.h>
  18708. int
  18709. main ()
  18710. {
  18711. ;
  18712. return 0;
  18713. }
  18714. _ACEOF
  18715. if ac_fn_c_try_compile "$LINENO"; then :
  18716. video_opengles_v1=yes
  18717. fi
  18718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18720. $as_echo "$video_opengles_v1" >&6; }
  18721. if test x$video_opengles_v1 = xyes; then
  18722. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18723. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18724. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18725. fi
  18726. fi
  18727. if test x$enable_video_opengles2 = xyes; then
  18728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18729. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18730. video_opengles_v2=no
  18731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18732. /* end confdefs.h. */
  18733. #include <GLES2/gl2.h>
  18734. #include <GLES2/gl2ext.h>
  18735. int
  18736. main ()
  18737. {
  18738. ;
  18739. return 0;
  18740. }
  18741. _ACEOF
  18742. if ac_fn_c_try_compile "$LINENO"; then :
  18743. video_opengles_v2=yes
  18744. fi
  18745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18747. $as_echo "$video_opengles_v2" >&6; }
  18748. if test x$video_opengles_v2 = xyes; then
  18749. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18750. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18751. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18752. fi
  18753. fi
  18754. fi
  18755. }
  18756. CheckWINDOWSGL()
  18757. {
  18758. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18759. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18760. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18761. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18762. SUMMARY_video="${SUMMARY_video} opengl"
  18763. fi
  18764. }
  18765. CheckWINDOWSGLES()
  18766. {
  18767. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18769. $as_echo_n "checking for EGL support... " >&6; }
  18770. video_opengl_egl=no
  18771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18772. /* end confdefs.h. */
  18773. #include <EGL/egl.h>
  18774. int
  18775. main ()
  18776. {
  18777. ;
  18778. return 0;
  18779. }
  18780. _ACEOF
  18781. if ac_fn_c_try_compile "$LINENO"; then :
  18782. video_opengl_egl=yes
  18783. fi
  18784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18786. $as_echo "$video_opengl_egl" >&6; }
  18787. if test x$video_opengl_egl = xyes; then
  18788. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18789. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18790. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18791. fi
  18792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18793. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18794. video_opengles_v2=no
  18795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18796. /* end confdefs.h. */
  18797. #include <GLES2/gl2.h>
  18798. #include <GLES2/gl2ext.h>
  18799. int
  18800. main ()
  18801. {
  18802. ;
  18803. return 0;
  18804. }
  18805. _ACEOF
  18806. if ac_fn_c_try_compile "$LINENO"; then :
  18807. video_opengles_v2=yes
  18808. fi
  18809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18811. $as_echo "$video_opengles_v2" >&6; }
  18812. if test x$video_opengles_v2 = xyes; then
  18813. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18814. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18815. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18816. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18817. fi
  18818. fi
  18819. }
  18820. CheckHaikuGL()
  18821. {
  18822. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18823. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18824. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18825. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18826. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18827. SUMMARY_video="${SUMMARY_video} opengl"
  18828. fi
  18829. }
  18830. CheckMacGL()
  18831. {
  18832. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18833. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18834. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18835. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18836. SUMMARY_video="${SUMMARY_video} opengl"
  18837. fi
  18838. }
  18839. CheckMacGLES()
  18840. {
  18841. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18842. video_opengl_egl=yes
  18843. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18844. video_opengles_v2=yes
  18845. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18846. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18847. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18848. fi
  18849. }
  18850. CheckEmscriptenGLES()
  18851. {
  18852. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18854. $as_echo_n "checking for EGL support... " >&6; }
  18855. video_opengl_egl=no
  18856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18857. /* end confdefs.h. */
  18858. #include <EGL/egl.h>
  18859. int
  18860. main ()
  18861. {
  18862. ;
  18863. return 0;
  18864. }
  18865. _ACEOF
  18866. if ac_fn_c_try_compile "$LINENO"; then :
  18867. video_opengl_egl=yes
  18868. fi
  18869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18871. $as_echo "$video_opengl_egl" >&6; }
  18872. if test x$video_opengl_egl = xyes; then
  18873. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18874. fi
  18875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18876. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18877. video_opengles_v2=no
  18878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18879. /* end confdefs.h. */
  18880. #include <GLES2/gl2.h>
  18881. #include <GLES2/gl2ext.h>
  18882. int
  18883. main ()
  18884. {
  18885. ;
  18886. return 0;
  18887. }
  18888. _ACEOF
  18889. if ac_fn_c_try_compile "$LINENO"; then :
  18890. video_opengles_v2=yes
  18891. fi
  18892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18894. $as_echo "$video_opengles_v2" >&6; }
  18895. if test x$video_opengles_v2 = xyes; then
  18896. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18897. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18898. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18899. fi
  18900. fi
  18901. }
  18902. # Check whether --enable-video-vulkan was given.
  18903. if test "${enable_video_vulkan+set}" = set; then :
  18904. enableval=$enable_video_vulkan;
  18905. else
  18906. enable_video_vulkan=yes
  18907. fi
  18908. CheckVulkan()
  18909. {
  18910. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  18911. case "$host" in
  18912. *-*-android*)
  18913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18914. /* end confdefs.h. */
  18915. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  18916. #error Vulkan doesn't work on this configuration
  18917. #endif
  18918. int
  18919. main ()
  18920. {
  18921. ;
  18922. return 0;
  18923. }
  18924. _ACEOF
  18925. if ac_fn_c_try_compile "$LINENO"; then :
  18926. else
  18927. enable_video_vulkan=no
  18928. fi
  18929. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18930. ;;
  18931. *-*-darwin*)
  18932. save_CFLAGS="$CFLAGS"
  18933. CFLAGS="$CFLAGS -x objective-c"
  18934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18935. /* end confdefs.h. */
  18936. #include <Cocoa/Cocoa.h>
  18937. #include <Metal/Metal.h>
  18938. #include <QuartzCore/CAMetalLayer.h>
  18939. #if !TARGET_CPU_X86_64
  18940. #error Vulkan doesn't work on this configuration
  18941. #endif
  18942. int
  18943. main ()
  18944. {
  18945. ;
  18946. return 0;
  18947. }
  18948. _ACEOF
  18949. if ac_fn_c_try_compile "$LINENO"; then :
  18950. else
  18951. enable_video_vulkan=no
  18952. fi
  18953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18954. CFLAGS="$save_CFLAGS"
  18955. ;;
  18956. *)
  18957. ;;
  18958. esac
  18959. if test x$enable_video_vulkan = xno; then
  18960. # For reasons I am totally unable to see, I get an undefined macro error if
  18961. # I put this in the AC_TRY_COMPILE.
  18962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  18963. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  18964. fi
  18965. fi
  18966. if test x$enable_video_vulkan = xyes; then
  18967. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  18968. SUMMARY_video="${SUMMARY_video} vulkan"
  18969. fi
  18970. }
  18971. CheckInputEvents()
  18972. {
  18973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18974. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18975. use_input_events=no
  18976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18977. /* end confdefs.h. */
  18978. #include <linux/input.h>
  18979. int
  18980. main ()
  18981. {
  18982. #ifndef EVIOCGNAME
  18983. #error EVIOCGNAME() ioctl not available
  18984. #endif
  18985. ;
  18986. return 0;
  18987. }
  18988. _ACEOF
  18989. if ac_fn_c_try_compile "$LINENO"; then :
  18990. use_input_events=yes
  18991. fi
  18992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18994. $as_echo "$use_input_events" >&6; }
  18995. if test x$use_input_events = xyes; then
  18996. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18997. SUMMARY_input="${SUMMARY_input} linuxev"
  18998. fi
  18999. }
  19000. CheckInputKD()
  19001. {
  19002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19003. $as_echo_n "checking for Linux kd.h... " >&6; }
  19004. use_input_kd=no
  19005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19006. /* end confdefs.h. */
  19007. #include <linux/kd.h>
  19008. #include <linux/keyboard.h>
  19009. int
  19010. main ()
  19011. {
  19012. struct kbentry kbe;
  19013. kbe.kb_table = KG_CTRL;
  19014. ioctl(0, KDGKBENT, &kbe);
  19015. ;
  19016. return 0;
  19017. }
  19018. _ACEOF
  19019. if ac_fn_c_try_compile "$LINENO"; then :
  19020. use_input_kd=yes
  19021. fi
  19022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19024. $as_echo "$use_input_kd" >&6; }
  19025. if test x$use_input_kd = xyes; then
  19026. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19027. SUMMARY_input="${SUMMARY_input} linuxkd"
  19028. fi
  19029. }
  19030. CheckLibUDev()
  19031. {
  19032. # Check whether --enable-libudev was given.
  19033. if test "${enable_libudev+set}" = set; then :
  19034. enableval=$enable_libudev;
  19035. else
  19036. enable_libudev=yes
  19037. fi
  19038. if test x$enable_libudev = xyes; then
  19039. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19040. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19041. have_libudev_h_hdr=yes
  19042. else
  19043. have_libudev_h_hdr=no
  19044. fi
  19045. if test x$have_libudev_h_hdr = xyes; then
  19046. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19047. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19048. if test x$udev_lib != x; then
  19049. echo "-- dynamic udev -> $udev_lib"
  19050. cat >>confdefs.h <<_ACEOF
  19051. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19052. _ACEOF
  19053. fi
  19054. fi
  19055. fi
  19056. }
  19057. CheckDBus()
  19058. {
  19059. # Check whether --enable-dbus was given.
  19060. if test "${enable_dbus+set}" = set; then :
  19061. enableval=$enable_dbus;
  19062. else
  19063. enable_dbus=yes
  19064. fi
  19065. if test x$enable_dbus = xyes; then
  19066. # Extract the first word of "pkg-config", so it can be a program name with args.
  19067. set dummy pkg-config; ac_word=$2
  19068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19069. $as_echo_n "checking for $ac_word... " >&6; }
  19070. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19071. $as_echo_n "(cached) " >&6
  19072. else
  19073. case $PKG_CONFIG in
  19074. [\\/]* | ?:[\\/]*)
  19075. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19076. ;;
  19077. *)
  19078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19079. for as_dir in $PATH
  19080. do
  19081. IFS=$as_save_IFS
  19082. test -z "$as_dir" && as_dir=.
  19083. for ac_exec_ext in '' $ac_executable_extensions; do
  19084. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19085. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19086. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19087. break 2
  19088. fi
  19089. done
  19090. done
  19091. IFS=$as_save_IFS
  19092. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19093. ;;
  19094. esac
  19095. fi
  19096. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19097. if test -n "$PKG_CONFIG"; then
  19098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19099. $as_echo "$PKG_CONFIG" >&6; }
  19100. else
  19101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19102. $as_echo "no" >&6; }
  19103. fi
  19104. if test x$PKG_CONFIG != xno; then
  19105. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  19106. save_CFLAGS="$CFLAGS"
  19107. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19108. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19109. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19110. have_dbus_dbus_h_hdr=yes
  19111. else
  19112. have_dbus_dbus_h_hdr=no
  19113. fi
  19114. CFLAGS="$save_CFLAGS"
  19115. if test x$have_dbus_dbus_h_hdr = xyes; then
  19116. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19117. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19118. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19119. fi
  19120. fi
  19121. fi
  19122. }
  19123. CheckIME()
  19124. {
  19125. # Check whether --enable-ime was given.
  19126. if test "${enable_ime+set}" = set; then :
  19127. enableval=$enable_ime;
  19128. else
  19129. enable_ime=yes
  19130. fi
  19131. if test x$enable_ime = xyes; then
  19132. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19133. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19134. fi
  19135. }
  19136. CheckIBus()
  19137. {
  19138. # Check whether --enable-ibus was given.
  19139. if test "${enable_ibus+set}" = set; then :
  19140. enableval=$enable_ibus;
  19141. else
  19142. enable_ibus=yes
  19143. fi
  19144. if test x$enable_ibus = xyes; then
  19145. # Extract the first word of "pkg-config", so it can be a program name with args.
  19146. set dummy pkg-config; ac_word=$2
  19147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19148. $as_echo_n "checking for $ac_word... " >&6; }
  19149. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19150. $as_echo_n "(cached) " >&6
  19151. else
  19152. case $PKG_CONFIG in
  19153. [\\/]* | ?:[\\/]*)
  19154. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19155. ;;
  19156. *)
  19157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19158. for as_dir in $PATH
  19159. do
  19160. IFS=$as_save_IFS
  19161. test -z "$as_dir" && as_dir=.
  19162. for ac_exec_ext in '' $ac_executable_extensions; do
  19163. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19164. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19165. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19166. break 2
  19167. fi
  19168. done
  19169. done
  19170. IFS=$as_save_IFS
  19171. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19172. ;;
  19173. esac
  19174. fi
  19175. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19176. if test -n "$PKG_CONFIG"; then
  19177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19178. $as_echo "$PKG_CONFIG" >&6; }
  19179. else
  19180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19181. $as_echo "no" >&6; }
  19182. fi
  19183. if test x$PKG_CONFIG != xno; then
  19184. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  19185. save_CFLAGS="$CFLAGS"
  19186. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19187. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19188. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19189. have_ibus_ibus_h_hdr=yes
  19190. else
  19191. have_ibus_ibus_h_hdr=no
  19192. fi
  19193. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19194. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19195. have_inotify_inotify_h_hdr=yes
  19196. else
  19197. have_inotify_inotify_h_hdr=no
  19198. fi
  19199. CFLAGS="$save_CFLAGS"
  19200. if test x$have_ibus_ibus_h_hdr = xyes; then
  19201. if test x$enable_ime != xyes; then
  19202. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19203. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19204. have_ibus_ibus_h_hdr=no
  19205. elif test x$enable_dbus != xyes; then
  19206. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19207. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19208. have_ibus_ibus_h_hdr=no
  19209. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19210. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19211. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19212. have_ibus_ibus_h_hdr=no
  19213. else
  19214. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19215. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19216. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19217. fi
  19218. fi
  19219. fi
  19220. fi
  19221. }
  19222. CheckFcitx()
  19223. {
  19224. # Check whether --enable-fcitx was given.
  19225. if test "${enable_fcitx+set}" = set; then :
  19226. enableval=$enable_fcitx;
  19227. else
  19228. enable_fcitx=yes
  19229. fi
  19230. if test x$enable_fcitx = xyes; then
  19231. # Extract the first word of "pkg-config", so it can be a program name with args.
  19232. set dummy pkg-config; ac_word=$2
  19233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19234. $as_echo_n "checking for $ac_word... " >&6; }
  19235. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19236. $as_echo_n "(cached) " >&6
  19237. else
  19238. case $PKG_CONFIG in
  19239. [\\/]* | ?:[\\/]*)
  19240. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19241. ;;
  19242. *)
  19243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19244. for as_dir in $PATH
  19245. do
  19246. IFS=$as_save_IFS
  19247. test -z "$as_dir" && as_dir=.
  19248. for ac_exec_ext in '' $ac_executable_extensions; do
  19249. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19250. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19251. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19252. break 2
  19253. fi
  19254. done
  19255. done
  19256. IFS=$as_save_IFS
  19257. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19258. ;;
  19259. esac
  19260. fi
  19261. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19262. if test -n "$PKG_CONFIG"; then
  19263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19264. $as_echo "$PKG_CONFIG" >&6; }
  19265. else
  19266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19267. $as_echo "no" >&6; }
  19268. fi
  19269. if test x$PKG_CONFIG != xno; then
  19270. FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
  19271. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19272. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19273. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19274. have_fcitx_frontend_h_hdr=yes
  19275. else
  19276. have_fcitx_frontend_h_hdr=no
  19277. fi
  19278. CFLAGS="$save_CFLAGS"
  19279. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19280. if test x$enable_ime != xyes; then
  19281. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19282. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19283. have_fcitx_frontend_h_hdr=no
  19284. elif test x$enable_dbus != xyes; then
  19285. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19286. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19287. have_fcitx_frontend_h_hdr=no
  19288. else
  19289. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19290. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19291. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19292. fi
  19293. fi
  19294. fi
  19295. fi
  19296. }
  19297. CheckTslib()
  19298. {
  19299. # Check whether --enable-input-tslib was given.
  19300. if test "${enable_input_tslib+set}" = set; then :
  19301. enableval=$enable_input_tslib;
  19302. else
  19303. enable_input_tslib=yes
  19304. fi
  19305. if test x$enable_input_tslib = xyes; then
  19306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19307. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19308. enable_input_tslib=no
  19309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19310. /* end confdefs.h. */
  19311. #include "tslib.h"
  19312. int
  19313. main ()
  19314. {
  19315. ;
  19316. return 0;
  19317. }
  19318. _ACEOF
  19319. if ac_fn_c_try_compile "$LINENO"; then :
  19320. enable_input_tslib=yes
  19321. fi
  19322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19324. $as_echo "$enable_input_tslib" >&6; }
  19325. if test x$enable_input_tslib = xyes; then
  19326. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19327. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19328. SUMMARY_input="${SUMMARY_input} ts"
  19329. fi
  19330. fi
  19331. }
  19332. CheckPTHREAD()
  19333. {
  19334. # Check whether --enable-pthreads was given.
  19335. if test "${enable_pthreads+set}" = set; then :
  19336. enableval=$enable_pthreads;
  19337. else
  19338. enable_pthreads=yes
  19339. fi
  19340. # Check whether --enable-pthread-sem was given.
  19341. if test "${enable_pthread_sem+set}" = set; then :
  19342. enableval=$enable_pthread_sem;
  19343. else
  19344. enable_pthread_sem=yes
  19345. fi
  19346. case "$host" in
  19347. *-*-android*)
  19348. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19349. pthread_lib=""
  19350. ;;
  19351. *-*-linux*|*-*-uclinux*)
  19352. pthread_cflags="-D_REENTRANT"
  19353. pthread_lib="-lpthread"
  19354. ;;
  19355. *-*-bsdi*)
  19356. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19357. pthread_lib=""
  19358. ;;
  19359. *-*-darwin*)
  19360. pthread_cflags="-D_THREAD_SAFE"
  19361. # causes Carbon.p complaints?
  19362. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19363. ;;
  19364. *-*-freebsd*|*-*-dragonfly*)
  19365. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19366. pthread_lib="-pthread"
  19367. ;;
  19368. *-*-netbsd*)
  19369. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19370. pthread_lib="-lpthread"
  19371. ;;
  19372. *-*-openbsd*)
  19373. pthread_cflags="-D_REENTRANT"
  19374. pthread_lib="-pthread"
  19375. ;;
  19376. *-*-solaris2.9)
  19377. # From Solaris 9+, posix4's preferred name is rt.
  19378. pthread_cflags="-D_REENTRANT"
  19379. pthread_lib="-lpthread -lrt"
  19380. ;;
  19381. *-*-solaris2.10)
  19382. # Solaris 10+ merged pthread into libc.
  19383. pthread_cflags="-D_REENTRANT"
  19384. pthread_lib="-lrt"
  19385. ;;
  19386. *-*-solaris*)
  19387. # Solaris 11+ merged rt into libc.
  19388. pthread_cflags="-D_REENTRANT"
  19389. pthread_lib=""
  19390. ;;
  19391. *-*-sysv5*)
  19392. pthread_cflags="-D_REENTRANT -Kthread"
  19393. pthread_lib=""
  19394. ;;
  19395. *-*-aix*)
  19396. pthread_cflags="-D_REENTRANT -mthreads"
  19397. pthread_lib="-lpthread"
  19398. ;;
  19399. *-*-hpux11*)
  19400. pthread_cflags="-D_REENTRANT"
  19401. pthread_lib="-L/usr/lib -lpthread"
  19402. ;;
  19403. *-*-haiku*)
  19404. pthread_cflags="-D_REENTRANT"
  19405. pthread_lib=""
  19406. ;;
  19407. *-*-nto*)
  19408. pthread_cflags="-D_REENTRANT"
  19409. pthread_lib=""
  19410. ;;
  19411. *)
  19412. pthread_cflags="-D_REENTRANT"
  19413. pthread_lib="-lpthread"
  19414. ;;
  19415. esac
  19416. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19417. # Save the original compiler flags and libraries
  19418. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19419. # Add the pthread compiler flags and libraries
  19420. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19421. # Check to see if we have pthread support on this system
  19422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19423. $as_echo_n "checking for pthreads... " >&6; }
  19424. use_pthreads=no
  19425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19426. /* end confdefs.h. */
  19427. #include <pthread.h>
  19428. int
  19429. main ()
  19430. {
  19431. pthread_attr_t type;
  19432. pthread_attr_init(&type);
  19433. ;
  19434. return 0;
  19435. }
  19436. _ACEOF
  19437. if ac_fn_c_try_link "$LINENO"; then :
  19438. use_pthreads=yes
  19439. fi
  19440. rm -f core conftest.err conftest.$ac_objext \
  19441. conftest$ac_exeext conftest.$ac_ext
  19442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19443. $as_echo "$use_pthreads" >&6; }
  19444. # Restore the compiler flags and libraries
  19445. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19446. # Do futher testing if we have pthread support...
  19447. if test x$use_pthreads = xyes; then
  19448. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19449. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19450. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19451. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19452. # Save the original compiler flags and libraries
  19453. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19454. # Add the pthread compiler flags and libraries
  19455. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19456. # Check to see if recursive mutexes are available
  19457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19458. $as_echo_n "checking for recursive mutexes... " >&6; }
  19459. has_recursive_mutexes=no
  19460. if test x$has_recursive_mutexes = xno; then
  19461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19462. /* end confdefs.h. */
  19463. #define _GNU_SOURCE 1
  19464. #include <pthread.h>
  19465. int
  19466. main ()
  19467. {
  19468. pthread_mutexattr_t attr;
  19469. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19470. ;
  19471. return 0;
  19472. }
  19473. _ACEOF
  19474. if ac_fn_c_try_link "$LINENO"; then :
  19475. has_recursive_mutexes=yes
  19476. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19477. fi
  19478. rm -f core conftest.err conftest.$ac_objext \
  19479. conftest$ac_exeext conftest.$ac_ext
  19480. fi
  19481. if test x$has_recursive_mutexes = xno; then
  19482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19483. /* end confdefs.h. */
  19484. #define _GNU_SOURCE 1
  19485. #include <pthread.h>
  19486. int
  19487. main ()
  19488. {
  19489. pthread_mutexattr_t attr;
  19490. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19491. ;
  19492. return 0;
  19493. }
  19494. _ACEOF
  19495. if ac_fn_c_try_link "$LINENO"; then :
  19496. has_recursive_mutexes=yes
  19497. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19498. fi
  19499. rm -f core conftest.err conftest.$ac_objext \
  19500. conftest$ac_exeext conftest.$ac_ext
  19501. fi
  19502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19503. $as_echo "$has_recursive_mutexes" >&6; }
  19504. # Check to see if pthread semaphore support is missing
  19505. if test x$enable_pthread_sem = xyes; then
  19506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19507. $as_echo_n "checking for pthread semaphores... " >&6; }
  19508. have_pthread_sem=no
  19509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19510. /* end confdefs.h. */
  19511. #include <pthread.h>
  19512. #include <semaphore.h>
  19513. int
  19514. main ()
  19515. {
  19516. ;
  19517. return 0;
  19518. }
  19519. _ACEOF
  19520. if ac_fn_c_try_compile "$LINENO"; then :
  19521. have_pthread_sem=yes
  19522. fi
  19523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19525. $as_echo "$have_pthread_sem" >&6; }
  19526. fi
  19527. if test x$have_pthread_sem = xyes; then
  19528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19529. $as_echo_n "checking for sem_timedwait... " >&6; }
  19530. have_sem_timedwait=no
  19531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19532. /* end confdefs.h. */
  19533. #include <pthread.h>
  19534. #include <semaphore.h>
  19535. int
  19536. main ()
  19537. {
  19538. sem_timedwait(NULL, NULL);
  19539. ;
  19540. return 0;
  19541. }
  19542. _ACEOF
  19543. if ac_fn_c_try_link "$LINENO"; then :
  19544. have_sem_timedwait=yes
  19545. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19546. fi
  19547. rm -f core conftest.err conftest.$ac_objext \
  19548. conftest$ac_exeext conftest.$ac_ext
  19549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19550. $as_echo "$have_sem_timedwait" >&6; }
  19551. fi
  19552. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19553. "
  19554. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19555. have_pthread_np_h=yes
  19556. else
  19557. have_pthread_np_h=no
  19558. fi
  19559. if test x$have_pthread_np_h = xyes; then
  19560. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19561. fi
  19562. # Check to see if pthread naming is available
  19563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19564. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19566. /* end confdefs.h. */
  19567. /* Override any GCC internal prototype to avoid an error.
  19568. Use char because int might match the return type of a GCC
  19569. builtin and then its argument prototype would still apply. */
  19570. #ifdef __cplusplus
  19571. extern "C"
  19572. #endif
  19573. char pthread_setname_np ();
  19574. int
  19575. main ()
  19576. {
  19577. return pthread_setname_np ();
  19578. ;
  19579. return 0;
  19580. }
  19581. _ACEOF
  19582. if ac_fn_c_try_link "$LINENO"; then :
  19583. has_pthread_setname_np=yes
  19584. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19585. else
  19586. has_pthread_setname_np=no
  19587. fi
  19588. rm -f core conftest.err conftest.$ac_objext \
  19589. conftest$ac_exeext conftest.$ac_ext
  19590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19591. $as_echo "$has_pthread_setname_np" >&6; }
  19592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19593. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19595. /* end confdefs.h. */
  19596. /* Override any GCC internal prototype to avoid an error.
  19597. Use char because int might match the return type of a GCC
  19598. builtin and then its argument prototype would still apply. */
  19599. #ifdef __cplusplus
  19600. extern "C"
  19601. #endif
  19602. char pthread_set_name_np ();
  19603. int
  19604. main ()
  19605. {
  19606. return pthread_set_name_np ();
  19607. ;
  19608. return 0;
  19609. }
  19610. _ACEOF
  19611. if ac_fn_c_try_link "$LINENO"; then :
  19612. has_pthread_set_name_np=yes
  19613. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19614. else
  19615. has_pthread_set_name_np=no
  19616. fi
  19617. rm -f core conftest.err conftest.$ac_objext \
  19618. conftest$ac_exeext conftest.$ac_ext
  19619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19620. $as_echo "$has_pthread_set_name_np" >&6; }
  19621. # Restore the compiler flags and libraries
  19622. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19623. # Basic thread creation functions
  19624. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19625. # Semaphores
  19626. # We can fake these with mutexes and condition variables if necessary
  19627. if test x$have_pthread_sem = xyes; then
  19628. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19629. else
  19630. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19631. fi
  19632. # Mutexes
  19633. # We can fake these with semaphores if necessary
  19634. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19635. # Condition variables
  19636. # We can fake these with semaphores and mutexes if necessary
  19637. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19638. # Thread local storage
  19639. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19640. have_threads=yes
  19641. fi
  19642. fi
  19643. }
  19644. CheckWINDOWS()
  19645. {
  19646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19647. $as_echo_n "checking Windows compiler... " >&6; }
  19648. have_win32_gcc=no
  19649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19650. /* end confdefs.h. */
  19651. #include <windows.h>
  19652. int
  19653. main ()
  19654. {
  19655. ;
  19656. return 0;
  19657. }
  19658. _ACEOF
  19659. if ac_fn_c_try_compile "$LINENO"; then :
  19660. have_win32_gcc=yes
  19661. fi
  19662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19664. $as_echo "$have_win32_gcc" >&6; }
  19665. if test x$have_win32_gcc != xyes; then
  19666. as_fn_error $? "
  19667. *** Your compiler ($CC) does not produce Windows executables!
  19668. " "$LINENO" 5
  19669. fi
  19670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19671. $as_echo_n "checking Windows CE... " >&6; }
  19672. have_wince=no
  19673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19674. /* end confdefs.h. */
  19675. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19676. #error This is not Windows CE
  19677. #endif
  19678. int
  19679. main ()
  19680. {
  19681. ;
  19682. return 0;
  19683. }
  19684. _ACEOF
  19685. if ac_fn_c_try_compile "$LINENO"; then :
  19686. have_wince=yes
  19687. as_fn_error $? "
  19688. *** Sorry, Windows CE is no longer supported.
  19689. " "$LINENO" 5
  19690. fi
  19691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19693. $as_echo "$have_wince" >&6; }
  19694. # This fixes Windows stack alignment with newer GCC
  19695. CheckStackBoundary
  19696. }
  19697. CheckDIRECTX()
  19698. {
  19699. # Check whether --enable-directx was given.
  19700. if test "${enable_directx+set}" = set; then :
  19701. enableval=$enable_directx;
  19702. else
  19703. enable_directx=yes
  19704. fi
  19705. if test x$enable_directx = xyes; then
  19706. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19707. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19708. have_d3d=yes
  19709. fi
  19710. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19711. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19712. have_d3d11=yes
  19713. fi
  19714. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19715. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19716. have_ddraw=yes
  19717. fi
  19718. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19719. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19720. have_dsound=yes
  19721. fi
  19722. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19723. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19724. have_dinput=yes
  19725. fi
  19726. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19727. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19728. have_dxgi=yes
  19729. fi
  19730. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19731. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19732. have_xinput=yes
  19733. fi
  19734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19735. /* end confdefs.h. */
  19736. #include <windows.h>
  19737. #include <xinput.h>
  19738. XINPUT_GAMEPAD_EX x1;
  19739. int
  19740. main ()
  19741. {
  19742. ;
  19743. return 0;
  19744. }
  19745. _ACEOF
  19746. if ac_fn_c_try_compile "$LINENO"; then :
  19747. have_xinput_gamepadex=yes
  19748. fi
  19749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19751. /* end confdefs.h. */
  19752. #include <windows.h>
  19753. #include <xinput.h>
  19754. XINPUT_STATE_EX s1;
  19755. int
  19756. main ()
  19757. {
  19758. ;
  19759. return 0;
  19760. }
  19761. _ACEOF
  19762. if ac_fn_c_try_compile "$LINENO"; then :
  19763. have_xinput_stateex=yes
  19764. fi
  19765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19766. if test x$have_ddraw = xyes; then
  19767. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19768. fi
  19769. if test x$have_dinput = xyes; then
  19770. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19771. fi
  19772. if test x$have_dsound = xyes; then
  19773. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19774. fi
  19775. if test x$have_dxgi = xyes; then
  19776. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19777. fi
  19778. if test x$have_xinput = xyes; then
  19779. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19780. fi
  19781. if test x$have_xinput_gamepadex = xyes; then
  19782. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  19783. fi
  19784. if test x$have_xinput_stateex = xyes; then
  19785. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  19786. fi
  19787. SUMMARY_video="${SUMMARY_video} directx"
  19788. SUMMARY_audio="${SUMMARY_audio} directx"
  19789. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19790. # FIXME: ...so force it off for now.
  19791. case "$host" in
  19792. *-*-cygwin*)
  19793. have_dinput=false
  19794. ;;
  19795. esac
  19796. fi
  19797. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  19798. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  19799. have_wasapi=yes
  19800. fi
  19801. if test x$have_wasapi = xyes; then
  19802. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  19803. fi
  19804. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  19805. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  19806. else
  19807. have_wasapi=no
  19808. fi
  19809. if test x$have_wasapi = xyes; then
  19810. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  19811. fi
  19812. ac_fn_c_check_header_mongrel "$LINENO" "endpointvolume.h" "ac_cv_header_endpointvolume_h" "$ac_includes_default"
  19813. if test "x$ac_cv_header_endpointvolume_h" = xyes; then :
  19814. $as_echo "#define HAVE_ENDPOINTVOLUME_H 1" >>confdefs.h
  19815. fi
  19816. # Check whether --enable-wasapi was given.
  19817. if test "${enable_wasapi+set}" = set; then :
  19818. enableval=$enable_wasapi;
  19819. else
  19820. enable_wasapi=yes
  19821. fi
  19822. }
  19823. CheckDLOPEN()
  19824. {
  19825. # Check whether --enable-sdl-dlopen was given.
  19826. if test "${enable_sdl_dlopen+set}" = set; then :
  19827. enableval=$enable_sdl_dlopen;
  19828. else
  19829. enable_sdl_dlopen=yes
  19830. fi
  19831. if test x$enable_sdl_dlopen = xyes; then
  19832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19833. $as_echo_n "checking for dlopen... " >&6; }
  19834. have_dlopen=no
  19835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19836. /* end confdefs.h. */
  19837. #include <dlfcn.h>
  19838. int
  19839. main ()
  19840. {
  19841. void *handle = dlopen("", RTLD_NOW);
  19842. const char *loaderror = (char *) dlerror();
  19843. ;
  19844. return 0;
  19845. }
  19846. _ACEOF
  19847. if ac_fn_c_try_compile "$LINENO"; then :
  19848. have_dlopen=yes
  19849. fi
  19850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19852. $as_echo "$have_dlopen" >&6; }
  19853. if test x$have_dlopen = xyes; then
  19854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19855. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19856. if ${ac_cv_lib_c_dlopen+:} false; then :
  19857. $as_echo_n "(cached) " >&6
  19858. else
  19859. ac_check_lib_save_LIBS=$LIBS
  19860. LIBS="-lc $LIBS"
  19861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19862. /* end confdefs.h. */
  19863. /* Override any GCC internal prototype to avoid an error.
  19864. Use char because int might match the return type of a GCC
  19865. builtin and then its argument prototype would still apply. */
  19866. #ifdef __cplusplus
  19867. extern "C"
  19868. #endif
  19869. char dlopen ();
  19870. int
  19871. main ()
  19872. {
  19873. return dlopen ();
  19874. ;
  19875. return 0;
  19876. }
  19877. _ACEOF
  19878. if ac_fn_c_try_link "$LINENO"; then :
  19879. ac_cv_lib_c_dlopen=yes
  19880. else
  19881. ac_cv_lib_c_dlopen=no
  19882. fi
  19883. rm -f core conftest.err conftest.$ac_objext \
  19884. conftest$ac_exeext conftest.$ac_ext
  19885. LIBS=$ac_check_lib_save_LIBS
  19886. fi
  19887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19888. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19889. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19890. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19891. else
  19892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19893. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19894. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19895. $as_echo_n "(cached) " >&6
  19896. else
  19897. ac_check_lib_save_LIBS=$LIBS
  19898. LIBS="-ldl $LIBS"
  19899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19900. /* end confdefs.h. */
  19901. /* Override any GCC internal prototype to avoid an error.
  19902. Use char because int might match the return type of a GCC
  19903. builtin and then its argument prototype would still apply. */
  19904. #ifdef __cplusplus
  19905. extern "C"
  19906. #endif
  19907. char dlopen ();
  19908. int
  19909. main ()
  19910. {
  19911. return dlopen ();
  19912. ;
  19913. return 0;
  19914. }
  19915. _ACEOF
  19916. if ac_fn_c_try_link "$LINENO"; then :
  19917. ac_cv_lib_dl_dlopen=yes
  19918. else
  19919. ac_cv_lib_dl_dlopen=no
  19920. fi
  19921. rm -f core conftest.err conftest.$ac_objext \
  19922. conftest$ac_exeext conftest.$ac_ext
  19923. LIBS=$ac_check_lib_save_LIBS
  19924. fi
  19925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19926. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19927. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19928. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19929. else
  19930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19931. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19932. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19933. $as_echo_n "(cached) " >&6
  19934. else
  19935. ac_check_lib_save_LIBS=$LIBS
  19936. LIBS="-lltdl $LIBS"
  19937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19938. /* end confdefs.h. */
  19939. /* Override any GCC internal prototype to avoid an error.
  19940. Use char because int might match the return type of a GCC
  19941. builtin and then its argument prototype would still apply. */
  19942. #ifdef __cplusplus
  19943. extern "C"
  19944. #endif
  19945. char dlopen ();
  19946. int
  19947. main ()
  19948. {
  19949. return dlopen ();
  19950. ;
  19951. return 0;
  19952. }
  19953. _ACEOF
  19954. if ac_fn_c_try_link "$LINENO"; then :
  19955. ac_cv_lib_ltdl_dlopen=yes
  19956. else
  19957. ac_cv_lib_ltdl_dlopen=no
  19958. fi
  19959. rm -f core conftest.err conftest.$ac_objext \
  19960. conftest$ac_exeext conftest.$ac_ext
  19961. LIBS=$ac_check_lib_save_LIBS
  19962. fi
  19963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19964. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19965. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19966. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19967. fi
  19968. fi
  19969. fi
  19970. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19971. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19972. have_loadso=yes
  19973. fi
  19974. fi
  19975. }
  19976. CheckUSBHID()
  19977. {
  19978. case "$host" in
  19979. *-*-*bsd*)
  19980. if test x$enable_joystick = xyes; then
  19981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19982. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19983. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19984. $as_echo_n "(cached) " >&6
  19985. else
  19986. ac_check_lib_save_LIBS=$LIBS
  19987. LIBS="-lusbhid $LIBS"
  19988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19989. /* end confdefs.h. */
  19990. /* Override any GCC internal prototype to avoid an error.
  19991. Use char because int might match the return type of a GCC
  19992. builtin and then its argument prototype would still apply. */
  19993. #ifdef __cplusplus
  19994. extern "C"
  19995. #endif
  19996. char hid_init ();
  19997. int
  19998. main ()
  19999. {
  20000. return hid_init ();
  20001. ;
  20002. return 0;
  20003. }
  20004. _ACEOF
  20005. if ac_fn_c_try_link "$LINENO"; then :
  20006. ac_cv_lib_usbhid_hid_init=yes
  20007. else
  20008. ac_cv_lib_usbhid_hid_init=no
  20009. fi
  20010. rm -f core conftest.err conftest.$ac_objext \
  20011. conftest$ac_exeext conftest.$ac_ext
  20012. LIBS=$ac_check_lib_save_LIBS
  20013. fi
  20014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20015. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20016. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20017. have_libusbhid=yes
  20018. fi
  20019. if test x$have_libusbhid = xyes; then
  20020. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20021. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20022. USB_CFLAGS="-DHAVE_USBHID_H"
  20023. fi
  20024. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20025. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20026. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20027. fi
  20028. USB_LIBS="$USB_LIBS -lusbhid"
  20029. else
  20030. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20031. if test "x$ac_cv_header_usb_h" = xyes; then :
  20032. USB_CFLAGS="-DHAVE_USB_H"
  20033. fi
  20034. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20035. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20036. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20037. fi
  20038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20039. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20040. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20041. $as_echo_n "(cached) " >&6
  20042. else
  20043. ac_check_lib_save_LIBS=$LIBS
  20044. LIBS="-lusb $LIBS"
  20045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20046. /* end confdefs.h. */
  20047. /* Override any GCC internal prototype to avoid an error.
  20048. Use char because int might match the return type of a GCC
  20049. builtin and then its argument prototype would still apply. */
  20050. #ifdef __cplusplus
  20051. extern "C"
  20052. #endif
  20053. char hid_init ();
  20054. int
  20055. main ()
  20056. {
  20057. return hid_init ();
  20058. ;
  20059. return 0;
  20060. }
  20061. _ACEOF
  20062. if ac_fn_c_try_link "$LINENO"; then :
  20063. ac_cv_lib_usb_hid_init=yes
  20064. else
  20065. ac_cv_lib_usb_hid_init=no
  20066. fi
  20067. rm -f core conftest.err conftest.$ac_objext \
  20068. conftest$ac_exeext conftest.$ac_ext
  20069. LIBS=$ac_check_lib_save_LIBS
  20070. fi
  20071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20072. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20073. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20074. USB_LIBS="$USB_LIBS -lusb"
  20075. fi
  20076. fi
  20077. save_CFLAGS="$CFLAGS"
  20078. CFLAGS="$CFLAGS $USB_CFLAGS"
  20079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20080. $as_echo_n "checking for usbhid... " >&6; }
  20081. have_usbhid=no
  20082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20083. /* end confdefs.h. */
  20084. #include <sys/types.h>
  20085. #if defined(HAVE_USB_H)
  20086. #include <usb.h>
  20087. #endif
  20088. #ifdef __DragonFly__
  20089. # include <bus/usb/usb.h>
  20090. # include <bus/usb/usbhid.h>
  20091. #else
  20092. # include <dev/usb/usb.h>
  20093. # include <dev/usb/usbhid.h>
  20094. #endif
  20095. #if defined(HAVE_USBHID_H)
  20096. #include <usbhid.h>
  20097. #elif defined(HAVE_LIBUSB_H)
  20098. #include <libusb.h>
  20099. #elif defined(HAVE_LIBUSBHID_H)
  20100. #include <libusbhid.h>
  20101. #endif
  20102. int
  20103. main ()
  20104. {
  20105. struct report_desc *repdesc;
  20106. struct usb_ctl_report *repbuf;
  20107. hid_kind_t hidkind;
  20108. ;
  20109. return 0;
  20110. }
  20111. _ACEOF
  20112. if ac_fn_c_try_compile "$LINENO"; then :
  20113. have_usbhid=yes
  20114. fi
  20115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20117. $as_echo "$have_usbhid" >&6; }
  20118. if test x$have_usbhid = xyes; then
  20119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20120. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20121. have_usbhid_ucr_data=no
  20122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20123. /* end confdefs.h. */
  20124. #include <sys/types.h>
  20125. #if defined(HAVE_USB_H)
  20126. #include <usb.h>
  20127. #endif
  20128. #ifdef __DragonFly__
  20129. # include <bus/usb/usb.h>
  20130. # include <bus/usb/usbhid.h>
  20131. #else
  20132. # include <dev/usb/usb.h>
  20133. # include <dev/usb/usbhid.h>
  20134. #endif
  20135. #if defined(HAVE_USBHID_H)
  20136. #include <usbhid.h>
  20137. #elif defined(HAVE_LIBUSB_H)
  20138. #include <libusb.h>
  20139. #elif defined(HAVE_LIBUSBHID_H)
  20140. #include <libusbhid.h>
  20141. #endif
  20142. int
  20143. main ()
  20144. {
  20145. struct usb_ctl_report buf;
  20146. if (buf.ucr_data) { }
  20147. ;
  20148. return 0;
  20149. }
  20150. _ACEOF
  20151. if ac_fn_c_try_compile "$LINENO"; then :
  20152. have_usbhid_ucr_data=yes
  20153. fi
  20154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20155. if test x$have_usbhid_ucr_data = xyes; then
  20156. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20157. fi
  20158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20159. $as_echo "$have_usbhid_ucr_data" >&6; }
  20160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20161. $as_echo_n "checking for new usbhid API... " >&6; }
  20162. have_usbhid_new=no
  20163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20164. /* end confdefs.h. */
  20165. #include <sys/types.h>
  20166. #if defined(HAVE_USB_H)
  20167. #include <usb.h>
  20168. #endif
  20169. #ifdef __DragonFly__
  20170. #include <bus/usb/usb.h>
  20171. #include <bus/usb/usbhid.h>
  20172. #else
  20173. #include <dev/usb/usb.h>
  20174. #include <dev/usb/usbhid.h>
  20175. #endif
  20176. #if defined(HAVE_USBHID_H)
  20177. #include <usbhid.h>
  20178. #elif defined(HAVE_LIBUSB_H)
  20179. #include <libusb.h>
  20180. #elif defined(HAVE_LIBUSBHID_H)
  20181. #include <libusbhid.h>
  20182. #endif
  20183. int
  20184. main ()
  20185. {
  20186. report_desc_t d;
  20187. hid_start_parse(d, 1, 1);
  20188. ;
  20189. return 0;
  20190. }
  20191. _ACEOF
  20192. if ac_fn_c_try_compile "$LINENO"; then :
  20193. have_usbhid_new=yes
  20194. fi
  20195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20196. if test x$have_usbhid_new = xyes; then
  20197. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20198. fi
  20199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20200. $as_echo "$have_usbhid_new" >&6; }
  20201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20202. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20203. have_machine_joystick=no
  20204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20205. /* end confdefs.h. */
  20206. #include <machine/joystick.h>
  20207. int
  20208. main ()
  20209. {
  20210. struct joystick t;
  20211. ;
  20212. return 0;
  20213. }
  20214. _ACEOF
  20215. if ac_fn_c_try_compile "$LINENO"; then :
  20216. have_machine_joystick=yes
  20217. fi
  20218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20219. if test x$have_machine_joystick = xyes; then
  20220. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20221. fi
  20222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20223. $as_echo "$have_machine_joystick" >&6; }
  20224. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20225. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20226. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20227. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20228. have_joystick=yes
  20229. fi
  20230. CFLAGS="$save_CFLAGS"
  20231. fi
  20232. ;;
  20233. esac
  20234. }
  20235. CheckHIDAPI()
  20236. {
  20237. # The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
  20238. # so we'll just use libusb when it's available.
  20239. #
  20240. # Except that libusb requires root permissions to open devices, so that's not generally useful, and we'll disable this by default.
  20241. # Check whether --enable-hidapi was given.
  20242. if test "${enable_hidapi+set}" = set; then :
  20243. enableval=$enable_hidapi;
  20244. else
  20245. enable_hidapi=no
  20246. fi
  20247. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20248. hidapi_support=no
  20249. # Extract the first word of "pkg-config", so it can be a program name with args.
  20250. set dummy pkg-config; ac_word=$2
  20251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20252. $as_echo_n "checking for $ac_word... " >&6; }
  20253. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  20254. $as_echo_n "(cached) " >&6
  20255. else
  20256. case $PKG_CONFIG in
  20257. [\\/]* | ?:[\\/]*)
  20258. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  20259. ;;
  20260. *)
  20261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20262. for as_dir in $PATH
  20263. do
  20264. IFS=$as_save_IFS
  20265. test -z "$as_dir" && as_dir=.
  20266. for ac_exec_ext in '' $ac_executable_extensions; do
  20267. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20268. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20269. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20270. break 2
  20271. fi
  20272. done
  20273. done
  20274. IFS=$as_save_IFS
  20275. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  20276. ;;
  20277. esac
  20278. fi
  20279. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  20280. if test -n "$PKG_CONFIG"; then
  20281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  20282. $as_echo "$PKG_CONFIG" >&6; }
  20283. else
  20284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20285. $as_echo "no" >&6; }
  20286. fi
  20287. if test x$PKG_CONFIG != xno; then
  20288. LIBUSB_CFLAGS=`$PKG_CONFIG --cflags libusb-1.0`
  20289. LIBUSB_LDFLAGS=`$PKG_CONFIG --libs libusb-1.0`
  20290. save_CFLAGS="$CFLAGS"
  20291. CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
  20292. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20293. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20294. have_libusb_h=yes
  20295. fi
  20296. CFLAGS="$save_CFLAGS"
  20297. fi
  20298. if test x$have_libusb_h = xyes; then
  20299. hidapi_support=yes
  20300. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20301. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20302. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20303. SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
  20304. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  20305. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LDFLAGS"
  20306. fi
  20307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  20308. $as_echo_n "checking for hidapi support... " >&6; }
  20309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  20310. $as_echo "$hidapi_support" >&6; }
  20311. fi
  20312. }
  20313. CheckClockGettime()
  20314. {
  20315. # Check whether --enable-clock_gettime was given.
  20316. if test "${enable_clock_gettime+set}" = set; then :
  20317. enableval=$enable_clock_gettime;
  20318. else
  20319. enable_clock_gettime=yes
  20320. fi
  20321. if test x$enable_clock_gettime = xyes; then
  20322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20323. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20324. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20325. $as_echo_n "(cached) " >&6
  20326. else
  20327. ac_check_lib_save_LIBS=$LIBS
  20328. LIBS="-lrt $LIBS"
  20329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20330. /* end confdefs.h. */
  20331. /* Override any GCC internal prototype to avoid an error.
  20332. Use char because int might match the return type of a GCC
  20333. builtin and then its argument prototype would still apply. */
  20334. #ifdef __cplusplus
  20335. extern "C"
  20336. #endif
  20337. char clock_gettime ();
  20338. int
  20339. main ()
  20340. {
  20341. return clock_gettime ();
  20342. ;
  20343. return 0;
  20344. }
  20345. _ACEOF
  20346. if ac_fn_c_try_link "$LINENO"; then :
  20347. ac_cv_lib_rt_clock_gettime=yes
  20348. else
  20349. ac_cv_lib_rt_clock_gettime=no
  20350. fi
  20351. rm -f core conftest.err conftest.$ac_objext \
  20352. conftest$ac_exeext conftest.$ac_ext
  20353. LIBS=$ac_check_lib_save_LIBS
  20354. fi
  20355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20356. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20357. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20358. have_clock_gettime=yes
  20359. fi
  20360. if test x$have_clock_gettime = xyes; then
  20361. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20362. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20363. else
  20364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20365. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20366. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20367. $as_echo_n "(cached) " >&6
  20368. else
  20369. ac_check_lib_save_LIBS=$LIBS
  20370. LIBS="-lc $LIBS"
  20371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20372. /* end confdefs.h. */
  20373. /* Override any GCC internal prototype to avoid an error.
  20374. Use char because int might match the return type of a GCC
  20375. builtin and then its argument prototype would still apply. */
  20376. #ifdef __cplusplus
  20377. extern "C"
  20378. #endif
  20379. char clock_gettime ();
  20380. int
  20381. main ()
  20382. {
  20383. return clock_gettime ();
  20384. ;
  20385. return 0;
  20386. }
  20387. _ACEOF
  20388. if ac_fn_c_try_link "$LINENO"; then :
  20389. ac_cv_lib_c_clock_gettime=yes
  20390. else
  20391. ac_cv_lib_c_clock_gettime=no
  20392. fi
  20393. rm -f core conftest.err conftest.$ac_objext \
  20394. conftest$ac_exeext conftest.$ac_ext
  20395. LIBS=$ac_check_lib_save_LIBS
  20396. fi
  20397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20398. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20399. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20400. have_clock_gettime=yes
  20401. fi
  20402. if test x$have_clock_gettime = xyes; then
  20403. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20404. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20405. fi
  20406. fi
  20407. fi
  20408. }
  20409. CheckLinuxVersion()
  20410. {
  20411. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20412. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20413. have_linux_version_h=yes
  20414. fi
  20415. if test x$have_linux_version_h = xyes; then
  20416. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20417. fi
  20418. }
  20419. CheckRPATH()
  20420. {
  20421. # Check whether --enable-rpath was given.
  20422. if test "${enable_rpath+set}" = set; then :
  20423. enableval=$enable_rpath;
  20424. else
  20425. enable_rpath=yes
  20426. fi
  20427. }
  20428. CheckEventSignals()
  20429. {
  20430. # Check whether --enable-backgrounding-signal was given.
  20431. if test "${enable_backgrounding_signal+set}" = set; then :
  20432. enableval=$enable_backgrounding_signal;
  20433. else
  20434. enable_backgrounding_signal=no
  20435. fi
  20436. if test x$enable_backgrounding_signal != xno; then
  20437. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  20438. fi
  20439. # Check whether --enable-foregrounding-signal was given.
  20440. if test "${enable_foregrounding_signal+set}" = set; then :
  20441. enableval=$enable_foregrounding_signal;
  20442. else
  20443. enable_foregrounding_signal=no
  20444. fi
  20445. if test x$enable_foregrounding_signal != xno; then
  20446. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  20447. fi
  20448. }
  20449. CheckWarnAll
  20450. CheckEventSignals
  20451. case "$host" in
  20452. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20453. case "$host" in
  20454. *-*-android*)
  20455. # Android
  20456. ARCH=android
  20457. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20458. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20459. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20460. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20461. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20462. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20463. if test x$enable_video = xyes; then
  20464. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20465. # FIXME: confdefs? Not AC_DEFINE?
  20466. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20467. SUMMARY_video="${SUMMARY_video} android"
  20468. fi
  20469. ;;
  20470. *-*-linux*) ARCH=linux ;;
  20471. *-*-uclinux*) ARCH=linux ;;
  20472. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20473. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20474. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20475. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20476. *-*-bsdi*) ARCH=bsdi ;;
  20477. *-*-freebsd*) ARCH=freebsd ;;
  20478. *-*-dragonfly*) ARCH=freebsd ;;
  20479. *-*-netbsd*) ARCH=netbsd ;;
  20480. *-*-openbsd*) ARCH=openbsd ;;
  20481. *-*-sysv5*) ARCH=sysv5 ;;
  20482. *-*-solaris*) ARCH=solaris ;;
  20483. *-*-hpux*) ARCH=hpux ;;
  20484. *-*-aix*) ARCH=aix ;;
  20485. *-*-minix*) ARCH=minix ;;
  20486. *-*-nto*) ARCH=nto
  20487. CheckQNXVideo
  20488. ;;
  20489. esac
  20490. CheckVisibilityHidden
  20491. CheckDeclarationAfterStatement
  20492. CheckDummyVideo
  20493. CheckDiskAudio
  20494. CheckDummyAudio
  20495. CheckDLOPEN
  20496. CheckOSS
  20497. CheckALSA
  20498. CheckPulseAudio
  20499. CheckJACK
  20500. CheckARTSC
  20501. CheckESD
  20502. CheckNAS
  20503. CheckSNDIO
  20504. CheckFusionSound
  20505. CheckLibSampleRate
  20506. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  20507. CheckRPI
  20508. CheckX11
  20509. CheckDirectFB
  20510. CheckKMSDRM
  20511. CheckOpenGLX11
  20512. CheckOpenGLESX11
  20513. CheckVulkan
  20514. CheckWayland
  20515. CheckLibUDev
  20516. CheckDBus
  20517. CheckIME
  20518. CheckIBus
  20519. CheckFcitx
  20520. case $ARCH in
  20521. linux)
  20522. CheckInputEvents
  20523. CheckInputKD
  20524. ;;
  20525. esac
  20526. CheckTslib
  20527. CheckUSBHID
  20528. CheckHIDAPI
  20529. CheckPTHREAD
  20530. CheckClockGettime
  20531. CheckLinuxVersion
  20532. CheckRPATH
  20533. CheckVivanteVideo
  20534. # Set up files for the audio library
  20535. if test x$enable_audio = xyes; then
  20536. case $ARCH in
  20537. sysv5|solaris|hpux)
  20538. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  20539. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  20540. SUMMARY_audio="${SUMMARY_audio} sun"
  20541. have_audio=yes
  20542. ;;
  20543. netbsd) # Don't use this on OpenBSD, it's busted.
  20544. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  20545. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  20546. SUMMARY_audio="${SUMMARY_audio} netbsd"
  20547. have_audio=yes
  20548. ;;
  20549. aix)
  20550. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  20551. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  20552. SUMMARY_audio="${SUMMARY_audio} paudio"
  20553. have_audio=yes
  20554. ;;
  20555. android)
  20556. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  20557. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  20558. SUMMARY_audio="${SUMMARY_audio} android"
  20559. have_audio=yes
  20560. ;;
  20561. nto)
  20562. CheckQNXAudio
  20563. ;;
  20564. esac
  20565. fi
  20566. # Set up files for the joystick library
  20567. if test x$enable_joystick = xyes; then
  20568. case $ARCH in
  20569. linux)
  20570. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  20571. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  20572. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20573. have_joystick=yes
  20574. ;;
  20575. android)
  20576. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  20577. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  20578. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20579. have_joystick=yes
  20580. ;;
  20581. esac
  20582. fi
  20583. # Set up files for the haptic library
  20584. if test x$enable_haptic = xyes; then
  20585. case $ARCH in
  20586. linux)
  20587. if test x$use_input_events = xyes; then
  20588. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  20589. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  20590. have_haptic=yes
  20591. fi
  20592. ;;
  20593. android)
  20594. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  20595. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  20596. have_haptic=yes
  20597. ;;
  20598. esac
  20599. fi
  20600. # Set up files for the sensor library
  20601. if test x$enable_sensor = xyes; then
  20602. case $ARCH in
  20603. android)
  20604. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  20605. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  20606. have_sensor=yes
  20607. ;;
  20608. esac
  20609. fi
  20610. # Set up files for the power library
  20611. if test x$enable_power = xyes; then
  20612. case $ARCH in
  20613. linux)
  20614. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  20615. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  20616. have_power=yes
  20617. ;;
  20618. android)
  20619. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  20620. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  20621. have_power=yes
  20622. ;;
  20623. esac
  20624. fi
  20625. # Set up files for the filesystem library
  20626. if test x$enable_filesystem = xyes; then
  20627. case $ARCH in
  20628. android)
  20629. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  20630. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  20631. have_filesystem=yes
  20632. ;;
  20633. *)
  20634. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  20635. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  20636. have_filesystem=yes
  20637. ;;
  20638. esac
  20639. fi
  20640. # Set up files for the timer library
  20641. if test x$enable_timers = xyes; then
  20642. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20643. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20644. have_timers=yes
  20645. fi
  20646. # Set up files for udev hotplugging support
  20647. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  20648. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  20649. fi
  20650. # Set up files for evdev input
  20651. if test x$use_input_events = xyes; then
  20652. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  20653. fi
  20654. # Set up other core UNIX files
  20655. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  20656. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20657. ;;
  20658. *-*-cygwin* | *-*-mingw32*)
  20659. ARCH=win32
  20660. if test "$build" != "$host"; then # cross-compiling
  20661. # Default cross-compile location
  20662. ac_default_prefix=/usr/local/cross-tools/$host
  20663. else
  20664. # Look for the location of the tools and install there
  20665. if test "$BUILD_PREFIX" != ""; then
  20666. ac_default_prefix=$BUILD_PREFIX
  20667. fi
  20668. fi
  20669. CheckDeclarationAfterStatement
  20670. CheckDummyVideo
  20671. CheckDiskAudio
  20672. CheckDummyAudio
  20673. CheckWINDOWS
  20674. CheckWINDOWSGL
  20675. CheckWINDOWSGLES
  20676. CheckVulkan
  20677. CheckDIRECTX
  20678. # Set up the core platform files
  20679. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  20680. # Set up files for the video library
  20681. if test x$enable_video = xyes; then
  20682. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  20683. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  20684. have_video=yes
  20685. # Check whether --enable-render-d3d was given.
  20686. if test "${enable_render_d3d+set}" = set; then :
  20687. enableval=$enable_render_d3d;
  20688. else
  20689. enable_render_d3d=yes
  20690. fi
  20691. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  20692. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  20693. fi
  20694. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  20695. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  20696. fi
  20697. fi
  20698. # Set up files for the audio library
  20699. if test x$enable_audio = xyes; then
  20700. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  20701. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  20702. if test x$have_dsound = xyes; then
  20703. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  20704. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  20705. fi
  20706. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  20707. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  20708. SUMMARY_audio="${SUMMARY_audio} wasapi"
  20709. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  20710. fi
  20711. have_audio=yes
  20712. fi
  20713. # Set up files for the joystick library
  20714. if test x$enable_joystick = xyes; then
  20715. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20716. if test x$have_xinput = xyes; then
  20717. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  20718. fi
  20719. if test x$have_dinput = xyes; then
  20720. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  20721. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  20722. fi
  20723. else
  20724. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  20725. fi
  20726. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20727. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  20728. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20729. SOURCES="$SOURCES $srcdir/src/hidapi/windows/hid.c"
  20730. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20731. have_joystick=yes
  20732. fi
  20733. if test x$enable_haptic = xyes; then
  20734. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20735. if test x$have_xinput = xyes; then
  20736. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  20737. fi
  20738. if test x$have_dinput = xyes; then
  20739. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  20740. fi
  20741. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  20742. have_haptic=yes
  20743. fi
  20744. fi
  20745. if test x$enable_power = xyes; then
  20746. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  20747. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  20748. have_power=yes
  20749. fi
  20750. if test x$enable_filesystem = xyes; then
  20751. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  20752. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  20753. have_filesystem=yes
  20754. fi
  20755. # Set up files for the thread library
  20756. if test x$enable_threads = xyes; then
  20757. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  20758. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  20759. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  20760. have_threads=yes
  20761. fi
  20762. # Set up files for the timer library
  20763. if test x$enable_timers = xyes; then
  20764. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  20765. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  20766. have_timers=yes
  20767. fi
  20768. # Set up files for the shared object loading library
  20769. if test x$enable_loadso = xyes; then
  20770. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  20771. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  20772. have_loadso=yes
  20773. fi
  20774. # Set up the system libraries we need
  20775. if test -f /lib/w32api/libuuid.a; then
  20776. LIBUUID=/lib/w32api/libuuid.a
  20777. else
  20778. LIBUUID=-luuid
  20779. fi
  20780. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  20781. # The Windows platform requires special setup
  20782. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  20783. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  20784. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  20785. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  20786. # Check to see if this is a mingw or cygwin build
  20787. have_mingw32=
  20788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  20789. $as_echo_n "checking for main in -lmingw32... " >&6; }
  20790. if ${ac_cv_lib_mingw32_main+:} false; then :
  20791. $as_echo_n "(cached) " >&6
  20792. else
  20793. ac_check_lib_save_LIBS=$LIBS
  20794. LIBS="-lmingw32 $LIBS"
  20795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20796. /* end confdefs.h. */
  20797. int
  20798. main ()
  20799. {
  20800. return main ();
  20801. ;
  20802. return 0;
  20803. }
  20804. _ACEOF
  20805. if ac_fn_c_try_link "$LINENO"; then :
  20806. ac_cv_lib_mingw32_main=yes
  20807. else
  20808. ac_cv_lib_mingw32_main=no
  20809. fi
  20810. rm -f core conftest.err conftest.$ac_objext \
  20811. conftest$ac_exeext conftest.$ac_ext
  20812. LIBS=$ac_check_lib_save_LIBS
  20813. fi
  20814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  20815. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  20816. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  20817. have_mingw32=yes
  20818. fi
  20819. if test x$have_mingw32 = xyes; then
  20820. SDL_LIBS="-lmingw32 $SDL_LIBS"
  20821. else
  20822. SDL_LIBS="-lcygwin $SDL_LIBS"
  20823. fi
  20824. ;;
  20825. *-*-beos*)
  20826. as_fn_error $? "
  20827. *** BeOS support has been removed as of SDL 2.0.2.
  20828. " "$LINENO" 5
  20829. ;;
  20830. *-*-haiku*)
  20831. ARCH=haiku
  20832. ac_default_prefix=/boot/system
  20833. CheckDummyVideo
  20834. CheckDiskAudio
  20835. CheckDummyAudio
  20836. CheckDLOPEN
  20837. CheckHaikuVideo
  20838. CheckHaikuGL
  20839. CheckPTHREAD
  20840. # Set up files for the audio library
  20841. if test x$enable_audio = xyes; then
  20842. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  20843. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  20844. SUMMARY_audio="${SUMMARY_audio} haiku"
  20845. have_audio=yes
  20846. fi
  20847. # Set up files for the joystick library
  20848. if test x$enable_joystick = xyes; then
  20849. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  20850. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  20851. have_joystick=yes
  20852. fi
  20853. # Set up files for the timer library
  20854. if test x$enable_timers = xyes; then
  20855. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  20856. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  20857. have_timers=yes
  20858. fi
  20859. # Set up files for the system power library
  20860. if test x$enable_power = xyes; then
  20861. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  20862. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  20863. have_power=yes
  20864. fi
  20865. # Set up files for the system filesystem library
  20866. if test x$enable_filesystem = xyes; then
  20867. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20868. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20869. have_filesystem=yes
  20870. fi
  20871. # The Haiku platform requires special setup.
  20872. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20873. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  20874. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  20875. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  20876. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  20877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  20878. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  20879. if eval \${$as_ac_File+:} false; then :
  20880. $as_echo_n "(cached) " >&6
  20881. else
  20882. test "$cross_compiling" = yes &&
  20883. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  20884. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  20885. eval "$as_ac_File=yes"
  20886. else
  20887. eval "$as_ac_File=no"
  20888. fi
  20889. fi
  20890. eval ac_res=\$$as_ac_File
  20891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20892. $as_echo "$ac_res" >&6; }
  20893. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  20894. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  20895. else
  20896. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  20897. fi
  20898. ;;
  20899. arm*-apple-darwin*|*-ios-*)
  20900. ARCH=ios
  20901. CheckVisibilityHidden
  20902. CheckDeclarationAfterStatement
  20903. CheckDummyVideo
  20904. CheckDiskAudio
  20905. CheckDummyAudio
  20906. CheckDLOPEN
  20907. CheckMETAL
  20908. CheckVulkan
  20909. CheckPTHREAD
  20910. # Set up files for the audio library
  20911. if test x$enable_audio = xyes; then
  20912. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20913. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20914. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20915. have_audio=yes
  20916. fi
  20917. # Set up files for the joystick library
  20918. if test x$enable_joystick = xyes; then
  20919. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20920. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20921. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20922. have_joystick=yes
  20923. fi
  20924. # Set up files for the haptic library
  20925. #if test x$enable_haptic = xyes; then
  20926. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20927. # have_haptic=yes
  20928. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20929. #fi
  20930. # Set up files for the power library
  20931. if test x$enable_power = xyes; then
  20932. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  20933. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20934. have_power=yes
  20935. fi
  20936. # Set up files for the filesystem library
  20937. if test x$enable_filesystem = xyes; then
  20938. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20939. have_filesystem=yes
  20940. fi
  20941. # Set up additional files for the file library
  20942. if test x$enable_file = xyes; then
  20943. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20944. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20945. fi
  20946. # Set up files for the timer library
  20947. if test x$enable_timers = xyes; then
  20948. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20949. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20950. have_timers=yes
  20951. fi
  20952. # Set up other core UNIX files
  20953. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20954. # The iOS platform requires special setup.
  20955. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  20956. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20957. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20958. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20959. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20960. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20961. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20962. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  20963. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20964. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20965. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20966. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20967. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20968. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20969. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20970. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20971. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20972. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  20973. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  20974. fi
  20975. ;;
  20976. *-*-darwin* )
  20977. # This could be either full "Mac OS X", or plain "Darwin" which is
  20978. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20979. # Next line is broken, and a few files below require Mac OS X (full)
  20980. ARCH=macosx
  20981. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20982. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20983. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20984. CheckVisibilityHidden
  20985. CheckDeclarationAfterStatement
  20986. CheckDummyVideo
  20987. CheckDiskAudio
  20988. CheckDummyAudio
  20989. CheckDLOPEN
  20990. CheckCOCOA
  20991. CheckMETAL
  20992. CheckX11
  20993. CheckMacGL
  20994. CheckMacGLES
  20995. CheckOpenGLX11
  20996. CheckVulkan
  20997. CheckPTHREAD
  20998. # Set up files for the audio library
  20999. if test x$enable_audio = xyes; then
  21000. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21001. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21002. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21003. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21004. have_audio=yes
  21005. fi
  21006. # Set up files for the joystick library
  21007. if test x$enable_joystick = xyes; then
  21008. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21009. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21010. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21011. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21012. SOURCES="$SOURCES $srcdir/src/hidapi/mac/hid.c"
  21013. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  21014. have_joystick=yes
  21015. fi
  21016. # Set up files for the haptic library
  21017. if test x$enable_haptic = xyes; then
  21018. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21019. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21020. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21021. have_haptic=yes
  21022. fi
  21023. # Set up files for the power library
  21024. if test x$enable_power = xyes; then
  21025. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21026. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21027. have_power=yes
  21028. fi
  21029. # Set up files for the filesystem library
  21030. if test x$enable_filesystem = xyes; then
  21031. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21032. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21033. have_filesystem=yes
  21034. fi
  21035. # Set up files for the timer library
  21036. if test x$enable_timers = xyes; then
  21037. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21038. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21039. have_timers=yes
  21040. fi
  21041. # Set up additional files for the file library
  21042. if test x$enable_file = xyes; then
  21043. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21044. fi
  21045. # Set up other core UNIX files
  21046. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21047. # The Mac OS X platform requires special setup.
  21048. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21049. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21050. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21051. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21052. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21053. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21054. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21055. fi
  21056. ;;
  21057. *-nacl|*-pnacl)
  21058. ARCH=nacl
  21059. CheckNativeClient
  21060. CheckDummyAudio
  21061. CheckDummyVideo
  21062. CheckInputEvents
  21063. CheckPTHREAD
  21064. # Set up files for the timer library
  21065. if test x$enable_timers = xyes; then
  21066. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21067. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21068. have_timers=yes
  21069. fi
  21070. if test x$enable_filesystem = xyes; then
  21071. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21072. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21073. have_filesystem=yes
  21074. fi
  21075. ;;
  21076. *-*-emscripten* )
  21077. if test x$enable_video = xyes; then
  21078. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21079. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21080. have_video=yes
  21081. SUMMARY_video="${SUMMARY_video} emscripten"
  21082. fi
  21083. if test x$enable_audio = xyes; then
  21084. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21085. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21086. have_audio=yes
  21087. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21088. fi
  21089. CheckVisibilityHidden
  21090. CheckDeclarationAfterStatement
  21091. CheckDummyVideo
  21092. CheckDiskAudio
  21093. CheckDummyAudio
  21094. CheckDLOPEN
  21095. CheckClockGettime
  21096. CheckEmscriptenGLES
  21097. # Set up files for the power library
  21098. if test x$enable_power = xyes; then
  21099. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  21100. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  21101. have_power=yes
  21102. fi
  21103. # Set up files for the power library
  21104. if test x$enable_joystick = xyes; then
  21105. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  21106. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  21107. have_joystick=yes
  21108. fi
  21109. # Set up files for the filesystem library
  21110. if test x$enable_filesystem = xyes; then
  21111. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  21112. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  21113. have_filesystem=yes
  21114. fi
  21115. # Set up files for the timer library
  21116. if test x$enable_timers = xyes; then
  21117. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21118. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21119. have_timers=yes
  21120. fi
  21121. ;;
  21122. *)
  21123. as_fn_error $? "
  21124. *** Unsupported host: Please add to configure.in
  21125. " "$LINENO" 5
  21126. ;;
  21127. esac
  21128. # Verify that we have all the platform specific files we need
  21129. if test x$have_joystick != xyes; then
  21130. if test x$enable_joystick = xyes; then
  21131. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  21132. fi
  21133. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21134. fi
  21135. if test x$have_haptic != xyes; then
  21136. if test x$enable_haptic = xyes; then
  21137. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  21138. fi
  21139. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21140. fi
  21141. if test x$have_sensor != xyes; then
  21142. if test x$enable_sensor = xyes; then
  21143. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  21144. fi
  21145. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  21146. fi
  21147. if test x$have_threads != xyes; then
  21148. if test x$enable_threads = xyes; then
  21149. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21150. fi
  21151. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21152. fi
  21153. if test x$have_timers != xyes; then
  21154. if test x$enable_timers = xyes; then
  21155. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21156. fi
  21157. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21158. fi
  21159. if test x$have_filesystem != xyes; then
  21160. if test x$enable_filesystem = xyes; then
  21161. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21162. fi
  21163. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21164. fi
  21165. if test x$have_loadso != xyes; then
  21166. if test x$enable_loadso = xyes; then
  21167. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21168. fi
  21169. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21170. fi
  21171. if test x$SDLMAIN_SOURCES = x; then
  21172. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21173. fi
  21174. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21175. if test x$video_wayland = xyes; then
  21176. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done`
  21177. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done`
  21178. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done`
  21179. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  21180. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  21181. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  21182. echo ;\
  21183. echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21184. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21185. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  21186. echo ;\
  21187. echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21188. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21189. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
  21190. echo ;\
  21191. echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  21192. echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  21193. done ;\
  21194. echo ;\
  21195. for s in $WAYLAND_SOURCES ; do echo -n "\$s:" ; for p in $WAYLAND_PROTOCOLS ; do echo -n " \\$(gen)/\$p-client-protocol.h" ; done ; echo ; done ; echo`
  21196. fi
  21197. OBJECTS=`echo $SOURCES`
  21198. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21199. for EXT in asm cc m c S; do
  21200. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21201. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21202. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  21203. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21204. done
  21205. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21206. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21207. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21208. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  21209. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21210. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  21211. \\$(WINDRES) \\$< \\$@,g"`
  21212. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21213. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21214. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21215. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21216. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21217. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21218. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21219. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21220. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21221. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21222. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21223. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21224. # Set runtime shared library paths as needed
  21225. if test "x$enable_rpath" = "xyes"; then
  21226. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21227. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21229. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21230. have_enable_new_dtags=no
  21231. save_LDFLAGS="$LDFLAGS"
  21232. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21234. /* end confdefs.h. */
  21235. int
  21236. main ()
  21237. {
  21238. ;
  21239. return 0;
  21240. }
  21241. _ACEOF
  21242. if ac_fn_c_try_link "$LINENO"; then :
  21243. have_enable_new_dtags=yes
  21244. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21245. fi
  21246. rm -f core conftest.err conftest.$ac_objext \
  21247. conftest$ac_exeext conftest.$ac_ext
  21248. LDFLAGS="$save_LDFLAGS"
  21249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21250. $as_echo "$have_enable_new_dtags" >&6; }
  21251. fi
  21252. if test $ARCH = solaris; then
  21253. SDL_RLD_FLAGS="-R\${libdir}"
  21254. fi
  21255. else
  21256. SDL_RLD_FLAGS=""
  21257. fi
  21258. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  21259. if test x$enable_shared = xyes; then
  21260. ENABLE_SHARED_TRUE=
  21261. ENABLE_SHARED_FALSE="#"
  21262. else
  21263. ENABLE_SHARED_TRUE="#"
  21264. ENABLE_SHARED_FALSE=
  21265. fi
  21266. if test x$enable_static = xyes; then
  21267. ENABLE_STATIC_TRUE=
  21268. ENABLE_STATIC_FALSE="#"
  21269. else
  21270. ENABLE_STATIC_TRUE="#"
  21271. ENABLE_STATIC_FALSE=
  21272. fi
  21273. cat >Makefile.rules <<__EOF__
  21274. # Build rules for objects
  21275. -include \$(OBJECTS:.lo=.d)
  21276. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21277. $srcdir/src/SDL.c: update-revision
  21278. $DEPENDS
  21279. $VERSION_DEPENDS
  21280. $SDLMAIN_DEPENDS
  21281. $SDLTEST_DEPENDS
  21282. $WAYLAND_PROTOCOLS_DEPENDS
  21283. __EOF__
  21284. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  21285. ac_config_commands="$ac_config_commands sdl2_config"
  21286. SUMMARY="SDL2 Configure Summary:\n"
  21287. if test x$enable_shared = xyes; then
  21288. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21289. fi
  21290. if test x$enable_static = xyes; then
  21291. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21292. fi
  21293. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21294. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21295. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21296. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21297. if test x$have_x = xyes; then
  21298. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21299. fi
  21300. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21301. if test x$have_samplerate_h_hdr = xyes; then
  21302. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21303. else
  21304. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21305. fi
  21306. if test x$have_libudev_h_hdr = xyes; then
  21307. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21308. else
  21309. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21310. fi
  21311. if test x$have_dbus_dbus_h_hdr = xyes; then
  21312. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21313. else
  21314. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21315. fi
  21316. if test x$enable_ime = xyes; then
  21317. SUMMARY="${SUMMARY}Using ime : YES\n"
  21318. else
  21319. SUMMARY="${SUMMARY}Using ime : NO\n"
  21320. fi
  21321. if test x$have_ibus_ibus_h_hdr = xyes; then
  21322. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21323. else
  21324. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21325. fi
  21326. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21327. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21328. else
  21329. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21330. fi
  21331. ac_config_commands="$ac_config_commands summary"
  21332. cat >confcache <<\_ACEOF
  21333. # This file is a shell script that caches the results of configure
  21334. # tests run on this system so they can be shared between configure
  21335. # scripts and configure runs, see configure's option --config-cache.
  21336. # It is not useful on other systems. If it contains results you don't
  21337. # want to keep, you may remove or edit it.
  21338. #
  21339. # config.status only pays attention to the cache file if you give it
  21340. # the --recheck option to rerun configure.
  21341. #
  21342. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21343. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21344. # following values.
  21345. _ACEOF
  21346. # The following way of writing the cache mishandles newlines in values,
  21347. # but we know of no workaround that is simple, portable, and efficient.
  21348. # So, we kill variables containing newlines.
  21349. # Ultrix sh set writes to stderr and can't be redirected directly,
  21350. # and sets the high bit in the cache file unless we assign to the vars.
  21351. (
  21352. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21353. eval ac_val=\$$ac_var
  21354. case $ac_val in #(
  21355. *${as_nl}*)
  21356. case $ac_var in #(
  21357. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21358. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21359. esac
  21360. case $ac_var in #(
  21361. _ | IFS | as_nl) ;; #(
  21362. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21363. *) { eval $ac_var=; unset $ac_var;} ;;
  21364. esac ;;
  21365. esac
  21366. done
  21367. (set) 2>&1 |
  21368. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21369. *${as_nl}ac_space=\ *)
  21370. # `set' does not quote correctly, so add quotes: double-quote
  21371. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21372. sed -n \
  21373. "s/'/'\\\\''/g;
  21374. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21375. ;; #(
  21376. *)
  21377. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21378. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21379. ;;
  21380. esac |
  21381. sort
  21382. ) |
  21383. sed '
  21384. /^ac_cv_env_/b end
  21385. t clear
  21386. :clear
  21387. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21388. t end
  21389. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21390. :end' >>confcache
  21391. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21392. if test -w "$cache_file"; then
  21393. if test "x$cache_file" != "x/dev/null"; then
  21394. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21395. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21396. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21397. cat confcache >"$cache_file"
  21398. else
  21399. case $cache_file in #(
  21400. */* | ?:*)
  21401. mv -f confcache "$cache_file"$$ &&
  21402. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21403. *)
  21404. mv -f confcache "$cache_file" ;;
  21405. esac
  21406. fi
  21407. fi
  21408. else
  21409. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21410. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21411. fi
  21412. fi
  21413. rm -f confcache
  21414. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21415. # Let make expand exec_prefix.
  21416. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21417. DEFS=-DHAVE_CONFIG_H
  21418. ac_libobjs=
  21419. ac_ltlibobjs=
  21420. U=
  21421. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21422. # 1. Remove the extension, and $U if already installed.
  21423. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21424. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21425. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21426. # will be set to the directory where LIBOBJS objects are built.
  21427. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21428. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21429. done
  21430. LIBOBJS=$ac_libobjs
  21431. LTLIBOBJS=$ac_ltlibobjs
  21432. : "${CONFIG_STATUS=./config.status}"
  21433. ac_write_fail=0
  21434. ac_clean_files_save=$ac_clean_files
  21435. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21436. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21437. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21438. as_write_fail=0
  21439. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21440. #! $SHELL
  21441. # Generated by $as_me.
  21442. # Run this file to recreate the current configuration.
  21443. # Compiler output produced by configure, useful for debugging
  21444. # configure, is in config.log if it exists.
  21445. debug=false
  21446. ac_cs_recheck=false
  21447. ac_cs_silent=false
  21448. SHELL=\${CONFIG_SHELL-$SHELL}
  21449. export SHELL
  21450. _ASEOF
  21451. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21452. ## -------------------- ##
  21453. ## M4sh Initialization. ##
  21454. ## -------------------- ##
  21455. # Be more Bourne compatible
  21456. DUALCASE=1; export DUALCASE # for MKS sh
  21457. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21458. emulate sh
  21459. NULLCMD=:
  21460. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21461. # is contrary to our usage. Disable this feature.
  21462. alias -g '${1+"$@"}'='"$@"'
  21463. setopt NO_GLOB_SUBST
  21464. else
  21465. case `(set -o) 2>/dev/null` in #(
  21466. *posix*) :
  21467. set -o posix ;; #(
  21468. *) :
  21469. ;;
  21470. esac
  21471. fi
  21472. as_nl='
  21473. '
  21474. export as_nl
  21475. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21476. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21477. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21478. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21479. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21480. # but without wasting forks for bash or zsh.
  21481. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21482. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21483. as_echo='print -r --'
  21484. as_echo_n='print -rn --'
  21485. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21486. as_echo='printf %s\n'
  21487. as_echo_n='printf %s'
  21488. else
  21489. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21490. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21491. as_echo_n='/usr/ucb/echo -n'
  21492. else
  21493. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21494. as_echo_n_body='eval
  21495. arg=$1;
  21496. case $arg in #(
  21497. *"$as_nl"*)
  21498. expr "X$arg" : "X\\(.*\\)$as_nl";
  21499. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21500. esac;
  21501. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21502. '
  21503. export as_echo_n_body
  21504. as_echo_n='sh -c $as_echo_n_body as_echo'
  21505. fi
  21506. export as_echo_body
  21507. as_echo='sh -c $as_echo_body as_echo'
  21508. fi
  21509. # The user is always right.
  21510. if test "${PATH_SEPARATOR+set}" != set; then
  21511. PATH_SEPARATOR=:
  21512. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21513. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21514. PATH_SEPARATOR=';'
  21515. }
  21516. fi
  21517. # IFS
  21518. # We need space, tab and new line, in precisely that order. Quoting is
  21519. # there to prevent editors from complaining about space-tab.
  21520. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21521. # splitting by setting IFS to empty value.)
  21522. IFS=" "" $as_nl"
  21523. # Find who we are. Look in the path if we contain no directory separator.
  21524. as_myself=
  21525. case $0 in #((
  21526. *[\\/]* ) as_myself=$0 ;;
  21527. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21528. for as_dir in $PATH
  21529. do
  21530. IFS=$as_save_IFS
  21531. test -z "$as_dir" && as_dir=.
  21532. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21533. done
  21534. IFS=$as_save_IFS
  21535. ;;
  21536. esac
  21537. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21538. # in which case we are not to be found in the path.
  21539. if test "x$as_myself" = x; then
  21540. as_myself=$0
  21541. fi
  21542. if test ! -f "$as_myself"; then
  21543. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21544. exit 1
  21545. fi
  21546. # Unset variables that we do not need and which cause bugs (e.g. in
  21547. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21548. # suppresses any "Segmentation fault" message there. '((' could
  21549. # trigger a bug in pdksh 5.2.14.
  21550. for as_var in BASH_ENV ENV MAIL MAILPATH
  21551. do eval test x\${$as_var+set} = xset \
  21552. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21553. done
  21554. PS1='$ '
  21555. PS2='> '
  21556. PS4='+ '
  21557. # NLS nuisances.
  21558. LC_ALL=C
  21559. export LC_ALL
  21560. LANGUAGE=C
  21561. export LANGUAGE
  21562. # CDPATH.
  21563. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21564. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21565. # ----------------------------------------
  21566. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21567. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21568. # script with STATUS, using 1 if that was 0.
  21569. as_fn_error ()
  21570. {
  21571. as_status=$1; test $as_status -eq 0 && as_status=1
  21572. if test "$4"; then
  21573. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21574. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21575. fi
  21576. $as_echo "$as_me: error: $2" >&2
  21577. as_fn_exit $as_status
  21578. } # as_fn_error
  21579. # as_fn_set_status STATUS
  21580. # -----------------------
  21581. # Set $? to STATUS, without forking.
  21582. as_fn_set_status ()
  21583. {
  21584. return $1
  21585. } # as_fn_set_status
  21586. # as_fn_exit STATUS
  21587. # -----------------
  21588. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21589. as_fn_exit ()
  21590. {
  21591. set +e
  21592. as_fn_set_status $1
  21593. exit $1
  21594. } # as_fn_exit
  21595. # as_fn_unset VAR
  21596. # ---------------
  21597. # Portably unset VAR.
  21598. as_fn_unset ()
  21599. {
  21600. { eval $1=; unset $1;}
  21601. }
  21602. as_unset=as_fn_unset
  21603. # as_fn_append VAR VALUE
  21604. # ----------------------
  21605. # Append the text in VALUE to the end of the definition contained in VAR. Take
  21606. # advantage of any shell optimizations that allow amortized linear growth over
  21607. # repeated appends, instead of the typical quadratic growth present in naive
  21608. # implementations.
  21609. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  21610. eval 'as_fn_append ()
  21611. {
  21612. eval $1+=\$2
  21613. }'
  21614. else
  21615. as_fn_append ()
  21616. {
  21617. eval $1=\$$1\$2
  21618. }
  21619. fi # as_fn_append
  21620. # as_fn_arith ARG...
  21621. # ------------------
  21622. # Perform arithmetic evaluation on the ARGs, and store the result in the
  21623. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  21624. # must be portable across $(()) and expr.
  21625. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  21626. eval 'as_fn_arith ()
  21627. {
  21628. as_val=$(( $* ))
  21629. }'
  21630. else
  21631. as_fn_arith ()
  21632. {
  21633. as_val=`expr "$@" || test $? -eq 1`
  21634. }
  21635. fi # as_fn_arith
  21636. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21637. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21638. as_expr=expr
  21639. else
  21640. as_expr=false
  21641. fi
  21642. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21643. as_basename=basename
  21644. else
  21645. as_basename=false
  21646. fi
  21647. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21648. as_dirname=dirname
  21649. else
  21650. as_dirname=false
  21651. fi
  21652. as_me=`$as_basename -- "$0" ||
  21653. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21654. X"$0" : 'X\(//\)$' \| \
  21655. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21656. $as_echo X/"$0" |
  21657. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21658. s//\1/
  21659. q
  21660. }
  21661. /^X\/\(\/\/\)$/{
  21662. s//\1/
  21663. q
  21664. }
  21665. /^X\/\(\/\).*/{
  21666. s//\1/
  21667. q
  21668. }
  21669. s/.*/./; q'`
  21670. # Avoid depending upon Character Ranges.
  21671. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21672. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21673. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21674. as_cr_digits='0123456789'
  21675. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21676. ECHO_C= ECHO_N= ECHO_T=
  21677. case `echo -n x` in #(((((
  21678. -n*)
  21679. case `echo 'xy\c'` in
  21680. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21681. xy) ECHO_C='\c';;
  21682. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  21683. ECHO_T=' ';;
  21684. esac;;
  21685. *)
  21686. ECHO_N='-n';;
  21687. esac
  21688. rm -f conf$$ conf$$.exe conf$$.file
  21689. if test -d conf$$.dir; then
  21690. rm -f conf$$.dir/conf$$.file
  21691. else
  21692. rm -f conf$$.dir
  21693. mkdir conf$$.dir 2>/dev/null
  21694. fi
  21695. if (echo >conf$$.file) 2>/dev/null; then
  21696. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21697. as_ln_s='ln -s'
  21698. # ... but there are two gotchas:
  21699. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21700. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21701. # In both cases, we have to default to `cp -pR'.
  21702. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21703. as_ln_s='cp -pR'
  21704. elif ln conf$$.file conf$$ 2>/dev/null; then
  21705. as_ln_s=ln
  21706. else
  21707. as_ln_s='cp -pR'
  21708. fi
  21709. else
  21710. as_ln_s='cp -pR'
  21711. fi
  21712. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21713. rmdir conf$$.dir 2>/dev/null
  21714. # as_fn_mkdir_p
  21715. # -------------
  21716. # Create "$as_dir" as a directory, including parents if necessary.
  21717. as_fn_mkdir_p ()
  21718. {
  21719. case $as_dir in #(
  21720. -*) as_dir=./$as_dir;;
  21721. esac
  21722. test -d "$as_dir" || eval $as_mkdir_p || {
  21723. as_dirs=
  21724. while :; do
  21725. case $as_dir in #(
  21726. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21727. *) as_qdir=$as_dir;;
  21728. esac
  21729. as_dirs="'$as_qdir' $as_dirs"
  21730. as_dir=`$as_dirname -- "$as_dir" ||
  21731. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21732. X"$as_dir" : 'X\(//\)[^/]' \| \
  21733. X"$as_dir" : 'X\(//\)$' \| \
  21734. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21735. $as_echo X"$as_dir" |
  21736. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21737. s//\1/
  21738. q
  21739. }
  21740. /^X\(\/\/\)[^/].*/{
  21741. s//\1/
  21742. q
  21743. }
  21744. /^X\(\/\/\)$/{
  21745. s//\1/
  21746. q
  21747. }
  21748. /^X\(\/\).*/{
  21749. s//\1/
  21750. q
  21751. }
  21752. s/.*/./; q'`
  21753. test -d "$as_dir" && break
  21754. done
  21755. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21756. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  21757. } # as_fn_mkdir_p
  21758. if mkdir -p . 2>/dev/null; then
  21759. as_mkdir_p='mkdir -p "$as_dir"'
  21760. else
  21761. test -d ./-p && rmdir ./-p
  21762. as_mkdir_p=false
  21763. fi
  21764. # as_fn_executable_p FILE
  21765. # -----------------------
  21766. # Test if FILE is an executable regular file.
  21767. as_fn_executable_p ()
  21768. {
  21769. test -f "$1" && test -x "$1"
  21770. } # as_fn_executable_p
  21771. as_test_x='test -x'
  21772. as_executable_p=as_fn_executable_p
  21773. # Sed expression to map a string onto a valid CPP name.
  21774. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21775. # Sed expression to map a string onto a valid variable name.
  21776. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21777. exec 6>&1
  21778. ## ----------------------------------- ##
  21779. ## Main body of $CONFIG_STATUS script. ##
  21780. ## ----------------------------------- ##
  21781. _ASEOF
  21782. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  21783. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21784. # Save the log message, to keep $0 and so on meaningful, and to
  21785. # report actual input values of CONFIG_FILES etc. instead of their
  21786. # values after options handling.
  21787. ac_log="
  21788. This file was extended by $as_me, which was
  21789. generated by GNU Autoconf 2.69. Invocation command line was
  21790. CONFIG_FILES = $CONFIG_FILES
  21791. CONFIG_HEADERS = $CONFIG_HEADERS
  21792. CONFIG_LINKS = $CONFIG_LINKS
  21793. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21794. $ $0 $@
  21795. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21796. "
  21797. _ACEOF
  21798. case $ac_config_files in *"
  21799. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21800. esac
  21801. case $ac_config_headers in *"
  21802. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21803. esac
  21804. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21805. # Files that config.status was made for.
  21806. config_files="$ac_config_files"
  21807. config_headers="$ac_config_headers"
  21808. config_commands="$ac_config_commands"
  21809. _ACEOF
  21810. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21811. ac_cs_usage="\
  21812. \`$as_me' instantiates files and other configuration actions
  21813. from templates according to the current configuration. Unless the files
  21814. and actions are specified as TAGs, all are instantiated by default.
  21815. Usage: $0 [OPTION]... [TAG]...
  21816. -h, --help print this help, then exit
  21817. -V, --version print version number and configuration settings, then exit
  21818. --config print configuration, then exit
  21819. -q, --quiet, --silent
  21820. do not print progress messages
  21821. -d, --debug don't remove temporary files
  21822. --recheck update $as_me by reconfiguring in the same conditions
  21823. --file=FILE[:TEMPLATE]
  21824. instantiate the configuration file FILE
  21825. --header=FILE[:TEMPLATE]
  21826. instantiate the configuration header FILE
  21827. Configuration files:
  21828. $config_files
  21829. Configuration headers:
  21830. $config_headers
  21831. Configuration commands:
  21832. $config_commands
  21833. Report bugs to the package provider."
  21834. _ACEOF
  21835. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21836. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21837. ac_cs_version="\\
  21838. config.status
  21839. configured by $0, generated by GNU Autoconf 2.69,
  21840. with options \\"\$ac_cs_config\\"
  21841. Copyright (C) 2012 Free Software Foundation, Inc.
  21842. This config.status script is free software; the Free Software Foundation
  21843. gives unlimited permission to copy, distribute and modify it."
  21844. ac_pwd='$ac_pwd'
  21845. srcdir='$srcdir'
  21846. INSTALL='$INSTALL'
  21847. AWK='$AWK'
  21848. test -n "\$AWK" || AWK=awk
  21849. _ACEOF
  21850. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21851. # The default lists apply if the user does not specify any file.
  21852. ac_need_defaults=:
  21853. while test $# != 0
  21854. do
  21855. case $1 in
  21856. --*=?*)
  21857. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21858. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21859. ac_shift=:
  21860. ;;
  21861. --*=)
  21862. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21863. ac_optarg=
  21864. ac_shift=:
  21865. ;;
  21866. *)
  21867. ac_option=$1
  21868. ac_optarg=$2
  21869. ac_shift=shift
  21870. ;;
  21871. esac
  21872. case $ac_option in
  21873. # Handling of the options.
  21874. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21875. ac_cs_recheck=: ;;
  21876. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21877. $as_echo "$ac_cs_version"; exit ;;
  21878. --config | --confi | --conf | --con | --co | --c )
  21879. $as_echo "$ac_cs_config"; exit ;;
  21880. --debug | --debu | --deb | --de | --d | -d )
  21881. debug=: ;;
  21882. --file | --fil | --fi | --f )
  21883. $ac_shift
  21884. case $ac_optarg in
  21885. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21886. '') as_fn_error $? "missing file argument" ;;
  21887. esac
  21888. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21889. ac_need_defaults=false;;
  21890. --header | --heade | --head | --hea )
  21891. $ac_shift
  21892. case $ac_optarg in
  21893. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21894. esac
  21895. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21896. ac_need_defaults=false;;
  21897. --he | --h)
  21898. # Conflict between --help and --header
  21899. as_fn_error $? "ambiguous option: \`$1'
  21900. Try \`$0 --help' for more information.";;
  21901. --help | --hel | -h )
  21902. $as_echo "$ac_cs_usage"; exit ;;
  21903. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21904. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21905. ac_cs_silent=: ;;
  21906. # This is an error.
  21907. -*) as_fn_error $? "unrecognized option: \`$1'
  21908. Try \`$0 --help' for more information." ;;
  21909. *) as_fn_append ac_config_targets " $1"
  21910. ac_need_defaults=false ;;
  21911. esac
  21912. shift
  21913. done
  21914. ac_configure_extra_args=
  21915. if $ac_cs_silent; then
  21916. exec 6>/dev/null
  21917. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21918. fi
  21919. _ACEOF
  21920. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21921. if \$ac_cs_recheck; then
  21922. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21923. shift
  21924. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21925. CONFIG_SHELL='$SHELL'
  21926. export CONFIG_SHELL
  21927. exec "\$@"
  21928. fi
  21929. _ACEOF
  21930. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21931. exec 5>>config.log
  21932. {
  21933. echo
  21934. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21935. ## Running $as_me. ##
  21936. _ASBOX
  21937. $as_echo "$ac_log"
  21938. } >&5
  21939. _ACEOF
  21940. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21941. #
  21942. # INIT-COMMANDS
  21943. #
  21944. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21945. # if CDPATH is set.
  21946. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21947. sed_quote_subst='$sed_quote_subst'
  21948. double_quote_subst='$double_quote_subst'
  21949. delay_variable_subst='$delay_variable_subst'
  21950. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21951. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21952. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21953. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21954. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21955. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21956. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21957. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21958. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21959. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21960. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21961. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21962. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21963. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21964. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21965. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21966. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21967. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21968. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21969. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21970. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21971. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21972. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21973. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21974. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21975. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21976. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21977. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21978. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21979. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21980. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21981. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21982. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21983. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21984. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21985. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21986. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21987. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21988. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21989. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21990. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21991. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21992. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21993. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21994. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21995. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21996. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21997. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21998. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21999. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22000. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22001. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22002. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22003. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22004. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22005. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22006. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22007. 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"`'
  22008. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22009. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22010. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22011. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22012. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22013. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22014. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22015. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22016. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22017. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22018. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22019. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22020. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22021. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22022. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22023. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22024. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22025. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22026. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22027. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22028. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22029. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22030. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22031. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22032. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22033. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22034. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22035. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22036. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22037. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22038. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22039. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22040. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22041. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22042. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22043. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22044. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22045. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22046. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22047. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22048. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22049. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22050. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22051. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22052. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22053. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22054. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22055. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22056. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22057. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22058. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22059. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22060. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22061. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22062. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22063. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22064. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22065. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22066. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22067. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22068. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22069. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22070. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22071. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22072. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22073. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22074. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22075. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22076. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22077. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22078. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22079. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22080. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22081. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22082. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22083. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22084. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22085. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22086. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22087. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22088. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22089. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22090. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22091. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22092. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22093. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22094. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22095. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22096. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22097. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22098. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22099. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22100. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22101. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22102. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22103. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22104. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22105. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22106. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22107. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22108. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22109. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22110. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22111. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22112. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22113. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22114. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22115. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22116. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22117. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22118. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22119. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22120. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22121. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22122. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22123. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22124. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22125. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22126. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22127. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22128. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22129. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22130. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22131. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22132. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22133. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22134. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22135. LTCC='$LTCC'
  22136. LTCFLAGS='$LTCFLAGS'
  22137. compiler='$compiler_DEFAULT'
  22138. # A function that is used when there is no print builtin or printf.
  22139. func_fallback_echo ()
  22140. {
  22141. eval 'cat <<_LTECHO_EOF
  22142. \$1
  22143. _LTECHO_EOF'
  22144. }
  22145. # Quote evaled strings.
  22146. for var in AS \
  22147. DLLTOOL \
  22148. OBJDUMP \
  22149. SHELL \
  22150. ECHO \
  22151. PATH_SEPARATOR \
  22152. SED \
  22153. GREP \
  22154. EGREP \
  22155. FGREP \
  22156. LD \
  22157. NM \
  22158. LN_S \
  22159. lt_SP2NL \
  22160. lt_NL2SP \
  22161. reload_flag \
  22162. deplibs_check_method \
  22163. file_magic_cmd \
  22164. file_magic_glob \
  22165. want_nocaseglob \
  22166. sharedlib_from_linklib_cmd \
  22167. AR \
  22168. AR_FLAGS \
  22169. archiver_list_spec \
  22170. STRIP \
  22171. RANLIB \
  22172. CC \
  22173. CFLAGS \
  22174. compiler \
  22175. lt_cv_sys_global_symbol_pipe \
  22176. lt_cv_sys_global_symbol_to_cdecl \
  22177. lt_cv_sys_global_symbol_to_c_name_address \
  22178. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22179. nm_file_list_spec \
  22180. lt_prog_compiler_no_builtin_flag \
  22181. lt_prog_compiler_pic \
  22182. lt_prog_compiler_wl \
  22183. lt_prog_compiler_static \
  22184. lt_cv_prog_compiler_c_o \
  22185. need_locks \
  22186. MANIFEST_TOOL \
  22187. DSYMUTIL \
  22188. NMEDIT \
  22189. LIPO \
  22190. OTOOL \
  22191. OTOOL64 \
  22192. shrext_cmds \
  22193. export_dynamic_flag_spec \
  22194. whole_archive_flag_spec \
  22195. compiler_needs_object \
  22196. with_gnu_ld \
  22197. allow_undefined_flag \
  22198. no_undefined_flag \
  22199. hardcode_libdir_flag_spec \
  22200. hardcode_libdir_separator \
  22201. exclude_expsyms \
  22202. include_expsyms \
  22203. file_list_spec \
  22204. variables_saved_for_relink \
  22205. libname_spec \
  22206. library_names_spec \
  22207. soname_spec \
  22208. install_override_mode \
  22209. finish_eval \
  22210. old_striplib \
  22211. striplib \
  22212. compiler_lib_search_dirs \
  22213. predep_objects \
  22214. postdep_objects \
  22215. predeps \
  22216. postdeps \
  22217. compiler_lib_search_path \
  22218. LD_CXX \
  22219. reload_flag_CXX \
  22220. compiler_CXX \
  22221. lt_prog_compiler_no_builtin_flag_CXX \
  22222. lt_prog_compiler_pic_CXX \
  22223. lt_prog_compiler_wl_CXX \
  22224. lt_prog_compiler_static_CXX \
  22225. lt_cv_prog_compiler_c_o_CXX \
  22226. export_dynamic_flag_spec_CXX \
  22227. whole_archive_flag_spec_CXX \
  22228. compiler_needs_object_CXX \
  22229. with_gnu_ld_CXX \
  22230. allow_undefined_flag_CXX \
  22231. no_undefined_flag_CXX \
  22232. hardcode_libdir_flag_spec_CXX \
  22233. hardcode_libdir_separator_CXX \
  22234. exclude_expsyms_CXX \
  22235. include_expsyms_CXX \
  22236. file_list_spec_CXX \
  22237. compiler_lib_search_dirs_CXX \
  22238. predep_objects_CXX \
  22239. postdep_objects_CXX \
  22240. predeps_CXX \
  22241. postdeps_CXX \
  22242. compiler_lib_search_path_CXX; do
  22243. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22244. *[\\\\\\\`\\"\\\$]*)
  22245. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22246. ;;
  22247. *)
  22248. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22249. ;;
  22250. esac
  22251. done
  22252. # Double-quote double-evaled strings.
  22253. for var in reload_cmds \
  22254. old_postinstall_cmds \
  22255. old_postuninstall_cmds \
  22256. old_archive_cmds \
  22257. extract_expsyms_cmds \
  22258. old_archive_from_new_cmds \
  22259. old_archive_from_expsyms_cmds \
  22260. archive_cmds \
  22261. archive_expsym_cmds \
  22262. module_cmds \
  22263. module_expsym_cmds \
  22264. export_symbols_cmds \
  22265. prelink_cmds \
  22266. postlink_cmds \
  22267. postinstall_cmds \
  22268. postuninstall_cmds \
  22269. finish_cmds \
  22270. sys_lib_search_path_spec \
  22271. sys_lib_dlsearch_path_spec \
  22272. reload_cmds_CXX \
  22273. old_archive_cmds_CXX \
  22274. old_archive_from_new_cmds_CXX \
  22275. old_archive_from_expsyms_cmds_CXX \
  22276. archive_cmds_CXX \
  22277. archive_expsym_cmds_CXX \
  22278. module_cmds_CXX \
  22279. module_expsym_cmds_CXX \
  22280. export_symbols_cmds_CXX \
  22281. prelink_cmds_CXX \
  22282. postlink_cmds_CXX; do
  22283. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22284. *[\\\\\\\`\\"\\\$]*)
  22285. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22286. ;;
  22287. *)
  22288. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22289. ;;
  22290. esac
  22291. done
  22292. ac_aux_dir='$ac_aux_dir'
  22293. xsi_shell='$xsi_shell'
  22294. lt_shell_append='$lt_shell_append'
  22295. # See if we are running on zsh, and set the options which allow our
  22296. # commands through without removal of \ escapes INIT.
  22297. if test -n "\${ZSH_VERSION+set}" ; then
  22298. setopt NO_GLOB_SUBST
  22299. fi
  22300. PACKAGE='$PACKAGE'
  22301. VERSION='$VERSION'
  22302. TIMESTAMP='$TIMESTAMP'
  22303. RM='$RM'
  22304. ofile='$ofile'
  22305. SUMMARY="$SUMMARY"
  22306. _ACEOF
  22307. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22308. # Handling of arguments.
  22309. for ac_config_target in $ac_config_targets
  22310. do
  22311. case $ac_config_target in
  22312. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  22313. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22314. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  22315. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  22316. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  22317. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  22318. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  22319. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  22320. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  22321. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22322. esac
  22323. done
  22324. # If the user did not use the arguments to specify the items to instantiate,
  22325. # then the envvar interface is used. Set only those that are not.
  22326. # We use the long form for the default assignment because of an extremely
  22327. # bizarre bug on SunOS 4.1.3.
  22328. if $ac_need_defaults; then
  22329. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22330. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22331. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22332. fi
  22333. # Have a temporary directory for convenience. Make it in the build tree
  22334. # simply because there is no reason against having it here, and in addition,
  22335. # creating and moving files from /tmp can sometimes cause problems.
  22336. # Hook for its removal unless debugging.
  22337. # Note that there is a small window in which the directory will not be cleaned:
  22338. # after its creation but before its name has been assigned to `$tmp'.
  22339. $debug ||
  22340. {
  22341. tmp= ac_tmp=
  22342. trap 'exit_status=$?
  22343. : "${ac_tmp:=$tmp}"
  22344. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22345. ' 0
  22346. trap 'as_fn_exit 1' 1 2 13 15
  22347. }
  22348. # Create a (secure) tmp directory for tmp files.
  22349. {
  22350. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22351. test -d "$tmp"
  22352. } ||
  22353. {
  22354. tmp=./conf$$-$RANDOM
  22355. (umask 077 && mkdir "$tmp")
  22356. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22357. ac_tmp=$tmp
  22358. # Set up the scripts for CONFIG_FILES section.
  22359. # No need to generate them if there are no CONFIG_FILES.
  22360. # This happens for instance with `./config.status config.h'.
  22361. if test -n "$CONFIG_FILES"; then
  22362. ac_cr=`echo X | tr X '\015'`
  22363. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22364. # But we know of no other shell where ac_cr would be empty at this
  22365. # point, so we can use a bashism as a fallback.
  22366. if test "x$ac_cr" = x; then
  22367. eval ac_cr=\$\'\\r\'
  22368. fi
  22369. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22370. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22371. ac_cs_awk_cr='\\r'
  22372. else
  22373. ac_cs_awk_cr=$ac_cr
  22374. fi
  22375. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22376. _ACEOF
  22377. {
  22378. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22379. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22380. echo "_ACEOF"
  22381. } >conf$$subs.sh ||
  22382. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22383. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22384. ac_delim='%!_!# '
  22385. for ac_last_try in false false false false false :; do
  22386. . ./conf$$subs.sh ||
  22387. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22388. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22389. if test $ac_delim_n = $ac_delim_num; then
  22390. break
  22391. elif $ac_last_try; then
  22392. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22393. else
  22394. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22395. fi
  22396. done
  22397. rm -f conf$$subs.sh
  22398. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22399. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22400. _ACEOF
  22401. sed -n '
  22402. h
  22403. s/^/S["/; s/!.*/"]=/
  22404. p
  22405. g
  22406. s/^[^!]*!//
  22407. :repl
  22408. t repl
  22409. s/'"$ac_delim"'$//
  22410. t delim
  22411. :nl
  22412. h
  22413. s/\(.\{148\}\)..*/\1/
  22414. t more1
  22415. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22416. p
  22417. n
  22418. b repl
  22419. :more1
  22420. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22421. p
  22422. g
  22423. s/.\{148\}//
  22424. t nl
  22425. :delim
  22426. h
  22427. s/\(.\{148\}\)..*/\1/
  22428. t more2
  22429. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22430. p
  22431. b
  22432. :more2
  22433. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22434. p
  22435. g
  22436. s/.\{148\}//
  22437. t delim
  22438. ' <conf$$subs.awk | sed '
  22439. /^[^""]/{
  22440. N
  22441. s/\n//
  22442. }
  22443. ' >>$CONFIG_STATUS || ac_write_fail=1
  22444. rm -f conf$$subs.awk
  22445. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22446. _ACAWK
  22447. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22448. for (key in S) S_is_set[key] = 1
  22449. FS = ""
  22450. }
  22451. {
  22452. line = $ 0
  22453. nfields = split(line, field, "@")
  22454. substed = 0
  22455. len = length(field[1])
  22456. for (i = 2; i < nfields; i++) {
  22457. key = field[i]
  22458. keylen = length(key)
  22459. if (S_is_set[key]) {
  22460. value = S[key]
  22461. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22462. len += length(value) + length(field[++i])
  22463. substed = 1
  22464. } else
  22465. len += 1 + keylen
  22466. }
  22467. print line
  22468. }
  22469. _ACAWK
  22470. _ACEOF
  22471. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22472. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22473. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22474. else
  22475. cat
  22476. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22477. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22478. _ACEOF
  22479. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22480. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22481. # trailing colons and then remove the whole line if VPATH becomes empty
  22482. # (actually we leave an empty line to preserve line numbers).
  22483. if test "x$srcdir" = x.; then
  22484. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22485. h
  22486. s///
  22487. s/^/:/
  22488. s/[ ]*$/:/
  22489. s/:\$(srcdir):/:/g
  22490. s/:\${srcdir}:/:/g
  22491. s/:@srcdir@:/:/g
  22492. s/^:*//
  22493. s/:*$//
  22494. x
  22495. s/\(=[ ]*\).*/\1/
  22496. G
  22497. s/\n//
  22498. s/^[^=]*=[ ]*$//
  22499. }'
  22500. fi
  22501. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22502. fi # test -n "$CONFIG_FILES"
  22503. # Set up the scripts for CONFIG_HEADERS section.
  22504. # No need to generate them if there are no CONFIG_HEADERS.
  22505. # This happens for instance with `./config.status Makefile'.
  22506. if test -n "$CONFIG_HEADERS"; then
  22507. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22508. BEGIN {
  22509. _ACEOF
  22510. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22511. # here-document in config.status, that substitutes the proper values into
  22512. # config.h.in to produce config.h.
  22513. # Create a delimiter string that does not exist in confdefs.h, to ease
  22514. # handling of long lines.
  22515. ac_delim='%!_!# '
  22516. for ac_last_try in false false :; do
  22517. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22518. if test -z "$ac_tt"; then
  22519. break
  22520. elif $ac_last_try; then
  22521. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22522. else
  22523. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22524. fi
  22525. done
  22526. # For the awk script, D is an array of macro values keyed by name,
  22527. # likewise P contains macro parameters if any. Preserve backslash
  22528. # newline sequences.
  22529. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22530. sed -n '
  22531. s/.\{148\}/&'"$ac_delim"'/g
  22532. t rset
  22533. :rset
  22534. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22535. t def
  22536. d
  22537. :def
  22538. s/\\$//
  22539. t bsnl
  22540. s/["\\]/\\&/g
  22541. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22542. D["\1"]=" \3"/p
  22543. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22544. d
  22545. :bsnl
  22546. s/["\\]/\\&/g
  22547. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22548. D["\1"]=" \3\\\\\\n"\\/p
  22549. t cont
  22550. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22551. t cont
  22552. d
  22553. :cont
  22554. n
  22555. s/.\{148\}/&'"$ac_delim"'/g
  22556. t clear
  22557. :clear
  22558. s/\\$//
  22559. t bsnlc
  22560. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22561. d
  22562. :bsnlc
  22563. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22564. b cont
  22565. ' <confdefs.h | sed '
  22566. s/'"$ac_delim"'/"\\\
  22567. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22568. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22569. for (key in D) D_is_set[key] = 1
  22570. FS = ""
  22571. }
  22572. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22573. line = \$ 0
  22574. split(line, arg, " ")
  22575. if (arg[1] == "#") {
  22576. defundef = arg[2]
  22577. mac1 = arg[3]
  22578. } else {
  22579. defundef = substr(arg[1], 2)
  22580. mac1 = arg[2]
  22581. }
  22582. split(mac1, mac2, "(") #)
  22583. macro = mac2[1]
  22584. prefix = substr(line, 1, index(line, defundef) - 1)
  22585. if (D_is_set[macro]) {
  22586. # Preserve the white space surrounding the "#".
  22587. print prefix "define", macro P[macro] D[macro]
  22588. next
  22589. } else {
  22590. # Replace #undef with comments. This is necessary, for example,
  22591. # in the case of _POSIX_SOURCE, which is predefined and required
  22592. # on some systems where configure will not decide to define it.
  22593. if (defundef == "undef") {
  22594. print "/*", prefix defundef, macro, "*/"
  22595. next
  22596. }
  22597. }
  22598. }
  22599. { print }
  22600. _ACAWK
  22601. _ACEOF
  22602. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22603. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  22604. fi # test -n "$CONFIG_HEADERS"
  22605. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22606. shift
  22607. for ac_tag
  22608. do
  22609. case $ac_tag in
  22610. :[FHLC]) ac_mode=$ac_tag; continue;;
  22611. esac
  22612. case $ac_mode$ac_tag in
  22613. :[FHL]*:*);;
  22614. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  22615. :[FH]-) ac_tag=-:-;;
  22616. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22617. esac
  22618. ac_save_IFS=$IFS
  22619. IFS=:
  22620. set x $ac_tag
  22621. IFS=$ac_save_IFS
  22622. shift
  22623. ac_file=$1
  22624. shift
  22625. case $ac_mode in
  22626. :L) ac_source=$1;;
  22627. :[FH])
  22628. ac_file_inputs=
  22629. for ac_f
  22630. do
  22631. case $ac_f in
  22632. -) ac_f="$ac_tmp/stdin";;
  22633. *) # Look for the file first in the build tree, then in the source tree
  22634. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22635. # because $ac_f cannot contain `:'.
  22636. test -f "$ac_f" ||
  22637. case $ac_f in
  22638. [\\/$]*) false;;
  22639. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22640. esac ||
  22641. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  22642. esac
  22643. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  22644. as_fn_append ac_file_inputs " '$ac_f'"
  22645. done
  22646. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22647. # use $as_me), people would be surprised to read:
  22648. # /* config.h. Generated by config.status. */
  22649. configure_input='Generated from '`
  22650. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  22651. `' by configure.'
  22652. if test x"$ac_file" != x-; then
  22653. configure_input="$ac_file. $configure_input"
  22654. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  22655. $as_echo "$as_me: creating $ac_file" >&6;}
  22656. fi
  22657. # Neutralize special characters interpreted by sed in replacement strings.
  22658. case $configure_input in #(
  22659. *\&* | *\|* | *\\* )
  22660. ac_sed_conf_input=`$as_echo "$configure_input" |
  22661. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  22662. *) ac_sed_conf_input=$configure_input;;
  22663. esac
  22664. case $ac_tag in
  22665. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  22666. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  22667. esac
  22668. ;;
  22669. esac
  22670. ac_dir=`$as_dirname -- "$ac_file" ||
  22671. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22672. X"$ac_file" : 'X\(//\)[^/]' \| \
  22673. X"$ac_file" : 'X\(//\)$' \| \
  22674. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22675. $as_echo X"$ac_file" |
  22676. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22677. s//\1/
  22678. q
  22679. }
  22680. /^X\(\/\/\)[^/].*/{
  22681. s//\1/
  22682. q
  22683. }
  22684. /^X\(\/\/\)$/{
  22685. s//\1/
  22686. q
  22687. }
  22688. /^X\(\/\).*/{
  22689. s//\1/
  22690. q
  22691. }
  22692. s/.*/./; q'`
  22693. as_dir="$ac_dir"; as_fn_mkdir_p
  22694. ac_builddir=.
  22695. case "$ac_dir" in
  22696. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22697. *)
  22698. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  22699. # A ".." for each directory in $ac_dir_suffix.
  22700. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22701. case $ac_top_builddir_sub in
  22702. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22703. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22704. esac ;;
  22705. esac
  22706. ac_abs_top_builddir=$ac_pwd
  22707. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22708. # for backward compatibility:
  22709. ac_top_builddir=$ac_top_build_prefix
  22710. case $srcdir in
  22711. .) # We are building in place.
  22712. ac_srcdir=.
  22713. ac_top_srcdir=$ac_top_builddir_sub
  22714. ac_abs_top_srcdir=$ac_pwd ;;
  22715. [\\/]* | ?:[\\/]* ) # Absolute name.
  22716. ac_srcdir=$srcdir$ac_dir_suffix;
  22717. ac_top_srcdir=$srcdir
  22718. ac_abs_top_srcdir=$srcdir ;;
  22719. *) # Relative name.
  22720. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22721. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22722. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22723. esac
  22724. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22725. case $ac_mode in
  22726. :F)
  22727. #
  22728. # CONFIG_FILE
  22729. #
  22730. case $INSTALL in
  22731. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22732. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22733. esac
  22734. _ACEOF
  22735. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22736. # If the template does not know about datarootdir, expand it.
  22737. # FIXME: This hack should be removed a few years after 2.60.
  22738. ac_datarootdir_hack=; ac_datarootdir_seen=
  22739. ac_sed_dataroot='
  22740. /datarootdir/ {
  22741. p
  22742. q
  22743. }
  22744. /@datadir@/p
  22745. /@docdir@/p
  22746. /@infodir@/p
  22747. /@localedir@/p
  22748. /@mandir@/p'
  22749. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22750. *datarootdir*) ac_datarootdir_seen=yes;;
  22751. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22753. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22754. _ACEOF
  22755. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22756. ac_datarootdir_hack='
  22757. s&@datadir@&$datadir&g
  22758. s&@docdir@&$docdir&g
  22759. s&@infodir@&$infodir&g
  22760. s&@localedir@&$localedir&g
  22761. s&@mandir@&$mandir&g
  22762. s&\\\${datarootdir}&$datarootdir&g' ;;
  22763. esac
  22764. _ACEOF
  22765. # Neutralize VPATH when `$srcdir' = `.'.
  22766. # Shell code in configure.ac might set extrasub.
  22767. # FIXME: do we really want to maintain this feature?
  22768. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22769. ac_sed_extra="$ac_vpsub
  22770. $extrasub
  22771. _ACEOF
  22772. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22773. :t
  22774. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22775. s|@configure_input@|$ac_sed_conf_input|;t t
  22776. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22777. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22778. s&@srcdir@&$ac_srcdir&;t t
  22779. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22780. s&@top_srcdir@&$ac_top_srcdir&;t t
  22781. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22782. s&@builddir@&$ac_builddir&;t t
  22783. s&@abs_builddir@&$ac_abs_builddir&;t t
  22784. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22785. s&@INSTALL@&$ac_INSTALL&;t t
  22786. $ac_datarootdir_hack
  22787. "
  22788. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  22789. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22790. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22791. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  22792. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  22793. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  22794. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22795. which seems to be undefined. Please make sure it is defined" >&5
  22796. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22797. which seems to be undefined. Please make sure it is defined" >&2;}
  22798. rm -f "$ac_tmp/stdin"
  22799. case $ac_file in
  22800. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  22801. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22802. esac \
  22803. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22804. ;;
  22805. :H)
  22806. #
  22807. # CONFIG_HEADER
  22808. #
  22809. if test x"$ac_file" != x-; then
  22810. {
  22811. $as_echo "/* $configure_input */" \
  22812. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22813. } >"$ac_tmp/config.h" \
  22814. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22815. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22816. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22817. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22818. else
  22819. rm -f "$ac_file"
  22820. mv "$ac_tmp/config.h" "$ac_file" \
  22821. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22822. fi
  22823. else
  22824. $as_echo "/* $configure_input */" \
  22825. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22826. || as_fn_error $? "could not create -" "$LINENO" 5
  22827. fi
  22828. ;;
  22829. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22830. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22831. ;;
  22832. esac
  22833. case $ac_file$ac_mode in
  22834. "libtool":C)
  22835. # See if we are running on zsh, and set the options which allow our
  22836. # commands through without removal of \ escapes.
  22837. if test -n "${ZSH_VERSION+set}" ; then
  22838. setopt NO_GLOB_SUBST
  22839. fi
  22840. cfgfile="${ofile}T"
  22841. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22842. $RM "$cfgfile"
  22843. cat <<_LT_EOF >> "$cfgfile"
  22844. #! $SHELL
  22845. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22846. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22847. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22848. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22849. #
  22850. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22851. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22852. # Foundation, Inc.
  22853. # Written by Gordon Matzigkeit, 1996
  22854. #
  22855. # This file is part of GNU Libtool.
  22856. #
  22857. # GNU Libtool is free software; you can redistribute it and/or
  22858. # modify it under the terms of the GNU General Public License as
  22859. # published by the Free Software Foundation; either version 2 of
  22860. # the License, or (at your option) any later version.
  22861. #
  22862. # As a special exception to the GNU General Public License,
  22863. # if you distribute this file as part of a program or library that
  22864. # is built using GNU Libtool, you may include this file under the
  22865. # same distribution terms that you use for the rest of that program.
  22866. #
  22867. # GNU Libtool is distributed in the hope that it will be useful,
  22868. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22869. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22870. # GNU General Public License for more details.
  22871. #
  22872. # You should have received a copy of the GNU General Public License
  22873. # along with GNU Libtool; see the file COPYING. If not, a copy
  22874. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22875. # obtained by writing to the Free Software Foundation, Inc.,
  22876. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22877. # The names of the tagged configurations supported by this script.
  22878. available_tags="CXX "
  22879. # ### BEGIN LIBTOOL CONFIG
  22880. # Which release of libtool.m4 was used?
  22881. macro_version=$macro_version
  22882. macro_revision=$macro_revision
  22883. # Assembler program.
  22884. AS=$lt_AS
  22885. # DLL creation program.
  22886. DLLTOOL=$lt_DLLTOOL
  22887. # Object dumper program.
  22888. OBJDUMP=$lt_OBJDUMP
  22889. # Whether or not to build shared libraries.
  22890. build_libtool_libs=$enable_shared
  22891. # Whether or not to build static libraries.
  22892. build_old_libs=$enable_static
  22893. # What type of objects to build.
  22894. pic_mode=$pic_mode
  22895. # Whether or not to optimize for fast installation.
  22896. fast_install=$enable_fast_install
  22897. # Shell to use when invoking shell scripts.
  22898. SHELL=$lt_SHELL
  22899. # An echo program that protects backslashes.
  22900. ECHO=$lt_ECHO
  22901. # The PATH separator for the build system.
  22902. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22903. # The host system.
  22904. host_alias=$host_alias
  22905. host=$host
  22906. host_os=$host_os
  22907. # The build system.
  22908. build_alias=$build_alias
  22909. build=$build
  22910. build_os=$build_os
  22911. # A sed program that does not truncate output.
  22912. SED=$lt_SED
  22913. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22914. Xsed="\$SED -e 1s/^X//"
  22915. # A grep program that handles long lines.
  22916. GREP=$lt_GREP
  22917. # An ERE matcher.
  22918. EGREP=$lt_EGREP
  22919. # A literal string matcher.
  22920. FGREP=$lt_FGREP
  22921. # A BSD- or MS-compatible name lister.
  22922. NM=$lt_NM
  22923. # Whether we need soft or hard links.
  22924. LN_S=$lt_LN_S
  22925. # What is the maximum length of a command?
  22926. max_cmd_len=$max_cmd_len
  22927. # Object file suffix (normally "o").
  22928. objext=$ac_objext
  22929. # Executable file suffix (normally "").
  22930. exeext=$exeext
  22931. # whether the shell understands "unset".
  22932. lt_unset=$lt_unset
  22933. # turn spaces into newlines.
  22934. SP2NL=$lt_lt_SP2NL
  22935. # turn newlines into spaces.
  22936. NL2SP=$lt_lt_NL2SP
  22937. # convert \$build file names to \$host format.
  22938. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22939. # convert \$build files to toolchain format.
  22940. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22941. # Method to check whether dependent libraries are shared objects.
  22942. deplibs_check_method=$lt_deplibs_check_method
  22943. # Command to use when deplibs_check_method = "file_magic".
  22944. file_magic_cmd=$lt_file_magic_cmd
  22945. # How to find potential files when deplibs_check_method = "file_magic".
  22946. file_magic_glob=$lt_file_magic_glob
  22947. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22948. want_nocaseglob=$lt_want_nocaseglob
  22949. # Command to associate shared and link libraries.
  22950. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22951. # The archiver.
  22952. AR=$lt_AR
  22953. # Flags to create an archive.
  22954. AR_FLAGS=$lt_AR_FLAGS
  22955. # How to feed a file listing to the archiver.
  22956. archiver_list_spec=$lt_archiver_list_spec
  22957. # A symbol stripping program.
  22958. STRIP=$lt_STRIP
  22959. # Commands used to install an old-style archive.
  22960. RANLIB=$lt_RANLIB
  22961. old_postinstall_cmds=$lt_old_postinstall_cmds
  22962. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22963. # Whether to use a lock for old archive extraction.
  22964. lock_old_archive_extraction=$lock_old_archive_extraction
  22965. # A C compiler.
  22966. LTCC=$lt_CC
  22967. # LTCC compiler flags.
  22968. LTCFLAGS=$lt_CFLAGS
  22969. # Take the output of nm and produce a listing of raw symbols and C names.
  22970. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22971. # Transform the output of nm in a proper C declaration.
  22972. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22973. # Transform the output of nm in a C name address pair.
  22974. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22975. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22976. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22977. # Specify filename containing input files for \$NM.
  22978. nm_file_list_spec=$lt_nm_file_list_spec
  22979. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22980. lt_sysroot=$lt_sysroot
  22981. # The name of the directory that contains temporary libtool files.
  22982. objdir=$objdir
  22983. # Used to examine libraries when file_magic_cmd begins with "file".
  22984. MAGIC_CMD=$MAGIC_CMD
  22985. # Must we lock files when doing compilation?
  22986. need_locks=$lt_need_locks
  22987. # Manifest tool.
  22988. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22989. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22990. DSYMUTIL=$lt_DSYMUTIL
  22991. # Tool to change global to local symbols on Mac OS X.
  22992. NMEDIT=$lt_NMEDIT
  22993. # Tool to manipulate fat objects and archives on Mac OS X.
  22994. LIPO=$lt_LIPO
  22995. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22996. OTOOL=$lt_OTOOL
  22997. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22998. OTOOL64=$lt_OTOOL64
  22999. # Old archive suffix (normally "a").
  23000. libext=$libext
  23001. # Shared library suffix (normally ".so").
  23002. shrext_cmds=$lt_shrext_cmds
  23003. # The commands to extract the exported symbol list from a shared archive.
  23004. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23005. # Variables whose values should be saved in libtool wrapper scripts and
  23006. # restored at link time.
  23007. variables_saved_for_relink=$lt_variables_saved_for_relink
  23008. # Do we need the "lib" prefix for modules?
  23009. need_lib_prefix=$need_lib_prefix
  23010. # Do we need a version for libraries?
  23011. need_version=$need_version
  23012. # Library versioning type.
  23013. version_type=$version_type
  23014. # Shared library runtime path variable.
  23015. runpath_var=$runpath_var
  23016. # Shared library path variable.
  23017. shlibpath_var=$shlibpath_var
  23018. # Is shlibpath searched before the hard-coded library search path?
  23019. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23020. # Format of library name prefix.
  23021. libname_spec=$lt_libname_spec
  23022. # List of archive names. First name is the real one, the rest are links.
  23023. # The last name is the one that the linker finds with -lNAME
  23024. library_names_spec=$lt_library_names_spec
  23025. # The coded name of the library, if different from the real name.
  23026. soname_spec=$lt_soname_spec
  23027. # Permission mode override for installation of shared libraries.
  23028. install_override_mode=$lt_install_override_mode
  23029. # Command to use after installation of a shared archive.
  23030. postinstall_cmds=$lt_postinstall_cmds
  23031. # Command to use after uninstallation of a shared archive.
  23032. postuninstall_cmds=$lt_postuninstall_cmds
  23033. # Commands used to finish a libtool library installation in a directory.
  23034. finish_cmds=$lt_finish_cmds
  23035. # As "finish_cmds", except a single script fragment to be evaled but
  23036. # not shown.
  23037. finish_eval=$lt_finish_eval
  23038. # Whether we should hardcode library paths into libraries.
  23039. hardcode_into_libs=$hardcode_into_libs
  23040. # Compile-time system search path for libraries.
  23041. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23042. # Run-time system search path for libraries.
  23043. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23044. # Whether dlopen is supported.
  23045. dlopen_support=$enable_dlopen
  23046. # Whether dlopen of programs is supported.
  23047. dlopen_self=$enable_dlopen_self
  23048. # Whether dlopen of statically linked programs is supported.
  23049. dlopen_self_static=$enable_dlopen_self_static
  23050. # Commands to strip libraries.
  23051. old_striplib=$lt_old_striplib
  23052. striplib=$lt_striplib
  23053. # The linker used to build libraries.
  23054. LD=$lt_LD
  23055. # How to create reloadable object files.
  23056. reload_flag=$lt_reload_flag
  23057. reload_cmds=$lt_reload_cmds
  23058. # Commands used to build an old-style archive.
  23059. old_archive_cmds=$lt_old_archive_cmds
  23060. # A language specific compiler.
  23061. CC=$lt_compiler
  23062. # Is the compiler the GNU compiler?
  23063. with_gcc=$GCC
  23064. # Compiler flag to turn off builtin functions.
  23065. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23066. # Additional compiler flags for building library objects.
  23067. pic_flag=$lt_lt_prog_compiler_pic
  23068. # How to pass a linker flag through the compiler.
  23069. wl=$lt_lt_prog_compiler_wl
  23070. # Compiler flag to prevent dynamic linking.
  23071. link_static_flag=$lt_lt_prog_compiler_static
  23072. # Does compiler simultaneously support -c and -o options?
  23073. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23074. # Whether or not to add -lc for building shared libraries.
  23075. build_libtool_need_lc=$archive_cmds_need_lc
  23076. # Whether or not to disallow shared libs when runtime libs are static.
  23077. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23078. # Compiler flag to allow reflexive dlopens.
  23079. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23080. # Compiler flag to generate shared objects directly from archives.
  23081. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23082. # Whether the compiler copes with passing no objects directly.
  23083. compiler_needs_object=$lt_compiler_needs_object
  23084. # Create an old-style archive from a shared archive.
  23085. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23086. # Create a temporary old-style archive to link instead of a shared archive.
  23087. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23088. # Commands used to build a shared archive.
  23089. archive_cmds=$lt_archive_cmds
  23090. archive_expsym_cmds=$lt_archive_expsym_cmds
  23091. # Commands used to build a loadable module if different from building
  23092. # a shared archive.
  23093. module_cmds=$lt_module_cmds
  23094. module_expsym_cmds=$lt_module_expsym_cmds
  23095. # Whether we are building with GNU ld or not.
  23096. with_gnu_ld=$lt_with_gnu_ld
  23097. # Flag that allows shared libraries with undefined symbols to be built.
  23098. allow_undefined_flag=$lt_allow_undefined_flag
  23099. # Flag that enforces no undefined symbols.
  23100. no_undefined_flag=$lt_no_undefined_flag
  23101. # Flag to hardcode \$libdir into a binary during linking.
  23102. # This must work even if \$libdir does not exist
  23103. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23104. # Whether we need a single "-rpath" flag with a separated argument.
  23105. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23106. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23107. # DIR into the resulting binary.
  23108. hardcode_direct=$hardcode_direct
  23109. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23110. # DIR into the resulting binary and the resulting library dependency is
  23111. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23112. # library is relocated.
  23113. hardcode_direct_absolute=$hardcode_direct_absolute
  23114. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23115. # into the resulting binary.
  23116. hardcode_minus_L=$hardcode_minus_L
  23117. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23118. # into the resulting binary.
  23119. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23120. # Set to "yes" if building a shared library automatically hardcodes DIR
  23121. # into the library and all subsequent libraries and executables linked
  23122. # against it.
  23123. hardcode_automatic=$hardcode_automatic
  23124. # Set to yes if linker adds runtime paths of dependent libraries
  23125. # to runtime path list.
  23126. inherit_rpath=$inherit_rpath
  23127. # Whether libtool must link a program against all its dependency libraries.
  23128. link_all_deplibs=$link_all_deplibs
  23129. # Set to "yes" if exported symbols are required.
  23130. always_export_symbols=$always_export_symbols
  23131. # The commands to list exported symbols.
  23132. export_symbols_cmds=$lt_export_symbols_cmds
  23133. # Symbols that should not be listed in the preloaded symbols.
  23134. exclude_expsyms=$lt_exclude_expsyms
  23135. # Symbols that must always be exported.
  23136. include_expsyms=$lt_include_expsyms
  23137. # Commands necessary for linking programs (against libraries) with templates.
  23138. prelink_cmds=$lt_prelink_cmds
  23139. # Commands necessary for finishing linking programs.
  23140. postlink_cmds=$lt_postlink_cmds
  23141. # Specify filename containing input files.
  23142. file_list_spec=$lt_file_list_spec
  23143. # How to hardcode a shared library path into an executable.
  23144. hardcode_action=$hardcode_action
  23145. # The directories searched by this compiler when creating a shared library.
  23146. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23147. # Dependencies to place before and after the objects being linked to
  23148. # create a shared library.
  23149. predep_objects=$lt_predep_objects
  23150. postdep_objects=$lt_postdep_objects
  23151. predeps=$lt_predeps
  23152. postdeps=$lt_postdeps
  23153. # The library search path used internally by the compiler when linking
  23154. # a shared library.
  23155. compiler_lib_search_path=$lt_compiler_lib_search_path
  23156. # ### END LIBTOOL CONFIG
  23157. _LT_EOF
  23158. case $host_os in
  23159. aix3*)
  23160. cat <<\_LT_EOF >> "$cfgfile"
  23161. # AIX sometimes has problems with the GCC collect2 program. For some
  23162. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23163. # vanish in a puff of smoke.
  23164. if test "X${COLLECT_NAMES+set}" != Xset; then
  23165. COLLECT_NAMES=
  23166. export COLLECT_NAMES
  23167. fi
  23168. _LT_EOF
  23169. ;;
  23170. esac
  23171. ltmain="$ac_aux_dir/ltmain.sh"
  23172. # We use sed instead of cat because bash on DJGPP gets confused if
  23173. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23174. # text mode, it properly converts lines to CR/LF. This bash problem
  23175. # is reportedly fixed, but why not run on old versions too?
  23176. sed '$q' "$ltmain" >> "$cfgfile" \
  23177. || (rm -f "$cfgfile"; exit 1)
  23178. if test x"$xsi_shell" = xyes; then
  23179. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  23180. func_dirname ()\
  23181. {\
  23182. \ case ${1} in\
  23183. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23184. \ * ) func_dirname_result="${3}" ;;\
  23185. \ esac\
  23186. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  23187. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23188. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23189. test 0 -eq $? || _lt_function_replace_fail=:
  23190. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  23191. func_basename ()\
  23192. {\
  23193. \ func_basename_result="${1##*/}"\
  23194. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23195. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23196. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23197. test 0 -eq $? || _lt_function_replace_fail=:
  23198. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  23199. func_dirname_and_basename ()\
  23200. {\
  23201. \ case ${1} in\
  23202. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23203. \ * ) func_dirname_result="${3}" ;;\
  23204. \ esac\
  23205. \ func_basename_result="${1##*/}"\
  23206. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23207. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23208. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23209. test 0 -eq $? || _lt_function_replace_fail=:
  23210. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  23211. func_stripname ()\
  23212. {\
  23213. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  23214. \ # positional parameters, so assign one to ordinary parameter first.\
  23215. \ func_stripname_result=${3}\
  23216. \ func_stripname_result=${func_stripname_result#"${1}"}\
  23217. \ func_stripname_result=${func_stripname_result%"${2}"}\
  23218. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  23219. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23220. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23221. test 0 -eq $? || _lt_function_replace_fail=:
  23222. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  23223. func_split_long_opt ()\
  23224. {\
  23225. \ func_split_long_opt_name=${1%%=*}\
  23226. \ func_split_long_opt_arg=${1#*=}\
  23227. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23228. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23229. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23230. test 0 -eq $? || _lt_function_replace_fail=:
  23231. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23232. func_split_short_opt ()\
  23233. {\
  23234. \ func_split_short_opt_arg=${1#??}\
  23235. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23236. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23237. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23238. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23239. test 0 -eq $? || _lt_function_replace_fail=:
  23240. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23241. func_lo2o ()\
  23242. {\
  23243. \ case ${1} in\
  23244. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23245. \ *) func_lo2o_result=${1} ;;\
  23246. \ esac\
  23247. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23248. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23249. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23250. test 0 -eq $? || _lt_function_replace_fail=:
  23251. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23252. func_xform ()\
  23253. {\
  23254. func_xform_result=${1%.*}.lo\
  23255. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23256. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23257. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23258. test 0 -eq $? || _lt_function_replace_fail=:
  23259. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23260. func_arith ()\
  23261. {\
  23262. func_arith_result=$(( $* ))\
  23263. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23264. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23265. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23266. test 0 -eq $? || _lt_function_replace_fail=:
  23267. sed -e '/^func_len ()$/,/^} # func_len /c\
  23268. func_len ()\
  23269. {\
  23270. func_len_result=${#1}\
  23271. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23272. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23273. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23274. test 0 -eq $? || _lt_function_replace_fail=:
  23275. fi
  23276. if test x"$lt_shell_append" = xyes; then
  23277. sed -e '/^func_append ()$/,/^} # func_append /c\
  23278. func_append ()\
  23279. {\
  23280. eval "${1}+=\\${2}"\
  23281. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23282. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23283. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23284. test 0 -eq $? || _lt_function_replace_fail=:
  23285. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23286. func_append_quoted ()\
  23287. {\
  23288. \ func_quote_for_eval "${2}"\
  23289. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23290. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23291. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23292. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23293. test 0 -eq $? || _lt_function_replace_fail=:
  23294. # Save a `func_append' function call where possible by direct use of '+='
  23295. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  23296. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23297. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23298. test 0 -eq $? || _lt_function_replace_fail=:
  23299. else
  23300. # Save a `func_append' function call even when '+=' is not available
  23301. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  23302. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23303. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23304. test 0 -eq $? || _lt_function_replace_fail=:
  23305. fi
  23306. if test x"$_lt_function_replace_fail" = x":"; then
  23307. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  23308. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  23309. fi
  23310. mv -f "$cfgfile" "$ofile" ||
  23311. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23312. chmod +x "$ofile"
  23313. cat <<_LT_EOF >> "$ofile"
  23314. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23315. # The linker used to build libraries.
  23316. LD=$lt_LD_CXX
  23317. # How to create reloadable object files.
  23318. reload_flag=$lt_reload_flag_CXX
  23319. reload_cmds=$lt_reload_cmds_CXX
  23320. # Commands used to build an old-style archive.
  23321. old_archive_cmds=$lt_old_archive_cmds_CXX
  23322. # A language specific compiler.
  23323. CC=$lt_compiler_CXX
  23324. # Is the compiler the GNU compiler?
  23325. with_gcc=$GCC_CXX
  23326. # Compiler flag to turn off builtin functions.
  23327. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23328. # Additional compiler flags for building library objects.
  23329. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23330. # How to pass a linker flag through the compiler.
  23331. wl=$lt_lt_prog_compiler_wl_CXX
  23332. # Compiler flag to prevent dynamic linking.
  23333. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23334. # Does compiler simultaneously support -c and -o options?
  23335. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23336. # Whether or not to add -lc for building shared libraries.
  23337. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23338. # Whether or not to disallow shared libs when runtime libs are static.
  23339. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23340. # Compiler flag to allow reflexive dlopens.
  23341. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23342. # Compiler flag to generate shared objects directly from archives.
  23343. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23344. # Whether the compiler copes with passing no objects directly.
  23345. compiler_needs_object=$lt_compiler_needs_object_CXX
  23346. # Create an old-style archive from a shared archive.
  23347. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23348. # Create a temporary old-style archive to link instead of a shared archive.
  23349. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23350. # Commands used to build a shared archive.
  23351. archive_cmds=$lt_archive_cmds_CXX
  23352. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23353. # Commands used to build a loadable module if different from building
  23354. # a shared archive.
  23355. module_cmds=$lt_module_cmds_CXX
  23356. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23357. # Whether we are building with GNU ld or not.
  23358. with_gnu_ld=$lt_with_gnu_ld_CXX
  23359. # Flag that allows shared libraries with undefined symbols to be built.
  23360. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23361. # Flag that enforces no undefined symbols.
  23362. no_undefined_flag=$lt_no_undefined_flag_CXX
  23363. # Flag to hardcode \$libdir into a binary during linking.
  23364. # This must work even if \$libdir does not exist
  23365. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23366. # Whether we need a single "-rpath" flag with a separated argument.
  23367. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23368. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23369. # DIR into the resulting binary.
  23370. hardcode_direct=$hardcode_direct_CXX
  23371. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23372. # DIR into the resulting binary and the resulting library dependency is
  23373. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23374. # library is relocated.
  23375. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23376. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23377. # into the resulting binary.
  23378. hardcode_minus_L=$hardcode_minus_L_CXX
  23379. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23380. # into the resulting binary.
  23381. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23382. # Set to "yes" if building a shared library automatically hardcodes DIR
  23383. # into the library and all subsequent libraries and executables linked
  23384. # against it.
  23385. hardcode_automatic=$hardcode_automatic_CXX
  23386. # Set to yes if linker adds runtime paths of dependent libraries
  23387. # to runtime path list.
  23388. inherit_rpath=$inherit_rpath_CXX
  23389. # Whether libtool must link a program against all its dependency libraries.
  23390. link_all_deplibs=$link_all_deplibs_CXX
  23391. # Set to "yes" if exported symbols are required.
  23392. always_export_symbols=$always_export_symbols_CXX
  23393. # The commands to list exported symbols.
  23394. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23395. # Symbols that should not be listed in the preloaded symbols.
  23396. exclude_expsyms=$lt_exclude_expsyms_CXX
  23397. # Symbols that must always be exported.
  23398. include_expsyms=$lt_include_expsyms_CXX
  23399. # Commands necessary for linking programs (against libraries) with templates.
  23400. prelink_cmds=$lt_prelink_cmds_CXX
  23401. # Commands necessary for finishing linking programs.
  23402. postlink_cmds=$lt_postlink_cmds_CXX
  23403. # Specify filename containing input files.
  23404. file_list_spec=$lt_file_list_spec_CXX
  23405. # How to hardcode a shared library path into an executable.
  23406. hardcode_action=$hardcode_action_CXX
  23407. # The directories searched by this compiler when creating a shared library.
  23408. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23409. # Dependencies to place before and after the objects being linked to
  23410. # create a shared library.
  23411. predep_objects=$lt_predep_objects_CXX
  23412. postdep_objects=$lt_postdep_objects_CXX
  23413. predeps=$lt_predeps_CXX
  23414. postdeps=$lt_postdeps_CXX
  23415. # The library search path used internally by the compiler when linking
  23416. # a shared library.
  23417. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23418. # ### END LIBTOOL TAG CONFIG: CXX
  23419. _LT_EOF
  23420. ;;
  23421. "sdl2_config":C) chmod a+x sdl2-config ;;
  23422. "summary":C) echo -en "$SUMMARY" ;;
  23423. esac
  23424. done # for ac_tag
  23425. as_fn_exit 0
  23426. _ACEOF
  23427. ac_clean_files=$ac_clean_files_save
  23428. test $ac_write_fail = 0 ||
  23429. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23430. # configure is writing to config.log, and then calls config.status.
  23431. # config.status does its own redirection, appending to config.log.
  23432. # Unfortunately, on DOS this fails, as config.log is still kept open
  23433. # by configure, so config.status won't be able to write to it; its
  23434. # output is simply discarded. So we exec the FD to /dev/null,
  23435. # effectively closing config.log, so it can be properly (re)opened and
  23436. # appended to by config.status. When coming back to configure, we
  23437. # need to make the FD available again.
  23438. if test "$no_create" != yes; then
  23439. ac_cs_success=:
  23440. ac_config_status_args=
  23441. test "$silent" = yes &&
  23442. ac_config_status_args="$ac_config_status_args --quiet"
  23443. exec 5>/dev/null
  23444. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23445. exec 5>>config.log
  23446. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23447. # would make configure fail if this is the last instruction.
  23448. $ac_cs_success || as_fn_exit 1
  23449. fi
  23450. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23451. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23452. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23453. fi